public class DeleteActivitiesTaskHandler extends ClientTaskHandler implements TaskHandler
| Constructor and Description |
|---|
DeleteActivitiesTaskHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkRunTask(TaskTO task)
Check if the task should actually be run.
|
Date |
getRescheduleDate(Date now)
Return the time a task should run again.
|
boolean |
isDuplicateNoteIdDetected() |
protected void |
runOnClient(TaskTO task)
Collects all activities and deletes activity notes for them.
|
checkRunOnClient, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprotected boolean checkRunTask(TaskTO task)
ClientTaskHandlercheckRunTask in class ClientTaskHandlertask - the task to checkpublic Date getRescheduleDate(Date now)
It is possible to set the difference in hours for the next schedule using the system property "com.communote.activity.job.delete.reschedule.in.hours". The value must be an integer.
getRescheduleDate in interface TaskHandlernow - The date to use for any calculations.public boolean isDuplicateNoteIdDetected()
protected void runOnClient(TaskTO task) throws Exception
Collects all activities and deletes activity notes for them.
Is called for each clientrunOnClient in class ClientTaskHandlertask - the taskException - in case something goes wrongCopyright © 2019 Communote team. All rights reserved.