Package org.alfresco.rest.framework.core
Class ResourceWithMetadata
- java.lang.Object
-
- org.alfresco.rest.framework.core.ResourceWithMetadata
-
public class ResourceWithMetadata extends 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(Object resource, ResourceMetadata metaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ResourceMetadata
getMetaData()
Returns the meta data for this resourceObject
getResource()
Returns the REST resource objectint
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ResourceWithMetadata
public ResourceWithMetadata(Object resource, ResourceMetadata metaData)
-
-
Method Detail
-
getResource
public Object getResource()
Returns the REST resource object- Returns:
- Object
-
getMetaData
public ResourceMetadata getMetaData()
Returns the meta data for this resource- Returns:
- ResourceMetadata
-
-