|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.api.resource.ResourceWrapper
org.apache.sling.resourceaccesssecurity.impl.AccessGateResourceWrapper
public class AccessGateResourceWrapper
The AccessGateResourceWrapper
wraps a Resource
and
intercepts calls to adaptTo to wrap the adapted ValueMap
or
also a ModifiableValueMap
to enforce access rules defined
by implementations of ResourceAccessGate
Field Summary |
---|
Fields inherited from interface org.apache.sling.api.resource.Resource |
---|
RESOURCE_TYPE_NON_EXISTING |
Constructor Summary | |
---|---|
AccessGateResourceWrapper(org.apache.sling.api.resource.Resource resource,
List<ResourceAccessGate> accessGatesForReadForValues,
boolean modifiable)
Creates a new wrapper instance delegating all method calls to the given resource , but intercepts the calls with checks to the
applied ResourceAccessGate instances for read and/or update values. |
Method Summary | ||
---|---|---|
|
adaptTo(Class<AdapterType> type)
Returns the value of calling adaptTo on the
wrapped resource . |
Methods inherited from class org.apache.sling.api.resource.ResourceWrapper |
---|
getChild, getChildren, getName, getParent, getPath, getResource, getResourceMetadata, getResourceResolver, getResourceSuperType, getResourceType, hasChildren, isResourceType, listChildren, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessGateResourceWrapper(org.apache.sling.api.resource.Resource resource, List<ResourceAccessGate> accessGatesForReadForValues, boolean modifiable)
resource
, but intercepts the calls with checks to the
applied ResourceAccessGate instances for read and/or update values.
resource
- resource to protectaccessGatesForReadForValues
- list of access gates to ask when reading values. If
the list is null
or empty there are no read restrictionsmodifiable
- if true
the resource can be updatedMethod Detail |
---|
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type)
adaptTo
on the
wrapped resource
.
adaptTo
in interface org.apache.sling.api.adapter.Adaptable
adaptTo
in class org.apache.sling.api.resource.ResourceWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |