3.5.3. Social events

All Social event listeners must be extended from the org.exoplatform.social.common.lifecycle.AbstractLifeCycle<T extends LifeCycleListener<E>, E extends LifeCycleEvent<?,?>.

People events

org.exoplatform.social.core.profile.ProfileLifeCycle will broadcast the following events when the user profile is created or when the profile information (avatar/basic info/contact/experience/current position) is updated:

Spaces events

org.exoplatform.social.core.space.SpaceLifecycle will broadcast the following events when:

  1. A space is created/removed.

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceCreated

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceRemoved

  2. An application is added/activated/deactivated/removed.

    • org.exoplatform.social.core.space.SpaceLifecycle.addApplication

    • org.exoplatform.social.core.space.SpaceLifecycle.deactivateApplication

    • org.exoplatform.social.core.space.SpaceLifecycle.activateApplication

    • org.exoplatform.social.core.space.SpaceLifecycle.removeApplication

  3. A user joined/left a space.

    • org.exoplatform.social.core.space.SpaceLifecycle.memberJoined

    • org.exoplatform.social.core.space.SpaceLifecycle.memberLeft

  4. A user is granted/revoked the "manager" role.

    • org.exoplatform.social.core.space.SpaceLifecycle.grantedLead

    • org.exoplatform.social.core.space.SpaceLifecycle.revokedLead

  5. A space is renamed.

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceRenamed

  6. Description, avatar or access permission of a space is updated.

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceDescriptionEdited

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceAvatarEdited

    • org.exoplatform.social.core.space.SpaceLifecycle.spaceAccessEdited

  7. A user requests to join or is invited to join a space.

    • org.exoplatform.social.core.space.SpaceLifecycle.addInvitedUser

    • org.exoplatform.social.core.space.SpaceLifecycle.addPendingUser

Activities events

org.exoplatform.social.core.activity.ActivityLifeCycle will broadcast the following events when:

  1. An activity is saved/updated/liked.

    • org.exoplatform.social.core.activity.ActivityLifeCycle.saveActivity

    • org.exoplatform.social.core.activity.ActivityLifeCycle.updateActivity

    • org.exoplatform.social.core.activity.ActivityLifeCycle.likeActivity

  2. A comment is saved.

    • org.exoplatform.social.core.activity.ActivityLifeCycle.saveComment

Relationships

org.exoplatform.social.core.relationship.RelationshipLifeCycle will broadcast the following events when a relationship is confirmed/removed/ignored/requested/denied:

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus