Package com.xebialabs.xlrelease.domain
Class Phase
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.xlrelease.domain.PlanItem
com.xebialabs.xlrelease.domain.Phase
- All Implemented Interfaces:
ConfigurationItem
,TaskContainer
,VisitableItem
,Serializable
,Comparable<BaseConfigurationItem>
@Metadata(description="A phase in a release that contains tasks.",
versioned=false)
public class Phase
extends PlanItem
implements TaskContainer
- See Also:
-
Field Summary
FieldsFields inherited from class com.xebialabs.xlrelease.domain.PlanItem
BY_TITLE, description, dueDate, endDate, flagComment, flagStatus, overdueNotified, owner, plannedDuration, scheduledStartDate, startDate, title
Fields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, type
Fields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabort()
void
accept
(ReleaseVisitor visitor) void
close()
void
deleteTask
(Task task) fail()
failing()
getColor()
getTasks()
boolean
boolean
boolean
boolean
isActive()
boolean
boolean
isDone()
boolean
isFailed()
boolean
boolean
boolean
boolean
Checks within the phase release if there is another phase that has its originId filled and referring to this phase.boolean
boolean
markTaskAsDone
(String taskId, TaskStatus status) void
void
setOriginId
(String originId) void
setRelease
(Release release) void
setReleaseUid
(Integer releaseUid) void
setStatus
(PhaseStatus status) void
start()
startPendingTask
(String targetTaskId) startWithInput
(String targetTaskId) taskPreconditionValidated
(String targetTaskId) Methods inherited from class com.xebialabs.xlrelease.domain.PlanItem
calculateDueDate, checkDatesValidity, getActualDuration, getComputedPlannedDuration, getDescription, getDueDate, getEndDate, getEndOrDueDate, getFlagComment, getFlagStatus, getOrCalculateDueDate, getOwner, getPlannedDuration, getScheduledStartDate, getStartDate, getStartOrScheduledDate, getTitle, hasDueDate, hasEndDate, hasEndOrDueDate, hasOwner, hasOwner, hasPlannedDuration, hasScheduledStartDate, hasStartDate, hasStartOrScheduledDate, hasTitle, hasTitle, hasValidStartDates, isFlagged, isOverdue, isOverdueNotified, isTitleContaining, moveChildren, setDates, setDescription, setDueDate, setEndDate, setFlagComment, setFlagStatus, setOverdueNotified, setOwner, setPlannedDuration, setScheduledStartDate, setStartAndEndDatesIfEmpty, setStartDate, setTitle, shouldNotifyOverdue, updateDates, updateDuration
Methods inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
compareTo, equals, get$ciAttributes, get$directoryReference, get$externalProperties, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$token, get$validationMessages, getId, getName, getProperty, getPropertyDescriptor, getType, hashCode, hasProperty, set$ciAttributes, set$directoryReference, set$externalProperties, set$internalId, set$referenceId, set$securedCi, set$securedDirectoryReference, set$token, set$validationMessages, setId, setProperty, setType, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
get$directoryReference, get$internalId, get$referenceId, get$securedCi, get$securedDirectoryReference, get$validationMessages, getId, getName, getProperty, getType, hasProperty, setId, setProperty
Methods inherited from interface com.xebialabs.xlrelease.domain.TaskContainer
getTitle, isLocked, replaceTask, replaceTask
-
Field Details
-
status
-
color
@Property(description="The color of the phase top bar in the UI. Format: #(hex value); for example \'#3D6C9E\'") protected String color -
originId
@Property(required=false, description="If given, then this phase has been copied as a part of restart phase operation based on this id") protected String originId
-
-
Constructor Details
-
Phase
public Phase()
-
-
Method Details
-
getTasks
- Specified by:
getTasks
in interfaceTaskContainer
-
setTasks
- Specified by:
setTasks
in interfaceTaskContainer
-
getCurrentTask
-
hasCurrentTask
public boolean hasCurrentTask() -
getRelease
- Specified by:
getRelease
in classPlanItem
-
getReleaseUid
- Specified by:
getReleaseUid
in classPlanItem
-
setReleaseUid
- Specified by:
setReleaseUid
in classPlanItem
-
getDisplayPath
- Specified by:
getDisplayPath
in classPlanItem
-
setRelease
-
getStatus
-
setStatus
-
getColor
-
setColor
-
getOriginId
-
setOriginId
-
start
-
startPendingTask
-
startWithInput
-
taskPreconditionValidated
-
markTaskAsDone
-
failTask
-
failTask
-
retryTask
-
abort
-
fail
-
failing
-
getTask
-
resetToPlanned
-
hasBeenStarted
public boolean hasBeenStarted()- Specified by:
hasBeenStarted
in classPlanItem
-
isActive
public boolean isActive() -
isDone
public boolean isDone() -
isDefunct
public boolean isDefunct() -
isUpdatable
public boolean isUpdatable()- Specified by:
isUpdatable
in classPlanItem
-
isAborted
public boolean isAborted() -
isPlanned
public boolean isPlanned() -
isFailed
public boolean isFailed() -
isFailing
public boolean isFailing() -
getReleaseOwner
-
getAllGates
-
getAllTasks
-
getChildren
- Specified by:
getChildren
in classPlanItem
-
accept
- Specified by:
accept
in interfaceVisitableItem
-
getVariableUsages
- Specified by:
getVariableUsages
in classPlanItem
-
close
-
getTask
-
addTask
- Specified by:
addTask
in interfaceTaskContainer
-
deleteTask
-
isOriginal
public boolean isOriginal() -
isPhaseCopied
public boolean isPhaseCopied()Checks within the phase release if there is another phase that has its originId filled and referring to this phase.- Returns:
-
getAncestorId
-
isLatestCopy
public boolean isLatestCopy()
-