Package org.ametys.cms.trash.observer
Class IndexTrashElementObserver
java.lang.Object
org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
org.ametys.cms.trash.observer.IndexTrashElementObserver
- All Implemented Interfaces:
IndexingObserver,AsyncObserver,Observer,Prioritizable,Supporter<Event>,Serviceable
Observer to launch indexation of a trash element.
-
Field Summary
Fields inherited from class org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
_solrIndexerFields inherited from interface org.ametys.cms.indexing.IndexingObserver
INDEXING_OBSERVERFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the supported events id by the observer.protected voidprocessTrashElement(String trashElementId) Observe and process the trash elementMethods inherited from class org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
getPriority, getTrashElementId, observe, service, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizableMethods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraits
-
Constructor Details
-
IndexTrashElementObserver
public IndexTrashElementObserver()
-
-
Method Details
-
getSupportedEvents
Description copied from class:AbstractTrashElementIndexingObserverGet the supported events id by the observer.- Specified by:
getSupportedEventsin classAbstractTrashElementIndexingObserver- Returns:
- the supported events
-
processTrashElement
Description copied from class:AbstractTrashElementIndexingObserverObserve and process the trash element- Specified by:
processTrashElementin classAbstractTrashElementIndexingObserver- Parameters:
trashElementId- the trash element identifier- Throws:
Exception- if an exception occurs
-