Class ProjectIndexingField
- java.lang.Object
 - 
- org.ametys.plugins.workspaces.members.solr.ProjectIndexingField
 
 
- 
- All Implemented Interfaces:
 CustomIndexingField,IndexingField,PluginAware,Configurable,Serviceable
public class ProjectIndexingField extends Object implements CustomIndexingField, Configurable, Serviceable, PluginAware
CustomIndexingFieldto index member's projects 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected I18nizableText_descriptionThe description fieldprotected I18nizableText_labelThe label fieldprivate String_pluginNameprivate ProjectManager_projectManager 
- 
Constructor Summary
Constructors Constructor Description ProjectIndexingField() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)I18nizableTextgetDescription()Get the field description.I18nizableTextgetLabel()Get the field label.StringgetName()Get the field's nameMetadataTypegetType()Get the typeObject[]getValues(Content content)Get a content's values to index.voidservice(ServiceManager manager)voidsetPluginInfo(String pluginName, String featureName, String id)Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. 
 - 
 
- 
- 
Field Detail
- 
_label
protected I18nizableText _label
The label field 
- 
_description
protected I18nizableText _description
The description field 
- 
_projectManager
private ProjectManager _projectManager
 
- 
_pluginName
private String _pluginName
 
 - 
 
- 
Constructor Detail
- 
ProjectIndexingField
public ProjectIndexingField()
 
 - 
 
- 
Method Detail
- 
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
 setPluginInfoin interfacePluginAware- Parameters:
 pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
 
- 
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
 configurein interfaceConfigurable- Throws:
 ConfigurationException
 
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 
- 
getName
public String getName()
Description copied from interface:IndexingFieldGet the field's name- Specified by:
 getNamein interfaceIndexingField- Returns:
 - the field's name
 
 
- 
getLabel
public I18nizableText getLabel()
Description copied from interface:IndexingFieldGet the field label.- Specified by:
 getLabelin interfaceIndexingField- Returns:
 - the field label.
 
 
- 
getDescription
public I18nizableText getDescription()
Description copied from interface:IndexingFieldGet the field description.- Specified by:
 getDescriptionin interfaceIndexingField- Returns:
 - the field description.
 
 
- 
getType
public MetadataType getType()
Description copied from interface:IndexingFieldGet the type- Specified by:
 getTypein interfaceIndexingField- Returns:
 - the type
 
 
- 
getValues
public Object[] getValues(Content content)
Description copied from interface:CustomIndexingFieldGet a content's values to index.- Specified by:
 getValuesin interfaceCustomIndexingField- Parameters:
 content- The content being indexed.- Returns:
 - the values to index.
 
 
 - 
 
 -