@Deprecated public abstract class AuthorizableResource extends AbstractResource
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.UserResource
,
GroupResource
,
Resource
RESOURCE_TYPE_NON_EXISTING
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
adaptTo(java.lang.Class<AdapterType> type)
Deprecated.
Calls into the registered
AdapterManager to adapt this object to
the desired type . |
java.lang.String |
getPath()
Deprecated.
Returns the absolute path of this resource in the resource tree.
|
ResourceMetadata |
getResourceMetadata()
Deprecated.
Returns the meta data of this resource.
|
ResourceResolver |
getResourceResolver()
Deprecated.
Returns the
ResourceResolver from which this resource has been
retrieved. |
java.lang.String |
getResourceType()
Deprecated.
The resource type is meant to point to rendering/processing scripts,
editing dialogs, etc.
|
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
setAdapterManager, unsetAdapterManager
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceSuperType
public java.lang.String getPath()
public java.lang.String getResourceType()
ResourceResolver
is 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
.
public ResourceMetadata getResourceMetadata()
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.ResourceMetadata
public ResourceResolver getResourceResolver()
ResourceResolver
from which this resource has been
retrieved.public <AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
AdapterManager
to adapt this object to
the desired type
.
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.
adaptTo
in interface Adaptable
adaptTo
in class SlingAdaptable
AdapterType
- The generic type to which this resource is adapted
totype
- The Class object of the target type, such as
javax.jcr.Node.class
or
java.io.File.class
null
if the resource cannot
adapt to the requested type"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"