public interface IProjectPlanningDataProvider
IProjectPlanningDataProvider allows to access objects of a COCKPIT project
for document generation. The IProjectPlanningDataProvider can be referenced directly within a
document template by its name projectPlanningDataProvider.| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IProjectPlan> |
getAllProjectPlansForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all project plans which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends ITask> |
getAllTasksForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all tasks which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IWorkItem> |
getAllWorkItemsForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all work items which have been modified the last time with the
commit identified by the history item.
|
java.util.List<IProjectPlan> |
getProjectPlans()
Returns all project plans of this COCKPIT project.
|
java.util.List<IProjectPlan> |
getProjectPlans(java.lang.String sortingProperty)
Returns all project plans of this COCKPIT project.
|
int |
getSORT_TASK_BY_DURATION()
Constant for sorting tasks by duration (descending)
|
int |
getSORT_TASK_BY_ENDDATE()
Constant for sorting tasks by end date
|
int |
getSORT_TASK_BY_NAME()
Constant for sorting tasks by name
|
int |
getSORT_TASK_BY_PERCENTWORKCOMPLETE()
Constant for sorting tasks by percent of work that is completed (descending)
|
int |
getSORT_TASK_BY_STARTDATE()
Constant for sorting tasks by start date
|
int |
getSORT_TASK_BY_STATE()
Constant for sorting tasks by state
|
int |
getSORT_TASK_BY_TOTALWORK()
Constant for sorting tasks by total work (descending)
|
int |
getSORT_WORKITEM_BY_NAME()
Constant for sorting work items by name
|
int |
getSORT_WORKITEM_BY_PERCENTWORKCOMPLETE()
Constant for sorting work items by percent of work that is completed (descending)
|
int |
getSORT_WORKITEM_BY_TOTALWORK()
Constant for sorting work items by total work (descending)
|
java.util.List<? extends IWorkItem> |
getUnassignedWorkItems()
Returns all work items which are no assigned to tasks.
|
java.util.List<? extends IWorkItem> |
getUnassignedWorkItems(int sortingCriterion)
Returns all work items which are no assigned to tasks.
|
java.util.List<? extends IWorkItem> |
getUnassignedWorkItems(java.lang.String sortingProperty)
Returns all work items which are no assigned to tasks.
|
java.util.List<? extends IWorkItem> |
getWorkItemsForStakeholder(java.lang.String stakeholdername)
Returns all work items which are linked to the specified stakeholder.
|
java.util.List<? extends IWorkItem> |
getWorkItemsForStakeholder(java.lang.String stakeholdername,
int sortingCriterion)
Returns all work items which are linked to the specified stakeholder.
|
java.util.List<? extends IWorkItem> |
getWorkItemsForStakeholder(java.lang.String stakeholdername,
java.lang.String sortingProperty)
Returns all work items which are linked to the specified stakeholder.
|
java.util.List<? extends IWorkItem> |
getWorkItemsForUniqueElement(java.lang.String uniqueElementUID)
Returns all work items which are linked to the specified unique
element (repository element).
|
java.util.List<? extends IWorkItem> |
getWorkItemsForUniqueElement(java.lang.String uniqueElementUID,
int sortingCriterion)
Returns all work items which are linked to the specified unique
element (repository element).
|
java.util.List<? extends IWorkItem> |
getWorkItemsForUniqueElement(java.lang.String uniqueElementUID,
java.lang.String sortingProperty)
Returns all work items which are linked to the specified unique
element (repository element).
|
boolean |
hasWorkItemsForUniqueElement(java.lang.String uniqueElementUID)
Checks whether the specified unique element (repository element)
is linked with work items.
|
int getSORT_TASK_BY_STARTDATE()
int getSORT_TASK_BY_ENDDATE()
int getSORT_TASK_BY_DURATION()
int getSORT_TASK_BY_STATE()
int getSORT_TASK_BY_PERCENTWORKCOMPLETE()
int getSORT_TASK_BY_TOTALWORK()
int getSORT_TASK_BY_NAME()
int getSORT_WORKITEM_BY_NAME()
int getSORT_WORKITEM_BY_TOTALWORK()
int getSORT_WORKITEM_BY_PERCENTWORKCOMPLETE()
java.util.List<IProjectPlan> getProjectPlans()
The following example will list the names of all project plans:
#set($projectPlans = ${projectPlanningDataProvider.ProjectPlans})
#foreach($projectPlan in $projectPlans)
<para>${projectPlan.Name}</para>
#end
java.util.List<IProjectPlan> getProjectPlans(java.lang.String sortingProperty)
sortingProperty specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IWorkItem> getUnassignedWorkItems()
java.util.List<? extends IWorkItem> getUnassignedWorkItems(int sortingCriterion)
sortingCriterion specifies the criterion for sorting. Use the
integer constants in IProjectPlanningDataProvider.java.util.List<? extends IWorkItem> getUnassignedWorkItems(java.lang.String sortingProperty)
sortingProperty specifies the custom property which shall be used as a criterion for
sorting.boolean hasWorkItemsForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - UID of the unique element (repository) the work
items must be linked withjava.util.List<? extends IWorkItem> getWorkItemsForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - UID of the unique element (repository) the work
items must be linked withjava.util.List<? extends IWorkItem> getWorkItemsForUniqueElement(java.lang.String uniqueElementUID, int sortingCriterion)
sortingCriterion specifies the criterion for sorting. Use the
integer constants in IProjectPlanningDataProvider.uniqueElementUID - UID of the unique element (repository) the work
items must be linked withsortingCriterion - specifies the criterion for sorting. Use the
integer constants in IProjectPlanningDataProvider.java.util.List<? extends IWorkItem> getWorkItemsForUniqueElement(java.lang.String uniqueElementUID, java.lang.String sortingProperty)
uniqueElementUID - UID of the unique element (repository) the work
items must be linked withsortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IWorkItem> getWorkItemsForStakeholder(java.lang.String stakeholdername)
stakeholdername - name of the stakeholder the work
items must be linked withjava.util.List<? extends IWorkItem> getWorkItemsForStakeholder(java.lang.String stakeholdername, int sortingCriterion)
stakeholdername - name of the stakeholder the work
items must be linked withsortingCriterion - specifies the criterion for sorting. Use the
integer constants in IProjectPlanningDataProvider.java.util.List<? extends IWorkItem> getWorkItemsForStakeholder(java.lang.String stakeholdername, java.lang.String sortingProperty)
stakeholdername - name of the stakeholder the work
items must be linked withsortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IProjectPlan> getAllProjectPlansForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a project plan is only assigned to the history item for the commit of the last change of the project plan. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
historyEntry - history item identifying the last change of the plansjava.util.List<? extends ITask> getAllTasksForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a task is only assigned to the history item for the commit of the last change of the task. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
historyEntry - history item identifying the last change of the plansjava.util.List<? extends IWorkItem> getAllWorkItemsForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a work item is only assigned to the history item for the commit of the last change of the work item. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
historyEntry - history item identifying the last change of the plans