Class ModifiedJobOfferObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.joboffer.observer.AbstractJobOfferObserver
org.ametys.plugins.joboffer.observer.ModifiedJobOfferObserver
- All Implemented Interfaces:
IndexingObserver
,Observer
,LogEnabled
,Prioritizable
,Supporter<Event>
,Contextualizable
,Serviceable
Observer
when the job offer has been modified-
Field Summary
Fields inherited from class org.ametys.plugins.joboffer.observer.AbstractJobOfferObserver
_cTypeHelper, _resolver, REQUEST_ATTR_PERSON_IN_CHARGE
Fields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVER
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the id of supported eventsprotected void
Internal observervoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.plugins.joboffer.observer.AbstractJobOfferObserver
_getRequest, contextualize, getJobOffer, getPriority, observe, supports
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraits
Methods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
Constructor Details
-
ModifiedJobOfferObserver
public ModifiedJobOfferObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractJobOfferObserver
- Throws:
ServiceException
-
_getSupportedEventIds
Description copied from class:AbstractJobOfferObserver
Get the id of supported events- Specified by:
_getSupportedEventIds
in classAbstractJobOfferObserver
- Returns:
- the id in a Set
-
_internalObserver
protected void _internalObserver(Event event, Content content, Map<String, Object> transientVars) throws ExceptionDescription copied from class:AbstractJobOfferObserver
Internal observer- Specified by:
_internalObserver
in classAbstractJobOfferObserver
- Parameters:
event
- the eventcontent
- the job offer content. Cannot be null.transientVars
- The transient variables- Throws:
Exception
- if an error occurred
-