Interface WebContentFilter.FilterSearchContext

    • Method Detail

      • getSites

        List<StringgetSites()
        Get the site names to match contents
        Returns:
        The the site names to match contents
      • addSite

        void addSite​(String siteName)
        Add a site to the filter
        Parameters:
        siteName - The site name to add
      • getDepth

        int getDepth()
        Get the search depth
        Returns:
        The search depth
      • getPageId

        String getPageId()
        Get the parent page id
        Returns:
        The parent page id
      • setDepth

        void setDepth​(int depth)
        Set the search depth
        Parameters:
        depth - The search depth. Set to 0 for no depth limitation.
      • getTags

        List<StringgetTags()
        Get the tag keys to match contents
        Returns:
        The tag keys to match contents
      • getTagsAutoPosting

        boolean getTagsAutoPosting()
        Is the tag auto posting enabled?
        Returns:
        true if it is
      • addTag

        void addTag​(String tag)
        Add a tag to the filter
        Parameters:
        tag - The tag key to add
      • setTagsAutoPosting

        void setTagsAutoPosting​(boolean enable)
        Enable/disable the tag autoposting feature.
        Parameters:
        enable - True to enable the autposting, false to remains in strict match mode.
      • setPageId

        void setPageId​(String pageId)
        set the parent page Id.
        Parameters:
        pageId - Id of the parent page (when fetching child of a page).
      • getTagsExpression

        Expression getTagsExpression​(String siteName)
        Get the expression corresponding to the filter's tags
        Parameters:
        siteName - The current site name
        Returns:
        The expression corresponding to the filter's tags