Class ProcessOutputLinkRepository

java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.ProcessOutputLinkRepository
All Implemented Interfaces:
LinkRestRepository

@Component("system.processes.output") public class ProcessOutputLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
This linkRepository will deal with calls to the /output endpoint of a given Process. It'll retrieve the output for the given Process and return this as a BitstreamRest object
  • Constructor Details

    • ProcessOutputLinkRepository

      public ProcessOutputLinkRepository()
  • Method Details

    • getOutputFromProcess

      @PreAuthorize("hasPermission(#processId, \'PROCESS\', \'READ\')") public BitstreamRest getOutputFromProcess(@Nullable jakarta.servlet.http.HttpServletRequest request, Integer processId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException, AuthorizeException
      This method will retrieve the output for the Process as defined through the given ID in the rest call. This output is a Bitstream object that will be turned into a BitstreamRest object to be returned
      Parameters:
      request - The current request
      processId - The given processId for the Process
      optionalPageable - Pageable if applicable
      projection - The current projection
      Returns:
      The BitstreamRest representing the output for the Process
      Throws:
      SQLException - If something goes wrong
      AuthorizeException - If something goes wrong