public class ResourceMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceMetadata.RESOURCE_TYPE |
Constructor and Description |
---|
ResourceMetadata(String uniqueId,
ResourceMetadata.RESOURCE_TYPE type,
List<ResourceOperation> operations,
Api api,
Set<Class<? extends ResourceAction>> apiDeleted,
Set<Class<? extends ResourceAction>> apiNoAuth,
String parentResource) |
Modifier and Type | Method and Description |
---|---|
Api |
getApi() |
protected Set<Class<? extends ResourceAction>> |
getApiDeleted() |
Class |
getObjectType(ResourceOperation operation)
Gets the data type of the resource parameter
|
ResourceOperation |
getOperation(org.springframework.http.HttpMethod supportedMethod)
Gets the operation for the specified HTTPMethod
|
List<ResourceOperation> |
getOperations() |
String |
getParentResource() |
ResourceMetadata.RESOURCE_TYPE |
getType()
The type of this resource
|
String |
getUniqueId()
URL uniqueId to the resource
|
boolean |
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.
|
String |
toString() |
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)
public ResourceOperation getOperation(org.springframework.http.HttpMethod supportedMethod)
supportedMethod
- HttpMethodpublic Class getObjectType(ResourceOperation operation)
operation
- ResourceOperation
objectpublic boolean isDeleted(Class<? extends ResourceAction> resourceAction)
public boolean isNoAuth(Class<? extends ResourceAction> resourceAction)
resourceAction
- public String getUniqueId()
public ResourceMetadata.RESOURCE_TYPE getType()
public Api getApi()
public List<ResourceOperation> getOperations()
protected Set<Class<? extends ResourceAction>> getApiDeleted()
public String getParentResource()
Copyright © 2005–2017 Alfresco Software. All rights reserved.