Class CommunityParentCommunityLinkRepository

    • Constructor Detail

      • CommunityParentCommunityLinkRepository

        public CommunityParentCommunityLinkRepository()
    • 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 request
        communityId - The given Community UUID that will be used to find the communityId
        optionalPageable - The pageable
        projection - The current Projection
        Returns:
        The Parent Community REST object