| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.adapter.SlingAdaptable
org.apache.sling.jackrabbit.usermanager.resource.AuthorizableResource
public class AuthorizableResource
Resource implementation for Authorizable
| Field Summary | 
|---|
| Fields inherited from interface org.apache.sling.api.resource.Resource | 
|---|
| RESOURCE_TYPE_NON_EXISTING | 
| Constructor Summary | |
|---|---|
| AuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                     ResourceResolver resourceResolver,
                     java.lang.String path) | |
| Method Summary | ||
|---|---|---|
| 
 | adaptTo(java.lang.Class<AdapterType> type)Adapts the adaptable to another type. | |
|  java.lang.String | getPath()This resource's path - for now that could be a JCR path. | |
|  ResourceMetadata | getResourceMetadata()Returns the metadata of this resource. | |
|  ResourceResolver | getResourceResolver()Returns the ResourceResolverfrom which this resource has been
 retrieved. | |
|  java.lang.String | getResourceSuperType()Returns the super type of the type of the resource or nullif theResource.getResourceType()has no supertype. | |
|  java.lang.String | getResourceType()The resource type is meant to point to rendering/processing scripts, editing dialogs, etc. | |
|  java.lang.String | toString() | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public AuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                            ResourceResolver resourceResolver,
                            java.lang.String path)
| Method Detail | 
|---|
public java.lang.String getPath()
Resource
getPath in interface Resourcepublic ResourceMetadata getResourceMetadata()
ResourceResourceMetadata 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.
getResourceMetadata in interface ResourceResourceMetadatapublic ResourceResolver getResourceResolver()
ResourceResourceResolver from which this resource has been
 retrieved.
getResourceResolver in interface Resourcepublic java.lang.String getResourceSuperType()
Resourcenull
 if the Resource.getResourceType() has no supertype.
getResourceSuperType in interface Resourcepublic java.lang.String getResourceType()
ResourceResourceResolver 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 the Resource.RESOURCE_TYPE_NON_EXISTING.
getResourceType in interface Resourcepublic <AdapterType> AdapterType adaptTo(java.lang.Class<AdapterType> type)
Adaptable
adaptTo in interface AdaptableadaptTo in class org.apache.sling.adapter.SlingAdaptableAdapterType - The generic type to which this resource is adapted
            totype - The Class object of the target type, such as
            Node.class
null if the resource cannot
         adapt to the requested typepublic java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||