public static interface WebContentFilter.FilterSearchContext
Modifier and Type | Method and Description |
---|---|
void |
addSite(String siteName)
Add a site to the filter
|
void |
addTag(String tag)
Add a tag to the filter
|
WebContentFilter.Context |
getContext()
Get the search context
|
ContentFilter.ContextLanguage |
getContextLanguage()
Get the context language
|
int |
getDepth()
Get the search depth
|
Expression |
getFullExpression(String siteName,
String language)
Get the Expression.
|
String |
getPageId()
Get the parent page id
|
List<String> |
getSites()
Get the site names to match contents
|
List<String> |
getTags()
Get the tag keys to match contents
|
boolean |
getTagsAutoPosting()
Is the tag auto posting enabled?
|
ContentFilter.Condition |
getTagsCondition()
The tags condition
|
Expression |
getTagsExpression(String siteName)
Get the expression corresponding to the filter's tags
|
void |
setContext(WebContentFilter.Context context)
Set the search context
|
void |
setContextLanguage(ContentFilter.ContextLanguage context)
Set the context language
|
void |
setDepth(int depth)
Set the search depth
|
void |
setPageId(String pageId)
set the parent page Id.
|
void |
setTagsAutoPosting(boolean enable)
Enable/disable the tag autoposting feature.
|
void |
setTagsCondition(ContentFilter.Condition condition)
Set the tags condition
|
WebContentFilter.Context getContext()
void setContext(WebContentFilter.Context context)
context
- The search context to setList<String> getSites()
void addSite(String siteName)
siteName
- The site name to addint getDepth()
void setDepth(int depth)
depth
- The search depth. Set to 0
for no depth limitation.ContentFilter.ContextLanguage getContextLanguage()
void setContextLanguage(ContentFilter.ContextLanguage context)
context
- The context language to setList<String> getTags()
ContentFilter.Condition getTagsCondition()
boolean getTagsAutoPosting()
void setTagsCondition(ContentFilter.Condition condition)
condition
- The condition to setvoid setTagsAutoPosting(boolean enable)
enable
- True to enable the autposting, false to remains in strict match mode.void setPageId(String pageId)
pageId
- Id of the parent page (when fetching child of a page).Expression getFullExpression(String siteName, String language)
siteName
- the site namelanguage
- the languageExpression getTagsExpression(String siteName)
siteName
- The current site name