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.group.object") public class GroupParentObjectLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryLink 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 Constructor Description GroupParentObjectLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DSpaceObjectRestgetParentObject(javax.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, obtainContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
-
-
-
Method Detail
-
getParentObject
@PreAuthorize("hasPermission(#groupId, \'GROUP\', \'READ\') or hasAuthority(\'ADMIN\')") public DSpaceObjectRest getParentObject(@Nullable javax.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
-
-