Class SearchTemplateContentItem
- java.lang.Object
-
- com.filenet.api.query.SearchTemplateContentItem
-
- All Implemented Interfaces:
- java.io.Serializable
public class SearchTemplateContentItem extends java.lang.Object implements java.io.SerializableIdentifies the content search item settings in a search template that can be modified or excluded for runtime purposes and enables you to choose whether the search template settings or the property values specified for this class are to be used for the search.The SearchTemplate* classes (those classes prefixed with "SearchTemplate") enable you to control and specify runtime modification of search template data.
-
-
Constructor Summary
Constructors Constructor and Description SearchTemplateContentItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.BooleangetExcludeFromQuery()Retrieves a Boolean value indicating whether any content search items in the search template are to be excluded.GroupActiongetGroupAction()Retrieves the group actions to be available for the content search item.java.util.List<java.lang.String>getItemData()Retrieves the content search item data (the query text) to be used.java.lang.StringgetItemId()Retrieves the ID of the content search item to be modified.RequiredStategetRequiredState()Retrieves the content search item required state to be used.SearchModifiergetSearchModifier()Retrieves the content search item search modifier to be used.java.lang.DoublegetSearchModifierRange()Retrieves the content search item search modifier range to be used.voidsetExcludeFromQuery(java.lang.Boolean exclude)Excludes from the search one or more content search items specified in the search template.voidsetGroupAction(GroupAction groupAction)Specifies the group actions for the content search item to be used.voidsetItemData(java.util.List<java.lang.String> itemData)Specifies the content search item data (the query text) to be used.voidsetItemId(java.lang.String itemId)Specifies the ID of a content search item in the search template to be modified or excluded.voidsetRequiredState(RequiredState requiredState)Specifies the content search item required state to be used.voidsetSearchModifier(SearchModifier searchModifier)Specifies a search modifier to use for the content search item.voidsetSearchModifierRange(java.lang.Double searchModifierRange)Specifies the content search item search modifier range to be used.
-
-
-
Method Detail
-
getExcludeFromQuery
public java.lang.Boolean getExcludeFromQuery()
Retrieves a Boolean value indicating whether any content search items in the search template are to be excluded.- Returns:
- A
Booleanvalue offalseornullif no content search items in the search template are to be excluded at runtime;trueif one or more content search items are to be excluded.
-
setExcludeFromQuery
public void setExcludeFromQuery(java.lang.Boolean exclude)
Excludes from the search one or more content search items specified in the search template. Defaults tofalse.To exclude a content search item, set this property value to
trueand add the content search item exclusion to the search template parameters usingSearchTemplateParameters.setContent(SearchTemplateContent).- Parameters:
exclude- ABooleanvalue. Iffalseornull, no content search items in the search template are excluded, iftrue, the content search item or items to be excluded must be specified usingSearchTemplateParameters.setContent. Any content search items excluded will not be available at runtime.
-
getItemId
public java.lang.String getItemId()
Retrieves the ID of the content search item to be modified. This content search item is specified using thesetItemId.- Returns:
- A
Stringcontaining the ID of the content search item to be modified.
-
setItemId
public void setItemId(java.lang.String itemId)
Specifies the ID of a content search item in the search template to be modified or excluded. This is a required property.New content search items cannot be added to a query, so the
itemIdvalue must match the ID of a content search item existing in the search template.- Parameters:
itemId- AStringcontaining the ID of a content search item in the search template.
-
getGroupAction
public GroupAction getGroupAction()
Retrieves the group actions to be available for the content search item. The group actions for the content search item is specified using thesetGroupActionmethod.- Returns:
- A
GroupActionconstants object for the content search group actions to be available.
-
setGroupAction
public void setGroupAction(GroupAction groupAction)
Specifies the group actions for the content search item to be used. The group actions specified will override the group actions for the content search item in the search template (the groupaction element). If null, no change is made to the group actions for the content search item in the search template.Note: Some group actions may not be applicable to all supported content search engines.
- Parameters:
groupAction- AGroupActionobject specifying the group actions for the content search item.
-
getItemData
public java.util.List<java.lang.String> getItemData()
Retrieves the content search item data (the query text) to be used. The query text for the content search item is specified using thesetItemDatamethod.- Returns:
- A
Stringarray (List) of the content search item data to be available.
-
setItemData
public void setItemData(java.util.List<java.lang.String> itemData)
Specifies the content search item data (the query text) to be used. The content search item query text specified here overrides the content search item query text in the search template. If null, no change is made to the query text for the content search item in the search template.- Parameters:
itemData- AStringarray (List) specifying the query text for the content search item.
-
getSearchModifierRange
public java.lang.Double getSearchModifierRange()
Retrieves the content search item search modifier range to be used. The search modifier range for the content search item is specified using thesetSearchModifierRangemethod.- Returns:
- A
Doubleindicating the content search item search modifier range available.
-
setSearchModifierRange
public void setSearchModifierRange(java.lang.Double searchModifierRange)
Specifies the content search item search modifier range to be used. The content search item search modifier range specified here overrides the content search item search modifier range in the search template. If null, no change is made to the search modifier range for the content search item in the search template.- Parameters:
searchModifierRange- ADoubleindicating the search modifier range for the content search item.
-
getSearchModifier
public SearchModifier getSearchModifier()
Retrieves the content search item search modifier to be used. The search modifier for the content search item is specified using thesetSearchModifiermethod.- Returns:
- A
SearchModifierconstants object specifying the content search item search modifier to be used.
-
setSearchModifier
public void setSearchModifier(SearchModifier searchModifier)
Specifies a search modifier to use for the content search item. The content search item search modifier specified here overrides the content search item search modifier in the search template. If null, no change is made to the search modifier for the content search item in the search template.Note: Some search modifiers may not be applicable to all supported content search engines.
- Parameters:
searchModifier- ASearchModiferobject specifying the search modifier to use for the content search item.
-
getRequiredState
public RequiredState getRequiredState()
Retrieves the content search item required state to be used. The required state for the content search item is specified using thesetRequiredStatemethod.- Returns:
- A
RequiredStateconstants object specifying the content search item required state to be used.
-
setRequiredState
public void setRequiredState(RequiredState requiredState)
Specifies the content search item required state to be used. The content search item required state specified here overrides the content search item required state in the search template. If null, no change is made to the required state for the content search item in the search template.Note: Some required states may not be applicable to all supported content search engines.
- Parameters:
requiredState- ARequiredStateobject specifying the required state for the content search item.
-
-