public class GamificationTaskUpdateListener
extends org.exoplatform.services.listener.Listener<org.exoplatform.task.service.TaskService,org.exoplatform.task.service.TaskPayload>
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.addons.gamification.service.effective.GamificationService |
gamificationService |
protected org.exoplatform.social.core.manager.IdentityManager |
identityManager |
protected org.exoplatform.addons.gamification.service.configuration.RuleService |
ruleService |
| Constructor and Description |
|---|
GamificationTaskUpdateListener(org.exoplatform.addons.gamification.service.configuration.RuleService ruleService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.addons.gamification.service.effective.GamificationService gamificationService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createTask(org.exoplatform.task.domain.Task task) |
protected boolean |
isDiff(Object before,
Object after)
Check whether a task has been updated
|
void |
onEvent(org.exoplatform.services.listener.Event<org.exoplatform.task.service.TaskService,org.exoplatform.task.service.TaskPayload> event) |
protected void |
updateTask(org.exoplatform.task.domain.Task before,
org.exoplatform.task.domain.Task after) |
protected org.exoplatform.addons.gamification.service.configuration.RuleService ruleService
protected org.exoplatform.social.core.manager.IdentityManager identityManager
protected org.exoplatform.addons.gamification.service.effective.GamificationService gamificationService
public GamificationTaskUpdateListener(org.exoplatform.addons.gamification.service.configuration.RuleService ruleService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.addons.gamification.service.effective.GamificationService gamificationService)
public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.task.service.TaskService,org.exoplatform.task.service.TaskPayload> event)
throws Exception
onEvent in class org.exoplatform.services.listener.Listener<org.exoplatform.task.service.TaskService,org.exoplatform.task.service.TaskPayload>Exceptionprotected void createTask(org.exoplatform.task.domain.Task task)
protected void updateTask(org.exoplatform.task.domain.Task before,
org.exoplatform.task.domain.Task after)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.