Class FormCheckRightsCondition
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.plugins.workflow.component.CheckRightsCondition
org.ametys.cms.workflow.AmetysObjectCheckRightsCondition
org.ametys.plugins.forms.workflow.FormCheckRightsCondition
- All Implemented Interfaces:
com.opensymphony.workflow.Condition
,EnhancedCondition
,Disposable
,Initializable
,LogEnabled
,Serviceable
Worklow condition for checking rights on form entry
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
AbstractWorkflowComponent.ConditionFailure
-
Field Summary
Fields inherited from class org.ametys.cms.workflow.AmetysObjectCheckRightsCondition
AMETYS_OBJECT_KEY
Fields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _i18nUtils, _rightManager, _rightsExtensionPoint, FORCE
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected StaticEnumerator
Get the rights enumeratorprotected I18nizableText
_getSingleConditionDescriptionKey
(List<String> parameters) Get condition description when there is one rightGet the list of accepted arguments for this conditiongetLabel()
Get the label for this conditionGet the condition's visibilities depending on rightsMethods inherited from class org.ametys.cms.workflow.AmetysObjectCheckRightsCondition
_computeContext, getAmetysObject
Methods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, _getMultipleConditionsDescriptionKey, checkMultipleAndRights, checkMultipleOrRights, dispose, getFullLabel, hasRight, initialize, passesCondition
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
-
Constructor Details
-
FormCheckRightsCondition
public FormCheckRightsCondition()
-
-
Method Details
-
getArguments
Description copied from interface:EnhancedCondition
Get the list of accepted arguments for this condition- Specified by:
getArguments
in interfaceEnhancedCondition
- Overrides:
getArguments
in classCheckRightsCondition
- Returns:
- a List of argument names and associated description
-
_getRightsEnumerator
Description copied from class:CheckRightsCondition
Get the rights enumerator- Overrides:
_getRightsEnumerator
in classCheckRightsCondition
- Returns:
- the rights enumerator
-
getVisibilities
Description copied from interface:EnhancedCondition
Get the condition's visibilities depending on rights- Returns:
- a list of all the allowed right profiles
-
getLabel
Description copied from interface:EnhancedCondition
Get the label for this condition- Specified by:
getLabel
in interfaceEnhancedCondition
- Overrides:
getLabel
in classAmetysObjectCheckRightsCondition
- Returns:
- the label
-
_getSingleConditionDescriptionKey
Description copied from class:CheckRightsCondition
Get condition description when there is one right- Overrides:
_getSingleConditionDescriptionKey
in classAmetysObjectCheckRightsCondition
- Parameters:
parameters
- the right label as a List- Returns:
- the description
-