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
public class GamificationTaskUpdateListener
extends org.exoplatform.services.listener.Listener<TaskService,TaskPayload>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected 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, setName
-
Field Details
-
GAMIFICATION_TASK_ADDON_CREATE_TASK
- See Also:
-
GAMIFICATION_TASK_ADDON_COMPLETED_TASK_ASSIGNED
- See Also:
-
GAMIFICATION_TASK_ADDON_COMPLETED_TASK_COWORKER
- See Also:
-
GAMIFICATION_TASK_ADDON_COMPLETED_TASK
- See Also:
-
GAMIFICATION_TASK_ADDON_UPDATE_TASK
- See Also:
-
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- Specified by:
onEventin classorg.exoplatform.services.listener.Listener<TaskService,TaskPayload> - Throws:
Exception
-
createTask
- Throws:
Exception
-
updateTask
- Throws:
Exception
-