public class CommunicationScript
extends com.accela.aa.emse.dom.service.BaseAAScript
implements com.accela.aa.emse.dom.service.CommunicationScriptService
Accela Automation File: CommunicationScript.java Accela, Inc. Copyright (C): 2012-2013 Description: The implementation for the communication script, which will be used by the scripters. Notes: $Id: CommunicationScript.java 72642 2009-01-01 20:01:57Z ..\tom.liang $ Revision History <Date>, <Who>, <What> Dec 31, 2012 tom.liang Initial.
Constructor and Description |
---|
CommunicationScript()
CommunicationScript Constructor.
|
CommunicationScript(java.lang.String serviceProviderCode,
java.lang.String auditID)
CommunicationScript Constructor.
|
Modifier and Type | Method and Description |
---|---|
ScriptResult |
associateEnities(java.lang.String communicationId,
java.lang.String entityId,
java.lang.String entityType)
associate entities.
|
ScriptResult |
createTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
create external outlook task
|
ScriptResult |
deleteTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
delete external outlook task
|
ScriptResult |
getContactList(java.lang.String[][] params,
java.lang.String messageType)
Get contanct list.
|
ScriptResult |
getEmailMessageScriptModel()
Return email message object.
|
ScriptResult |
getI18nVariables()
Get I18n variables.
|
ScriptResult |
getNewTaskModel()
Returns a new TaskModel object.
|
ScriptResult |
getNotificationTemplate(java.lang.String templateName)
Get notification template.
|
ScriptResult |
getNotificationTemplateModel()
Return notification template object.
|
ScriptResult |
getSMSMessageScriptModel()
Return sms message object.
|
ScriptResult |
resendFailedMessages(java.lang.String[] types)
Resend failed messages.
|
ScriptResult |
sendMessage(EmailMessageScriptModel messageScriptModel)
Send message by message model.
|
ScriptResult |
sendMessage(SMSMessageScriptModel messageScriptModel)
Send message.
|
ScriptResult |
sendMessages(java.lang.String templateName,
java.util.Hashtable<java.lang.String,java.lang.String> variables,
java.lang.String triggerEvent)
Send message by notification template.
|
ScriptResult |
sendMessages(java.lang.String templateName,
java.util.Hashtable<java.lang.String,java.lang.String> variables,
java.lang.String triggerEvent,
java.lang.String[][] relatedEntities)
Send messages.
|
ScriptResult |
sendMessagesWithI18NParameters(java.lang.String templateName,
java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>> i18nVariables,
java.lang.String triggerEvent)
Send message with I18N parameters
|
ScriptResult |
updateTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
update external outlook task
|
public CommunicationScript()
public CommunicationScript(java.lang.String serviceProviderCode, java.lang.String auditID) throws com.accela.aa.exception.AAException
serviceProviderCode
- auditID
- com.accela.aa.exception.AAException
public ScriptResult createTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
com.accela.aa.emse.dom.service.CommunicationScriptService
createTask
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult deleteTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
com.accela.aa.emse.dom.service.CommunicationScriptService
deleteTask
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult updateTask(com.accela.aa.notification.model.CalendarTaskModel taskModel)
com.accela.aa.emse.dom.service.CommunicationScriptService
updateTask
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult getNewTaskModel()
com.accela.aa.emse.dom.service.CommunicationScriptService
getNewTaskModel
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult associateEnities(java.lang.String communicationId, java.lang.String entityId, java.lang.String entityType)
com.accela.aa.emse.dom.service.CommunicationScriptService
associateEnities
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult getEmailMessageScriptModel()
com.accela.aa.emse.dom.service.CommunicationScriptService
getEmailMessageScriptModel
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult getSMSMessageScriptModel()
com.accela.aa.emse.dom.service.CommunicationScriptService
getSMSMessageScriptModel
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult getNotificationTemplate(java.lang.String templateName) throws com.accela.aa.exception.AAException
com.accela.aa.emse.dom.service.CommunicationScriptService
getNotificationTemplate
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
com.accela.aa.exception.AAException
public ScriptResult getNotificationTemplateModel()
com.accela.aa.emse.dom.service.CommunicationScriptService
getNotificationTemplateModel
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult sendMessage(EmailMessageScriptModel messageScriptModel) throws com.accela.aa.exception.AAException
com.accela.aa.emse.dom.service.CommunicationScriptService
sendMessage
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
com.accela.aa.exception.AAException
public ScriptResult sendMessage(SMSMessageScriptModel messageScriptModel) throws com.accela.aa.exception.AAException
com.accela.aa.emse.dom.service.CommunicationScriptService
sendMessage
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
messageScriptModel
- the message script modelcom.accela.aa.exception.AAException
- the AA exceptionpublic ScriptResult sendMessages(java.lang.String templateName, java.util.Hashtable<java.lang.String,java.lang.String> variables, java.lang.String triggerEvent) throws com.accela.aa.exception.AAException
com.accela.aa.emse.dom.service.CommunicationScriptService
sendMessages
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
com.accela.aa.exception.AAException
public ScriptResult sendMessages(java.lang.String templateName, java.util.Hashtable<java.lang.String,java.lang.String> variables, java.lang.String triggerEvent, java.lang.String[][] relatedEntities) throws com.accela.aa.exception.AAException
sendMessages
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
templateName
- the template namevariables
- the variablestriggerEvent
- the trigger eventrelatedEntities
- the related entitiescom.accela.aa.exception.AAException
- the AA exceptionpublic ScriptResult sendMessagesWithI18NParameters(java.lang.String templateName, java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>> i18nVariables, java.lang.String triggerEvent) throws com.accela.aa.exception.AAException
com.accela.aa.emse.dom.service.CommunicationScriptService
sendMessagesWithI18NParameters
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
com.accela.aa.exception.AAException
public ScriptResult getContactList(java.lang.String[][] params, java.lang.String messageType)
com.accela.aa.emse.dom.service.CommunicationScriptService
getContactList
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult resendFailedMessages(java.lang.String[] types)
com.accela.aa.emse.dom.service.CommunicationScriptService
resendFailedMessages
in interface com.accela.aa.emse.dom.service.CommunicationScriptService
public ScriptResult getI18nVariables()
com.accela.aa.emse.dom.service.CommunicationScriptService
getI18nVariables
in interface com.accela.aa.emse.dom.service.CommunicationScriptService