Class CollectionAdminGroupLinkRepository

java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.CollectionAdminGroupLinkRepository
All Implemented Interfaces:
LinkRestRepository

@Component("core.collections.adminGroup") public class CollectionAdminGroupLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
Link repository for "admingroup" subresource of an individual collection.
  • Constructor Details

    • CollectionAdminGroupLinkRepository

      public CollectionAdminGroupLinkRepository()
  • Method Details

    • getAdminGroup

      @PreAuthorize("hasPermission(#collectionId, \'COLLECTION\', \'READ\')") public GroupRest getAdminGroup(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID collectionId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)
      This method is responsible for retrieving the AdminGroup of a Collection
      Parameters:
      request - The current request
      collectionId - The id of the collection that we'll retrieve the admingroup for
      optionalPageable - The pageable if applicable
      projection - The current Projection
      Returns:
      The admingroup of the given collection