Interface PageDaoInternal

    • Method Detail

      • findCurrentPages

        PageResponse<Page> findCurrentPages​(LimitedRequest request)
        Find all current pages.
        Parameters:
        request - the limited pagination request.
        Returns:
        a pagination response of the current pages.
      • getFilteredPages

        default PageResponse<Page> getFilteredPages​(Space space,
                                                    LimitedRequest pageRequest,
                                                    @Nullable Predicate<? super Page> filter)
        Retrieves a page response of the current content in the given space.
        Parameters:
        space - the space to locate the page in
        pageRequest - the start and offset of the pages to retrieve
        filter - the predicate to pages the returned results by, may be null
        Since:
        7.0.1
      • getFilteredPages

        default PageResponse<Page> getFilteredPages​(LimitedRequest pageRequest,
                                                    @Nullable Predicate<? super Page> filter)
        Retrieves a page response of all the current pages of the Confluence instance.
        Parameters:
        pageRequest - the start and offset of the pages to retrieve
        filter - the predicate to filter the returned results by, may be null
        Returns:
        the paginated list of pages
        Since:
        7.0.1
      • scanFilteredPages

        PageResponse<Page> scanFilteredPages​(List<ContentStatus> statuses,
                                             LimitedRequest pageRequest,
                                             @Nullable Predicate<? super Page> filter)
        Retrieves a page response of all the pages with specified content statuses.
        Parameters:
        statuses - list of content status which we are interested to fetch
        pageRequest - limit and cursor of the pages to retrieve. Cursor in pageRequest can't be null.
        filter - the predicate to filter the returned results by, may be null
        Returns:
        the paginated list of pages
        Since:
        7.18.0
      • scanFilteredPages

        PageResponse<Page> scanFilteredPages​(Space space,
                                             List<ContentStatus> statuses,
                                             LimitedRequest pageRequest,
                                             @Nullable Predicate<? super Page> filter)
        Retrieves a page response of all pages in space with specified content statuses.
        Parameters:
        space - the space to locate the page in
        statuses - content status to match
        pageRequest - limit and cursor of the pages to retrieve. Cursor in pageRequest can't be null.
        filter - the predicate to filter the returned results by, may be null
        Returns:
        the paginated list of pages
        Since:
        7.18.0
      • getFilteredBlogPosts

        default PageResponse<BlogPost> getFilteredBlogPosts​(Space space,
                                                            LimitedRequest pageRequest,
                                                            @Nullable Predicate<? super BlogPost> filter)
        Retrieves a page response of all the current blog posts in the give space.
        Parameters:
        space - the space to locate the blog posts in
        pageRequest - the start and offset of the pages to retrieve
        filter - the predicate to filter the returned results by, may be null
        Returns:
        the paginated list of all the current blog posts by space
        Since:
        7.0.1
      • getFilteredChildren

        default PageResponse<Page> getFilteredChildren​(Page page,
                                                       LimitedRequest pageRequest,
                                                       Predicate<? super Page> predicate,
                                                       Depth depth)
        Returns the children of a page which have a status of CURRENT, limited to the pagination requested.
        Parameters:
        page - the page to find children for
        pageRequest - the pagination requested
        predicate - predicate used to entities
        depth - the depth to return children to
        Returns:
        the paginated response of Page entities
        Since:
        7.0.1
      • getFilteredAbstractPagesByTitle

        default PageResponse<AbstractPage> getFilteredAbstractPagesByTitle​(String title,
                                                                           LimitedRequest pageRequest,
                                                                           Predicate<? super AbstractPage> filter)
        Returns the abstract pages that exactly match the given title, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.
        Parameters:
        title - the title of the page to match
        pageRequest - the pagination requested
        filter - the predicate to apply to the results before returning
        Returns:
        the paginated list of AbstractPages by title
        Since:
        7.0.1
      • getFilteredAbstractPagesByCreationDate

        default PageResponse<AbstractPage> getFilteredAbstractPagesByCreationDate​(org.joda.time.DateTime date,
                                                                                  LimitedRequest pageRequest,
                                                                                  Predicate<? super AbstractPage> filter)
        Returns the abstract pages created on the given date, that also match the given filter, limited to the page request. To get just pages or blog posts can be requested just specifying a content type based filter.
        Parameters:
        date - - the creation date to match
        pageRequest - the pagination request
        filter - the predicate to apply to the results before returning
        Returns:
        the paginated list of AbstractPages created on the given date
        Since:
        7.0.1
      • getFilteredAbstractPages

        default PageResponse<AbstractPage> getFilteredAbstractPages​(List<ContentType> contentTypes,
                                                                    List<ContentStatus> statuses,
                                                                    LimitedRequest pageRequest,
                                                                    @Nullable Predicate<? super AbstractPage> filter)
        Retrieves a page response of all pages found in this instance of Confluence, within any of the given statuses.
        Parameters:
        contentTypes - list of content types to find
        statuses - list of statuses the pages can be in
        pageRequest - the start and offset of the pages to retrieve
        filter - the predicate to filter the returned results by, may be null
        Returns:
        the paginated list of pages
        Since:
        7.0.1
      • getFilteredAbstractPages

        default PageResponse<AbstractPage> getFilteredAbstractPages​(Space space,
                                                                    List<ContentType> contentTypes,
                                                                    List<ContentStatus> statuses,
                                                                    LimitedRequest pageRequest,
                                                                    @Nullable Predicate<? super AbstractPage> filter)
        Retrieves a page response for all content (pages and/or blog posts) in the given space, within any of the specified statuses and content types.
        Parameters:
        space - the space to locate the page in
        contentTypes - list of content types to find
        statuses - list of statuses the pages can be in
        pageRequest - the pagination request
        filter - the predicate to pages the returned results by, may be null
        Returns:
        the paginated list of pages by space, with the given statuses
        Since:
        7.0.1
      • getFilteredAbstractPages

        default PageResponse<AbstractPage> getFilteredAbstractPages​(Space space,
                                                                    String title,
                                                                    List<ContentStatus> statuses,
                                                                    LimitedRequest pageRequest,
                                                                    Predicate<? super AbstractPage> filter)
        Returns the abstract pages from a space that exactly match the given title and are in any of the specified statuses, and match the given filter, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.
        Parameters:
        space - space the page belongs to
        title - the title of the page to match
        statuses - list of statuses the content can be in
        pageRequest - the pagination requested
        filter - the predicate to apply to the results before returning
        Returns:
        the paginated list of AbstractPages by space and title, with the given statuses
        Since:
        7.0.1
      • getFilteredAbstractPages

        default PageResponse<AbstractPage> getFilteredAbstractPages​(String title,
                                                                    List<ContentStatus> statuses,
                                                                    LimitedRequest pageRequest,
                                                                    Predicate<? super AbstractPage> filter)
        Returns the abstract pages that exactly match the given title, are in any of the specified statuses, and match the given filter, limited to the pagination request. To get just pages or blog posts can be requested just specifying a content type based filter.
        Parameters:
        title - the title of the page to match
        statuses - list of statuses the content can be in
        pageRequest - the pagination requested
        filter - the predicate to apply to the results before returning
        Returns:
        the paginated list of AbstractPages by title
        Since:
        7.0.1
      • getFilteredAbstractPages

        default PageResponse<AbstractPage> getFilteredAbstractPages​(org.joda.time.DateTime date,
                                                                    List<ContentStatus> statuses,
                                                                    LimitedRequest pageRequest,
                                                                    Predicate<? super AbstractPage> filter)
        Returns the abstract pages created on the given date and are in the , that also match the given filter, limited to the page request. To get just pages or blog posts can be requested just specifying a content type based filter.
        Parameters:
        date - the creation date to match
        statuses - list of statuses the content can be in
        pageRequest - the pagination request
        filter - the predicate to apply to the results before returning
        Returns:
        the paginated list of AbstractPages created on the given date
        Since:
        7.0.1
      • getPermissionPages

        Collection<Page> getPermissionPages​(Space space,
                                            LimitedRequest limitedRequest)
        Pagination permission pages for particular Space
        Parameters:
        space -
        limitedRequest -
        Returns:
        Collection of permission pages within the request range
        Since:
        7.5.0
      • getPermissionPagesCount

        long getPermissionPagesCount​(Space space)
        Get total number of permission pages for particular Space
        Parameters:
        space -
        Returns:
        the count
        Since:
        7.5.0