Class ProjectController
java.lang.Object
org.qubership.atp.environments.service.rest.server.ProjectController
-
Constructor Summary
ConstructorsConstructorDescriptionProjectController(ProjectService projectService, EnvironmentService environmentService, SystemService systemService) ProjectController constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopy(UUID id, ProjectDto project) createEnvironment(UUID id, EnvironmentDto environment) createProject(ProjectImpl project) createTool(UUID id, EnvironmentDto environment) voiddeleteProject(UUID id) Endpoint for getting list of temporary and not temporary environments.getAllProjects(String host) Endpoint for getting list of projects.Endpoint for getting list of projects in abbreviated form ({"id":"","name":""}).Endpoint for getting list of systems on project in abbreviated form ({"id":"","name":"", "environmentIds":[]}).Deprecated.getConnections(UUID id) Endpoint for getting connection list.Endpoint for getting distinct list of connection names by project.getEnvironments(UUID id) Endpoint for getting list of environments in abbreviated form ({"id":"","name":""}).getProject(UUID id) getProjectsByRequest(ProjectSearchRequest request) getProjectSystems(UUID id, String categoryName) Endpoint for getting systems list.org.springframework.http.ResponseEntity<Project> getProjectWithSpecifiedEnvironments(UUID projectId, List<UUID> environmentIds) Getting a project with specified environments.getShortProject(UUID id) getShortProjectByName(String name) getSystemsName(UUID id) Endpoint for getting distinct list of system names by project.Endpoint for getting list of temporary environments.getToolsShort(UUID id) Endpoint for getting list of TaToolGroups in abbreviated form ({"id":"","name":""}).voidupdateProject(ProjectDto project) Endpoint for update project.org.springframework.http.ResponseEntity<Object> updateSystemStatuses(List<StatusDto> statuses, UUID projectId) Endpoint for update system statuses by statuses list.
-
Constructor Details
-
ProjectController
@Autowired public ProjectController(ProjectService projectService, EnvironmentService environmentService, SystemService systemService) ProjectController constructor.
-
-
Method Details
-
getAllProjects
@GetMapping("/projects") public List<Project> getAllProjects(@RequestParam(value="host",required=false) String host) Endpoint for getting list of projects. -
getAllShort
Endpoint for getting list of projects in abbreviated form ({"id":"","name":""}). -
getAllShortWithUserAccess
@GetMapping("/projects/shortWithAccess") @Deprecated public List<Project> getAllShortWithUserAccess()Deprecated.Endpoint for getting list of projects for which user have an access in abbreviated form ({"id":"", "name":""}). -
getProject
-
getShortProject
-
getShortProjectByName
-
getProjectWithSpecifiedEnvironments
@GetMapping("/projects/{projectId}/{environmentIds}") public org.springframework.http.ResponseEntity<Project> getProjectWithSpecifiedEnvironments(@PathVariable("projectId") UUID projectId, @PathVariable("environmentIds") List<UUID> environmentIds) Getting a project with specified environments. -
getAllShortSystemsOnProject
@GetMapping("/projects/{projectId}/environments/systems/short") public List<System> getAllShortSystemsOnProject(@PathVariable("projectId") UUID id) Endpoint for getting list of systems on project in abbreviated form ({"id":"","name":"", "environmentIds":[]}). -
getEnvironments
@GetMapping("/projects/{projectId}/environments") public List<Environment> getEnvironments(@PathVariable("projectId") UUID id) -
getEnvironmentsGroupedByTags
@GetMapping("/projects/{projectId}/environments/groupedByTags") public Collection<GroupedByTagEnvironmentResponse> getEnvironmentsGroupedByTags(@PathVariable("projectId") UUID id) -
getProjectsByRequest
@PreAuthorize("@entityAccess.isAuthenticated()") @PostMapping("/projects/search") public List<Project> getProjectsByRequest(@RequestBody ProjectSearchRequest request) -
updateSystemStatuses
@PreAuthorize("@entityAccess.checkAccess(#projectId,\'UPDATE\')") @PutMapping("projects/{projectId}/systems/status") public org.springframework.http.ResponseEntity<Object> updateSystemStatuses(@RequestBody List<StatusDto> statuses, @PathVariable UUID projectId) Endpoint for update system statuses by statuses list. -
getEnvironmentsShort
@GetMapping("/projects/{projectId}/environments/short") public List<Environment> getEnvironmentsShort(@PathVariable("projectId") UUID id) Endpoint for getting list of environments in abbreviated form ({"id":"","name":""}). -
getTemporaryEnvironments
@GetMapping("/projects/{projectId}/temporary/environments") public List<Environment> getTemporaryEnvironments(@PathVariable("projectId") UUID id) Endpoint for getting list of temporary environments. -
getAllEnvironments
@GetMapping("/projects/{projectId}/environments/all") public List<Environment> getAllEnvironments(@PathVariable("projectId") UUID id) Endpoint for getting list of temporary and not temporary environments. -
getTools
@GetMapping("/projects/{projectId}/tools") public List<Environment> getTools(@PathVariable("projectId") UUID id) -
getToolsShort
@GetMapping("/projects/{projectId}/tools/short") public List<Environment> getToolsShort(@PathVariable("projectId") UUID id) Endpoint for getting list of TaToolGroups in abbreviated form ({"id":"","name":""}). -
getProjectSystems
@GetMapping("/projects/{projectId}/environments/systems") public List<System> getProjectSystems(@PathVariable("projectId") UUID id, @RequestParam(value="category",required=false) String categoryName) Endpoint for getting systems list. -
getSystemsName
@GetMapping("/projects/{projectId}/environments/systems/name") public List<String> getSystemsName(@PathVariable("projectId") UUID id) Endpoint for getting distinct list of system names by project. -
getConnections
@GetMapping("/projects/{projectId}/environments/connections") public List<Connection> getConnections(@PathVariable("projectId") UUID id) Endpoint for getting connection list. -
getConnectionsName
@GetMapping("/projects/{projectId}/environments/connections/name") public List<String> getConnectionsName(@PathVariable("projectId") UUID id) Endpoint for getting distinct list of connection names by project. -
createEnvironment
@PreAuthorize("@entityAccess.checkAccess(#id.toString(),\'CREATE\')") @PostMapping("/projects/{projectId}/environments") public Environment createEnvironment(@PathVariable("projectId") UUID id, @RequestBody EnvironmentDto environment) -
createTool
@PreAuthorize("@entityAccess.checkAccess(#id.toString(),\'CREATE\')") @PostMapping("/projects/{projectId}/tools") public Environment createTool(@PathVariable("projectId") UUID id, @RequestBody EnvironmentDto environment) -
createProject
@PreAuthorize("@entityAccess.checkAccess(#project.getId().toString(),\'CREATE\')") @PostMapping("/projects") public Project createProject(@RequestBody ProjectImpl project) -
copy
@PreAuthorize("@entityAccess.checkAccess(#project.getId().toString(),\'CREATE\')") @PostMapping("/projects/{projectId}/copy") public Project copy(@PathVariable("projectId") UUID id, @RequestBody ProjectDto project) -
updateProject
@PreAuthorize("@entityAccess.checkAccess(#project.getId().toString(),\'UPDATE\')") @PutMapping("/projects") @ResponseStatus(NO_CONTENT) public void updateProject(@RequestBody ProjectDto project) Endpoint for update project. -
deleteProject
@PreAuthorize("@entityAccess.checkAccess(#id.toString(),\'DELETE\')") @DeleteMapping("/projects/{projectId}") @ResponseStatus(NO_CONTENT) public void deleteProject(@PathVariable("projectId") UUID id)
-