public interface IDocumentDataProvider
IDocumentDataProvider allows to access objects of a COCKPIT project
for document generation. The IDocumentDataProvider can be referenced directly within a
document template by its name documentDataProvider.| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IDocumentContainerSet> |
getAllCategories()
Deprecated.
|
java.util.List<? extends IDocumentContainerSet> |
getAllCategories(int sortingCriterion)
Deprecated.
|
java.util.List<? extends IDocumentContainerSet> |
getAllDocumentContainerSets()
Returns all document containers of the project
The document containers are sorted by name.
|
java.util.List<? extends IDocumentContainerSet> |
getAllDocumentContainerSets(int sortingCriterion)
Returns all categories of the project
sortingCriterion specifies the criterion for sorting. |
java.util.List<? extends IDocumentContainerSet> |
getAllDocumentContainerSetsForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all document container sets which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IDocumentContainer> |
getAllDocumentContainersForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all document containers which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IResourceLocator> |
getAllResourceLocatorsForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all resource locators which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IDocumentContainer> |
getDocumentContainersForUniqueElement(java.lang.String uniqueElementUID)
Returns all document containers that are linked to a certain unique element.
|
java.util.List<? extends IDocumentContainer> |
getDocumentContainersForUniqueElement(java.lang.String uniqueElementUID,
int sortingCriterion)
Returns all document containers that are linked to a certain unique element.
|
int |
getSORT_CATEGORY_BY_NAME() |
int |
getSORT_DOCUMENTCONTAINER_BY_CATEGORY() |
int |
getSORT_DOCUMENTCONTAINER_BY_NAME() |
int |
getSORT_DOCUMENTCONTAINERSET_BY_NAME() |
int |
getSORT_RESOURCELOCATOR_BY_URL() |
boolean |
hasDocumentContainersForUniqueElement(java.lang.String uniqueElementUID)
Checks whether a unique element has linked document containers.
|
int getSORT_DOCUMENTCONTAINER_BY_NAME()
int getSORT_DOCUMENTCONTAINER_BY_CATEGORY()
int getSORT_RESOURCELOCATOR_BY_URL()
int getSORT_CATEGORY_BY_NAME()
int getSORT_DOCUMENTCONTAINERSET_BY_NAME()
java.util.List<? extends IDocumentContainerSet> getAllDocumentContainerSets()
The document containers are sorted by name.
java.util.List<? extends IDocumentContainerSet> getAllDocumentContainerSets(int sortingCriterion)
sortingCriterion specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.
sortingCriterion - the sorting criterion@Deprecated java.util.List<? extends IDocumentContainerSet> getAllCategories()
@Deprecated java.util.List<? extends IDocumentContainerSet> getAllCategories(int sortingCriterion)
sortingCriterion - the sorting criterionboolean hasDocumentContainersForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - unique identifier of the unique elementjava.util.List<? extends IDocumentContainer> getDocumentContainersForUniqueElement(java.lang.String uniqueElementUID)
The document containers are sorted by name.
uniqueElementUID - unique identifier of the unique elementjava.util.List<? extends IDocumentContainer> getDocumentContainersForUniqueElement(java.lang.String uniqueElementUID, int sortingCriterion)
uniqueElementUID - unique identifier of the unique elementsortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IDocumentContainerSet> getAllDocumentContainerSetsForHistoryItem(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 document container set is only assigned to the history item for the commit of the last change of the document container set. 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 IDocumentContainer> getAllDocumentContainersForHistoryItem(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 document container is only assigned to the history item for the commit of the last change of the document container. 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 IResourceLocator> getAllResourceLocatorsForHistoryItem(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 resource locator is only assigned to the history item for the commit of the last change of the resource locator. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
historyEntry - history item identifying the last change of the plans