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.process.output") public class ProcessOutputLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryThis 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 aBitstreamRestobject
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description ProcessOutputLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitstreamRestgetOutputFromProcess(javax.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, obtainContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
-
-
-
Method Detail
-
getOutputFromProcess
@PreAuthorize("hasAuthority(\'ADMIN\')") public BitstreamRest getOutputFromProcess(@Nullable javax.servlet.http.HttpServletRequest request, Integer processId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException, org.dspace.authorize.AuthorizeExceptionThis 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 wrongorg.dspace.authorize.AuthorizeException- If something goes wrong
-
-