Package org.ametys.cms.workflow
Class CreateContentByCopyRightCondition
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.plugins.workflow.component.CheckRightsCondition
org.ametys.cms.workflow.CreateContentRightCondition
org.ametys.cms.workflow.CreateContentByCopyRightCondition
- All Implemented Interfaces:
com.opensymphony.workflow.Condition,EnhancedCondition,Disposable,Initializable,LogEnabled,Serviceable
Condition for checking if an user has the right to create a content of the requested type.
-
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.CreateContentRightCondition
_contentTypeExtensionPoint, _rootContentHelperFields 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 TypeMethodDescriptiongetFullLabel(Map<String, String> argumentsValues) Get the condition label depending on arguments valuesgetLabel()Get the label for this conditionGet the needed right for creationvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.workflow.CreateContentRightCondition
_getMultipleConditionsDescriptionKey, _getSingleConditionDescriptionKey, dispose, hasRight, initialize, passesConditionMethods inherited from class org.ametys.plugins.workflow.component.CheckRightsCondition
_checkRights, _computeContext, _getRightsEnumerator, checkMultipleAndRights, checkMultipleOrRights, getArgumentsMethods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workflow.EnhancedCondition
getVisibilities
-
Constructor Details
-
CreateContentByCopyRightCondition
public CreateContentByCopyRightCondition()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractWorkflowComponent- Throws:
ServiceException
-
getRights
protected Set<String> getRights(Map transientVars) throws com.opensymphony.workflow.WorkflowException Description copied from class:CreateContentRightConditionGet the needed right for creation- Overrides:
getRightsin classCreateContentRightCondition- Parameters:
transientVars- variables that will not be persisted.- Returns:
- The required right
- Throws:
com.opensymphony.workflow.WorkflowException- If an error occured
-
getLabel
Description copied from interface:EnhancedConditionGet the label for this condition- Specified by:
getLabelin interfaceEnhancedCondition- Overrides:
getLabelin classCreateContentRightCondition- Returns:
- the label
-
getFullLabel
Description copied from interface:EnhancedConditionGet the condition label depending on arguments values- Specified by:
getFullLabelin interfaceEnhancedCondition- Overrides:
getFullLabelin classCreateContentRightCondition- Parameters:
argumentsValues- a map of the arguments with their values in current workflow- Returns:
- a label to display in workflow editor vue
-