Class NestedAuthorizableResource
- java.lang.Object
-
- org.apache.sling.api.adapter.SlingAdaptable
-
- org.apache.sling.api.resource.AbstractResource
-
- org.apache.sling.jackrabbit.usermanager.impl.resource.BaseResource
-
- org.apache.sling.jackrabbit.usermanager.impl.resource.AuthorizableResource
-
- org.apache.sling.jackrabbit.usermanager.impl.resource.NestedAuthorizableResource
-
- All Implemented Interfaces:
org.apache.sling.api.adapter.Adaptable
,org.apache.sling.api.resource.Resource
@Adaptable(adaptableClass=org.apache.sling.api.resource.Resource.class,adapters={@Adapter({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 NestedAuthorizableResource extends AuthorizableResource
Resource implementation for nested property containers of Authorizable
-
-
Field Summary
-
Fields inherited from class org.apache.sling.jackrabbit.usermanager.impl.resource.AuthorizableResource
authorizable, systemUserManagerPaths
-
Fields inherited from class org.apache.sling.jackrabbit.usermanager.impl.resource.BaseResource
resourceResolver
-
-
Constructor Summary
Constructors Constructor Description NestedAuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable, org.apache.sling.api.resource.ResourceResolver resourceResolver, String path, SystemUserManagerPaths systemUserManagerPaths, String relPropPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
adaptTo(Class<T> type)
protected String
toResourceType(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
determine the resource type for the authorizable.-
Methods inherited from class org.apache.sling.jackrabbit.usermanager.impl.resource.AuthorizableResource
getResourceType, toString
-
Methods inherited from class org.apache.sling.jackrabbit.usermanager.impl.resource.BaseResource
getPath, getResourceMetadata, getResourceResolver, getResourceSuperType
-
Methods inherited from class org.apache.sling.api.resource.AbstractResource
getChild, getChildren, getName, getParent, getValueMap, hasChildren, isResourceType, listChildren
-
-
-
-
Constructor Detail
-
NestedAuthorizableResource
public NestedAuthorizableResource(org.apache.jackrabbit.api.security.user.Authorizable authorizable, org.apache.sling.api.resource.ResourceResolver resourceResolver, String path, SystemUserManagerPaths systemUserManagerPaths, String relPropPath)
-
-
Method Detail
-
toResourceType
protected String toResourceType(org.apache.jackrabbit.api.security.user.Authorizable authorizable)
Description copied from class:AuthorizableResource
determine the resource type for the authorizable.- Overrides:
toResourceType
in classAuthorizableResource
- Parameters:
authorizable
- the authorizable to consider- Returns:
- the resource type
-
adaptTo
public <T> T adaptTo(Class<T> type)
- Specified by:
adaptTo
in interfaceorg.apache.sling.api.adapter.Adaptable
- Overrides:
adaptTo
in classAuthorizableResource
-
-