public interface IUseCaseDataProvider
IUseCaseDataProvider allows to access objects of a COCKPIT project
for document generation. The IUseCaseDataProvider can be referenced directly within a
document template by its name usecaseDataProvider.| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IActionStep> |
getActionStepsForUniqueElement(java.lang.String uniqueElementUID)
Returns all action steps that are linked to a unique element.
|
java.util.List<? extends IActionStep> |
getAllActionStepsForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all action steps which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IScenario> |
getAllScenariosForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all scenarios which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategories()
Returns all use case categories of the project.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategories(java.lang.String sortingProperty)
Returns all use case categories of the project.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategoriesForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all use case categories which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategoriesWithCategory(java.lang.String categoryID)
Returns all use case categories of the project that belong to the specified category.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategoriesWithCategory(java.lang.String categoryID,
java.lang.String sortingProperty)
Returns all use case categories of the project that belong to the specified category.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategoriesWithDefaultCategory()
Returns all use case categories of the project that belong to the default category.
|
java.util.List<? extends IUseCaseCategory> |
getAllUseCaseCategoriesWithDefaultCategory(java.lang.String sortingProperty)
Returns all use case categories of the project that belong to the default category.
|
java.util.List<? extends IUseCase> |
getAllUseCases()
Returns all use cases of the project.
|
java.util.List<? extends IUseCase> |
getAllUseCases(int sortingCriterion)
Returns all use cases of the project.
|
java.util.List<? extends IUseCase> |
getAllUseCases(java.lang.String sortingProperty)
Returns all use cases of the project.
|
java.util.List<? extends IUseCase> |
getAllUseCasesForHistoryItem(com.arcway.cockpit.docgen.provider.interfaces.IHistoryEntry historyEntry)
Returns all use cases which have been modified the last time with the
commit identified by the history item.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithCategory(java.lang.String categoryID)
Returns all use cases of the project that belong to the specified category.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithCategory(java.lang.String categoryID,
int sortingCriterion)
Returns all use cases of the project that belong to the specified category.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithCategory(java.lang.String categoryID,
java.lang.String sortingProperty)
Returns all use cases of the project that belong to the specified category.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithDefaultCategory()
Returns all use cases of the project that belong to the default category.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithDefaultCategory(int sortingCriterion)
Returns all use cases of the project that belong to the default category.
|
java.util.List<? extends IUseCase> |
getAllUseCasesWithDefaultCategory(java.lang.String sortingProperty)
Returns all use cases of the project that belong to the default category.
|
java.lang.String |
getOutputFormat()
Returns the output format for use cases preferred by the user.
|
int |
getSORT_USECASE_BY_ID() |
int |
getSORT_USECASE_BY_INITIATOR() |
int |
getSORT_USECASE_BY_LEVEL() |
int |
getSORT_USECASE_BY_MAINACTOR() |
int |
getSORT_USECASE_BY_PRIORITY() |
int |
getSORT_USECASE_BY_STATE() |
java.util.List<? extends IUseCase> |
getUseCasesForUniqueElement(java.lang.String uniqueElementUID)
Returns all use cases that are linked to a unique element.
|
java.util.List<? extends IUseCase> |
getUseCasesForUniqueElement(java.lang.String uniqueElementUID,
int sortingCriterion)
Returns all use cases that are linked to a unique element.
|
java.util.List<? extends IUseCase> |
getUseCasesForUniqueElement(java.lang.String uniqueElementUID,
java.lang.String sortingProperty)
Returns all use cases that are linked to a unique element.
|
boolean |
hasActionStepsForUniqueElement(java.lang.String uniqueElementUID)
Checks whether a unique element has linked action steps.
|
boolean |
hasUseCasesForUniqueElement(java.lang.String uniqueElementUID)
Checks whether a unique element has linked use cases.
|
int getSORT_USECASE_BY_ID()
int getSORT_USECASE_BY_INITIATOR()
int getSORT_USECASE_BY_MAINACTOR()
int getSORT_USECASE_BY_LEVEL()
int getSORT_USECASE_BY_PRIORITY()
int getSORT_USECASE_BY_STATE()
java.lang.String getOutputFormat()
PreferenceManager.INLINE_EXTENDING_SCENARIOS for showing
extending scenarios inline in the extended scenarioPreferenceManager.SEPARATE_EXTENDING_SCENARIOS for showing the
extending scenarios after the extended scenariojava.util.List<? extends IUseCaseCategory> getAllUseCaseCategories()
The categories are sorted by name.
java.util.List<? extends IUseCaseCategory> getAllUseCaseCategoriesWithCategory(java.lang.String categoryID)
The categories are sorted by name.
categoryID - the category IDjava.util.List<? extends IUseCaseCategory> getAllUseCaseCategoriesWithDefaultCategory()
The categories are sorted by name.
java.util.List<? extends IUseCaseCategory> getAllUseCaseCategories(java.lang.String sortingProperty)
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IUseCaseCategory> getAllUseCaseCategoriesWithCategory(java.lang.String categoryID, java.lang.String sortingProperty)
categoryID - the category IDsortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IUseCaseCategory> getAllUseCaseCategoriesWithDefaultCategory(java.lang.String sortingProperty)
VTL-Codebeispiel:
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IUseCase> getAllUseCases()
The use cases are sorted by id.
java.util.List<? extends IUseCase> getAllUseCasesWithCategory(java.lang.String categoryID)
The use cases are sorted by id.
categoryID - the category IDjava.util.List<? extends IUseCase> getAllUseCasesWithDefaultCategory()
The use cases are sorted by id.
java.util.List<? extends IUseCase> getAllUseCases(int sortingCriterion)
VTL-Codebeispiel:
#foreach( $useCase in ${usecaseDataProvider.getUseCases($usecaseDataProvider.SORT_USECASE_BY_INITIATOR)} )
...
#end ##foreach
sortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IUseCase> getAllUseCasesWithCategory(java.lang.String categoryID, int sortingCriterion)
VTL-Codebeispiel:
#foreach( $useCase in ${usecaseDataProvider.getUseCases($usecaseDataProvider.SORT_USECASE_BY_INITIATOR)} )
...
#end ##foreach
categoryID - the category IDsortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IUseCase> getAllUseCasesWithDefaultCategory(int sortingCriterion)
VTL-Codebeispiel:
#foreach( $useCase in ${usecaseDataProvider.getUseCases($usecaseDataProvider.SORT_USECASE_BY_INITIATOR)} )
...
#end ##foreach
sortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IUseCase> getAllUseCases(java.lang.String sortingProperty)
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IUseCase> getAllUseCasesWithCategory(java.lang.String categoryID, java.lang.String sortingProperty)
categoryID - the categoryIDsortingProperty - specifies the custom property which shall be used as a criterion for
sorting.java.util.List<? extends IUseCase> getAllUseCasesWithDefaultCategory(java.lang.String sortingProperty)
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.boolean hasUseCasesForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - UID of the unique elementboolean hasActionStepsForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - UID of the unique element.java.util.List<? extends IUseCase> getUseCasesForUniqueElement(java.lang.String uniqueElementUID)
The use cases are sorted by ID.
uniqueElementUID - UID of the unique elementjava.util.List<? extends IUseCase> getUseCasesForUniqueElement(java.lang.String uniqueElementUID, int sortingCriterion)
uniqueElementUID - UID of the unique elementsortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IUseCase> getUseCasesForUniqueElement(java.lang.String uniqueElementUID, java.lang.String sortingProperty)
uniqueElementUID - UID of the unique elementsortingProperty - specifies the custom property which shall be used as a criterion for
sortingjava.util.List<? extends IActionStep> getActionStepsForUniqueElement(java.lang.String uniqueElementUID)
uniqueElementUID - unique identifier of the unique elementjava.util.List<? extends IUseCaseCategory> getAllUseCaseCategoriesForHistoryItem(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 use case category is only assigned to the history item for the commit of the last change of the use case category. 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 IUseCase> getAllUseCasesForHistoryItem(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 use case is only assigned to the history item for the commit of the last change of the use case. 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 IScenario> getAllScenariosForHistoryItem(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 scenario is only assigned to the history item for the commit of the last change of the scenario. 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 IActionStep> getAllActionStepsForHistoryItem(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 action step is only assigned to the history item for the commit of the last change of the action step. This method does not allow to access old versions.
Preconditions:none
Postconditions:none
historyEntry - history item identifying the last change of the plans