Class GamificationTaskUpdateListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<TaskService,TaskPayload>
org.exoplatform.task.integration.gamification.GamificationTaskUpdateListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.listener.ListenerBase<TaskService,TaskPayload>
public class GamificationTaskUpdateListener
extends org.exoplatform.services.listener.Listener<TaskService,TaskPayload>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.exoplatform.social.core.manager.IdentityManagerprotected org.exoplatform.services.listener.ListenerServiceprotected TaskServiceFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionGamificationTaskUpdateListener(TaskService taskService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateTask(TaskDto task, String eventName) voidonEvent(org.exoplatform.services.listener.Event<TaskService, TaskPayload> event) protected voidupdateTask(TaskDto before, TaskDto after, String eventName) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Field Details
-
taskService
-
identityManager
protected org.exoplatform.social.core.manager.IdentityManager identityManager -
listenerService
protected org.exoplatform.services.listener.ListenerService listenerService
-
-
Constructor Details
-
GamificationTaskUpdateListener
public GamificationTaskUpdateListener(TaskService taskService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
onEvent
public void onEvent(org.exoplatform.services.listener.Event<TaskService, TaskPayload> event) throws Exception- Throws:
Exception
-
createTask
- Throws:
Exception
-
updateTask
- Throws:
Exception
-