Package org.dspace.app.rest.repository
Class ProcessFileTypesLinkRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.ProcessFileTypesLinkRepository
-
- All Implemented Interfaces:
LinkRestRepository
@Component("system.process.filetypes") public class ProcessFileTypesLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryThis LinkRepository will deal with calls to the /filetypes endpoint of a given Process. It'll retrieve all the bitstreams for the given Process and return aProcessFileTypesRestobject that holds a list of Strings where each String represents a unique fileType of the Bitstreams for that Process
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description ProcessFileTypesLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessFileTypesRestgetFileTypesFromProcess(javax.servlet.http.HttpServletRequest request, Integer processId, org.springframework.data.domain.Pageable optionalPageable, Projection projection)This will be the admin only endpoint that returns theProcessFileTypesRestconstructed with the values found in the Bitstreams of the Process with the given ProcessId-
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
-
getFileTypesFromProcess
@PreAuthorize("hasAuthority(\'ADMIN\')") public ProcessFileTypesRest getFileTypesFromProcess(@Nullable javax.servlet.http.HttpServletRequest request, Integer processId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) throws SQLException, AuthorizeExceptionThis will be the admin only endpoint that returns theProcessFileTypesRestconstructed with the values found in the Bitstreams of the Process with the given ProcessId- Parameters:
request- The relevant requestprocessId- The processId of the Process to be usedoptionalPageable- Paging if applicableprojection- The current projection- Returns:
- The
ProcessFileTypesRestcreated from the Bitstreams of the given Process - Throws:
SQLException- If something goes wrongAuthorizeException- If something goes wrong
-
-