Class OrganizationalUnitGroupListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.organization.GroupEventListener
io.meeds.social.organizationalunit.listener.OrganizationalUnitGroupListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
@Component
public class OrganizationalUnitGroupListener
extends org.exoplatform.services.organization.GroupEventListener
Keeps
SOC_ORGANIZATIONAL_UNIT in sync with the organization service:
refreshes the denormalized label when a group is renamed, and drops the row
when a group is deleted.-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voidinit()voidpostDelete(org.exoplatform.services.organization.Group group) voidpostSave(org.exoplatform.services.organization.Group group, boolean isNew) Methods inherited from class org.exoplatform.services.organization.GroupEventListener
linkGroups, preDelete, preSave, unlinkGroupsMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
OrganizationalUnitGroupListener
public OrganizationalUnitGroupListener()
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
postSave
public void postSave(org.exoplatform.services.organization.Group group, boolean isNew) throws Exception - Overrides:
postSavein classorg.exoplatform.services.organization.GroupEventListener- Throws:
Exception
-
postDelete
- Overrides:
postDeletein classorg.exoplatform.services.organization.GroupEventListener- Throws:
Exception
-