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
Fields Modifier and Type Field Description protected NodeServicenodeService-
Fields 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 Constructor Description ActionAccessRestrictionAbstractBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
nodeService
protected NodeService nodeService
-
-
Method Detail
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setConfigProperties
public void setConfigProperties(Properties configProperties)
-
verifyAccessRestriction
public void verifyAccessRestriction(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)- Specified by:
verifyAccessRestrictionin interfaceActionAccessRestriction- Parameters:
action-
-
blockAccessRestriction
protected boolean blockAccessRestriction(Action action)
-
isActionExposed
protected boolean isActionExposed(Action action)
-
isActionCausedByRule
protected boolean isActionCausedByRule(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.- Parameters:
action-- Returns:
-
innerVerifyAccessRestriction
protected abstract void innerVerifyAccessRestriction(Action action)
Restriction specific implementation of extensions- Parameters:
action-
-
-