Package org.dspace.app.rest.repository
Class CommunityParentCommunityLinkRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.repository.CommunityParentCommunityLinkRepository
-
- All Implemented Interfaces:
LinkRestRepository
@Component("core.community.parentCommunity") public class CommunityParentCommunityLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryLinkRepository for the ParentCommunity object for a Community
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description CommunityParentCommunityLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommunityRestgetParentCommunity(javax.servlet.http.HttpServletRequest httpServletRequest, UUID communityId, org.springframework.data.domain.Pageable optionalPageable, Projection projection)This method retrieves the ParentCommunity object for the Community which is defined by the given communityId It'll transform this Parent Community to a REST object and return this-
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
-
getParentCommunity
@PreAuthorize("hasPermission(#communityId, \'COMMUNITY\', \'READ\')") public CommunityRest getParentCommunity(@Nullable javax.servlet.http.HttpServletRequest httpServletRequest, UUID communityId, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)This method retrieves the ParentCommunity object for the Community which is defined by the given communityId It'll transform this Parent Community to a REST object and return this- Parameters:
httpServletRequest- The current requestcommunityId- The given Community UUID that will be used to find the communityIdoptionalPageable- The pageableprojection- The current Projection- Returns:
- The Parent Community REST object
-
-