Class ReplacementConstructor
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.user.ReplacementConstructor
-
- All Implemented Interfaces:
Replacement.Constructor
@Service public class ReplacementConstructor extends Object implements Replacement.Constructor
Implementation of the constructor ofReplacement
objects.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description ReplacementConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Replacement.Constructor
between(User incumbent, User substitute)
Sets the two users concerned by the replacement to construct.ReplacementImpl
during(Period period)
Sets the period of time the replacement will be performed and constructs it.Replacement.Constructor
inWorkflow(String workflowInstanceId)
Sets the workflow instance concerned by the replacement to construct.
-
-
-
Method Detail
-
between
public Replacement.Constructor between(User incumbent, User substitute)
Description copied from interface:Replacement.Constructor
Sets the two users concerned by the replacement to construct.- Specified by:
between
in interfaceReplacement.Constructor
- Parameters:
incumbent
- the user that is replaced.substitute
- the user that replaces the former.- Returns:
- itself.
-
inWorkflow
public Replacement.Constructor inWorkflow(String workflowInstanceId)
Description copied from interface:Replacement.Constructor
Sets the workflow instance concerned by the replacement to construct.- Specified by:
inWorkflow
in interfaceReplacement.Constructor
- Parameters:
workflowInstanceId
- the unique identifier of a workflow instance.- Returns:
- itself.
-
during
public ReplacementImpl during(Period period)
Description copied from interface:Replacement.Constructor
Sets the period of time the replacement will be performed and constructs it. The period is expressed in days; the start and end date are thenLocalDate
instances.- Specified by:
during
in interfaceReplacement.Constructor
- Parameters:
period
- a period of time.- Returns:
- the constructed replacement.
-
-