Class TaskMovedEvent
java.lang.Object
com.xebialabs.xlrelease.domain.events.TaskMovedEvent
- All Implemented Interfaces:
TaskEvent
,XLReleaseEvent
,Serializable
,scala.Equals
,scala.Product
Event published when a task is moved withing a release. It can be moved within the same container
(phase or a task group), or between containers (for example, to another phase).
param: movedTask the task that has been moved. param: originIndex the original index of the task in the original container, 0-based. param: targetIndex the new index of the task in the new container, 0-based. param: originalTaskId the original task ID. It will be same if task is moved within container. param: originContainerId the original container ID of the task: a phase ID or a task group ID. param: targetContainerId the new container ID of the task.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTaskMovedEvent
(Task movedTask, int originIndex, int targetIndex, String originalTaskId, String originContainerId, String targetContainerId) -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskMovedEvent
apply
(Task movedTask, int originIndex, int targetIndex, String originalTaskId, String originContainerId, String targetContainerId) boolean
copy
(Task movedTask, int originIndex, int targetIndex, String originalTaskId, String originContainerId, String targetContainerId) int
int
boolean
int
hashCode()
int
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
int
toString()
unapply
(TaskMovedEvent x$0) username()
void
username_$eq
(String x$1) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
TaskMovedEvent
-
-
Method Details
-
apply
public static TaskMovedEvent apply(Task movedTask, int originIndex, int targetIndex, String originalTaskId, String originContainerId, String targetContainerId) -
unapply
-
username
- Specified by:
username
in interfaceXLReleaseEvent
-
username_$eq
- Specified by:
username_$eq
in interfaceXLReleaseEvent
-
timestamp
- Specified by:
timestamp
in interfaceXLReleaseEvent
-
movedTask
-
originIndex
public int originIndex() -
targetIndex
public int targetIndex() -
originalTaskId
-
originContainerId
-
targetContainerId
-
copy
public TaskMovedEvent copy(Task movedTask, int originIndex, int targetIndex, String originalTaskId, String originContainerId, String targetContainerId) -
copy$default$1
-
copy$default$2
public int copy$default$2() -
copy$default$3
public int copy$default$3() -
copy$default$4
-
copy$default$5
-
copy$default$6
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-