Class BaseResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
org.apache.sling.jackrabbit.usermanager.impl.resource.BaseResource
- Direct Known Subclasses:
AuthorizableResource,PrincipalResource
Base Resource implementation for the common parts
-
Field Summary
FieldsFields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseResource(ResourceResolver resourceResolver, String path) -
Method Summary
Modifier and TypeMethodDescriptiongetPath()Returns the absolute path of this resource in the resource tree.Returns the meta data of this resource.Returns theResourceResolverfrom which this resource has been retrieved.Returns the super type of the resource if the resource defines its own super type.Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildrenMethods inherited from class org.apache.sling.api.adapter.SlingAdaptable
adaptTo, setAdapterManager, unsetAdapterManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sling.api.resource.Resource
getResourceType
-
Field Details
-
resourceResolver
-
-
Constructor Details
-
BaseResource
-
-
Method Details
-
getPath
Description copied from interface:ResourceReturns the absolute path of this resource in the resource tree.- Returns:
- The resource path
-
getResourceMetadata
Description copied from interface:ResourceReturns the meta data of this resource. The concrete data contained in theResourceMetadataobject returned is implementation specific except for theResourceMetadata.RESOLUTION_PATHproperty 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
Description copied from interface:ResourceReturns theResourceResolverfrom which this resource has been retrieved.- Returns:
- The resource resolver
-
getResourceSuperType
Description copied from interface:ResourceReturns the super type of the resource if the resource defines its own super type. Otherwisenullis 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 callResourceResolver.getParentResourceType(Resource).- Returns:
- The super type of the resource or
null.
-