|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.jackrabbit.usermanager.resource.AuthorizableResourceProvider
public class AuthorizableResourceProvider
Resource Provider implementation for jackrabbit UserManager resources.
| Field Summary | |
|---|---|
static java.lang.String |
SYSTEM_USER_MANAGER_GROUP_PATH
|
static java.lang.String |
SYSTEM_USER_MANAGER_GROUP_PREFIX
|
static java.lang.String |
SYSTEM_USER_MANAGER_PATH
|
static java.lang.String |
SYSTEM_USER_MANAGER_USER_PATH
|
static java.lang.String |
SYSTEM_USER_MANAGER_USER_PREFIX
|
| Fields inherited from interface org.apache.sling.api.resource.ResourceProvider |
|---|
RESOURCE_TYPE_SYNTHETIC, ROOTS, SERVICE_NAME |
| Constructor Summary | |
|---|---|
AuthorizableResourceProvider()
|
|
| Method Summary | |
|---|---|
Resource |
getResource(ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Returns a resource from this resource provider or null if
the resource provider cannot find it. |
Resource |
getResource(ResourceResolver resourceResolver,
java.lang.String path)
Returns a resource from this resource provider or null if
the resource provider cannot find it. |
java.util.Iterator<Resource> |
listChildren(Resource parent)
Returns an Iterator of Resource objects loaded
from the children of the given Resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SYSTEM_USER_MANAGER_PATH
public static final java.lang.String SYSTEM_USER_MANAGER_USER_PATH
public static final java.lang.String SYSTEM_USER_MANAGER_GROUP_PATH
public static final java.lang.String SYSTEM_USER_MANAGER_USER_PREFIX
public static final java.lang.String SYSTEM_USER_MANAGER_GROUP_PREFIX
| Constructor Detail |
|---|
public AuthorizableResourceProvider()
| Method Detail |
|---|
public Resource getResource(ResourceResolver resourceResolver,
javax.servlet.http.HttpServletRequest request,
java.lang.String path)
ResourceProvidernull if
the resource provider cannot find it. The path should have one of the
ResourceProvider.ROOTS strings as its prefix.
This method is called to resolve a resource for the given request. The properties of the request, such as request parameters, may be use to parametrize the resource resolution. An example of such parametrization is support for a JSR-311 style resource provider to support the parametrized URL patterns.
getResource in interface ResourceProviderresourceResolver - The ResourceResolver to which the
returned Resource is attached.
null If this provider does not have a resource for
the path.
public Resource getResource(ResourceResolver resourceResolver,
java.lang.String path)
ResourceProvidernull if
the resource provider cannot find it. The path should have one of the
ResourceProvider.ROOTS strings as its prefix.
getResource in interface ResourceProviderresourceResolver - The ResourceResolver to which the
returned Resource is attached.
null If this provider does not have a resource for
the path.public java.util.Iterator<Resource> listChildren(Resource parent)
ResourceProviderIterator of Resource objects loaded
from the children of the given Resource. The returned
Resource instances are attached to the same
ResourceResolver as the given parent resource.
This method may be called for resource providers whose root path list contains a path such that the resource path is a prefix of the list entry. This allows for the enumeration of deeply nested provided resources for which no actual parent hierarchy exists.
The returned iterator may in turn contain resources which do not actually
exist but are required to traverse the resource tree. Such resources
SHOULD be SyntheticResource objects whose resource type MUST be
set to ResourceProvider.RESOURCE_TYPE_SYNTHETIC.
listChildren in interface ResourceProviderparent - The Resource whose children are requested.
Iterator of Resource objects or
null if the resource provider has no children for
the given resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||