Package com.day.cq.security.resource
Class AuthorizableResource
java.lang.Object
org.apache.sling.api.adapter.SlingAdaptable
org.apache.sling.api.resource.AbstractResource
com.day.cq.security.resource.AuthorizableResource
- Direct Known Subclasses:
GroupResource,UserResource
Deprecated.
5.4
Simple
Resource
Implementation. A specialization is required, as Users is not necessarily a
Node in the Repository. The Resource is
adaptable to
the Authorizable it represents.- See Also:
-
Field Summary
Fields inherited from interface org.apache.sling.api.resource.Resource
RESOURCE_TYPE_NON_EXISTING -
Method Summary
Modifier and TypeMethodDescription<AdapterType>
AdapterTypeDeprecated.Calls into the registeredAdapterManagerto adapt this object to the desiredtype.getPath()Deprecated.Returns the absolute path of this resource in the resource tree.Deprecated.Returns the meta data of this resource.Deprecated.Returns theResourceResolverfrom which this resource has been retrieved.Deprecated.The resource type is meant to point to rendering/processing scripts, editing dialogs, etc.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
setAdapterManager, unsetAdapterManagerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sling.api.resource.Resource
getResourceSuperType
-
Method Details
-
getPath
Deprecated.Returns the absolute path of this resource in the resource tree.- Returns:
- The resource path
-
getResourceType
Deprecated.The resource type is meant to point to rendering/processing scripts, editing dialogs, etc. It is usually a path in the repository, where scripts and other tools definitions are found, but theResourceResolveris free to set this to any suitable value such as the primary node type of the JCR node from which the resource is created.If the resource instance represents a resource which is not actually existing, this method returns
Resource.RESOURCE_TYPE_NON_EXISTING.- Returns:
- The resource type
-
getResourceMetadata
Deprecated.Returns 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
Deprecated.Returns theResourceResolverfrom which this resource has been retrieved.- Returns:
- The resource resolver
-
adaptTo
Deprecated.Calls into the registeredAdapterManagerto adapt this object to the desiredtype.This method implements a cache of adapters to improve performance. That is repeated calls to this method with the same class will result in the same object to be returned.
- Specified by:
adaptToin interfaceAdaptable- Overrides:
adaptToin classSlingAdaptable- Type Parameters:
AdapterType- The generic type to which this resource is adapted to- Parameters:
type- The Class object of the target type, such asjavax.jcr.Node.classorjava.io.File.class- Returns:
- The adapter target or
nullif the resource cannot adapt to the requested type
-