public class ContentCheckRightsCondition extends CheckRightsCondition
The following configuration can be used for checking rights:
<condition type="avalon"> <arg name="role">org.ametys.cms.workflow.ContentCheckRigthsCondition</arg> <arg name="right">Right_Edition</arg> </condition>
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _rightManager, FORCE_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY| Constructor and Description |
|---|
ContentCheckRightsCondition() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
_computeContext(Map transientVars,
Map args,
UserIdentity user,
String right)
Compute the context to use.
Default implementation uses standard context "/cms". |
protected WorkflowAwareContent |
getContent(Map transientVars)
Retrieve the content associated with the workflow.
|
_checkRights, checkMultipleAndRights, checkMultipleOrRights, dispose, hasRight, initialize, passesConditionaddWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, servicepublic ContentCheckRightsCondition()
protected Object _computeContext(Map transientVars, Map args, UserIdentity user, String right) throws com.opensymphony.workflow.WorkflowException
CheckRightsCondition"/cms"._computeContext in class CheckRightsConditiontransientVars - variables that will not be persisted.args - the properties for this function invocation.user - the current user.right - the needed right.com.opensymphony.workflow.WorkflowException - if an error occurs.protected WorkflowAwareContent getContent(Map transientVars) throws com.opensymphony.workflow.WorkflowException
transientVars - the parameters from the call.com.opensymphony.workflow.WorkflowException - if the content is not found.