Package org.exoplatform.agenda.listener
Class AgendaCalendarShareUserListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.organization.UserEventListener
org.exoplatform.agenda.listener.AgendaCalendarShareUserListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class AgendaCalendarShareUserListener
extends org.exoplatform.services.organization.UserEventListener
Deletes the calendar shares a deleted user held, as the colleague they were
shared with and as the owner of the calendars they shared (EXO-90357). Glue
only, registered on the organization service from
configuration.xml
as the other user listeners of the platform are.
Read before the user goes: the identity is still resolvable by username at
preDelete, and is what the share rows name.
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpreDelete(org.exoplatform.services.organization.User user) Deletes the shares of a user about to be deleted.Methods inherited from class org.exoplatform.services.organization.UserEventListener
postDelete, postSave, postSetEnabled, preSave, preSetEnabledMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
AgendaCalendarShareUserListener
public AgendaCalendarShareUserListener()
-
-
Method Details
-
preDelete
public void preDelete(org.exoplatform.services.organization.User user) Deletes the shares of a user about to be deleted.- Overrides:
preDeletein classorg.exoplatform.services.organization.UserEventListener- Parameters:
user- the user
-