Package com.xebialabs.xlrelease.domain
Class PlanItem
java.lang.Object
com.xebialabs.deployit.plugin.api.udm.base.BaseConfigurationItem
com.xebialabs.xlrelease.domain.PlanItem
- All Implemented Interfaces:
ConfigurationItem,VisitableItem,Serializable,Comparable<BaseConfigurationItem>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<PlanItem>protected Stringprotected Dateprotected Dateprotected Stringprotected FlagStatusprotected booleanprotected Stringprotected Integerprotected Dateprotected Dateprotected StringFields 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 TypeMethodDescriptioncalculateDueDate(Integer plannedDuration) voidcheckDatesValidity(Date scheduledStartDate, Date dueDate, Integer plannedDuration) org.joda.time.Durationorg.joda.time.Durationabstract StringgetOwner()abstract Releaseabstract IntegergetTitle()abstract List<UsagePoint>abstract booleanbooleanbooleanbooleanbooleanhasOwner()booleanbooleanbooleanbooleanbooleanbooleanhasTitle()booleanbooleanabstract booleanabstract booleanisActive()abstract booleanisDone()booleanbooleanbooleanbooleanisTitleContaining(String candidateTitle) abstract booleanmoveChildren(int offsetInSeconds) setDates(int offsetInSeconds) voidsetDescription(String value) voidsetDueDate(Date value) voidsetEndDate(Date value) voidsetFlagComment(String flagComment) voidsetFlagStatus(FlagStatus flagStatus) voidsetOverdueNotified(boolean overdueNotified) voidvoidsetPlannedDuration(Integer plannedDuration) abstract voidsetReleaseUid(Integer releaseUid) voidsetScheduledStartDate(Date scheduledStartDate) voidvoidsetStartDate(Date value) voidbooleanvoidupdateDates(Date scheduledStartDate, Date dueDate, Integer plannedDuration) voidupdateDuration(Integer plannedDuration) Updates a Duration and Due Date.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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.xebialabs.xlrelease.domain.VisitableItem
accept
-
Field Details
-
BY_TITLE
-
title
-
description
-
owner
-
scheduledStartDate
@Property(required=false, description="The date that the item is supposed to start.") protected Date scheduledStartDate -
dueDate
@Property(required=false, description="The date that the item is supposed to end.") protected Date dueDate -
startDate
-
endDate
-
plannedDuration
@Property(required=false, description="The time that the item is supposed to take to complete, in seconds.") protected Integer plannedDuration -
flagStatus
@Property(description="Flags indicate that an item needs attention.", defaultValue="OK") protected FlagStatus flagStatus -
flagComment
@Property(required=false, description="The reason the item is flagged.") protected String flagComment -
overdueNotified
-
-
Constructor Details
-
PlanItem
public PlanItem()
-
-
Method Details
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getOwner
-
setOwner
-
hasOwner
public boolean hasOwner() -
hasOwner
-
getDueDate
-
setDueDate
-
getStartDate
-
setStartDate
-
getScheduledStartDate
-
setScheduledStartDate
-
getEndDate
-
setEndDate
-
getPlannedDuration
-
setPlannedDuration
-
hasPlannedDuration
public boolean hasPlannedDuration() -
getFlagStatus
-
setFlagStatus
-
getFlagComment
-
setFlagComment
-
isFlagged
public boolean isFlagged() -
checkDatesValidity
-
updateDates
-
updateDuration
Updates a Duration and Due Date.- Parameters:
plannedDuration- time supposed to complete item, in seconds.
-
moveChildren
-
hasStartOrScheduledDate
public boolean hasStartOrScheduledDate() -
getStartOrScheduledDate
-
hasEndOrDueDate
public boolean hasEndOrDueDate() -
getEndOrDueDate
-
hasScheduledStartDate
public boolean hasScheduledStartDate() -
hasStartDate
public boolean hasStartDate() -
hasDueDate
public boolean hasDueDate() -
hasEndDate
public boolean hasEndDate() -
setDates
-
hasTitle
public boolean hasTitle() -
hasTitle
-
isTitleContaining
-
hasValidStartDates
public boolean hasValidStartDates() -
getChildren
-
setStartAndEndDatesIfEmpty
public void setStartAndEndDatesIfEmpty() -
isOverdue
public boolean isOverdue() -
setOverdueNotified
public void setOverdueNotified(boolean overdueNotified) -
isOverdueNotified
public boolean isOverdueNotified() -
shouldNotifyOverdue
public boolean shouldNotifyOverdue() -
hasBeenStarted
public abstract boolean hasBeenStarted() -
isDone
public abstract boolean isDone() -
getRelease
-
getReleaseUid
-
setReleaseUid
-
isUpdatable
public abstract boolean isUpdatable() -
getDisplayPath
-
isAborted
public abstract boolean isAborted() -
isActive
public abstract boolean isActive() -
getVariableUsages
-
calculateDueDate
-
getOrCalculateDueDate
-
getComputedPlannedDuration
public org.joda.time.Duration getComputedPlannedDuration() -
getActualDuration
public org.joda.time.Duration getActualDuration()
-