Class ProcessFilesLinkRepository

    • Constructor Detail

      • ProcessFilesLinkRepository

        public ProcessFilesLinkRepository()
    • Method Detail

      • getFilesFromProcess

        @PreAuthorize("hasAuthority(\'ADMIN\')")
        public org.springframework.data.domain.Page<BitstreamRest> getFilesFromProcess​(@Nullable
                                                                                       javax.servlet.http.HttpServletRequest request,
                                                                                       Integer processId,
                                                                                       @Nullable
                                                                                       org.springframework.data.domain.Pageable optionalPageable,
                                                                                       Projection projection)
                                                                                throws SQLException,
                                                                                       AuthorizeException
        This method will retrieve all the files from the process
        Parameters:
        request - The current request
        processId - The processId for the Process to use
        optionalPageable - Pageable if applicable
        projection - Projection if applicable
        Returns:
        A list of BitstreamRest objects filled
        Throws:
        SQLException - If something goes wrong
        AuthorizeException - If something goes wrong
      • getResource

        @PreAuthorize("hasPermission(#processId, \'PROCESS\', \'READ\')")
        public BitstreamRest getResource​(javax.servlet.http.HttpServletRequest request,
                                         String processId,
                                         String fileType,
                                         org.springframework.data.domain.Pageable pageable,
                                         Projection projection)
                                  throws SQLException,
                                         AuthorizeException
        This method will retrieve a bitstream for the given processId for the given fileType
        Parameters:
        request - The current request
        processId - The processId for the process to search in
        fileType - The filetype that the bitstream has to be
        pageable - Pageable if applicable
        projection - The current projection
        Returns:
        The BitstreamRest object that corresponds with the Process and type
        Throws:
        SQLException - If something goes wrong
        AuthorizeException - If something goes wrong