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, titleFields inherited from class com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
id, syntheticProperties, typeFields inherited from interface com.xebialabs.deployit.plugin.api.udm.ConfigurationItem
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabort()voidaccept(ReleaseVisitor visitor) voidclose()voiddeleteTask(Task task) fail()failing()getColor()getTasks()booleanbooleanbooleanbooleanisActive()booleanbooleanisDone()booleanisFailed()booleanbooleanbooleanbooleanChecks within the phase release if there is another phase that has its originId filled and referring to this phase.booleanbooleanmarkTaskAsDone(String taskId, TaskStatus status) markTaskAsFailing(String taskId, String failReason) voidvoidsetOriginId(String originId) voidsetRelease(Release release) voidsetReleaseUid(Integer releaseUid) voidsetStatus(PhaseStatus status) voidstart()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, updateDurationMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, setPropertyMethods 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:
getTasksin interfaceTaskContainer
-
setTasks
- Specified by:
setTasksin interfaceTaskContainer
-
getCurrentTask
-
hasCurrentTask
public boolean hasCurrentTask() -
getRelease
- Specified by:
getReleasein classPlanItem
-
getReleaseUid
- Specified by:
getReleaseUidin classPlanItem
-
setReleaseUid
- Specified by:
setReleaseUidin classPlanItem
-
getDisplayPath
- Specified by:
getDisplayPathin classPlanItem
-
setRelease
-
getStatus
-
setStatus
-
getColor
-
setColor
-
getOriginId
-
setOriginId
-
start
-
startPendingTask
-
startWithInput
-
taskPreconditionValidated
-
markTaskAsDone
-
markTaskAsFailing
-
failTask
-
failTask
-
retryTask
-
abort
-
fail
-
failing
-
getTask
-
resetToPlanned
-
hasBeenStarted
public boolean hasBeenStarted()- Specified by:
hasBeenStartedin classPlanItem
-
isActive
public boolean isActive() -
isDone
public boolean isDone() -
isDefunct
public boolean isDefunct() -
isUpdatable
public boolean isUpdatable()- Specified by:
isUpdatablein classPlanItem
-
isAborted
public boolean isAborted() -
isPlanned
public boolean isPlanned() -
isFailed
public boolean isFailed() -
isFailing
public boolean isFailing() -
getReleaseOwner
-
getAllGates
-
getAllTasks
-
getChildren
- Specified by:
getChildrenin classPlanItem
-
accept
- Specified by:
acceptin interfaceVisitableItem
-
getVariableUsages
- Specified by:
getVariableUsagesin classPlanItem
-
close
-
getTask
-
addTask
- Specified by:
addTaskin 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()
-