Class ResourceMetadata

java.lang.Object
org.alfresco.rest.framework.core.ResourceMetadata
Direct Known Subclasses:
OperationResourceMetaData

public class ResourceMetadata extends Object
Describes a resource and its properties. Metadata about what functions the resource can perform and what properties it has.
Author:
Gethin James, janv
  • Constructor Details

  • Method Details

    • getOperation

      public ResourceOperation getOperation(org.springframework.http.HttpMethod supportedMethod)
      Gets the operation for the specified HTTPMethod
      Parameters:
      supportedMethod - HttpMethod
      Returns:
      null if the operation is not supported
    • getObjectType

      public Class getObjectType(ResourceOperation operation)
      Gets the data type of the resource parameter
      Parameters:
      operation - ResourceOperation object
      Returns:
      The data type of the resource parameter
    • isDeleted

      public boolean isDeleted(Class<? extends ResourceAction> resourceAction)
      Indicates if this resource action is no longer supported.
      Returns:
      true if it is no longer supported
    • isNoAuth

      public boolean isNoAuth(Class<? extends ResourceAction> resourceAction)
      Indicates if this resource action supports unauthenticated access.
      Parameters:
      resourceAction -
      Returns:
    • getUniqueId

      public String getUniqueId()
      URL uniqueId to the resource
      Returns:
      String uniqueId
    • getType

      The type of this resource
      Returns:
      RESOURCE_TYPE type
    • getApi

      public Api getApi()
      Returns:
      the api
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getOperations

      public List<ResourceOperation> getOperations()
    • getApiDeleted

      protected Set<Class<? extends ResourceAction>> getApiDeleted()
    • getParentResource

      public String getParentResource()