Class GroupParentObjectLinkRepository

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

@Component("eperson.groups.object") public class GroupParentObjectLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
Link repository for the parent object of a group.
  • Constructor Details

    • GroupParentObjectLinkRepository

      public GroupParentObjectLinkRepository()
  • Method Details

    • getParentObject

      @PreAuthorize("hasPermission(#groupId, \'GROUP\', \'READ\') or hasAuthority(\'ADMIN\')") public DSpaceObjectRest getParentObject(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID groupId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)
      This returns the DSpace Object (Community, Collection) belonging to this Group. This is only applicable for roles in that DSpace Object e.g. the Community Administrator or Collection Submitter Group