Package com.logicaldoc.calendar
Class CalendarJob
- java.lang.Object
-
- com.logicaldoc.core.task.Job
-
- com.logicaldoc.calendar.CalendarJob
-
- All Implemented Interfaces:
org.quartz.Job
public class CalendarJob extends com.logicaldoc.core.task.Job
A job to handle the reminders of the calendar events- Since:
- 8.7.4
- Author:
- Marco Meschieri - LogicalDOC
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVENT_ID
static String
GROUP
The group under which the Job will be scheduledstatic String
NAME_PREFIX
static String
REMINDER_DATE
static String
REMINDER_ID
-
Constructor Summary
Constructors Constructor Description CalendarJob()
CalendarJob(long eventId, String label, long tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext executionContext)
void
notifyEvent(Event event, Reminder reminder)
Notifies an event by creating the system messages and emails.
-
-
-
Field Detail
-
REMINDER_DATE
public static final String REMINDER_DATE
- See Also:
- Constant Field Values
-
REMINDER_ID
public static final String REMINDER_ID
- See Also:
- Constant Field Values
-
EVENT_ID
public static final String EVENT_ID
- See Also:
- Constant Field Values
-
NAME_PREFIX
public static final String NAME_PREFIX
- See Also:
- Constant Field Values
-
GROUP
public static final String GROUP
The group under which the Job will be scheduled- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CalendarJob
public CalendarJob()
-
CalendarJob
public CalendarJob(long eventId, String label, long tenantId)
-
-
Method Detail
-
execute
public void execute(org.quartz.JobExecutionContext executionContext) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
notifyEvent
public void notifyEvent(Event event, Reminder reminder) throws Exception
Notifies an event by creating the system messages and emails. It also create future occurrences if the case.- Parameters:
event
- the event to notifyreminder
- the current reminder- Throws:
Exception
- error connecting to the mail server
-
-