Class BPMNUpDownloadController


  • @Controller
    @RequestMapping("/api")
    public class BPMNUpDownloadController
    extends Object
    • 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.NotFoundException
        retrieve 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 id
        processId - 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