Class IsSubmitterCondition
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.forms.workflow.IsSubmitterCondition
- All Implemented Interfaces:
com.opensymphony.workflow.Condition
,EnhancedCondition
,LogEnabled
,Serviceable
public class IsSubmitterCondition
extends AbstractLogEnabled
implements EnhancedCondition, Serviceable
Worklow condition for checking if current user is the same user as the entry submmiter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Get the label for this conditionGet the condition's visibilities depending on rightsboolean
passesCondition
(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) void
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.workflow.EnhancedCondition
getArguments, getFullLabel
-
Field Details
-
_currentUserProvider
The current user provider
-
-
Constructor Details
-
IsSubmitterCondition
public IsSubmitterCondition()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
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
-
getLabel
Description copied from interface:EnhancedCondition
Get the label for this condition- Specified by:
getLabel
in interfaceEnhancedCondition
- Returns:
- the label
-
getVisibilities
Description copied from interface:EnhancedCondition
Get the condition's visibilities depending on rights- Specified by:
getVisibilities
in interfaceEnhancedCondition
- Returns:
- a list of all the allowed right profiles
-