Package org.alfresco.rest.framework.core
Class ResourceMetadata
java.lang.Object
org.alfresco.rest.framework.core.ResourceMetadata
- Direct Known Subclasses:
OperationResourceMetaData
Describes a resource and its properties. Metadata about what functions
the resource can perform and what properties it has.
- Author:
- Gethin James, janv
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionResourceMetadata
(String uniqueId, ResourceMetadata.RESOURCE_TYPE type, List<ResourceOperation> operations, Api api, Set<Class<? extends ResourceAction>> apiDeleted, Set<Class<? extends ResourceAction>> apiNoAuth, String parentResource) -
Method Summary
Modifier and TypeMethodDescriptiongetApi()
protected Set<Class<? extends ResourceAction>>
getObjectType
(ResourceOperation operation) Gets the data type of the resource parametergetOperation
(org.springframework.http.HttpMethod supportedMethod) Gets the operation for the specified HTTPMethodgetType()
The type of this resourceURL uniqueId to the resourceboolean
isDeleted
(Class<? extends ResourceAction> resourceAction) Indicates if this resource action is no longer supported.boolean
isNoAuth
(Class<? extends ResourceAction> resourceAction) Indicates if this resource action supports unauthenticated access.toString()
-
Constructor Details
-
ResourceMetadata
public ResourceMetadata(String uniqueId, ResourceMetadata.RESOURCE_TYPE type, List<ResourceOperation> operations, Api api, Set<Class<? extends ResourceAction>> apiDeleted, Set<Class<? extends ResourceAction>> apiNoAuth, String parentResource)
-
-
Method Details
-
getOperation
Gets the operation for the specified HTTPMethod- Parameters:
supportedMethod
- HttpMethod- Returns:
- null if the operation is not supported
-
getObjectType
Gets the data type of the resource parameter- Parameters:
operation
-ResourceOperation
object- Returns:
- The data type of the resource parameter
-
isDeleted
Indicates if this resource action is no longer supported.- Returns:
- true if it is no longer supported
-
isNoAuth
Indicates if this resource action supports unauthenticated access.- Parameters:
resourceAction
-- Returns:
-
getUniqueId
URL uniqueId to the resource- Returns:
- String uniqueId
-
getType
The type of this resource- Returns:
- RESOURCE_TYPE type
-
getApi
- Returns:
- the api
-
toString
-
getOperations
-
getApiDeleted
-
getParentResource
-