Package org.ametys.cms.trash.observer
Class UnindexTrashElementObserver
java.lang.Object
org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
org.ametys.cms.trash.observer.UnindexTrashElementObserver
- All Implemented Interfaces:
IndexingObserver
,AsyncObserver
,Observer
,Prioritizable
,Supporter<Event>
,Serviceable
Observer to launch unindexation of a trash element.
-
Field Summary
Fields inherited from class org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
_solrIndexer
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 supported events id by the observer.protected void
processTrashElement
(String trashElementId) Observe and process the trash elementMethods inherited from class org.ametys.cms.trash.observer.AbstractTrashElementIndexingObserver
getPriority, getTrashElementId, observe, service, supports
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
Methods inherited from interface org.ametys.cms.indexing.IndexingObserver
getTraits
-
Constructor Details
-
UnindexTrashElementObserver
public UnindexTrashElementObserver()
-
-
Method Details
-
getSupportedEvents
Description copied from class:AbstractTrashElementIndexingObserver
Get the supported events id by the observer.- Specified by:
getSupportedEvents
in classAbstractTrashElementIndexingObserver
- Returns:
- the supported events
-
processTrashElement
Description copied from class:AbstractTrashElementIndexingObserver
Observe and process the trash element- Specified by:
processTrashElement
in classAbstractTrashElementIndexingObserver
- Parameters:
trashElementId
- the trash element identifier- Throws:
Exception
- if an exception occurs
-