Package org.ametys.odf.observation.skill
Class AbstractSkillsObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.observation.skill.AbstractSkillsObserver
- All Implemented Interfaces:
Observer,LogEnabled,Prioritizable,Supporter<Event>,Serviceable
- Direct Known Subclasses:
AbstractSkillsStepObserver
public abstract class AbstractSkillsObserver
extends AbstractLogEnabled
implements Observer, Serviceable
Abstract observer to prepare skills observer when a content is updated
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentDAOThe content daoprotected ContentTypesHelperThe content types helperFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentValue[]_getSkills(Content content) Retrieve the skill from a contentintGet the priority for the component.protected StringgetSkillsAttributeName(Content content) Get the skills attribute nameprotected abstract StringGet the supported event idvoidservice(ServiceManager manager) booleanCheck if an element is supportedprotected booleansupportsContent(Content content) Check if the content is supportedMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_contentDAO
The content dao -
_contentTypesHelper
The content types helper
-
-
Constructor Details
-
AbstractSkillsObserver
public AbstractSkillsObserver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
supports
Description copied from interface:SupporterCheck if an element is supported -
getSupportedEventId
Get the supported event id- Returns:
- the event id
-
supportsContent
Check if the content is supported- Parameters:
content- The content- Returns:
- a
Boolean,trueif the content is supported,falseotherwise
-
_getSkills
Retrieve the skill from a content- Parameters:
content- The content- Returns:
- The skills
-
getSkillsAttributeName
Get the skills attribute name- Parameters:
content- The content- Returns:
- The attribute name for the skills
-