Package com.polarion.alm.tracker.model
Interface IPlan
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,ILocatedObject
,IPObject
,IUniqueObject
- Since:
- 3.8.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String[]
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
-
Method Summary
Modifier and TypeMethodDescriptionIf the record for given Work Item already exists than it is returned instead of creating a new oneboolean
Returns true when this Plan is configured in such way that thegetPlannedEstimateForItem(IWorkItem)
method returns the values which are in hours.void
copyFromTemplate
(IPlan template) Copies field values and wiki page with attachments from plan template (if the template is wiki based).void
delete()
Returns children plans sorted the same way as in the UI - seeDEFAULT_SORT
getColor()
Returns 'now' if plan is from HEAD or time when plan's revision (or baseline revision) was created.Returns the decoration color for this plan either directly from color field, or from color field of the template of this plan.Gets an IPlan state from the revision in which plan was finishedfloat
getIdealProgressFactor
(Date date) Return ideal progress factor for the plan.getItems()
The returned set does not contain null values.getLabel()
Returns label for the plan which is name or id.
Never returns empty string or throws exception even when the Plan is unresolvable or the current user cannot read the name.getName()
Returns child items from persisted object in the order that respectsgetPrioritizationField()
Returns the planned estimate value for the given Work Item in this Plan - it is based on value of some field of the given work item depending on the configuration of this Plan.Returns project span of the plan.Returns items from the plan that are still exist.Returns the wiki content of the planboolean
Returns true if plan is finished.boolean
boolean
boolean
true
indicates that Plan's Report (KEY_HOMEPAGECONTENT
) from this Plan should be ignored and instead it should be read from the template (KEY_TEMPLATE
).void
removeRecord
(IWorkItem item) Removes all records for the given item (Normally only one record for each item is supported in Plan)void
Removes records for unresolvable items.void
setCalculationType
(IEnumOption value) void
setCapacity
(Float value) void
void
setDefaultEstimate
(Float value) void
setDescription
(Text value) void
setDueDate
(DateOnly value) void
setEstimationField
(String value) void
setFinishedOn
(Date value) void
setHomePageContent
(Text value) void
setIsTemplate
(boolean value) void
void
void
setPreviousTimeSpent
(DurationTime value) void
setPrioritizationField
(String value) void
setSortOrder
(Integer value) void
setStartDate
(DateOnly value) void
setStartedOn
(Date value) void
setStatus
(IStatusOpt value) void
setUseReportFromTemplate
(boolean value) void
setWikiContent
(Text content) Sets the wiki content of the planboolean
Returnstrue
if plan status is different from initial (default) status,false
otherwise.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.alm.projects.model.ILocatedObject
getLocation
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
can, copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
Methods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProject, getProjectId
-
Field Details
-
PROTO
- See Also:
-
KEY_NAME
- See Also:
-
KEY_DESCRIPTION
- See Also:
-
KEY_HOMEPAGECONTENT
- Since:
- 3.9.1
- See Also:
-
KEY_RECORDS
- See Also:
-
KEY_PARENT
- See Also:
-
KEY_START_DATE
- See Also:
-
KEY_DUE_DATE
- See Also:
-
KEY_STATUS
- See Also:
-
KEY_STARTED_ON
- See Also:
-
KEY_FINISHED_ON
- See Also:
-
KEY_ALLOWED_TYPES
- See Also:
-
KEY_PRIORITIZATION_FIELD
- See Also:
-
KEY_PROJECT_SPAN
- Since:
- 3.9.0
- See Also:
-
KEY_CALCULATION_TYPE
- See Also:
-
KEY_ESTIMATION_FIELD
- See Also:
-
KEY_DEFAULT_ESTIMATE
- See Also:
-
KEY_CAPACITY
- See Also:
-
KEY_PREVIOUS_TIME_SPENT
- See Also:
-
KEY_IS_TEMPLATE
- See Also:
-
KEY_TEMPLATE
- See Also:
-
KEY_USE_REPORT_FROM_TEMPLATE
- Since:
- 3.9.2
- See Also:
-
KEY_SORT_ORDER
- See Also:
-
KEY_COLOR
- See Also:
-
KEY_AUTHOR
- See Also:
-
KEY_CREATED
- See Also:
-
KEY_UPDATED
- See Also:
-
KEY_LOCATION
- See Also:
-
FIELD_ORDER
-
DIFF_IGNORED_FIELDS
-
FIELDS_FROM_TEMPLATE
-
DEFAULT_SORT
- See Also:
-
-
Method Details
-
getName
-
setName
-
getLabel
Returns label for the plan which is name or id.
Never returns empty string or throws exception even when the Plan is unresolvable or the current user cannot read the name. -
getDescription
-
setDescription
-
getHomePageContent
- Since:
- 3.9.1
-
setHomePageContent
- Since:
- 3.9.1
-
getRecords
-
addRecord
If the record for given Work Item already exists than it is returned instead of creating a new one -
removeRecord
Removes all records for the given item (Normally only one record for each item is supported in Plan) -
removeUnresolvableItems
void removeUnresolvableItems()Removes records for unresolvable items. -
getItems
The returned set does not contain null values. -
getOrderedItems
Returns child items from persisted object in the order that respectsgetPrioritizationField()
-
getResolvableItems
Returns items from the plan that are still exist. The iterator never returns null value. The result is computed using database which is faster, but ignores not saved changes in the Plan object. -
getParent
-
setParent
-
getStartDate
-
setStartDate
-
getDueDate
-
setDueDate
-
getStatus
-
setStatus
-
getStartedOn
-
setStartedOn
-
getFinishedOn
-
setFinishedOn
-
getAllowedTypes
-
getPrioritizationField
-
setPrioritizationField
-
getCalculationType
-
setCalculationType
-
getEstimationField
-
setEstimationField
-
getDefaultEstimate
-
setDefaultEstimate
-
getCapacity
-
setCapacity
-
getPreviousTimeSpent
-
setPreviousTimeSpent
-
isTemplate
boolean isTemplate() -
setIsTemplate
void setIsTemplate(boolean value) -
getTemplate
-
isUseReportFromTemplate
boolean isUseReportFromTemplate()true
indicates that Plan's Report (KEY_HOMEPAGECONTENT
) from this Plan should be ignored and instead it should be read from the template (KEY_TEMPLATE
). It is supported only for Rich Page Plans.- Since:
- 3.9.2
-
setUseReportFromTemplate
void setUseReportFromTemplate(boolean value) - Since:
- 3.9.2
- See Also:
-
copyFromTemplate
Copies field values and wiki page with attachments from plan template (if the template is wiki based). If this plan is a template then copies all fields, otherwise copies fields inFIELDS_FROM_TEMPLATE
(with exception ofKEY_HOMEPAGECONTENT
which is not copied whenKEY_USE_REPORT_FROM_TEMPLATE
is set to true) and sets theKEY_TEMPLATE
field to the plan template.- Parameters:
template
- the plan template- Throws:
IllegalArgumentException
- if parameter template is not a template
-
getSortOrder
-
setSortOrder
-
getColor
-
setColor
-
getDecorationColor
Returns the decoration color for this plan either directly from color field, or from color field of the template of this plan. -
wasStarted
boolean wasStarted()Returnstrue
if plan status is different from initial (default) status,false
otherwise.- Returns:
- whether plan status is different from initial status
-
isFinished
boolean isFinished()Returns true if plan is finished. -
getAuthor
-
getCreated
-
getUpdated
-
delete
void delete() -
getStatistics
-
getPlannedEstimateForItem
Returns the planned estimate value for the given Work Item in this Plan - it is based on value of some field of the given work item depending on the configuration of this Plan. Default estimate value is returned when the given Work Item field is empty. Returned null value means that the given Work Item is not allowed in this Plan because of it's type and project span depending on the configuration of this Plan (headings are never allowed). -
areValuesInHours
boolean areValuesInHours()Returns true when this Plan is configured in such way that thegetPlannedEstimateForItem(IWorkItem)
method returns the values which are in hours. -
getChildren
Returns children plans sorted the same way as in the UI - seeDEFAULT_SORT
-
getCurrentDate
Returns 'now' if plan is from HEAD or time when plan's revision (or baseline revision) was created. -
getIdealProgressFactor
Return ideal progress factor for the plan. Value is 0 at plan's start and is 1 at plan's end.- Parameters:
date
- current date
-
getWikiContent
Returns the wiki content of the plan -
setWikiContent
Sets the wiki content of the plan- Parameters:
content
- the wiki content to be set to the plan
-
getFinishedPlan
Gets an IPlan state from the revision in which plan was finished -
getProjectSpan
Returns project span of the plan. Project span defines from which project(s) Work Items can be planned. If returned project span is empty, then only Work Items from the project of this plan can be planned.- Since:
- 3.9.0
-
isRichPagePlan
boolean isRichPagePlan()- Returns:
- true if this Plan's report is Rich Page based.
Always returns true if
isUseReportFromTemplate()
is true. - Since:
- 3.9.2
-