Class ExplorerNodeCheckRightsCondition
- java.lang.Object
-
- org.ametys.plugins.workflow.AbstractWorkflowComponent
-
- org.ametys.plugins.workflow.component.CheckRightsCondition
-
- org.ametys.plugins.explorer.workflow.ExplorerNodeCheckRightsCondition
-
- All Implemented Interfaces:
com.opensymphony.workflow.Condition,Disposable,Initializable,LogEnabled,Serviceable
public class ExplorerNodeCheckRightsCondition extends CheckRightsCondition
This workflow function check rights on explorer node
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _rightManager, FORCE
-
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
-
-
Constructor Summary
Constructors Constructor Description ExplorerNodeCheckRightsCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object_computeContext(Map transientVars, Map args, UserIdentity user, String right)Compute the context to use.
Default implementation uses standard context"/cms".protected ExplorerNodegetExplorerNode(Map transientVars)Retrieve the resource associated with the workflow.-
Methods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, checkMultipleAndRights, checkMultipleOrRights, dispose, hasRight, initialize, passesCondition
-
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
-
-
-
-
Constructor Detail
-
ExplorerNodeCheckRightsCondition
public ExplorerNodeCheckRightsCondition()
-
-
Method Detail
-
_computeContext
protected Object _computeContext(Map transientVars, Map args, UserIdentity user, String right) throws com.opensymphony.workflow.WorkflowException
Description copied from class:CheckRightsConditionCompute the context to use.
Default implementation uses standard context"/cms".- Overrides:
_computeContextin classCheckRightsCondition- Parameters:
transientVars- variables that will not be persisted.args- the properties for this function invocation.user- the current user.right- the needed right.- Returns:
- the computed context.
- Throws:
com.opensymphony.workflow.WorkflowException- if an error occurs.
-
getExplorerNode
protected ExplorerNode getExplorerNode(Map transientVars) throws com.opensymphony.workflow.WorkflowException
Retrieve the resource associated with the workflow.- Parameters:
transientVars- the parameters from the call.- Returns:
- the resource.
- Throws:
com.opensymphony.workflow.WorkflowException- if the resource is not found.
-
-