Class CollectionParentCommunityLinkRepository

    • Constructor Detail

      • CollectionParentCommunityLinkRepository

        public CollectionParentCommunityLinkRepository()
    • Method Detail

      • getParentCommunity

        @PreAuthorize("hasPermission(#collectionId, \'COLLECTION\', \'READ\')")
        public CommunityRest getParentCommunity​(@Nullable
                                                javax.servlet.http.HttpServletRequest httpServletRequest,
                                                UUID collectionId,
                                                @Nullable
                                                org.springframework.data.domain.Pageable optionalPageable,
                                                Projection projection)
        This method retrieves the ParentCommunity object for the Collection which is defined by the given collectionId It'll transform this Parent Community to a REST object and return this
        Parameters:
        httpServletRequest - The current request
        collectionId - The given Collection UUID that will be used to find the Collection
        optionalPageable - The pageable
        projection - The current Projection
        Returns:
        The Parent Community REST object