Package com.logicaldoc.calendar
Class CalendarProcessor
- java.lang.Object
-
- com.logicaldoc.core.task.Task
-
- com.logicaldoc.calendar.CalendarProcessor
-
- All Implemented Interfaces:
Runnable
public class CalendarProcessor extends com.logicaldoc.core.task.Task
The component processes the calendar events.- Since:
- 6.7
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description CalendarProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventDAO
getEventDao()
com.logicaldoc.core.communication.SystemMessageDAO
getSystemMessageDao()
boolean
isConcurrent()
boolean
isIndeterminate()
void
notifyEvent(Event event, com.logicaldoc.core.communication.EMailSender sender, String tenant)
Notifies an event by creating the system messages and emails.void
setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
void
setEventDao(EventDAO eventDao)
void
setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
void
setSystemMessageDao(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDao)
void
setTenantDao(com.logicaldoc.core.security.dao.TenantDAO tenantDao)
-
Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setConfig, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isIndeterminate
public boolean isIndeterminate()
- Specified by:
isIndeterminate
in classcom.logicaldoc.core.task.Task
-
isConcurrent
public boolean isConcurrent()
- Specified by:
isConcurrent
in classcom.logicaldoc.core.task.Task
-
notifyEvent
public void notifyEvent(Event event, com.logicaldoc.core.communication.EMailSender sender, String tenant) 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 notifysender
- the sender objecttenant
- the current tenant- Throws:
Exception
- error connecting to the mail server
-
getSystemMessageDao
public com.logicaldoc.core.communication.SystemMessageDAO getSystemMessageDao()
-
setSystemMessageDao
public void setSystemMessageDao(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDao)
-
getEventDao
public EventDAO getEventDao()
-
setEventDao
public void setEventDao(EventDAO eventDao)
-
setTenantDao
public void setTenantDao(com.logicaldoc.core.security.dao.TenantDAO tenantDao)
-
setMessageTemplateDao
public void setMessageTemplateDao(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
-
setDocumentDao
public void setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
-
-