Package org.qubership.atp.tdm.repo.impl
Class AtpActionRepositoryImpl
java.lang.Object
org.qubership.atp.tdm.repo.impl.AtpActionRepositoryImpl
- All Implemented Interfaces:
AtpActionRepository
-
Constructor Summary
ConstructorsConstructorDescriptionAtpActionRepositoryImpl(CatalogRepository catalogRepository, TestDataTableRepository testDataTableRepository, CleanupConfigRepository cleanupConfigRepository, ColumnService columnService, DataRefreshService dataRefreshService, TestDataFlagsService testDataFlagsService, CleanupServiceImpl cleanupService, org.qubership.atp.common.lock.LockManager lockManager) AtpActionRepository Constructor. -
Method Summary
Modifier and TypeMethodDescriptionaddInfoToRow(UUID projectId, UUID systemId, String tableTitle, List<AddInfoToRowRequest> addInfoToRowRequests) getMultipleColumnTestData(UUID projectId, UUID systemId, String tableTitle, List<GetRowRequest> getRowRequests, String resultLink) Getting data from DB and creating ResponseMessage.getTestData(UUID projectId, UUID systemId, String tableTitle, List<GetRowRequest> getRowRequests) insertTestData(UUID projectId, UUID systemId, UUID environmentId, String tableTitle, List<Map<String, Object>> records, String resultLink) occupyTestData(UUID projectId, UUID systemId, String tableTitle, String occupiedBy, List<OccupyRowRequest> occupyRowRequests, String resultLink) occupyTestDataFullRow(UUID projectId, UUID systemId, String tableTitle, String occupiedBy, List<OccupyFullRowRequest> occupyRowRequests, String resultLink) refreshTables(UUID projectId, UUID systemId, String tableTitle, String tdmUrl) releaseFullTestData(UUID projectId, UUID systemId, String tableTitle) releaseTestData(UUID projectId, UUID systemId, String tableTitle, List<ReleaseRowRequest> releaseRowRequests) runCleanupForTable(UUID projectId, UUID systemId, String tableTitle) truncateTable(UUID projectId, UUID systemId, String tableTitle) updateTestData(UUID projectId, UUID systemId, String tableTitle, List<UpdateRowRequest> updateRowRequests)
-
Constructor Details
-
AtpActionRepositoryImpl
@Autowired public AtpActionRepositoryImpl(@Nonnull CatalogRepository catalogRepository, @Nonnull TestDataTableRepository testDataTableRepository, @Nonnull CleanupConfigRepository cleanupConfigRepository, @Nonnull ColumnService columnService, @Nonnull DataRefreshService dataRefreshService, @Nonnull TestDataFlagsService testDataFlagsService, @Nonnull CleanupServiceImpl cleanupService, @Nonnull org.qubership.atp.common.lock.LockManager lockManager) AtpActionRepository Constructor.
-
-
Method Details
-
insertTestData
public ResponseMessage insertTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nullable UUID environmentId, @Nonnull String tableTitle, List<Map<String, Object>> records, @Nonnull String resultLink) - Specified by:
insertTestDatain interfaceAtpActionRepository
-
occupyTestData
public List<ResponseMessage> occupyTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull String occupiedBy, @Nonnull List<OccupyRowRequest> occupyRowRequests, @Nonnull String resultLink) - Specified by:
occupyTestDatain interfaceAtpActionRepository
-
occupyTestDataFullRow
public List<ResponseMessage> occupyTestDataFullRow(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull String occupiedBy, List<OccupyFullRowRequest> occupyRowRequests, @Nonnull String resultLink) - Specified by:
occupyTestDataFullRowin interfaceAtpActionRepository
-
releaseTestData
public List<ResponseMessage> releaseTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull List<ReleaseRowRequest> releaseRowRequests) - Specified by:
releaseTestDatain interfaceAtpActionRepository
-
releaseFullTestData
public List<ResponseMessage> releaseFullTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle) - Specified by:
releaseFullTestDatain interfaceAtpActionRepository
-
updateTestData
public List<ResponseMessage> updateTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull List<UpdateRowRequest> updateRowRequests) - Specified by:
updateTestDatain interfaceAtpActionRepository
-
getMultipleColumnTestData
public List<ResponseMessage> getMultipleColumnTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, List<GetRowRequest> getRowRequests, @Nonnull String resultLink) Getting data from DB and creating ResponseMessage.- Specified by:
getMultipleColumnTestDatain interfaceAtpActionRepository- Parameters:
tableTitle- Displayed title of table.getRowRequests- Getting data description.resultLink- Link to TDM table.- Returns:
- Response with multiple column values.
-
getTestData
public List<ResponseMessage> getTestData(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull List<GetRowRequest> getRowRequests) - Specified by:
getTestDatain interfaceAtpActionRepository
-
addInfoToRow
public List<ResponseMessage> addInfoToRow(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, List<AddInfoToRowRequest> addInfoToRowRequests) - Specified by:
addInfoToRowin interfaceAtpActionRepository
-
refreshTables
public List<ResponseMessage> refreshTables(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle, @Nonnull String tdmUrl) - Specified by:
refreshTablesin interfaceAtpActionRepository
-
truncateTable
public List<ResponseMessage> truncateTable(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle) - Specified by:
truncateTablein interfaceAtpActionRepository
-
runCleanupForTable
public List<ResponseMessage> runCleanupForTable(@Nonnull UUID projectId, @Nullable UUID systemId, @Nonnull String tableTitle) - Specified by:
runCleanupForTablein interfaceAtpActionRepository
-