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:
com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,TaskContainer,VisitableItem,Serializable,Comparable<com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem>
@Metadata(description="A phase in a release that contains tasks.",
versioned=false)
public class Phase
extends PlanItem
implements TaskContainer
- See Also:
-
Field Summary
Fields 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()failTask(String targetTaskId, String failReason, com.xebialabs.xlrelease.user.User user, boolean fromAbort) 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
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, 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 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
-
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()
-