Interface WebContentFilter.FilterSearchContext

All Known Implementing Classes:
DefaultWebContentFilter.DefaultFilterSearchContext, EventsFilter.EventFilterSearchContext
Enclosing interface:
WebContentFilter

public static interface WebContentFilter.FilterSearchContext
Interface representing a filter search context.
  • Method Details

    • getContext

      Get the search context
      Returns:
      The search context
    • setContext

      Set the search context
      Parameters:
      context - The search context to set
    • getSites

      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

      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.
    • getContextLanguage

      Get the context language
      Returns:
      The context language
    • setContextLanguage

      Set the context language
      Parameters:
      context - The context language to set
    • getTags

      Get the tag keys to match contents
      Returns:
      The tag keys to match contents
    • getTagsCondition

      The tags condition
      Returns:
      The tags condition
    • 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
    • setTagsCondition

      Set the tags condition
      Parameters:
      condition - The condition to set
    • 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).
    • getFullExpression

      Expression getFullExpression(String siteName, String language)
      Get the Expression.
      Parameters:
      siteName - the site name
      language - the language
      Returns:
      the expression.
    • getTagsExpression

      Get the expression corresponding to the filter's tags
      Parameters:
      siteName - The current site name
      Returns:
      The expression corresponding to the filter's tags