@Adaptable(adaptableClass=org.apache.sling.api.resource.Resource.class,adapters={@Adapter(value={java.util.Map.class,org.apache.sling.api.resource.ValueMap.class,org.apache.jackrabbit.api.security.user.Authorizable.class}),@Adapter(condition="If the resource is an AuthorizableResource and represents a JCR User",value=org.apache.jackrabbit.api.security.user.User.class),@Adapter(condition="If the resource is an AuthorizableResource and represents a JCR Group",value=org.apache.jackrabbit.api.security.user.Group.class)}) public class AuthorizableResource extends org.apache.sling.api.resource.AbstractResource
Constructor and Description |
---|
AuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable,
org.apache.sling.api.resource.ResourceResolver resourceResolver,
String path) |
Modifier and Type | Method and Description |
---|---|
<AdapterType> |
adaptTo(Class<AdapterType> type) |
String |
getPath() |
org.apache.sling.api.resource.ResourceMetadata |
getResourceMetadata() |
org.apache.sling.api.resource.ResourceResolver |
getResourceResolver() |
String |
getResourceSuperType() |
String |
getResourceType() |
String |
toString() |
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
public AuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable, org.apache.sling.api.resource.ResourceResolver resourceResolver, String path)
public String getPath()
public org.apache.sling.api.resource.ResourceMetadata getResourceMetadata()
public org.apache.sling.api.resource.ResourceResolver getResourceResolver()
public String getResourceSuperType()
public String getResourceType()
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo
in interface org.apache.sling.api.adapter.Adaptable
adaptTo
in class org.apache.sling.api.adapter.SlingAdaptable
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.