public abstract class AllowingResourceAccessGate extends java.lang.Object implements ResourceAccessGate
ResourceAccessGate
can be
used to implement own resource access gates.
This implementation simply allows operations, restricting implementations
just need to overwrite the operations they want to restrict.ResourceAccessGate.GateResult, ResourceAccessGate.Operation
APPLICATION_CONTEXT, CONTEXT, FINALOPERATIONS, OPERATIONS, PATH, PROVIDER_CONTEXT, SERVICE_NAME
Constructor and Description |
---|
AllowingResourceAccessGate() |
public ResourceAccessGate.GateResult canRead(Resource resource)
canRead
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canCreate(java.lang.String absPathName, ResourceResolver resourceResolver)
canCreate
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canUpdate(Resource resource)
canUpdate
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canDelete(Resource resource)
canDelete
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canExecute(Resource resource)
canExecute
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canReadValue(Resource resource, java.lang.String valueName)
canReadValue
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canCreateValue(Resource resource, java.lang.String valueName)
canCreateValue
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canUpdateValue(Resource resource, java.lang.String valueName)
canUpdateValue
in interface ResourceAccessGate
public ResourceAccessGate.GateResult canDeleteValue(Resource resource, java.lang.String valueName)
canDeleteValue
in interface ResourceAccessGate
public java.lang.String transformQuery(java.lang.String query, java.lang.String language, ResourceResolver resourceResolver) throws AccessSecurityException
ResourceAccessGate
transformQuery
in interface ResourceAccessGate
query
- the querylanguage
- the language in which the query is expressedresourceResolver
- the resource resolver which resolves the querynull
AccessSecurityException
public boolean hasReadRestrictions(ResourceResolver resourceResolver)
hasReadRestrictions
in interface ResourceAccessGate
public boolean hasCreateRestrictions(ResourceResolver resourceResolver)
hasCreateRestrictions
in interface ResourceAccessGate
public boolean hasUpdateRestrictions(ResourceResolver resourceResolver)
hasUpdateRestrictions
in interface ResourceAccessGate
public boolean hasDeleteRestrictions(ResourceResolver resourceResolver)
hasDeleteRestrictions
in interface ResourceAccessGate
public boolean hasExecuteRestrictions(ResourceResolver resourceResolver)
hasExecuteRestrictions
in interface ResourceAccessGate
public boolean canReadAllValues(Resource resource)
canReadAllValues
in interface ResourceAccessGate
public boolean canCreateAllValues(Resource resource)
canCreateAllValues
in interface ResourceAccessGate
public boolean canUpdateAllValues(Resource resource)
canUpdateAllValues
in interface ResourceAccessGate
public boolean canDeleteAllValues(Resource resource)
canDeleteAllValues
in interface ResourceAccessGate
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"