Package org.dspace.app.rest.repository
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-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOutputFromProcess(jakarta.servlet.http.HttpServletRequest request, Integer processId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method will retrieve the output for theProcessas defined through the given ID in the rest call.Methods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
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 theProcessas defined through the given ID in the rest call. This output is aBitstreamobject that will be turned into aBitstreamRestobject to be returned- Parameters:
request- The current requestprocessId- The given processId for theProcessoptionalPageable- Pageable if applicableprojection- The current projection- Returns:
- The
BitstreamRestrepresenting the output for theProcess - Throws:
SQLException- If something goes wrongAuthorizeException- If something goes wrong
-