Package org.ametys.odf.skill
Class ProgramSkillsIndexingField
- java.lang.Object
-
- org.ametys.odf.skill.ProgramSkillsIndexingField
-
- All Implemented Interfaces:
CustomIndexingField
,IndexingField
,Configurable
,Serviceable
public class ProgramSkillsIndexingField extends Object implements CustomIndexingField, Configurable, Serviceable
CustomIndexingField
indexing acquired skills of child courses on aAbstractProgram
-
-
Field Summary
Fields Modifier and Type Field Description protected I18nizableText
_description
The description fieldprotected I18nizableText
_label
The label fieldprotected String
_name
The field nameprotected ODFSkillsHelper
_skillsHelper
The skills helperstatic String
PROGRAM_SKILLS_INDEXING_FIELD
The name of indexing field holding the computed acquired skills
-
Constructor Summary
Constructors Constructor Description ProgramSkillsIndexingField()
-
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.String
getName()
Get the field's nameMetadataType
getType()
Get the typeObject[]
getValues(Content content)
Get a content's values to index.void
service(ServiceManager smanager)
-
-
-
Field Detail
-
PROGRAM_SKILLS_INDEXING_FIELD
public static final String PROGRAM_SKILLS_INDEXING_FIELD
The name of indexing field holding the computed acquired skills- See Also:
- Constant Field Values
-
_label
protected I18nizableText _label
The label field
-
_description
protected I18nizableText _description
The description field
-
_skillsHelper
protected ODFSkillsHelper _skillsHelper
The skills helper
-
-
Constructor Detail
-
ProgramSkillsIndexingField
public ProgramSkillsIndexingField()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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.
-
getName
public String getName()
Description copied from interface:IndexingField
Get the field's name- Specified by:
getName
in interfaceIndexingField
- Returns:
- the field's name
-
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
-
-