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, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
protected boolean checkRunTask(TaskTO task)
ClientTaskHandler
checkRunTask
in class ClientTaskHandler
task
- 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 TaskHandler
now
- 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 ClientTaskHandler
task
- the taskException
- in case something goes wrongCopyright © 2019 Communote team. All rights reserved.