Class BTMessageCreate
java.lang.Object
overit.geocall.bl.BusinessTask<MessageCreateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask<MessageCreateEvent>
overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask<MessageCreateEvent>
overit.geocallapp.wfm.cee.bl.task.BTCeeManagement<MessageCreateEvent>
overit.geocallapp.wfm.cee.bl.message.task.BTMessageCreate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTMailMessageCreate,BTPushNotificationMessageCreate,BTSmsMessageCreate
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DTOMessagecreateDtoMessage(Message message) protected voidexecute(MessageCreateEvent event, PoolKit poolKit) protected overit.geocallapp.wfm.mail.EmailProcessorprotected List<DTOMessage> protected overit.geocall.basic.mm.MMgetMultimediaMessage(Long multimediaMessageId, PoolKit pk) protected LonggetMultimediaMessageId(Long templateId, PoolKit pk) getTagValues(Map<String, Object> values, String language) protected TeachergetTeacher(String language) protected LonggetTemplateId(Long eventId, String language, PoolKit pk) protected LonggetTemplateIdByLanguage(Long eventId, String templateLanguage, PoolKit pk) protected abstract Stringprotected voidprotected voidprotected abstract MessageprepareMessage(overit.geocall.basic.mm.MM templateMultimediaMessage, overit.geocallapp.wfm.mail.EmailProcessor emailProcessor, HashMap<String, Object> tagValues) Methods inherited from class overit.geocallapp.wfm.cee.bl.task.BTCeeManagement
checkValidExecution, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidPermissionBusinessTask
getExceptionMethods inherited from class overit.geocallapp.wfm.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
LOG
-
-
Constructor Details
-
BTMessageCreate
public BTMessageCreate()
-
-
Method Details
-
execute
protected void execute(MessageCreateEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classValidExecutionBusinessTask<MessageCreateEvent>- Throws:
DAExceptionDAValidateException
-
getMessages
protected List<DTOMessage> getMessages(Long eventId, Map<String, Object> values, String language, PoolKit pk) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
getTemplateId
protected Long getTemplateId(Long eventId, String language, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getTemplateIdByLanguage
protected Long getTemplateIdByLanguage(Long eventId, String templateLanguage, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getTemplateIdField
-
manageTemplateNotFound
- Throws:
DAValidateException- can throw exception (for customization purpose)
-
getMultimediaMessageId
- Throws:
DAException
-
manageErrorLoadingTemplate
- Throws:
DAValidateException
-
getMultimediaMessage
protected overit.geocall.basic.mm.MM getMultimediaMessage(Long multimediaMessageId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getEmailProcessor
protected overit.geocallapp.wfm.mail.EmailProcessor getEmailProcessor() -
getTagValues
-
getTeacher
-
prepareMessage
-
createDtoMessage
-