public interface IProject extends ICustomPropertiesAccess
IProject object allows to read attribute values of a
COCKPIT project for document generation. Starting with this object,
references to other entities of the COCKPIT project can be requested.
Item type constant: "project"
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<? extends IModelElement> |
filterModelElementsOfType(java.util.Collection<IModelElement> modelElements,
java.lang.String typeID)
Returns all model elements of the given collection, which are of the
specified type.
|
IFolder |
findFolder(java.lang.String folderPath)
Searches the folder with the specified path.
|
java.util.List<? extends IFolder> |
getAllFoldersForHistoryItem(IHistoryEntry historyEntry)
Returns all folders which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IModelElement> |
getAllModelElements()
Returns all model elements of the selected project sorted by their
type and element names
|
java.util.List<? extends IModelElement> |
getAllModelElements(java.lang.String typeID)
Returns all model elements of the selected project of the specified
type sorted by their element names.
|
java.util.List<? extends IModelElement> |
getAllModelElementsForHistoryItem(IHistoryEntry historyEntry)
Returns all model elements which have been modified the last time
with the commit identified by the history item.
|
java.util.List<? extends IModelElement> |
getAllModelElementsWithCategory(java.lang.String categoryID)
Returns all model elements of this project that belong to the
specified category sorted by their type and element names.
|
java.util.List<? extends IModelElement> |
getAllModelElementsWithCategory(java.lang.String categoryID,
java.lang.String typeID)
Returns all model elements of this project of the specified type that
belong to the specified category sorted by their type and element
names.
|
java.util.List<? extends IModelElement> |
getAllModelElementsWithDefaultCategory()
Returns all model elements of this project that belong to the default
category sorted by their type and element names.
|
java.util.List<? extends IModelElement> |
getAllModelElementsWithDefaultCategory(java.lang.String typeID)
Returns all model elements of this project of the specified type that
belong to the default category sorted by their type and element
names.
|
java.util.List<? extends IPlan> |
getAllPlans()
Returns all construction plans of the selected project sorted by
their plan names
|
java.util.List<? extends IPlan> |
getAllPlansForHistoryItem(IHistoryEntry historyEntry)
Returns all plans which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IPlan> |
getAllPlansInDefinedOrder()
Returns all construction plans of the selected project in the order
they occur in the project
|
java.util.List<? extends IStakeholderRole> |
getAllStakeholderRoles()
Returns all stakeholder roles of this project.
|
java.util.List<? extends IStakeholderRole> |
getAllStakeholderRolesForHistoryItem(IHistoryEntry historyEntry)
Returns all Stakeholder Roles which have been modified the last time
with the commit identified by the history item.
|
java.util.List<? extends IStakeholderRole> |
getAllStakeholderRolesWithCategory(java.lang.String categoryID)
Returns all stakeholder roles of this project that belong to the
specified category.
|
java.util.List<? extends IStakeholderRole> |
getAllStakeholderRolesWithDefaultCategory()
Returns all stakeholder roles of this project that belong to the
default category.
|
java.util.List<? extends IStakeholder> |
getAllStakeholders()
Returns all stakeholders of this project.
|
java.util.List<? extends IStakeholder> |
getAllStakeholdersForHistoryItem(IHistoryEntry historyEntry)
Returns all Stakeholders which have been modified the last time with
the commit identified by the history item.
|
java.util.List<? extends IStakeholder> |
getAllStakeholdersWithCategory(java.lang.String categoryID)
Returns all stakeholders of this project that belong to the specified
category.
|
java.util.List<? extends IStakeholder> |
getAllStakeholdersWithDefaultCategory()
Returns all stakeholders of this project that belong to the default
category.
|
java.util.List<java.lang.String> |
getDescription()
Returns the description of the project.
|
java.lang.String |
getLabelForUID(java.lang.String uid)
Returns a label for the object with the specified unique identifier.
|
java.lang.String |
getLanguage()
Returns the language of the project.
|
java.util.List<? extends IModelElement> |
getLeafModelElementsOfCausalityRelationship()
Returns all model elements of the selected project, which are leaf
elements of the causality relationship, i.e. which are not causally
preceding any other model element.
|
java.util.List<? extends IModelElement> |
getLeafModelElementsOfContainmentRelationship()
Returns all model elements of the selected project, which are leaf
elements of the containment relationship, i.e. which do not contain
any other model element.
|
java.lang.String |
getLogo()
Returns a XML DocBook representation to access the project logo.
|
java.lang.String |
getName()
Returns the name of the COCKPIT project.
|
java.util.List<? extends IHistoryEntry> |
getProjectHistoryEntries()
Returns all entries of the project's history.
|
java.util.List<? extends IFolder> |
getRootFolders()
Returns the root folders of the project.
|
java.util.List<? extends IFolder> |
getRootFoldersWithCategory(java.lang.String categoryID)
Returns the root folders of the project that belong to the specified
category.
|
java.util.List<? extends IFolder> |
getRootFoldersWithDefaultCategory()
Returns the root folders of the project that belong to the default
category.
|
java.util.List<? extends IModelElement> |
getRootModelElementsOfCausalityRelationship()
Returns all model elements of the selected project, which are root
elements of the causality relationship, i.e. for which no causally
preceding model element exists.
|
java.util.List<? extends IModelElement> |
getRootModelElementsOfContainmentRelationship()
Returns all model elements of the selected project, which are root
elements of the containment relationship, i.e. which are not
contained in any other model element.
|
java.util.List<? extends IPlan> |
getRootPlans()
Returns the root plans of the project.
|
IStakeholder |
getStakeholderForCurrentUser()
Returns the stakeholder of the current user.
|
IStakeholderRole |
getStakeholderRole(java.lang.String roleName)
Returns the stakeholder role with the given name.
|
java.lang.String |
getUniqueIdentifier()
Returns a unique identifier that uniquely identifies this object
within the COCKPIT project.
|
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, getLinkForShow, getModificationCount, getProjectUniqueIdentifier, getTypeID, getTypeName, toRecordjava.lang.String getUniqueIdentifier()
Example from report template:
#set($project = ${projectDataProvider.Project})
#set($project_uid = ${project.UniqueIdentifier})
getUniqueIdentifier in interface 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
java.lang.String getLogo()
java.lang.String getLanguage()
java.util.List<? extends IFolder> getRootFolders()
Example from report template:
#set($root_folders = ${projectDataProvider.getRootFolders()})
java.util.List<? extends IFolder> getRootFoldersWithCategory(java.lang.String categoryID)
Example from report template:
#set($root_folders = ${projectDataProvider.getRootFoldersWithCategory("myCategory")})
categoryID - the category IDjava.util.List<? extends IFolder> getRootFoldersWithDefaultCategory()
Example from report template:
#set($root_folders = ${projectDataProvider.getRootFoldersWithDefaultCategory()})
java.util.List<? extends IPlan> getRootPlans()
Example from report template:
#set($project = ${projectDataProvider.Project})
#set($root_plans = ${project.RootPlans})
IFolder findFolder(java.lang.String folderPath)
"folder1/folder1.2"
means "folder1.2" as sub folder of "folder1").
Example from report template:
#set($project = ${projectDataProvider.Project})
#set($folder = ${project.findFolder("folder1/folder1.2")})
folderPath - list of folder names, separated by "/"java.util.List<? extends IPlan> getAllPlans()
java.util.List<? extends IPlan> getAllPlansInDefinedOrder()
java.util.List<? extends IStakeholder> getAllStakeholders()
java.util.List<? extends IStakeholder> getAllStakeholdersWithCategory(java.lang.String categoryID)
categoryID - the category IDjava.util.List<? extends IStakeholder> getAllStakeholdersWithDefaultCategory()
IStakeholder getStakeholderForCurrentUser()
java.util.List<? extends IStakeholderRole> getAllStakeholderRoles()
java.util.List<? extends IStakeholderRole> getAllStakeholderRolesWithCategory(java.lang.String categoryID)
categoryID - the category IDjava.util.List<? extends IStakeholderRole> getAllStakeholderRolesWithDefaultCategory()
IStakeholderRole getStakeholderRole(java.lang.String roleName)
roleName - the name of the requested rolejava.util.List<? extends IModelElement> getAllModelElements()
java.util.List<? extends IModelElement> getAllModelElements(java.lang.String typeID)
IProjectDataProvider.
Example from report template:
#set($project = ${projectDataProvider.Project})
#set($elementTypes = ${projectDataProvider.ModelElementTypes})
#foreach($type in $elementTypes)
#foreach($modelElement in ${project.AllModelElements($type.TypeID)})
...
#end
#end
typeID - the type idjava.util.List<? extends IModelElement> getAllModelElementsWithCategory(java.lang.String categoryID)
categoryID - the category IDjava.util.List<? extends IModelElement> getAllModelElementsWithCategory(java.lang.String categoryID, java.lang.String typeID)
categoryID - the category IDtypeID - the type IDjava.util.List<? extends IModelElement> getAllModelElementsWithDefaultCategory()
java.util.List<? extends IModelElement> getAllModelElementsWithDefaultCategory(java.lang.String typeID)
typeID - the type IDjava.util.Collection<? extends IModelElement> filterModelElementsOfType(java.util.Collection<IModelElement> modelElements, java.lang.String typeID)
IProjectDataProvider.modelElements - the collection of model elementstypeID - the type idjava.util.List<? extends IModelElement> getRootModelElementsOfContainmentRelationship()
java.util.List<? extends IModelElement> getRootModelElementsOfCausalityRelationship()
java.util.List<? extends IModelElement> getLeafModelElementsOfContainmentRelationship()
java.util.List<? extends IModelElement> getLeafModelElementsOfCausalityRelationship()
java.util.List<? extends IHistoryEntry> getProjectHistoryEntries()
Each time, a user commits the project, a history entry is created. User, date and comment are logged. This is requestable by this function.
Note: This list is filled in Cockpit enterprise edition (client/ server). Cockpit Professional (standalone) does not manage a project history, and therefore the returned list is empty.
java.util.List<? extends IPlan> getAllPlansForHistoryItem(IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a plan is only assigned to the history item for the commit of the last change of the plan. This method does not allow to access old versions.
historyEntry - history item identifying the last change of the
plansjava.util.List<? extends IFolder> getAllFoldersForHistoryItem(IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a folder is only assigned to the history item for the commit of the last change of the folder. This method does not allow to access old versions.
historyEntry - history item identifying the last change of the
plansjava.util.List<? extends IModelElement> getAllModelElementsForHistoryItem(IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a model element is only assigned to the history item for the commit of the last change of the model element. This method does not allow to access old versions.
historyEntry - history item identifying the last change of the
plansjava.util.List<? extends IStakeholder> getAllStakeholdersForHistoryItem(IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a Stakeholder is only assigned to the history item for the commit of the last change of the Stakeholder. This method does not allow to access old versions.
historyEntry - history item identifying the last change of the
plansjava.util.List<? extends IStakeholderRole> getAllStakeholderRolesForHistoryItem(IHistoryEntry historyEntry)
Each time, a user commits the project, a history entry is created.
Note: The current version of a Stakeholder Role is only assigned to the history item for the commit of the last change of the Stakeholder Role. This method does not allow to access old versions.
historyEntry - history item identifying the last change of the
plansjava.lang.String getLabelForUID(java.lang.String uid)
uid - the unique identifierIRecord 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:
toRecord in interface ICockpitDatatoRecord in interface ICustomPropertiesAccess