Package org.dspace.app.rest.repository
Class CollectionItemReadGroupLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.CollectionItemReadGroupLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("core.collections.itemReadGroup")
public class CollectionItemReadGroupLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for "ItemReadGroup" subresource of an individual collection.
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItemReadGroup(jakarta.servlet.http.HttpServletRequest request, UUID collectionId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method is responsible for retrieving the ItemReadGroup of a CollectionMethods 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
-
CollectionItemReadGroupLinkRepository
public CollectionItemReadGroupLinkRepository()
-
-
Method Details
-
getItemReadGroup
@PreAuthorize("hasPermission(#collectionId, \'COLLECTION\', \'READ\')") public GroupRest getItemReadGroup(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID collectionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method is responsible for retrieving the ItemReadGroup of a Collection- Parameters:
request- The current requestcollectionId- The id of the collection that we'll retrieve the ItemReadGroup foroptionalPageable- The pageable if applicableprojection- The current Projection- Returns:
- The ItemReadGroup of the given collection
-