Class SemanticAnnotationIndexingField
java.lang.Object
org.ametys.cms.contenttype.indexing.SemanticAnnotationIndexingField
- All Implemented Interfaces:
CustomIndexingField
,IndexingField
IndexingField realizing the indexation of semantic annotations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected SemanticAnnotation
The referenced semantic annotation.protected ContentType
The declaring content type.The metadata paths. -
Constructor Summary
ConstructorDescriptionSemanticAnnotationIndexingField
(SemanticAnnotation annotation, Collection<String> metaPaths, ContentType contentType) Build a SemanticAnnotationIndexingField. -
Method Summary
-
Field Details
-
_annotation
The referenced semantic annotation. -
_metaPaths
The metadata paths. -
_contentType
The declaring content type.
-
-
Constructor Details
-
SemanticAnnotationIndexingField
public SemanticAnnotationIndexingField(SemanticAnnotation annotation, Collection<String> metaPaths, ContentType contentType) Build a SemanticAnnotationIndexingField.- Parameters:
annotation
- The semantic annotation.metaPaths
- The paths of the rich text metadatas declaring the annotation.contentType
- The declaring content type.
-
-
Method Details
-
getName
Description copied from interface:IndexingField
Get the field's name- Specified by:
getName
in interfaceIndexingField
- Returns:
- the field's name
-
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.
-