Package org.alfresco.rest.framework.core
Class ResourceWithMetadata
- java.lang.Object
-
- org.alfresco.rest.framework.core.ResourceWithMetadata
-
public class ResourceWithMetadata extends java.lang.Object
This wraps a resource object with its metadata. A single source for both the information about the resource and the resource itself- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description ResourceWithMetadata(java.lang.Object resource, ResourceMetadata metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ResourceMetadata
getMetaData()
Returns the meta data for this resourcejava.lang.Object
getResource()
Returns the REST resource objectint
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceWithMetadata
public ResourceWithMetadata(java.lang.Object resource, ResourceMetadata metaData)
-
-
Method Detail
-
getResource
public java.lang.Object getResource()
Returns the REST resource object- Returns:
- Object
-
getMetaData
public ResourceMetadata getMetaData()
Returns the meta data for this resource- Returns:
- ResourceMetadata
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-