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,
String parentResource) |
| Modifier and Type | Method and Description |
|---|---|
Api |
getApi() |
protected Set<Class<? extends ResourceAction>> |
getApiDeleted() |
Class |
getObjectType(org.springframework.http.HttpMethod supportedMethod)
Indicates if this resource can support the specified HTTPMethod
|
List<ResourceOperation> |
getOperations() |
List<ResourceParameter> |
getParameters(org.springframework.http.HttpMethod httpMethod)
Gets the parameters for the specified http method.
|
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 |
supports(org.springframework.http.HttpMethod supportedMethod)
Indicates if this resource can support the specified HTTPMethod
|
String |
toString() |
public ResourceMetadata(String uniqueId, ResourceMetadata.RESOURCE_TYPE type, List<ResourceOperation> operations, Api api, Set<Class<? extends ResourceAction>> apiDeleted, String parentResource)
public boolean supports(org.springframework.http.HttpMethod supportedMethod)
supportedMethod - public Class getObjectType(org.springframework.http.HttpMethod supportedMethod)
supportedMethod - public boolean isDeleted(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()
public List<ResourceParameter> getParameters(org.springframework.http.HttpMethod httpMethod)
httpMethod - Copyright © 2005–2014 Alfresco Software. All rights reserved.