public interface I_CmsSearchFieldMapping
extends java.io.Serializable
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getDefaultValue()
Returns the default value used for this field mapping in case no content is available.
|
java.lang.String |
getParam()
Returns the mapping parameter.
|
java.lang.String |
getStringValue(CmsObject cms,
CmsResource res,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Returns the String value extracted form the provided data according to the rules of this mapping type.
|
CmsSearchFieldMappingType |
getType()
Returns the mapping type.
|
void |
setDefaultValue(java.lang.String defaultValue)
Sets the default value for this field mapping in case no content is available.
|
void |
setParam(java.lang.String param)
Sets the mapping parameter.
|
void |
setType(CmsSearchFieldMappingType type)
Sets the mapping type.
|
void |
setType(java.lang.String type)
Sets the mapping type as a String.
|
java.lang.String getDefaultValue()
java.lang.String getParam()
The parameter is used depending on the implementation of the rules of
the selected CmsSearchFieldMappingType
.
java.lang.String getStringValue(CmsObject cms, CmsResource res, I_CmsExtractionResult extractionResult, java.util.List<CmsProperty> properties, java.util.List<CmsProperty> propertiesSearched)
cms
- the OpenCms context used for building the search indexres
- the resource that is indexedextractionResult
- the plain text extraction result from the resourceproperties
- the list of all properties directly attached to the resource (not searched)propertiesSearched
- the list of all searched properties of the resourceCmsSearchFieldMappingType getType()
void setDefaultValue(java.lang.String defaultValue)
defaultValue
- the default value to setvoid setParam(java.lang.String param)
The parameter is used depending on the implementation of the rules of
the selected CmsSearchFieldMappingType
.
param
- the parameter to setvoid setType(CmsSearchFieldMappingType type)
type
- the type to setvoid setType(java.lang.String type)
type
- the name of the type to set