Class IndexingModel
- java.lang.Object
-
- org.ametys.cms.contenttype.indexing.IndexingModel
-
public class IndexingModel extends Object
Indexing model for aContentType
-
-
Constructor Summary
Constructors Constructor Description IndexingModel()
Build an empty indexing model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIndexingField(IndexingField field)
Add a indexing fieldIndexingField
getField(String fieldName)
Get the indexing field by its nameSet<String>
getFieldNames()
Get the indexing fields' namesCollection<IndexingField>
getFields()
Get the indexing fieldsMap<String,Map<String,List<String>>>
getReferences()
Get the indexing field references.void
setReferences(Map<String,Map<String,List<String>>> references)
Set the indexing field references.
-
-
-
Constructor Detail
-
IndexingModel
public IndexingModel()
Build an empty indexing model.
-
-
Method Detail
-
addIndexingField
public void addIndexingField(IndexingField field)
Add a indexing field- Parameters:
field
- The field to add
-
getFields
public Collection<IndexingField> getFields()
Get the indexing fields- Returns:
- the indexing fields
-
getFieldNames
public Set<String> getFieldNames()
Get the indexing fields' names- Returns:
- the indexing fields name
-
getField
public IndexingField getField(String fieldName)
Get the indexing field by its name- Parameters:
fieldName
- The field name- Returns:
- The indexing field or null if not found
-
getReferences
public Map<String,Map<String,List<String>>> getReferences()
Get the indexing field references.- Returns:
- the indexing field references
-
-