Class InvalidateCacheOnMemberUpdatedObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.members.observers.AbstractMemberObserver
org.ametys.plugins.workspaces.members.observers.InvalidateCacheOnMemberUpdatedObserver
- All Implemented Interfaces:
AsyncObserver,Observer,LogEnabled,Prioritizable,Supporter<Event>,Serviceable
Observer to invalidate cache on front-office of a user content when a member was added or removed from a project-
Field Summary
Fields inherited from class org.ametys.plugins.workspaces.members.observers.AbstractMemberObserver
_groupManager, _projectManager, _siteManager, _smanager, _userDirectoryHelperFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_internalObserve(Event event, List<Content> userContents) Observes the event with access to the user contentsintGet the priority for the component.voidservice(ServiceManager smanager) Methods inherited from class org.ametys.plugins.workspaces.members.observers.AbstractMemberObserver
getUserContents, observe, supportsMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.observation.AsyncObserver
parallelizable
-
Constructor Details
-
InvalidateCacheOnMemberUpdatedObserver
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractMemberObserver- Throws:
ServiceException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Overrides:
getPriorityin classAbstractMemberObserver- Returns:
- the priority
-
_internalObserve
Description copied from class:AbstractMemberObserverObserves the event with access to the user contents- Specified by:
_internalObservein classAbstractMemberObserver- Parameters:
event- the event.userContents- the user contents- Throws:
Exception- if an error occurs.
-