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
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseResource
(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 theResourceResolver
from 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, listChildren
Methods inherited from class org.apache.sling.api.adapter.SlingAdaptable
adaptTo, setAdapterManager, unsetAdapterManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sling.api.resource.Resource
getResourceType
-
Field Details
-
resourceResolver
-
-
Constructor Details
-
BaseResource
-
-
Method Details
-
getPath
Description copied from interface:Resource
Returns the absolute path of this resource in the resource tree.- Returns:
- The resource path
-
getResourceMetadata
Description copied from interface:Resource
Returns the meta data of this resource. The concrete data contained in theResourceMetadata
object returned is implementation specific except for theResourceMetadata.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
Description copied from interface:Resource
Returns theResourceResolver
from which this resource has been retrieved.- Returns:
- The resource resolver
-
getResourceSuperType
Description copied from interface:Resource
Returns the super type of the resource if the resource defines its own super type. Otherwisenull
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 callResourceResolver.getParentResourceType(Resource)
.- Returns:
- The super type of the resource or
null
.
-