Package org.dspace.app.rest.repository
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.
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParentObject(jakarta.servlet.http.HttpServletRequest request, UUID groupId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This returns the DSpace Object (Community, Collection) belonging to this Group.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
-
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
-