Package lumis.portal.localization
Class LocalizationCacheClearObserver
- java.lang.Object
-
- lumis.portal.localization.LocalizationCacheClearObserver
-
- All Implemented Interfaces:
IPortalEventObserver
public class LocalizationCacheClearObserver extends Object implements IPortalEventObserver
Clears localization cache when the portal root channel is updated. This is required since theILocalizationManager.getDefaultLocale()
value is cached and is configured in the portal root channel.- Since:
- 8.1.0
- Version:
- $Revision: 17593 $ $Date: 2015-07-17 11:21:36 -0300 (Fri, 17 Jul 2015) $
-
-
Constructor Summary
Constructors Constructor Description LocalizationCacheClearObserver()
-
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
-
-