Package org.dspace.app.rest.repository
Class BitstreamAccessStatusLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.BitstreamAccessStatusLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("core.bitstreams.accessStatus")
public class BitstreamAccessStatusLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for calculating the access status of a Bitstream,
including the embargo date
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessStatus(jakarta.servlet.http.HttpServletRequest request, UUID bitstreamId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) 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
-
BitstreamAccessStatusLinkRepository
public BitstreamAccessStatusLinkRepository()
-
-
Method Details
-
getAccessStatus
@PreAuthorize("hasPermission(#bitstreamId, \'BITSTREAM\', \'METADATA_READ\')") public AccessStatusRest getAccessStatus(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID bitstreamId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)
-