Package org.ametys.odf.observation.skill
Class DeleteContentSkillStep2Observer
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.DeleteContentSkillStep2Observer
- All Implemented Interfaces:
Observer,LogEnabled,Prioritizable,Supporter<Event>,Contextualizable,Serviceable
Observer to delete skills that became orphans after the deletion of their parent.
When the deleted content is a Program, delete the linked macro skills that would become orphans
The deletion of macro skills will trigger the deletion of its micro skills
When the deleted content is a Macro skill, delete the linked micro skills that would become orphans
-
Field Summary
Fields inherited from class org.ametys.odf.observation.skill.AbstractSkillsStepObserver
_contextFields inherited from class org.ametys.odf.observation.skill.AbstractSkillsObserver
_contentDAO, _contentTypesHelperFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the supported event idvoidObserves an event.voidservice(ServiceManager manager) Methods inherited from class org.ametys.odf.observation.skill.AbstractSkillsStepObserver
_getRequestAttribute, _setRequestAttribute, contextualize, getSkillsToDeleteMethods inherited from class org.ametys.odf.observation.skill.AbstractSkillsObserver
_getSkills, getPriority, getSkillsAttributeName, supports, supportsContentMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
DeleteContentSkillStep2Observer
public DeleteContentSkillStep2Observer()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractSkillsObserver- Throws:
ServiceException
-
getSupportedEventId
Description copied from class:AbstractSkillsObserverGet the supported event id- Specified by:
getSupportedEventIdin classAbstractSkillsObserver- Returns:
- the event id
-
observe
Description copied from interface:ObserverObserves 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.
-