Class ResourceMetadata

  • Direct Known Subclasses:
    OperationResourceMetaData

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

      • 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 java.lang.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​(java.lang.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​(java.lang.Class<? extends ResourceAction> resourceAction)
        Indicates if this resource action supports unauthenticated access.
        Parameters:
        resourceAction -
        Returns:
      • getUniqueId

        public java.lang.String getUniqueId()
        URL uniqueId to the resource
        Returns:
        String uniqueId
      • getApi

        public Api getApi()
        Returns:
        the api
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getApiDeleted

        protected java.util.Set<java.lang.Class<? extends ResourceAction>> getApiDeleted()
      • getParentResource

        public java.lang.String getParentResource()