Class AttachmentsController

Object
AttachmentsController

@Controller public class AttachmentsController extends Object
  • Constructor Details

    • AttachmentsController

      public AttachmentsController()
  • Method Details

    • getNotes

      @RequestMapping(value="/api/notes/{processInstanceId}", method=GET, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseBody public List<NoteDTO> getNotes(@PathVariable("processInstanceId") String processInstanceId)
    • getNote

      @RequestMapping(value="/api/notes/{processInstanceId}/{noteId}", method=GET, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseBody public NoteDTO getNote(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("noteId") Integer noteId)
    • addNote

      @RequestMapping(value="/api/notes/{processInstanceId}", method=POST, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseStatus(CREATED) @ResponseBody public NumericIdDTO<Integer> addNote(@PathVariable("processInstanceId") String processInstanceId, @RequestBody NoteDTO note)
    • addNote

      @RequestMapping(value="/api/notes/{processInstanceId}/bulk", method=POST, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseStatus(CREATED) @ResponseBody public NumericIdCollectionDTO<Integer> addNote(@PathVariable("processInstanceId") String processInstanceId, @RequestBody NoteDTO[] notes)
    • updateNote

      @RequestMapping(value="/api/notes/{processInstanceId}/{noteId}", method=PUT, headers="Accept=application/json;charset=UTF-8") @ResponseStatus(NO_CONTENT) @ResponseBody public void updateNote(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("noteId") Integer noteId, @RequestBody NoteDTO note)
    • deleteNote

      @RequestMapping(value="/api/notes/{processInstanceId}/{noteId}", method=DELETE) @ResponseStatus(NO_CONTENT) @ResponseBody public void deleteNote(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("noteId") Integer noteId)
    • getAttachmentFile

      @RequestMapping(value="/api/file-download/{processInstanceId}/{attachmentId}", method=GET) @ResponseBody public Resource getAttachmentFile(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("attachmentId") Integer attachmentId, HttpServletResponse response)
    • uploadFile

      @RequestMapping(value="/api/file-upload/{processInstanceId}", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @ResponseStatus(CREATED) @Deprecated public ProcessAttachmentDTO uploadFile(@PathVariable("processInstanceId") String processInstanceId, @RequestParam(name="description",required=false) String description, @RequestParam(name="tag",required=false) String tag, @RequestParam(name="allowUserDelete",required=false) Integer allowUserDelete, @RequestParam("file") MultipartFile file, HttpServletResponse response)
      Deprecated.
      see: uploadProcessAttachment
      Metodo deprecado, usado pela app versao 1.x
      Parameters:
      processInstanceId -
      description -
      tag -
      allowUserDelete -
      file -
      response -
      taskId -
      uuid -
      sha1 -
      Returns:
    • uploadProcessAttachment

      @RequestMapping(value="/api/attachment-upload/{processInstanceId}", consumes="multipart/form-data", method=POST, produces="application/json;charset=UTF-8") @ResponseBody @ResponseStatus(OK) public ProcessAttachmentDTO uploadProcessAttachment(@PathVariable("processInstanceId") String processInstanceId, @RequestParam("attachmentInfo") String requestJSON, @RequestParam("file") MultipartFile file, HttpServletResponse response)
    • getAttachments

      @RequestMapping(value="/api/files/{processInstanceId}", method=GET, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseBody public List<ProcessAttachmentDTO> getAttachments(@PathVariable("processInstanceId") String processInstanceId)
    • getAttachment

      @RequestMapping(value="/api/files/{processInstanceId}/{attachmentId}", method=GET, headers="Accept=application/json;charset=UTF-8", produces="application/json;charset=UTF-8") @ResponseBody public ProcessAttachmentDTO getAttachment(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("attachmentId") Integer attachmentId)
    • deleteAttachment

      @RequestMapping(value="/api/files/{processInstanceId}/{attachmentId}", method=DELETE) @ResponseBody @ResponseStatus(NO_CONTENT) public void deleteAttachment(@PathVariable("processInstanceId") String processInstanceId, @PathVariable("attachmentId") Integer attachmentId)
    • deleteAttachmentByUUID

      @RequestMapping(value="/api/attachment-delete/{attachmentId}", method=DELETE) @ResponseBody @ResponseStatus(NO_CONTENT) public void deleteAttachmentByUUID(@PathVariable("attachmentId") String attachmentId)
    • uploadDatabaseDumpFile

      @RequestMapping(value="/api/db-upload", method=POST) @ResponseBody @ResponseStatus(NO_CONTENT) public void uploadDatabaseDumpFile(@RequestParam("format") String format, @RequestParam("file") MultipartFile file, HttpServletResponse response)