Class MultiStringValuesIndexingField
- java.lang.Object
-
- org.ametys.cms.contenttype.indexing.MultiStringValuesIndexingField
-
- All Implemented Interfaces:
CustomIndexingField
,CustomMetadataIndexingField
,IndexingField
,MetadataIndexingField
,Configurable
,Serviceable
public class MultiStringValuesIndexingField extends Object implements CustomMetadataIndexingField, Configurable, Serviceable
CustomMetadataIndexingField
indexing multiple string values in one field.
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentSearchHelper
_contentHelper
The content helper.protected String
_contentTypeId
The content type IDprotected ContentTypeExtensionPoint
_cTypeEP
The content type extension point.protected ContentTypesHelper
_cTypeHelper
The content type helper.protected MetadataDefinition
_definition
The metadata definition (taken from the first metadata).protected List<String>
_metadataPaths
The metadata paths.protected String
_name
The field name
-
Constructor Summary
Constructors Constructor Description MultiStringValuesIndexingField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
I18nizableText
getDescription()
Get the field description.I18nizableText
getLabel()
Get the field label.MetadataDefinition
getMetadataDefinition()
Get the metadata definitionString
getMetadataPath()
Get the metadata path.String
getName()
Get the field's nameMetadataType
getType()
Get the typeObject[]
getValues(Content content)
Get a content's values to index.void
service(ServiceManager manager)
-
-
-
Field Detail
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point.
-
_cTypeHelper
protected ContentTypesHelper _cTypeHelper
The content type helper.
-
_contentHelper
protected ContentSearchHelper _contentHelper
The content helper.
-
_contentTypeId
protected String _contentTypeId
The content type ID
-
_metadataPaths
protected List<String> _metadataPaths
The metadata paths.
-
_definition
protected MetadataDefinition _definition
The metadata definition (taken from the first metadata).
-
-
Constructor Detail
-
MultiStringValuesIndexingField
public MultiStringValuesIndexingField()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getName
public String getName()
Description copied from interface:IndexingField
Get the field's name- Specified by:
getName
in interfaceIndexingField
- Returns:
- the field's name
-
getMetadataDefinition
public MetadataDefinition getMetadataDefinition()
Description copied from interface:MetadataIndexingField
Get the metadata definition- Specified by:
getMetadataDefinition
in interfaceMetadataIndexingField
- Returns:
- the metadata definition
-
getMetadataPath
public String getMetadataPath()
Description copied from interface:MetadataIndexingField
Get the metadata path.- Specified by:
getMetadataPath
in interfaceMetadataIndexingField
- Returns:
- the metadata path.
-
getLabel
public I18nizableText getLabel()
Description copied from interface:IndexingField
Get the field label.- Specified by:
getLabel
in interfaceIndexingField
- Returns:
- the field label.
-
getDescription
public I18nizableText getDescription()
Description copied from interface:IndexingField
Get the field description.- Specified by:
getDescription
in interfaceIndexingField
- Returns:
- the field description.
-
getType
public MetadataType getType()
Description copied from interface:IndexingField
Get the type- Specified by:
getType
in interfaceIndexingField
- Returns:
- the type
-
getValues
public Object[] getValues(Content content)
Description copied from interface:CustomIndexingField
Get a content's values to index.- Specified by:
getValues
in interfaceCustomIndexingField
- Parameters:
content
- The content being indexed.- Returns:
- the values to index.
-
-