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_KEYFields inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
__CONTEXT_KEY, __DEFAULT_CONTEXT, __RIGHT_KEY, _i18nUtils, _rightManager, _rightsExtensionPoint, FORCEFields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StaticEnumeratorGet 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, getAmetysObjectMethods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, _getMultipleConditionsDescriptionKey, checkMultipleAndRights, checkMultipleOrRights, dispose, getFullLabel, hasRight, initialize, passesConditionMethods 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:EnhancedConditionGet the list of accepted arguments for this condition- Specified by:
getArgumentsin interfaceEnhancedCondition- Overrides:
getArgumentsin classCheckRightsCondition- Returns:
- a List of argument names and associated description
-
_getRightsEnumerator
Description copied from class:CheckRightsConditionGet the rights enumerator- Overrides:
_getRightsEnumeratorin classCheckRightsCondition- Returns:
- the rights enumerator
-
getVisibilities
Description copied from interface:EnhancedConditionGet the condition's visibilities depending on rights- Returns:
- a list of all the allowed right profiles
-
getLabel
Description copied from interface:EnhancedConditionGet the label for this condition- Specified by:
getLabelin interfaceEnhancedCondition- Overrides:
getLabelin classAmetysObjectCheckRightsCondition- Returns:
- the label
-
_getSingleConditionDescriptionKey
Description copied from class:CheckRightsConditionGet condition description when there is one right- Overrides:
_getSingleConditionDescriptionKeyin classAmetysObjectCheckRightsCondition- Parameters:
parameters- the right label as a List- Returns:
- the description
-