Class JpaDataSetServiceImpl
java.lang.Object
org.qubership.atp.dataset.service.jpa.impl.JpaDataSetServiceImpl
- All Implemented Interfaces:
JpaDataSetService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CacheCleanupServiceprotected CompareServiceprotected JpaDataSetListServiceprotected DataSetListSnapshotServiceprotected DataSetParameterProviderprotected DateAuditorServiceprotected GridFsServiceprotected JpaAttributeServiceprotected JpaParameterServiceprotected MacroContextServiceprotected org.qubership.atp.macros.core.calculator.MacrosCalculatorprotected org.qubership.atp.macros.core.client.MacrosFeignClientprotected ModelsProviderprotected com.fasterxml.jackson.databind.ObjectMapperprotected JpaDataSetService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyDsAttributeValue(UUID sourceDsId, UUID targetDsId, UUID sourceAttrId, UUID targetAttrId) Copy value from source ds to target ds by attr id.voidcopyDsAttributeValueBulk(UUID sourceDsId, UUID targetDsId) Copy values from source ds to target ds.createDsSelectJavers(String name, UUID dataSetListId, boolean isJavers) getByDataSetListId(UUID dataSetList) getByDataSetListIdIn(Collection<UUID> dataSetListIds) getByIds(Collection<UUID> ids) getByNameAndDataSetListId(String name, UUID dataSetList) getBySourceAndDataSetListId(UUID sourceId, UUID dataSetList) getDatasetListContext(UUID dataSetId) org.springframework.data.domain.Page<AbstractEntityResponse> getDatasetsIdNamesPageByNameAndVaId(String name, UUID visibilityAreaId, org.springframework.data.domain.Pageable pageable) getDataSetTreeInAtpFormat(UUID dataSetId, boolean evaluate, String atpContextString, ContextType contextType) List<org.json.simple.JSONObject> getDataSetTreeInAtpFormat(UUID dataSetId, boolean evaluate, String atpContextString, ContextType contextType, Integer numberOfCopies) getDataSetTreeInItfFormat(UUID dataSetId) getLockedDataSets(UUID dataSetList) voidSets DataSet flag locked by DataSet id.voidvoidvoidsetOverlapValue(ParameterValue value, UUID dataSetId, UUID foreignAttributeId, List<UUID> attributePath) Sets parameter value by attribute id.setParameterValue(ParameterValue value, UUID dataSetId, UUID attributeId) Sets parameter value by attribute id.voidsetPosition(UUID dataSetId, Integer position)
-
Field Details
-
dataSetListService
-
jpaParameterService
-
dataSetParameterProvider
-
macroContextService
-
modelsProvider
-
cacheCleanupService
-
self
-
macrosFeignClient
@Autowired protected org.qubership.atp.macros.core.client.MacrosFeignClient macrosFeignClient -
macrosCalculator
@Autowired protected org.qubership.atp.macros.core.calculator.MacrosCalculator macrosCalculator -
dataSetListSnapshotService
-
dateAuditorService
-
compareService
-
jpaAttributeService
-
gridFsService
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
JpaDataSetServiceImpl
public JpaDataSetServiceImpl()
-
-
Method Details
-
getDataSetTreeInAtpFormat
@Transactional(readOnly=true) public DataSetTree getDataSetTreeInAtpFormat(UUID dataSetId, boolean evaluate, String atpContextString, ContextType contextType) - Specified by:
getDataSetTreeInAtpFormatin interfaceJpaDataSetService
-
getDataSetTreeInAtpFormat
@Transactional(readOnly=true) public List<org.json.simple.JSONObject> getDataSetTreeInAtpFormat(UUID dataSetId, boolean evaluate, String atpContextString, ContextType contextType, Integer numberOfCopies) - Specified by:
getDataSetTreeInAtpFormatin interfaceJpaDataSetService
-
getDatasetListContext
@Cacheable(value="ATP_DATASETS_DATASET_LIST_CONTEXT_CACHE_OS", key="#dataSetId") public DataSetListContext getDatasetListContext(UUID dataSetId) - Specified by:
getDatasetListContextin interfaceJpaDataSetService
-
remove
- Specified by:
removein interfaceJpaDataSetService
-
getDataSetTreeInItfFormat
- Specified by:
getDataSetTreeInItfFormatin interfaceJpaDataSetService
-
create
- Specified by:
createin interfaceJpaDataSetService
-
createDsSelectJavers
@Transactional public DataSet createDsSelectJavers(String name, UUID dataSetListId, boolean isJavers) - Specified by:
createDsSelectJaversin interfaceJpaDataSetService
-
replicate
@Transactional public DataSet replicate(UUID id, String name, UUID dataSetListId, Long ordering, UUID sourceId, Boolean isLocked) throws DataSetServiceException - Specified by:
replicatein interfaceJpaDataSetService- Throws:
DataSetServiceException
-
setParameterValue
@Transactional public Parameter setParameterValue(ParameterValue value, UUID dataSetId, UUID attributeId) Sets parameter value by attribute id. Value can be String, UUID, or File.- Specified by:
setParameterValuein interfaceJpaDataSetService
-
lock
Sets DataSet flag locked by DataSet id.- Specified by:
lockin interfaceJpaDataSetService
-
setOverlapValue
@Transactional public void setOverlapValue(ParameterValue value, UUID dataSetId, UUID foreignAttributeId, List<UUID> attributePath) Sets parameter value by attribute id. Value can be String, UUID, or File.- Specified by:
setOverlapValuein interfaceJpaDataSetService
-
getById
- Specified by:
getByIdin interfaceJpaDataSetService
-
getByIds
- Specified by:
getByIdsin interfaceJpaDataSetService
-
save
- Specified by:
savein interfaceJpaDataSetService
-
setPosition
- Specified by:
setPositionin interfaceJpaDataSetService
-
getByNameAndDataSetListId
- Specified by:
getByNameAndDataSetListIdin interfaceJpaDataSetService
-
getByDataSetListId
- Specified by:
getByDataSetListIdin interfaceJpaDataSetService
-
getLockedDataSets
- Specified by:
getLockedDataSetsin interfaceJpaDataSetService
-
getByDataSetListIdIn
- Specified by:
getByDataSetListIdInin interfaceJpaDataSetService
-
getBySourceAndDataSetListId
- Specified by:
getBySourceAndDataSetListIdin interfaceJpaDataSetService
-
getDatasetsIdNamesPageByNameAndVaId
@Transactional(readOnly=true) public org.springframework.data.domain.Page<AbstractEntityResponse> getDatasetsIdNamesPageByNameAndVaId(String name, UUID visibilityAreaId, org.springframework.data.domain.Pageable pageable) - Specified by:
getDatasetsIdNamesPageByNameAndVaIdin interfaceJpaDataSetService
-
getDataSetsListIdByDataSetId
-
copyDsAttributeValueBulk
Copy values from source ds to target ds.- Specified by:
copyDsAttributeValueBulkin interfaceJpaDataSetService- Parameters:
sourceDsId- source dataset idtargetDsId- target dataset id
-
copyDsAttributeValue
@Transactional public UUID copyDsAttributeValue(UUID sourceDsId, UUID targetDsId, @Nullable UUID sourceAttrId, @Nullable UUID targetAttrId) Copy value from source ds to target ds by attr id. If source attribute id and target attribute id are null then do nothing- Specified by:
copyDsAttributeValuein interfaceJpaDataSetService- Parameters:
sourceDsId- source dataset idtargetDsId- target dataset idsourceAttrId- source attribute id, may be nulltargetAttrId- target attribute id, may be null- Returns:
- targetAttributeId
-