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 String
protected Date
protected Date
protected String
protected FlagStatus
protected boolean
protected String
protected Integer
protected Date
protected Date
protected String
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 TypeMethodDescriptioncalculateDueDate
(Integer plannedDuration) void
checkDatesValidity
(Date scheduledStartDate, Date dueDate, Integer plannedDuration) org.joda.time.Duration
org.joda.time.Duration
abstract String
getOwner()
abstract Release
abstract Integer
getTitle()
abstract List<UsagePoint>
abstract boolean
boolean
boolean
boolean
boolean
hasOwner()
boolean
boolean
boolean
boolean
boolean
boolean
hasTitle()
boolean
boolean
abstract boolean
abstract boolean
isActive()
abstract boolean
isDone()
boolean
boolean
boolean
boolean
isTitleContaining
(String candidateTitle) abstract boolean
moveChildren
(int offsetInSeconds) setDates
(int offsetInSeconds) void
setDescription
(String value) void
setDueDate
(Date value) void
setEndDate
(Date value) void
setFlagComment
(String flagComment) void
setFlagStatus
(FlagStatus flagStatus) void
setOverdueNotified
(boolean overdueNotified) void
void
setPlannedDuration
(Integer plannedDuration) abstract void
setReleaseUid
(Integer releaseUid) void
setScheduledStartDate
(Date scheduledStartDate) void
void
setStartDate
(Date value) void
boolean
void
updateDates
(Date scheduledStartDate, Date dueDate, Integer plannedDuration) void
updateDuration
(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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-