org.apache.sling.resourceaccesssecurity.impl
Class ResourceAccessSecurityImpl
java.lang.Object
org.apache.sling.resourceaccesssecurity.impl.ResourceAccessSecurityImpl
- All Implemented Interfaces:
- org.apache.sling.api.security.ResourceAccessSecurity
- Direct Known Subclasses:
- ApplicationResourceAccessSecurityImpl, ProviderResourceAccessSecurityImpl
public abstract class ResourceAccessSecurityImpl
- extends Object
- implements org.apache.sling.api.security.ResourceAccessSecurity
Fields inherited from interface org.apache.sling.api.security.ResourceAccessSecurity |
APPLICATION_CONTEXT, CONTEXT, PROVIDER_CONTEXT |
Method Summary |
protected void |
bindResourceAccessGate(org.osgi.framework.ServiceReference ref)
Add a new resource access gate |
boolean |
canCreate(String path,
org.apache.sling.api.resource.ResourceResolver resolver)
|
boolean |
canDelete(org.apache.sling.api.resource.Resource resource)
|
boolean |
canDeleteValue(org.apache.sling.api.resource.Resource resource,
String valueName)
|
boolean |
canExecute(org.apache.sling.api.resource.Resource resource)
|
boolean |
canReadValue(org.apache.sling.api.resource.Resource resource,
String valueName)
|
boolean |
canSetValue(org.apache.sling.api.resource.Resource resource,
String valueName)
|
boolean |
canUpdate(org.apache.sling.api.resource.Resource resource)
|
org.apache.sling.api.resource.Resource |
getReadableResource(org.apache.sling.api.resource.Resource resource)
|
String |
transformQuery(String query,
String language,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
|
protected void |
unbindResourceAccessGate(org.osgi.framework.ServiceReference ref)
Remove a resource access gate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceAccessSecurityImpl
public ResourceAccessSecurityImpl(boolean defaultAllowIfNoGateMatches)
getReadableResource
public org.apache.sling.api.resource.Resource getReadableResource(org.apache.sling.api.resource.Resource resource)
- Specified by:
getReadableResource
in interface org.apache.sling.api.security.ResourceAccessSecurity
canCreate
public boolean canCreate(String path,
org.apache.sling.api.resource.ResourceResolver resolver)
- Specified by:
canCreate
in interface org.apache.sling.api.security.ResourceAccessSecurity
canUpdate
public boolean canUpdate(org.apache.sling.api.resource.Resource resource)
- Specified by:
canUpdate
in interface org.apache.sling.api.security.ResourceAccessSecurity
canDelete
public boolean canDelete(org.apache.sling.api.resource.Resource resource)
- Specified by:
canDelete
in interface org.apache.sling.api.security.ResourceAccessSecurity
canExecute
public boolean canExecute(org.apache.sling.api.resource.Resource resource)
- Specified by:
canExecute
in interface org.apache.sling.api.security.ResourceAccessSecurity
canReadValue
public boolean canReadValue(org.apache.sling.api.resource.Resource resource,
String valueName)
- Specified by:
canReadValue
in interface org.apache.sling.api.security.ResourceAccessSecurity
canSetValue
public boolean canSetValue(org.apache.sling.api.resource.Resource resource,
String valueName)
- Specified by:
canSetValue
in interface org.apache.sling.api.security.ResourceAccessSecurity
canDeleteValue
public boolean canDeleteValue(org.apache.sling.api.resource.Resource resource,
String valueName)
- Specified by:
canDeleteValue
in interface org.apache.sling.api.security.ResourceAccessSecurity
transformQuery
public String transformQuery(String query,
String language,
org.apache.sling.api.resource.ResourceResolver resourceResolver)
throws org.apache.sling.api.security.AccessSecurityException
- Specified by:
transformQuery
in interface org.apache.sling.api.security.ResourceAccessSecurity
- Throws:
org.apache.sling.api.security.AccessSecurityException
bindResourceAccessGate
protected void bindResourceAccessGate(org.osgi.framework.ServiceReference ref)
- Add a new resource access gate
unbindResourceAccessGate
protected void unbindResourceAccessGate(org.osgi.framework.ServiceReference ref)
- Remove a resource access gate
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.