Package org.dspace.app.rest.repository
Class CommunityAdminGroupLinkRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.CommunityAdminGroupLinkRepository
- All Implemented Interfaces:
LinkRestRepository
@Component("core.communities.adminGroup")
public class CommunityAdminGroupLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for "admingroup" subresource of an individual community.
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdminGroup(jakarta.servlet.http.HttpServletRequest request, UUID communityId, org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method is responsible for retrieving the AdminGroup of a CommunityMethods 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
-
CommunityAdminGroupLinkRepository
public CommunityAdminGroupLinkRepository()
-
-
Method Details
-
getAdminGroup
@PreAuthorize("hasPermission(#communityId, \'COMMUNITY\', \'READ\')") public GroupRest getAdminGroup(@Nullable jakarta.servlet.http.HttpServletRequest request, UUID communityId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection) This method is responsible for retrieving the AdminGroup of a Community- Parameters:
request- The current requestcommunityId- The id of the community that we'll retrieve the admingroup foroptionalPageable- The pageable if applicableprojection- The current Projection- Returns:
- The admingroup of the given community
-