Package org.ametys.cms.trash.observer
Class ResourceAddedObserver
java.lang.Object
org.ametys.cms.trash.observer.AbstractAmetysObjectAddedObserver<JCRResource>
org.ametys.cms.trash.observer.ResourceAddedObserver
- All Implemented Interfaces:
Observer,Prioritizable,Supporter<Event>,Serviceable
Observer that redirect the event to
JCRResource.-
Field Summary
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet event identifier to notify.getEventParams(JCRResource resource) Get the event params to send in the notification.Methods inherited from class org.ametys.cms.trash.observer.AbstractAmetysObjectAddedObserver
getPriority, observe, service, supports
-
Constructor Details
-
ResourceAddedObserver
public ResourceAddedObserver()
-
-
Method Details
-
getEventId
Description copied from class:AbstractAmetysObjectAddedObserverGet event identifier to notify.- Specified by:
getEventIdin classAbstractAmetysObjectAddedObserver<JCRResource>- Returns:
- the event id
-
getEventParams
Description copied from class:AbstractAmetysObjectAddedObserverGet the event params to send in the notification.- Specified by:
getEventParamsin classAbstractAmetysObjectAddedObserver<JCRResource>- Parameters:
resource- The Ametys object on which the event is send- Returns:
- the event params as a map
-