public interface IFolder extends ICustomPropertiesAccess
IFolder allows to read attribute values of a folder within a
project and to access the plans within the folder.
Item type constant: "folder"
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPlans()
Checks whether the current folder contains any plans.
|
java.util.List<? extends IPlan> |
getAllPlansOfSubTree()
Returns all plans of the folder and all sub folders.
|
java.util.List<? extends IPlan> |
getAllPlansOfSubTreeWithCategory(java.lang.String categoryID)
Returns all plans of the folder and all sub folders that belong to
the specified category.
|
java.util.List<? extends IPlan> |
getAllPlansOfSubTreeWithDefaultCategory()
Returns all plans of the folder and all sub folders that belong to
the default category.
|
java.util.List<java.lang.String> |
getDescription()
Returns the description of the folder.
|
java.lang.String |
getName()
Returns the name of the folder.
|
IFolder |
getParent()
Returns the parent folder of the current folder.
|
java.util.List<? extends IPlan> |
getPlans()
Returns the plans of this folder.
|
java.util.List<? extends IPlan> |
getPlansSortedBy(java.lang.String propertyID)
Returns all plans sorted by the specified property.
|
java.util.List<? extends IPlan> |
getPlansWithCategory(java.lang.String categoryID)
Returns the plans of this folder that belong to the specified
category.
|
java.util.List<? extends IPlan> |
getPlansWithCategorySortedBy(java.lang.String categoryID,
java.lang.String propertyID)
Returns all plans that belong to the specified category sorted by the
specified property.
|
java.util.List<? extends IPlan> |
getPlansWithDefaultCategory()
Returns the plans of this folder that belong to the default category.
|
java.util.List<? extends IPlan> |
getPlansWithDefaultCategorySortedBy(java.lang.String propertyID)
Returns all plans that belong to the default category sorted by the
specified property.
|
IFolder |
getSubFolder(java.lang.String folderName)
Returns the sub folder with the specified name.
|
java.util.List<? extends IFolder> |
getSubFolders()
Returns the sub folders of this folder.
|
java.util.List<? extends IFolder> |
getSubFolders(java.lang.String sortingProperty)
Returns the sub folders of this folder.
|
java.util.List<? extends IFolder> |
getSubFoldersWithCategory(java.lang.String categoryID)
Returns the sub folders of the this folder that belong to the
specified category.
|
java.util.List<? extends IFolder> |
getSubFoldersWithCategory(java.lang.String categoryID,
java.lang.String sortingProperty)
Returns the sub folders of the this folder that belong to the
specified category.
|
java.util.List<IFolder> |
getSubFoldersWithDefaultCategory()
Returns the sub folders of the this folder that belong to the default
category.
|
java.util.List<IFolder> |
getSubFoldersWithDefaultCategory(java.lang.String sortingProperty)
Returns the sub folders of the this folder that belong to the default
category.
|
java.lang.String |
getUniqueIdentifier()
Returns a unique identifier that uniquely identifies this object
within the COCKPIT project.
|
boolean |
hasParent()
Checks whether the current folder has a parent folder.
|
boolean |
hasSubFolder(java.lang.String folderName)
Checks whether the current folder has a sub folder with the specified
name.
|
boolean |
hasSubFolders()
Checks whether the current folder has any sub folders.
|
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($folder_uid = ${folder.UniqueIdentifier})
getUniqueIdentifier in interface ICockpitDatajava.lang.String getName()
Example from report template:
java.util.List<java.lang.String> getDescription()
Example from report template:
#foreach( $text in ${folder.Description})
<para>$text</para>
#end
boolean hasParent()
IFolder getParent()
boolean hasSubFolders()
java.util.List<? extends IFolder> getSubFolders()
java.util.List<? extends IFolder> getSubFolders(java.lang.String sortingProperty)
sortingProperty - java.util.List<? extends IFolder> getSubFoldersWithCategory(java.lang.String categoryID)
categoryID - category IDjava.util.List<? extends IFolder> getSubFoldersWithCategory(java.lang.String categoryID, java.lang.String sortingProperty)
categoryID - the category IDsortingProperty - java.util.List<IFolder> getSubFoldersWithDefaultCategory()
java.util.List<IFolder> getSubFoldersWithDefaultCategory(java.lang.String sortingProperty)
sortingProperty - boolean hasSubFolder(java.lang.String folderName)
folderName - name of the requested sub folderIFolder getSubFolder(java.lang.String folderName)
null will be returned.folderName - name of the requested sub foldernullboolean containsPlans()
java.util.List<? extends IPlan> getPlans()
java.util.List<? extends IPlan> getAllPlansOfSubTree()
java.util.List<? extends IPlan> getPlansSortedBy(java.lang.String propertyID)
namedescriptioncreatorcreationDatelastEditorlastEditDatepropertyID - ID of the property the plans shall be sorted byjava.util.List<? extends IPlan> getPlansWithCategory(java.lang.String categoryID)
categoryID - the category IDjava.util.List<? extends IPlan> getAllPlansOfSubTreeWithCategory(java.lang.String categoryID)
categoryID - the category IDjava.util.List<? extends IPlan> getPlansWithCategorySortedBy(java.lang.String categoryID, java.lang.String propertyID)
namedescriptioncreatorcreationDatelastEditorlastEditDatecategoryID - the category IDpropertyID - ID of the property the plans shall be sorted byjava.util.List<? extends IPlan> getPlansWithDefaultCategory()
java.util.List<? extends IPlan> getAllPlansOfSubTreeWithDefaultCategory()
java.util.List<? extends IPlan> getPlansWithDefaultCategorySortedBy(java.lang.String propertyID)
namedescriptioncreatorcreationDatelastEditorlastEditDatepropertyID - ID of the property the plans shall be sorted byIRecord 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