Class BPMNUpDownloadController
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.support.BPMNUpDownloadController
-
@Controller @RequestMapping("/api") public class BPMNUpDownloadController extends Object
-
-
Constructor Summary
Constructors Constructor Description BPMNUpDownloadController(BPMNUtil bpmnUtil, BPMNProcessInfoRepository bpmnProcessInfoRepository, CSRRepository csrRepository, CertificateRepository certificateRepository, CAConnectorConfigRepository caConnectorConfigRepository, AuditService auditService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource>getBPMN(String processId)retrieve bpmn XML content for a given process idorg.springframework.http.ResponseEntity<BPMNProcessInfo>postBPMN(@Valid BPMNUpload bpmnUpload)org.springframework.http.ResponseEntity<Map<String,String>>postBPMNAccountRequest(String processId)check results a given batch process id when startedorg.springframework.http.ResponseEntity<Map<String,String>>postBPMNBatch(String processId)check results a given batch process id when startedorg.springframework.http.ResponseEntity<Map<String,String>>postBPMNForCertificateNotify(String processId, String certificateId)check results a given process id when performing certificate notificationorg.springframework.http.ResponseEntity<Map<String,String>>postBPMNForCSR(String processId, String csrId)check results a given process id when processing a given CSRorg.springframework.http.ResponseEntity<BPMNProcessInfo>putBPMNProcessInfo(@Valid BPMNUpload bpmnUpload)
-
-
-
Constructor Detail
-
BPMNUpDownloadController
public BPMNUpDownloadController(BPMNUtil bpmnUtil, BPMNProcessInfoRepository bpmnProcessInfoRepository, CSRRepository csrRepository, CertificateRepository certificateRepository, CAConnectorConfigRepository caConnectorConfigRepository, AuditService auditService)
-
-
Method Detail
-
getBPMN
@RequestMapping(value="/bpmn/{processId}", method=GET, produces="application/xml") public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getBPMN(@PathVariable String processId) throws de.trustable.ca3s.core.web.rest.support.NotFoundExceptionretrieve bpmn XML content for a given process id- Parameters:
processId- the internal process id- Returns:
- the process's XML
- Throws:
de.trustable.ca3s.core.web.rest.support.NotFoundException
-
postBPMN
@PostMapping("/bpmn") @Transactional @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<BPMNProcessInfo> postBPMN(@Valid @RequestBody @Valid BPMNUpload bpmnUpload)
-
putBPMNProcessInfo
@PutMapping("/bpmn") @Transactional @PreAuthorize("hasRole(\"ROLE_ADMIN\")") public org.springframework.http.ResponseEntity<BPMNProcessInfo> putBPMNProcessInfo(@Valid @RequestBody @Valid BPMNUpload bpmnUpload)
-
postBPMNForCSR
@RequestMapping(value="/bpmn/check/csr/{processId}/{csrId}", method=POST) @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Map<String,String>> postBPMNForCSR(@PathVariable String processId, @PathVariable String csrId)check results a given process id when processing a given CSR- Parameters:
processId- the internal process id- Returns:
- the process's response
-
postBPMNForCertificateNotify
@RequestMapping(value="/bpmn/check/certificateNotify/{processId}/{certificateId}", method=POST) @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Map<String,String>> postBPMNForCertificateNotify(@PathVariable String processId, @PathVariable String certificateId)check results a given process id when performing certificate notification- Parameters:
processId- the internal process idprocessId- the certificateId- Returns:
- the process's response
-
postBPMNAccountRequest
@RequestMapping(value="/bpmn/check/accountRequest/{processId}", method=POST) @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Map<String,String>> postBPMNAccountRequest(@PathVariable String processId)check results a given batch process id when started- Parameters:
processId- the internal process id- Returns:
- the process's response
-
postBPMNBatch
@RequestMapping(value="/bpmn/check/batch/{processId}", method=POST) @PreAuthorize("hasRole(\"ROLE_ADMIN\")") @Transactional public org.springframework.http.ResponseEntity<Map<String,String>> postBPMNBatch(@PathVariable String processId)check results a given batch process id when started- Parameters:
processId- the internal process id- Returns:
- the process's response
-
-