Class MiaExecutionController
java.lang.Object
org.qubership.atp.mia.controllers.MiaExecutionController
IMPORTANT!!! The first parameter in the request must be projectId, the second must be env,
the third must be ExecutionRequest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<LinkedList<ExecutionResponse>> executeCompound(UUID projectId, String env, ExecutionRequest request) Executes compound.org.springframework.http.ResponseEntity<List<SqlResponse>> executeCurrentStatement(UUID projectId, String env, ExecutionRequest request) Executes current statement queries.org.springframework.http.ResponseEntity<ExecutionResponse> executeProcess(UUID projectId, String env, ExecutionRequest request) Executes process.getNextBillDate(UUID projectId, String env, ExecutionRequest request) Get NextBillDate.
-
Constructor Details
-
MiaExecutionController
public MiaExecutionController()
-
-
Method Details
-
executeCompound
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.mia.model.UserManagementEntities).COMPOUND.getName(),#projectId, \'EXECUTE\')") @PostMapping("/flow/execute/compound") public org.springframework.http.ResponseEntity<LinkedList<ExecutionResponse>> executeCompound(@RequestParam("projectId") UUID projectId, @RequestParam("env") String env, @RequestBody ExecutionRequest request) Executes compound. -
executeCurrentStatement
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.mia.model.UserManagementEntities).PROCESS.getName(),#projectId, \"EXECUTE\")") @PostMapping("/flow/execute/current/statement") public org.springframework.http.ResponseEntity<List<SqlResponse>> executeCurrentStatement(@RequestParam("projectId") UUID projectId, @RequestParam("env") String env, @RequestBody ExecutionRequest request) Executes current statement queries. -
executeProcess
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.mia.model.UserManagementEntities).PROCESS.getName(),#projectId, \'EXECUTE\')") @PostMapping("/flow/execute/process") public org.springframework.http.ResponseEntity<ExecutionResponse> executeProcess(@RequestParam("projectId") UUID projectId, @RequestParam("env") String env, @RequestBody ExecutionRequest request) Executes process. -
getNextBillDate
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.mia.model.UserManagementEntities).PROCESS.getName(),#projectId, \"EXECUTE\")") @PostMapping("/flow/calculateNextBillDate") public String getNextBillDate(@RequestParam("projectId") UUID projectId, @RequestParam("env") String env, @RequestBody ExecutionRequest request) Get NextBillDate.
-