Interface DataSetListService
- All Superinterfaces:
IdentifiedService<DataSetList>,LabelProviderService
- All Known Implementing Classes:
DataSetListServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckOnDuplicate(UUID visibilityArea, String newNameDsl) Copy of dataSetLists and dataSets in it.Copy data set list.voidDeletes DS by id.voidevictAllAffectedDatasetsFromContextCacheByDslId(UUID updatedDataSetListId) Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.booleanexistsById(UUID dataSetListId) Check if dsl exists.getAffectedAttributes(UUID dataSetListId) Get affected attribute by dsl.getAffectedAttributes(UUID dataSetListId, Integer page, Integer size) Get affected attribute by dsl.getAffectedAttributesCount(UUID dataSetListId) Get affected DSL count by dataSetListId.getAffectedDataSetLists(UUID dataSetListId, Integer limit, Integer offset) Get affected DSL by dataSetListId.default List<DataSetList> Deprecated.only for cases when the evaluate parameter equals true.getAsTree(UUID id, boolean evaluate, Collection<UUID> dataSetsFilter, boolean isSortEnabled) Deprecated.only for cases when the evaluate parameter equals true.getAsTree(UUID id, boolean evaluate, Collection<UUID> dataSetsFilter, Collection<UUID> dataAttributeFilter, Integer startIndex, Integer endIndex, boolean isSort, boolean expandAll) Deprecated.only for cases when the evaluate parameter equals true.getByNameUnderVisibilityArea(UUID visibilityArea, String name) getChildren(UUID dataSetListId, boolean evaluate) getChildren(UUID dataSetListId, boolean evaluate, String labelName) Returns all datasets under targetDataSetList.getListOfDsIdsAndNameAndDslId(List<UUID> dataSetListIds) Get list of dsId, dsNme, dslId for each datasetlist.getModifiedWhen(UUID dataSetListId) Get modifiedWhen by dataSetListId.booleanRename dsl or add test plan to dsl.booleanvoidrevert(UUID sagaSessionId, RevertRequest request) voidupdateModifiedFields(UUID dataSetListId, UUID modifiedBy, Timestamp modifiedWhen) Methods inherited from interface org.qubership.atp.dataset.service.direct.IdentifiedService
get, getAllMethods inherited from interface org.qubership.atp.dataset.service.direct.LabelProviderService
getLabels, mark, unmark
-
Method Details
-
getAsFlat
-
getAsTree
@Deprecated @Nullable UiManDataSetList getAsTree(UUID id, boolean evaluate, @Nullable Collection<UUID> dataSetsFilter, @Nullable Collection<UUID> dataAttributeFilter, Integer startIndex, Integer endIndex, boolean isSort, boolean expandAll) Deprecated.only for cases when the evaluate parameter equals true. UseJpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType)instead.To get as tree with filter by datasets and attributes. -
getAsTree
@Nullable UiManDataSetList getAsTree(UUID id, boolean evaluate, @Nullable Collection<UUID> dataSetsFilter, boolean isSortEnabled) Deprecated.only for cases when the evaluate parameter equals true. UseJpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType)instead.To get as tree with filter by datasets only. -
getAsTree
Deprecated.only for cases when the evaluate parameter equals true. UseJpaDataSetService.getDataSetTreeInAtpFormat(UUID, boolean, String, ContextType)instead.To get as tree without any filters. -
checkOnDuplicate
-
create
@Nonnull DataSetList create(@Nonnull UUID visibilityArea, @Nonnull String name, @Nullable UUID testPlanId) -
getAll
-
getAll
-
getAll
-
rename
-
getByNameUnderVisibilityArea
-
getChildren
-
getChildren
List<DataSet> getChildren(@Nonnull UUID dataSetListId, boolean evaluate, @Nullable String labelName) Returns all datasets under targetDataSetList.- Parameters:
dataSetListId- - id of targetDataSetList.evaluate- - should apply structure changes or not.labelName- label name to filter with
-
delete
Deletes DS by id. -
copy
DataSetList copy(@Nonnull UUID visibilityArea, @Nonnull UUID dataSetListId, @Nonnull String name, @Nullable Boolean withData, @Nullable UUID testPlanId) throws Exception Copy data set list.- Throws:
Exception
-
copy
Map<UUID,org.apache.commons.lang3.tuple.Pair<UUID, copyUUID>> (String name, Map<UUID, Set<UUID>> data) Copy of dataSetLists and dataSets in it.- Parameters:
name- - new DSL namedata- - DSL to copy with it's DSs to copy- Returns:
- - structure wich contains mapping of old DS and pair of new DS and DSL
-
modify
Rename dsl or add test plan to dsl.- Parameters:
dataSetListId- dsl id.name- new name of dsl.testPlanId- new test plan id for dsl.clearTestPlan- true if you want test plan in dsl be null.- Returns:
- success or failure of update entity.
- Throws:
IllegalArgumentException- if dsl's and testPlan's visibility area ids are not equals.
-
getListOfDsIdsAndNameAndDslId
Get list of dsId, dsNme, dslId for each datasetlist.- Parameters:
dataSetListIds- dsl ids.- Returns:
- list of DsIdNameDslId.
-
getAffectedAttributes
PaginationResponse<TableResponse> getAffectedAttributes(UUID dataSetListId, Integer page, Integer size) Get affected attribute by dsl. -
getAffectedAttributes
Get affected attribute by dsl. -
updateModifiedFields
-
existsById
Check if dsl exists.- Specified by:
existsByIdin interfaceIdentifiedService<DataSetList>- Parameters:
dataSetListId- DSL id- Returns:
- 'true' if dsl exists, otherwise 'false'
-
getAffectedDataSetLists
List<AffectedDataSetList> getAffectedDataSetLists(@Nonnull UUID dataSetListId, @Nullable Integer limit, @Nullable Integer offset) Get affected DSL by dataSetListId.- Parameters:
dataSetListId- DSL idlimit- number of rows that are returnedoffset- number of rows that are skipped- Returns:
- list with DSL id and DSL name
-
getModifiedWhen
Get modifiedWhen by dataSetListId.- Parameters:
dataSetListId- dataSetListId- Returns:
Timestampof modified
-
getAffectedAttributesCount
Get affected DSL count by dataSetListId.- Parameters:
dataSetListId- DSL id- Returns:
- affected DSL count
-
evictAllAffectedDatasetsFromContextCacheByDslId
Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.- Parameters:
updatedDataSetListId- updated dataset list id
-
revert
-