Class CheckCurrentUserContentCondition
java.lang.Object
org.ametys.plugins.userdirectory.workflow.CheckCurrentUserContentCondition
- All Implemented Interfaces:
com.opensymphony.workflow.Condition
,EnhancedCondition
This OS workflow condition checks if the current content is the content of the current user
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.workflow.EnhancedCondition
EnhancedCondition.ConditionArgument
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of accepted arguments for this conditiongetDescription
(Map<String, String> argumentsValues) Get the condition descriptions depending on arguments valuesboolean
passesCondition
(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps)
-
Constructor Details
-
CheckCurrentUserContentCondition
public CheckCurrentUserContentCondition()
-
-
Method Details
-
passesCondition
public boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException - Specified by:
passesCondition
in interfacecom.opensymphony.workflow.Condition
- Throws:
com.opensymphony.workflow.WorkflowException
-
getArguments
Description copied from interface:EnhancedCondition
Get the list of accepted arguments for this condition- Specified by:
getArguments
in interfaceEnhancedCondition
- Returns:
- a List of argument names and associated description
-
getDescription
Description copied from interface:EnhancedCondition
Get the condition descriptions depending on arguments values- Specified by:
getDescription
in interfaceEnhancedCondition
- Parameters:
argumentsValues
- a map of the arguments with their values in current workflow- Returns:
- a description to display in workflow editor vue
-