Package lumis.content.bigdata
Class ContentIndexerObserver
- java.lang.Object
-
- lumis.portal.event.AbstractPortalEventObserver
-
- lumis.content.bigdata.ContentIndexerObserver
-
- All Implemented Interfaces:
IPortalEventObserver
public class ContentIndexerObserver extends AbstractPortalEventObserver
Listens to content persistence events, triggering content re-indexing as necessary.- Since:
- 8.1.0
- Version:
- $Revision: 18143 $ $Date: 2015-12-16 16:14:52 -0200 (Wed, 16 Dec 2015) $
- See Also:
IContentManager.scheduleReindex(Content)
-
-
Field Summary
Fields Modifier and Type Field Description static String
TRANSACTION_ATTRIBUTE_DISABLE
ITransaction
attribute that when present disables this observer for that transaction.
-
Constructor Summary
Constructors Constructor Description ContentIndexerObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPortalEventFilter
getEventFilter()
Returns the event filter for this observer.void
onEvent(IPortalEvent event)
Notifies that an event has been raised.
-
-
-
Field Detail
-
TRANSACTION_ATTRIBUTE_DISABLE
public static final String TRANSACTION_ATTRIBUTE_DISABLE
ITransaction
attribute that when present disables this observer for that transaction.- Since:
- 8.1.0
-
-
Method Detail
-
getEventFilter
public IPortalEventFilter getEventFilter()
Description copied from interface:IPortalEventObserver
Returns the event filter for this observer.PortalEventFilters
provides methods for generating commonly used filters.- Specified by:
getEventFilter
in interfaceIPortalEventObserver
- Overrides:
getEventFilter
in classAbstractPortalEventObserver
- Returns:
- a collection of event group identifiers.
- See Also:
PortalEventFilters
-
onEvent
public void onEvent(IPortalEvent event) throws PortalException
Description copied from interface:IPortalEventObserver
Notifies that an event has been raised. This method will be called only for events that belong to the groups specified by#getExpectedEventGroups()
.Important: The implementation of this method must not be time consuming, as it may impact the overall time response of the portal.
- Parameters:
event
- the event.- Throws:
PortalException
-
-