Package org.alfresco.repo.action.access
Class ActionAccessRestrictionAbstractBase
java.lang.Object
org.alfresco.repo.action.access.ActionAccessRestrictionAbstractBase
- All Implemented Interfaces:
ActionAccessRestriction
- Direct Known Subclasses:
AdminActionAccessRestriction
public abstract class ActionAccessRestrictionAbstractBase
extends Object
implements ActionAccessRestriction
-
Field Summary
FieldsFields inherited from interface org.alfresco.repo.action.access.ActionAccessRestriction
ACTION_CONTEXT_PARAM_NAME, FORM_PROCESSOR_ACTION_CONTEXT, RULE_ACTION_CONTEXT, V0_ACTION_CONTEXT, V1_ACTION_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanblockAccessRestriction(Action action) protected abstract voidinnerVerifyAccessRestriction(Action action) Restriction specific implementation of extensionsprotected booleanisActionCausedByRule(Action action) Checks the hierarchy of primary parents of action node ref to look for Rule node ref Finding it means that the action was triggered by an existing rule, which are deemed secure as their validation happens at their setup.protected booleanisActionExposed(Action action) voidsetConfigProperties(Properties configProperties) voidsetNodeService(NodeService nodeService) voidverifyAccessRestriction(Action action) Base for verifying access restriction, manages common checks for exposing action in config or action being ran as a consequence of running a rule (safe)
-
Field Details
-
nodeService
-
-
Constructor Details
-
ActionAccessRestrictionAbstractBase
public ActionAccessRestrictionAbstractBase()
-
-
Method Details
-
setNodeService
-
setConfigProperties
-
verifyAccessRestriction
Base for verifying access restriction, manages common checks for exposing action in config or action being ran as a consequence of running a rule (safe)- Specified by:
verifyAccessRestrictionin interfaceActionAccessRestriction- Parameters:
action-
-
blockAccessRestriction
-
isActionExposed
-
isActionCausedByRule
Checks the hierarchy of primary parents of action node ref to look for Rule node ref Finding it means that the action was triggered by an existing rule, which are deemed secure as their validation happens at their setup.- Parameters:
action-- Returns:
-
innerVerifyAccessRestriction
Restriction specific implementation of extensions- Parameters:
action-
-