Package de.trustable.ca3s.core.web.rest
Class BPMNProcessInfoResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.BPMNProcessInfoResource
-
@RestController @RequestMapping("/api") public class BPMNProcessInfoResource extends ObjectREST controller for managingBPMNProcessInfo.
-
-
Constructor Summary
Constructors Constructor Description BPMNProcessInfoResource(BPMNProcessInfoService bPMNProcessInfoService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<BPMNProcessInfo>createBPMNProcessInfo(@Valid BPMNProcessInfo bPMNProcessInfo)POST /bpmn-process-infos: Create a new bPMNProcessInfo.org.springframework.http.ResponseEntity<Void>deleteBPMNProcessInfo(Long id)DELETE /bpmn-process-infos/:id: delete the "id" bPMNProcessInfo.List<BPMNProcessInfo>getAllBPMNProcessInfos()GET /bpmn-process-infos: get all the bPMNProcessInfos.org.springframework.http.ResponseEntity<BPMNProcessInfo>getBPMNProcessInfo(Long id)GET /bpmn-process-infos/:id: get the "id" bPMNProcessInfo.org.springframework.http.ResponseEntity<BPMNProcessInfo>updateBPMNProcessInfo(@Valid BPMNProcessInfo bPMNProcessInfo)PUT /bpmn-process-infos: Updates an existing bPMNProcessInfo.
-
-
-
Constructor Detail
-
BPMNProcessInfoResource
public BPMNProcessInfoResource(BPMNProcessInfoService bPMNProcessInfoService)
-
-
Method Detail
-
createBPMNProcessInfo
@PostMapping("/bpmn-process-infos") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<BPMNProcessInfo> createBPMNProcessInfo(@Valid @RequestBody @Valid BPMNProcessInfo bPMNProcessInfo) throws URISyntaxExceptionPOST /bpmn-process-infos: Create a new bPMNProcessInfo.- Parameters:
bPMNProcessInfo- the bPMNProcessInfo to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new bPMNProcessInfo, or with status400 (Bad Request)if the bPMNProcessInfo has already an ID. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
updateBPMNProcessInfo
@PutMapping("/bpmn-process-infos") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<BPMNProcessInfo> updateBPMNProcessInfo(@Valid @RequestBody @Valid BPMNProcessInfo bPMNProcessInfo) throws URISyntaxExceptionPUT /bpmn-process-infos: Updates an existing bPMNProcessInfo.- Parameters:
bPMNProcessInfo- the bPMNProcessInfo to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated bPMNProcessInfo, or with status400 (Bad Request)if the bPMNProcessInfo is not valid, or with status500 (Internal Server Error)if the bPMNProcessInfo couldn't be updated. - Throws:
URISyntaxException- if the Location URI syntax is incorrect.
-
getAllBPMNProcessInfos
@GetMapping("/bpmn-process-infos") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public List<BPMNProcessInfo> getAllBPMNProcessInfos()GET /bpmn-process-infos: get all the bPMNProcessInfos.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of bPMNProcessInfos in body.
-
getBPMNProcessInfo
@GetMapping("/bpmn-process-infos/{id}") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<BPMNProcessInfo> getBPMNProcessInfo(@PathVariable Long id)GET /bpmn-process-infos/:id: get the "id" bPMNProcessInfo.- Parameters:
id- the id of the bPMNProcessInfo to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the bPMNProcessInfo, or with status404 (Not Found).
-
deleteBPMNProcessInfo
@DeleteMapping("/bpmn-process-infos/{id}") @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<Void> deleteBPMNProcessInfo(@PathVariable Long id)DELETE /bpmn-process-infos/:id: delete the "id" bPMNProcessInfo.- Parameters:
id- the id of the bPMNProcessInfo to delete.- Returns:
- the
ResponseEntitywith status204 (NO_CONTENT).
-
-