public interface IProjectPlan
extends com.arcway.cockpit.modulelib2.client.docgen.provider.interfaces.IModuleData, com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess
IProjectPlan object allows to read attribute values of a project plan
from the COCKPIT project planning module. Starting with this object, you can get references to
tasks and work items of the project plan.Item type constant: "ppm.projectPlan"
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTasks()
Checks whether the project plan contains any tasks.
|
java.util.List<java.lang.String> |
getDescription()
Returns the description of the project.
|
java.lang.String |
getName()
Returns the name of the project plan.
|
java.util.List |
getResourceNames()
Returns the names of resources required for this project plan.
|
java.util.List<? extends ITask> |
getRootTasks()
Returns the root (level 1) tasks of the project plan.
|
java.util.List<? extends ITask> |
getRootTasks(int sortingCriterion)
Returns the root (level 1) tasks of the project plan.
|
java.util.List<? extends ITask> |
getRootTasks(java.lang.String sortingProperty)
Returns the root (level 1) tasks of the project plan.
|
java.lang.String |
getUniqueIdentifier()
Returns a unique identifier that uniquely identifies this object
within the COCKPIT project.
|
java.lang.String |
getWorkDoneOfResource(java.lang.String resourceName)
Returns the current work done of the specified resource.
|
java.lang.String |
getWorkEstimated()
Returns the estimated work for a project plan.
|
java.lang.String |
getWorkOfResource(java.lang.String resourceName)
Returns the current work forecast of the specified resource.
|
com.arcway.cockpit.docgen.provider.interfaces.IRecord |
toRecord()
Converts this generic module data into a record.
|
getCategoryID, getCategoryLabel, getDateTimeProperty_MilliSecondsSince_01_01_1970, getFileProperty, getFileProperty, getFilePropertyAsBase64StringList, getFilePropertyAsFileName, getFilePropertyAsFileName, getFilePropertyAsRawStringList, getFilePropertyAsStringList, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringList, hasCustomPropertyValues, hasDefaultCategory, hasPropertyValue, readImageInfoOfFilePropertygetCommitVersion, getCreationDate_MilliSecondsSince_01_01_1970, getCreationDate, getCreator, getDateOfLastModification_MilliSecondsSince_01_01_1970, getDateOfLastModification, getDisplayName, getLastModifier, getModificationCount, getProjectUniqueIdentifier, getTypeID, getTypeName, toRecordjava.lang.String getUniqueIdentifier()
Example from report template:
#foreach($projectPlan in ${projectPlanningDataProvider.ProjectPlans})
#set($project_uid = ${project.UniqueIdentifier})
#end
getUniqueIdentifier in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatajava.lang.String getName()
Example from report template:
#set($project = ${projectDataProvider.Project})
java.util.List<java.lang.String> getDescription()
Example from report template:
#set($project = ${projectDataProvider.Project})
#foreach( $text in ${project.Description})
<para>$text</para>
#end
boolean containsTasks()
java.util.List<? extends ITask> getRootTasks()
java.util.List<? extends ITask> getRootTasks(int sortingCriterion)
sortingCriterion specifies the criterion for sorting. Use the
integer constants in IProjectPlanningDataProvider.sortingCriterion - one of the constants defined in IProjectPlanningDataProviderjava.util.List<? extends ITask> getRootTasks(java.lang.String sortingProperty)
sortingProperty specifies the custom property which shall be used as a criterion for
sorting.sortingProperty - the ID of the custom propertyjava.util.List getResourceNames()
java.lang.String getWorkOfResource(java.lang.String resourceName)
resourceName - name of the resourcejava.lang.String getWorkDoneOfResource(java.lang.String resourceName)
resourceName - name of the resourcejava.lang.String getWorkEstimated()
com.arcway.cockpit.docgen.provider.interfaces.IRecord toRecord()
In addition to all fields documented at ICustomPropertiesAccess.toRecord(), in
the created record, the following fields are filled accoring to the wrapped cockpit data:
IRecord.NAME_KEYIRecord.DESCRIPTION_KEYtoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatatoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess