Class UserPageCacheObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.cache.AbstractCacheObserver
org.ametys.plugins.userdirectory.observation.UserPageCacheObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
Observer
when the user directory root is updated
Clear the cache for getting user page-
Field Summary
Modifier and TypeFieldDescriptionprotected UserDirectoryPageResolver
The user directory page resolverFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.web.cache.AbstractCacheObserver
getPriority
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_userDirectoryPageResolver
The user directory page resolver
-
-
Constructor Details
-
UserPageCacheObserver
public UserPageCacheObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called. -
observe
Description copied from interface:Observer
Observes an event.- Specified by:
observe
in interfaceObserver
- Parameters:
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event. This may allow optimizations between observers.- Throws:
Exception
- if an error occurs. All exceptions will be logged but not propagated, as the observation mechanism should never fail.
-