Class JpaDataSetListServiceImpl
java.lang.Object
org.qubership.atp.dataset.service.jpa.impl.JpaDataSetListServiceImpl
- All Implemented Interfaces:
JpaDataSetListService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataSetListAsyncServiceprotected DataSetListContextServiceprotected ModelsProviderprotected DataSetParameterProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDslNames(UUID visibilityArea) copyDataSetLists(List<UUID> dataSetListIds, boolean updateReferences, String postfix, String prevNamePattern) Copy DSLs.copyDataSetLists(List<UUID> dataSetListIds, boolean updateReferences, UUID targetVisibilityAreaId, String postfix, String prevNamePattern, UUID sagaSessionId) Copy DSLs.getByNameAndVisibilityAreaId(String name, UUID visibilityArea) getBySourceIdAndVisibilityAreaId(UUID sourceId, UUID visibilityAreaId) getByVisibilityAreaId(UUID visibilityAreaId) getDataSetListContext(UUID dataSetListId, List<UUID> dataSetsIds) getDataSetListContext(UUID dataSetListId, List<UUID> dataSetsIds, org.springframework.data.domain.Pageable pageable) getDataSetListFlat(UUID dataSetListId) For top level DSL.getDataSetsIdsByDataSetListId(UUID dataSetListId) getDependencies(List<UUID> dataSetListIds) getDependencies(UUID dataSetListId) Returns DSL dependency tree.getDependenciesRecursive(List<UUID> dataSetListIds) getModifiedWhen(UUID dataSetListId) Path as list of UUIDs.getReferencedDataSetListFlat(UUID dataSetListId, UUID dataSetListAttributeId, String attributePath, List<UUID> dataSetIds, org.springframework.data.domain.Pageable pageable) For referenced DSL.getReferencedDataSetListFlatRows(UUID dataSetListId, UUID dataSetListAttributeId, String attributePath, List<UUID> dataSetIds, org.springframework.data.domain.Pageable pageable) For referenced DSL.voidreplicate(UUID id, String name, UUID visibilityAreaId, UUID sourceId, UUID createdBy, Timestamp createdWhen, UUID modifiedBy, Timestamp modifiedWhen) voidsave(DataSetList dataSetList)
-
Field Details
-
dataSetListContextService
-
modelsProvider
-
parameterProvider
-
dataSetListAsyncService
-
-
Constructor Details
-
JpaDataSetListServiceImpl
public JpaDataSetListServiceImpl()
-
-
Method Details
-
getDataSetListFlat
For top level DSL.- Specified by:
getDataSetListFlatin interfaceJpaDataSetListService
-
copyDataSetLists
@Transactional public List<CopyDataSetListsResponse> copyDataSetLists(List<UUID> dataSetListIds, boolean updateReferences, String postfix, String prevNamePattern) Copy DSLs. If updateReferences == true - updates attributes DSL references with new DSL ids from copy scope.- Specified by:
copyDataSetListsin interfaceJpaDataSetListService
-
copyDataSetLists
@Transactional public List<CopyDataSetListsResponse> copyDataSetLists(List<UUID> dataSetListIds, boolean updateReferences, UUID targetVisibilityAreaId, String postfix, String prevNamePattern, @Nullable UUID sagaSessionId) Copy DSLs. If updateReferences == true - updates attributes DSL references with new DSL ids from copy scope.- Specified by:
copyDataSetListsin interfaceJpaDataSetListService
-
getById
- Specified by:
getByIdin interfaceJpaDataSetListService
-
remove
- Specified by:
removein interfaceJpaDataSetListService
-
create
- Specified by:
createin interfaceJpaDataSetListService
-
replicate
@Transactional public DataSetList replicate(UUID id, String name, UUID visibilityAreaId, UUID sourceId, UUID createdBy, Timestamp createdWhen, UUID modifiedBy, Timestamp modifiedWhen) throws DataSetServiceException - Specified by:
replicatein interfaceJpaDataSetListService- Throws:
DataSetServiceException
-
getReferencedDataSetListFlat
@Transactional(readOnly=true) public RefDataSetListFlat getReferencedDataSetListFlat(UUID dataSetListId, UUID dataSetListAttributeId, String attributePath, @Nullable List<UUID> dataSetIds, org.springframework.data.domain.Pageable pageable) For referenced DSL.- Specified by:
getReferencedDataSetListFlatin interfaceJpaDataSetListService
-
getReferencedDataSetListFlatRows
@Transactional(readOnly=true) public RefDataSetListFlat getReferencedDataSetListFlatRows(UUID dataSetListId, UUID dataSetListAttributeId, String attributePath, @Nullable List<UUID> dataSetIds, org.springframework.data.domain.Pageable pageable) For referenced DSL.- Specified by:
getReferencedDataSetListFlatRowsin interfaceJpaDataSetListService
-
getPath
Path as list of UUIDs. -
getDataSetListContext
@Transactional(readOnly=true) public DataSetListContext getDataSetListContext(UUID dataSetListId, List<UUID> dataSetsIds, org.springframework.data.domain.Pageable pageable) - Specified by:
getDataSetListContextin interfaceJpaDataSetListService
-
getDataSetListContext
@Transactional(readOnly=true) public DataSetListContext getDataSetListContext(UUID dataSetListId, List<UUID> dataSetsIds) - Specified by:
getDataSetListContextin interfaceJpaDataSetListService
-
save
- Specified by:
savein interfaceJpaDataSetListService
-
getDependencies
@Transactional(readOnly=true) public List<DataSetListDependencyNode> getDependencies(List<UUID> dataSetListIds) - Specified by:
getDependenciesin interfaceJpaDataSetListService
-
getDependencies
Returns DSL dependency tree. -
getDependenciesRecursive
- Specified by:
getDependenciesRecursivein interfaceJpaDataSetListService
-
getByNameAndVisibilityAreaId
- Specified by:
getByNameAndVisibilityAreaIdin interfaceJpaDataSetListService
-
getByVisibilityAreaId
- Specified by:
getByVisibilityAreaIdin interfaceJpaDataSetListService
-
getBySourceIdAndVisibilityAreaId
- Specified by:
getBySourceIdAndVisibilityAreaIdin interfaceJpaDataSetListService
-
getModifiedWhen
- Specified by:
getModifiedWhenin interfaceJpaDataSetListService
-
getDataSetsIdsByDataSetListId
- Specified by:
getDataSetsIdsByDataSetListIdin interfaceJpaDataSetListService
-
checkDslNames
- Specified by:
checkDslNamesin interfaceJpaDataSetListService
-