Class ConnectionController
java.lang.Object
org.qubership.atp.environments.service.rest.server.ConnectionController
@RequestMapping("/api/connections")
@RestController
public class ConnectionController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionController(ConnectionService connectionService, ConcurrentModificationService concurrentModificationService) -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(ConnectionDto connection) TODO Make javadoc documentation for this method.voiddeleteConnection(UUID id) getConnection(UUID id) getConnectionsAllBy(ConnectionByCategoryDto connectionByCategory) org.springframework.http.ResponseEntity<Connection> updateConnection(ConnectionDto connectionDto) TODO Make javadoc documentation for this method.updateParameters(List<ConnectionDto> connections) TODO Make javadoc documentation for this method.
-
Constructor Details
-
ConnectionController
@Autowired public ConnectionController(ConnectionService connectionService, ConcurrentModificationService concurrentModificationService)
-
-
Method Details
-
getConnectionsAll
-
getConnectionsAllBy
@PostMapping("/getAllBy") public List<Connection> getConnectionsAllBy(@RequestBody ConnectionByCategoryDto connectionByCategory) -
getConnection
@GetMapping("/{connectionId}") public Connection getConnection(@PathVariable("connectionId") UUID id) -
createConnection
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),#connection.getProjectId(),\'CREATE\')") @PostMapping public Connection createConnection(@RequestBody ConnectionDto connection) TODO Make javadoc documentation for this method. -
updateConnection
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),#connectionDto.getProjectId(),\'UPDATE\')") @PutMapping public org.springframework.http.ResponseEntity<Connection> updateConnection(@RequestBody ConnectionDto connectionDto) TODO Make javadoc documentation for this method. -
updateParameters
@PutMapping("/parameters") public List<Connection> updateParameters(@RequestBody List<ConnectionDto> connections) TODO Make javadoc documentation for this method. -
deleteConnection
@PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),@connectionService.getProjectId(#id),\'DELETE\')") @DeleteMapping("/{connectionId}") @ResponseStatus(NO_CONTENT) public void deleteConnection(@PathVariable("connectionId") UUID id) -
getConnectionTemplates
-
getConnectionTemplatesShort
-