public interface IGenericModuleReportDataProvider
IGenericModuleReportDataProvider allows for access to objects of a generic module
for document generation.
The IGenericModuleDataProvider for a specific module can be referenced
directly within a document template by its name [moduleID]DataProvider
(without the square brackets and moduleID replaced by the module's id as specified in the
generic module specification).| Modifier and Type | Method and Description |
|---|---|
boolean |
areAnyItemsLinkedToModelElement(java.lang.String modelElementUID)
Returns whether any items are linked to the specified model element.
|
boolean |
areItemsLinkedToModelElement(java.lang.String modelElementUID,
java.lang.String objectTypeID)
Returns whether any items of the specified type are linked to the specified model element.
|
IGenericModuleData |
findObject(java.lang.String path,
java.lang.String objectTypeID)
Searches for the item with the specified path.
|
java.util.List<? extends IGenericModuleData> |
getAllObjects(java.lang.String objectTypeID)
Returns all objects of the specified type.
|
java.util.List<? extends IGenericModuleData> |
getAllObjects(java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all objects of the specified type sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getAllObjectsForHistoryItem(java.lang.String objectTypeID,
com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all objects of the specified type which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IGenericModuleData> |
getAllObjectsWithCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns all objects of the specified type that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getAllObjectsWithCategory(java.lang.String objectTypeID,
java.lang.String categoryID,
java.lang.String attributeToSortBy)
Returns all objects of the specified type that belong to the specified category sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getAllObjectsWithDefaultCategory(java.lang.String objectTypeID)
Returns all objects of the specified type that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getAllObjectsWithDefaultCategory(java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all objects of the specified type that belong to the default category sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjects(java.lang.String objectTypeID)
Returns all root objects of the specified type
The objects are by default returned in natural order.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjects(java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all root objects of the specified type sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjectsWithCategory(java.lang.String objectTypeID,
java.lang.String categoryID)
Returns all root objects of the specified type that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjectsWithCategory(java.lang.String objectTypeID,
java.lang.String categoryID,
java.lang.String attributeToSortBy)
Returns all root objects of the specified type that belong to the specified category sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjectsWithDefaultCategory(java.lang.String objectTypeID)
Returns all root objects of the specified type that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getAllRootObjectsWithDefaultCategory(java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all root objects of the specified type that belong to the default category sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getItemsForModelElement(java.lang.String modelElementUID,
java.lang.String objectTypeID)
Returns all objects of the specified type that are linked to the specified model element.
|
java.util.List<? extends IGenericModuleData> |
getItemsForModelElement(java.lang.String modelElementUID,
java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all objects of the specified type that are linked to the specified model element
sorted by the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getItemsNotLinkedToAnyModelElement(java.lang.String objectTypeID)
Returns all objects of the specified type that are not linked to any model element.
|
java.util.List<? extends IGenericModuleData> |
getItemsNotLinkedToAnyModelElement(java.lang.String objectTypeID,
java.lang.String attributeToSortBy)
Returns all objects of the specified type that are not linked to any model element
sorted by the specified attribute.
|
java.util.List<java.lang.String> |
getKnownValuesForAttribute(java.lang.String objectTypeID,
java.lang.String attributeID)
Returns the known values for the specified attribute.
|
java.util.List<? extends IGenericModuleData> getAllObjects(java.lang.String objectTypeID)
The objects are by default sorted by the first specified attribute of the object type.
objectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getAllObjectsWithCategory(java.lang.String objectTypeID, java.lang.String categoryID)
The objects are by default sorted by the first specified attribute of the object type.
objectTypeID - the object type idcategoryID - the category IDjava.util.List<? extends IGenericModuleData> getAllObjectsWithDefaultCategory(java.lang.String objectTypeID)
The objects are by default sorted by the first specified attribute of the object type.
objectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getAllObjects(java.lang.String objectTypeID, java.lang.String attributeToSortBy)
objectTypeID - the object type idattributeToSortBy - attribute to sort byjava.util.List<? extends IGenericModuleData> getAllObjectsWithCategory(java.lang.String objectTypeID, java.lang.String categoryID, java.lang.String attributeToSortBy)
objectTypeID - the object type idcategoryID - the category IDattributeToSortBy - attribute to sort byjava.util.List<? extends IGenericModuleData> getAllObjectsWithDefaultCategory(java.lang.String objectTypeID, java.lang.String attributeToSortBy)
objectTypeID - the object type idattributeToSortBy - attribute to sort byjava.util.List<? extends IGenericModuleData> getAllObjectsForHistoryItem(java.lang.String objectTypeID, 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 an object is only assigned to the history item for the commit of the last change of the object. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
objectTypeID - the object type idhistoryEntry - history item identifying the last change of the plansjava.util.List<? extends IGenericModuleData> getAllRootObjects(java.lang.String objectTypeID)
The objects are by default returned in natural order.
objectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getAllRootObjectsWithCategory(java.lang.String objectTypeID, java.lang.String categoryID)
The objects are by default returned in natural order.
objectTypeID - the object type idcategoryID - the category IDjava.util.List<? extends IGenericModuleData> getAllRootObjectsWithDefaultCategory(java.lang.String objectTypeID)
The objects are by default returned in natural order.
objectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getAllRootObjects(java.lang.String objectTypeID, java.lang.String attributeToSortBy)
objectTypeID - the object type idattributeToSortBy - attribute to sort byjava.util.List<? extends IGenericModuleData> getAllRootObjectsWithCategory(java.lang.String objectTypeID, java.lang.String categoryID, java.lang.String attributeToSortBy)
objectTypeID - the object type idcategoryID - the category IDattributeToSortBy - attribute to sort byjava.util.List<? extends IGenericModuleData> getAllRootObjectsWithDefaultCategory(java.lang.String objectTypeID, java.lang.String attributeToSortBy)
objectTypeID - the object type idattributeToSortBy - attribute to sort byIGenericModuleData findObject(java.lang.String path, java.lang.String objectTypeID)
path - the pathobjectTypeID - the object type id of the item to be foundjava.util.List<? extends IGenericModuleData> getItemsNotLinkedToAnyModelElement(java.lang.String objectTypeID)
The objects are by default sorted by the first specified attribute of the object type.
objectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getItemsNotLinkedToAnyModelElement(java.lang.String objectTypeID, java.lang.String attributeToSortBy)
objectTypeID - the object type idattributeToSortBy - attribute to sort byboolean areAnyItemsLinkedToModelElement(java.lang.String modelElementUID)
modelElementUID - the model element's uidboolean areItemsLinkedToModelElement(java.lang.String modelElementUID,
java.lang.String objectTypeID)
modelElementUID - the model element's uidobjectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getItemsForModelElement(java.lang.String modelElementUID, java.lang.String objectTypeID)
The objects are by default sorted by the first specified attribute of the object type.
modelElementUID - the model element's uidobjectTypeID - the object type idjava.util.List<? extends IGenericModuleData> getItemsForModelElement(java.lang.String modelElementUID, java.lang.String objectTypeID, java.lang.String attributeToSortBy)
modelElementUID - the model element's uidobjectTypeID - the object type idattributeToSortBy - attribute to sort byjava.util.List<java.lang.String> getKnownValuesForAttribute(java.lang.String objectTypeID,
java.lang.String attributeID)
Works only for linked module data attributes and enumeration attributes (not for numbers, texts, dates, etc).
objectTypeID - the id of the object type the attribute belongs toattributeID - the attribute's id