Package org.ametys.odf.observation.skill
Class AbstractContentSkillStep1Observer
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.observation.skill.AbstractSkillsObserver
org.ametys.odf.observation.skill.AbstractSkillsStepObserver
org.ametys.odf.observation.skill.AbstractContentSkillStep1Observer
- All Implemented Interfaces:
Observer
,LogEnabled
,Prioritizable
,Supporter<Event>
,Contextualizable
,Serviceable
- Direct Known Subclasses:
DeleteContentSkillStep1Observer
,UpdateContentSkillStep1Observer
Observer to store the skills of a content before modification.
When the deleted content is a Program, keep its "skills" in the request to be able to compare them after modification
When the deleted content is a Macro skill, keep its "microSkills" in the request to be able to compare them after modification
-
Field Summary
Fields inherited from class org.ametys.odf.observation.skill.AbstractSkillsStepObserver
_context
Fields inherited from class org.ametys.odf.observation.skill.AbstractSkillsObserver
_contentDAO, _contentTypesHelper
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ametys.odf.observation.skill.AbstractSkillsStepObserver
_getRequestAttribute, _setRequestAttribute, contextualize, getSkillsToDelete
Methods inherited from class org.ametys.odf.observation.skill.AbstractSkillsObserver
_getSkills, getPriority, getSkillsAttributeName, getSupportedEventId, service, supports, supportsContent
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
AbstractContentSkillStep1Observer
public AbstractContentSkillStep1Observer()
-
-
Method Details
-
observe
Description copied from interface:Observer
Observes an event.- Parameters:
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event. This may allow optimizations between observers.- Throws:
Exception
- if an error occurs. All exceptions will be logged but not propagated, as the observation mechanism should never fail.
-