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 booleanequals(Object obj)ResourceMetadatagetMetaData()Returns the meta data for this resourceObjectgetResource()Returns the REST resource objectinthashCode()StringtoString()
-
-
-
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
-
-