Package com.polarion.alm.tracker.model
Interface IPlan
- All Superinterfaces:
IAdaptable,IChangeListener,IHasCustomValues,IHasValues,ILocatedObject,IPObject,IUniqueObject
- Since:
- 3.8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 onebooleanReturns true when this Plan is configured in such way that thegetPlannedEstimateForItem(IWorkItem)method returns the values which are in hours.voidcopyFromTemplate(IPlan template) Copies field values and wiki page with attachments from plan template (if the template is wiki based).voiddelete()Returns children plans sorted the same way as in the UI - seeDEFAULT_SORTgetColor()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 finishedfloatgetIdealProgressFactor(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 planbooleanReturns true if plan is finished.booleanbooleanbooleantrueindicates that Plan's Report (KEY_HOMEPAGECONTENT) from this Plan should be ignored and instead it should be read from the template (KEY_TEMPLATE).voidremoveRecord(IWorkItem item) Removes all records for the given item (Normally only one record for each item is supported in Plan)voidRemoves records for unresolvable items.voidsetCalculationType(IEnumOption value) voidsetCapacity(Float value) voidvoidsetDefaultEstimate(Float value) voidsetDescription(Text value) voidsetDueDate(DateOnly value) voidsetEstimationField(String value) voidsetFinishedOn(Date value) voidsetHomePageContent(Text value) voidsetIsTemplate(boolean value) voidvoidvoidsetPreviousTimeSpent(DurationTime value) voidsetPrioritizationField(String value) voidsetSortOrder(Integer value) voidsetStartDate(DateOnly value) voidsetStartedOn(Date value) voidsetStatus(IStatusOpt value) voidsetUseReportFromTemplate(boolean value) voidsetWikiContent(Text content) Sets the wiki content of the planbooleanReturnstrueif plan status is different from initial (default) status,falseotherwise.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods inherited from interface com.polarion.alm.projects.model.ILocatedObject
getLocationMethods 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, updateMethods 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()trueindicates 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_HOMEPAGECONTENTwhich is not copied whenKEY_USE_REPORT_FROM_TEMPLATEis set to true) and sets theKEY_TEMPLATEfield 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()Returnstrueif plan status is different from initial (default) status,falseotherwise.- 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
-