Interface DataSetService
- All Superinterfaces:
IdentifiedService<DataSet>,LabelProviderService
- All Known Implementing Classes:
DataSetServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptioncollectAffectedDatasetsByDsId(UUID updatedDataSetId) Collects all affected DataSet Ids recursively.collectAffectedDatasetsByDslId(UUID updatedDataSetListId) Collects all affected DataSet Ids recursively.Copy DS.Copy DS to another dsl.Copy DS to another dsl.voidDelete DS by id.voiddeleteAllParameterOverlaps(UUID attributeId, List<UUID> dataSetsIds) deleteParameterOverlap(UUID dsId, UUID targetAttrId, List<UUID> attrPathIds) voidevictAllAffectedDatasetsFromContextCacheByDsId(UUID updatedDataSetId) Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.voidevictAllAffectedDatasetsFromContextCacheByDslId(UUID updatedDataSetListId) Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.getAffectedDataSets(UUID dataSetId, Integer page, Integer size) List<?> getAffectedDataSetsByChangesDataSetReference(UUID dataSetId, boolean deleteDs) Return all datasets which contains overlapped parameters.getAffectedDataSetsCount(UUID dataSetId) getAllDslDsByAttribute(UUID targetAttrId, List<UUID> attrPathIds) getByParentId(UUID dataSetListId) Returns all datasets (id + name) under targetDataSetList.getByParentId(UUID dataSetListId, boolean evaluate, String labelName) Returns all datasets under targetDataSetList.com.fasterxml.jackson.databind.node.ObjectNodeList<?> getOverlapContainers(UUID dataSetId, UUID attributeId, boolean withInfo) Return all datasets which contains overlapped parameters.getParametersOnAttributePath(UUID dslId, List<UUID> attrPath, boolean evaluate) Returns attribute with parameters found by provided path.voidLock the datasets and their parameters from changes.voidbooleanrestore(com.fasterxml.jackson.databind.JsonNode dataSetJson) writeInAtpFormat(MixInId id, Map<String, String> context, boolean evaluate) Methods inherited from interface org.qubership.atp.dataset.service.direct.IdentifiedService
existsById, get, getAllMethods inherited from interface org.qubership.atp.dataset.service.direct.LabelProviderService
getLabels, mark, unmark
-
Method Details
-
create
-
getInItfFormat
-
writeInAtpFormat
@Nullable CheckedConsumer<OutputStream,IOException> writeInAtpFormat(@Nonnull MixInId id, @Nullable Map<String, String> context, boolean evaluate) -
getAll
-
getAllDslDsByAttribute
-
rename
-
delete
Delete DS by id. -
copy
Copy DS. -
copy
DataSet copy(@Nonnull UUID dataSetId, @Nonnull UUID dataSetListId, @Nonnull Map<UUID, UUID> attributes) Copy DS to another dsl.- Parameters:
dataSetListId- - id of dsl where to copy.attributes- - mapping of old and new attributes if ds copied to another dsl.- Returns:
- data set with parameters and labels.
-
copy
DataSet copy(@Nonnull DataSet dataSet, @Nonnull UUID dataSetListId, @Nonnull Map<UUID, UUID> attributes) Copy DS to another dsl. -
getOverlapContainers
Return all datasets which contains overlapped parameters.- Returns:
- DataSets with parameter overlaps on the target attribute provided.
-
getAffectedDataSetsByChangesDataSetReference
Return all datasets which contains overlapped parameters. -
getParametersOnAttributePath
@Nullable UiManAttribute getParametersOnAttributePath(@Nonnull UUID dslId, @Nonnull List<UUID> attrPath, boolean evaluate) Returns attribute with parameters found by provided path.- Parameters:
attrPath- path to attribute inclusive
-
deleteAllParameterOverlaps
-
deleteParameterOverlap
Parameter deleteParameterOverlap(@Nonnull UUID dsId, @Nonnull UUID targetAttrId, @Nonnull List<UUID> attrPathIds) - Returns:
- the parameter which lays underneath deleted overlap.
-
getByParentId
Returns all datasets under targetDataSetList.- Parameters:
dataSetListId- - id of targetDataSetList.evaluate- - should apply structure changes or not.labelName- - name of a label.- Returns:
- list of
DataSetunder targetDataSetList.
-
getByParentId
Returns all datasets (id + name) under targetDataSetList.- Parameters:
dataSetListId- - id of targetDataSetList.- Returns:
- list of
DataSetunder targetDataSetList.
-
restore
boolean restore(@Nonnull com.fasterxml.jackson.databind.JsonNode dataSetJson) -
getAffectedDataSets
-
getAffectedDataSetsCount
-
lock
Lock the datasets and their parameters from changes.- Parameters:
dataSetListId- dataSetList Iduuids- Ids datasetsisLock- Flag true/false lock
-
evictAllAffectedDatasetsFromContextCacheByDslId
Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.- Parameters:
updatedDataSetListId- updated dataset list id
-
evictAllAffectedDatasetsFromContextCacheByDsId
Evict affected datasets from ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE cache.- Parameters:
updatedDataSetId- updated dataset id
-
collectAffectedDatasetsByDslId
Collects all affected DataSet Ids recursively. Used then dsl updated or attribute created/updated/deleted- Parameters:
updatedDataSetListId- updated dataSetList id- Returns:
- set of updated dataset ids include updatedDataSetId
-
collectAffectedDatasetsByDsId
Collects all affected DataSet Ids recursively. Used then dataset updated or parameter updated- Parameters:
updatedDataSetId- updated dataSet id- Returns:
- set of updated dataset ids include updatedDataSetId
-