Package lumis.service.userpost
Class UserPostContentPublicationUpdateObserver
- java.lang.Object
-
- lumis.service.userpost.UserPostContentPublicationUpdateObserver
-
- All Implemented Interfaces:
IPortalEventObserver
public class UserPostContentPublicationUpdateObserver extends Object implements IPortalEventObserver
Listens to content locale or content publication persistence update events and, if necessary, attaches a transaction observer for creating an activity related to these user post contents.- Since:
- 10.1.0
- Version:
- $Revision: 19963 $ $Date: 2017-02-21 19:28:29 -0300 (Tue, 21 Feb 2017) $
-
-
Constructor Summary
Constructors Constructor Description UserPostContentPublicationUpdateObserver()
-
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.
-
-
-
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
- 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.
- Specified by:
onEvent
in interfaceIPortalEventObserver
- Parameters:
event
- the event.- Throws:
PortalException
-
-