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
Modifier and TypeFieldDescriptionprotected ContentSearchHelper
The content helper.protected String
The content type IDprotected ContentTypeExtensionPoint
The content type extension point.protected ContentTypesHelper
The content type helper.protected MetadataDefinition
The metadata definition (taken from the first metadata).The metadata paths.protected String
The field name -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) Get the field description.getLabel()
Get the field label.Get the metadata definitionGet the metadata path.getName()
Get the field's namegetType()
Get the typeObject[]
Get a content's values to index.void
service
(ServiceManager manager)
-
Field Details
-
_cTypeEP
The content type extension point. -
_cTypeHelper
The content type helper. -
_contentHelper
The content helper. -
_name
The field name -
_contentTypeId
The content type ID -
_metadataPaths
The metadata paths. -
_definition
The metadata definition (taken from the first metadata).
-
-
Constructor Details
-
MultiStringValuesIndexingField
public MultiStringValuesIndexingField()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getName
Description copied from interface:IndexingField
Get the field's name- Specified by:
getName
in interfaceIndexingField
- Returns:
- the field's name
-
getMetadataDefinition
Description copied from interface:MetadataIndexingField
Get the metadata definition- Specified by:
getMetadataDefinition
in interfaceMetadataIndexingField
- Returns:
- the metadata definition
-
getMetadataPath
Description copied from interface:MetadataIndexingField
Get the metadata path.- Specified by:
getMetadataPath
in interfaceMetadataIndexingField
- Returns:
- the metadata path.
-
getLabel
Description copied from interface:IndexingField
Get the field label.- Specified by:
getLabel
in interfaceIndexingField
- Returns:
- the field label.
-
getDescription
Description copied from interface:IndexingField
Get the field description.- Specified by:
getDescription
in interfaceIndexingField
- Returns:
- the field description.
-
getType
Description copied from interface:IndexingField
Get the type- Specified by:
getType
in interfaceIndexingField
- Returns:
- the type
-
getValues
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.
-