java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.jackrabbit.usermanager.impl.resource.BaseResource
All Implemented Interfaces:
Adaptable, Resource
Direct Known Subclasses:
AuthorizableResource, PrincipalResource

public abstract class BaseResource extends AbstractResource
Base Resource implementation for the common parts
  • Field Details

  • Constructor Details

  • Method Details

    • getPath

      public String getPath()
      Description copied from interface: Resource
      Returns the absolute path of this resource in the resource tree.
      Returns:
      The resource path
    • getResourceMetadata

      public ResourceMetadata getResourceMetadata()
      Description copied from interface: Resource
      Returns the meta data of this resource. The concrete data contained in the ResourceMetadata object returned is implementation specific except for the ResourceMetadata.RESOLUTION_PATH property which is required to be set to the part of the request URI used to resolve the resource.
      Returns:
      The resource meta data
      See Also:
    • getResourceResolver

      public ResourceResolver getResourceResolver()
      Description copied from interface: Resource
      Returns the ResourceResolver from which this resource has been retrieved.
      Returns:
      The resource resolver
    • getResourceSuperType

      public String getResourceSuperType()
      Description copied from interface: Resource
      Returns the super type of the resource if the resource defines its own super type. Otherwise null is returned. A resource might return a resource super type to overwrite the resource type hierarchy. If a client is interested in the effective resource super type of a resource, it should call ResourceResolver.getParentResourceType(Resource).
      Returns:
      The super type of the resource or null.