public class CRMProcessCommunicationBean extends CRMProcess
Constructor and Description |
---|
CRMProcessCommunicationBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.communications.CRMDOCommunication |
complete(com.crm.dataobject.communications.CRMDOCommunication communication)
Complete communication process:
The job's actual completed date is set
Validate if communication can complete
Stock out physical goods
Validate and save communication
|
com.crm.dataobject.communications.CRMDOCommunication |
complete(com.crm.dataobject.communications.CRMDOCommunication communication,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Complete communication process:
The job's actual completed date is set
Validate if communication can complete
Stock out physical goods
Validate and save communication
|
void |
completeQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue)
Completes a communication queue
|
void |
dynamicActionEmailTrack(java.lang.String action,
java.lang.String communicationID,
java.lang.String organisationID,
java.lang.String token)
Update a communication based on dynamic action
|
void |
dynamicActionLinkTrack(java.lang.String action,
java.lang.String link,
java.lang.String communicationID,
java.lang.String organisationID,
java.lang.String token)
Update a communication based on dynamic action
|
com.crm.dataobject.communications.CRMDOCommunicationDefinition |
loadActiveDefinition()
Loads the active communication definition
|
void |
processQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue)
Process a communication queue
|
void |
processQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Process a communication queue
|
void |
rejectQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue,
java.lang.String errorCode,
java.lang.String errorDescription)
Rejects a communication queue
|
void |
removeQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue)
Removes a communication queue
|
com.crm.dataobject.communications.CRMDOCommunication |
replaceDynamicLinks(com.crm.dataobject.communications.CRMDOCommunication communication,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Replace the dynamic links on a communication's content
|
java.lang.Boolean |
sendEmail(java.lang.String fromEmail,
java.lang.String toEmailAddress,
java.lang.String subject,
java.lang.String message,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition,
java.lang.String filesPath,
java.util.ArrayList<com.crm.dataobject.CRMDO> attachments)
Sends a communication through email
|
void |
sendSMS(java.lang.String toPhone,
java.lang.String message,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Sends SMS
|
void |
sendSMS(java.lang.String toPhone,
java.lang.String fromPhone,
java.lang.String message,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Sends a communication through SMS
|
void |
sendSMS(java.lang.String toPhone,
java.lang.String fromPhone,
java.lang.String message,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition,
com.crm.dataobject.communications.CRMDOCommunication communication)
Sends a communication through SMS
|
com.crm.dataobject.communications.CRMDOCommunication |
setEmailTrackingInformation(com.crm.dataobject.communications.CRMDOCommunication communication,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Set the email tracking information on a communication's content
|
com.crm.dataobject.communications.CRMDOCommunication |
setTrackingInformationInBody(com.crm.dataobject.communications.CRMDOCommunication communication,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Set the tracking information on a communication's content
|
com.crm.dataobject.communications.CRMDOCommunication |
setTrackingSettings(com.crm.dataobject.communications.CRMDOCommunication communication,
com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition)
Set the tracking settings on a communication
|
java.lang.Boolean |
testEmailConnection(com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition,
java.lang.String testEmail)
Tests email connection
|
createCronExpressionFromDate, createCronExpressionFromDate, setMandatoryField
public CRMProcessCommunicationBean()
public com.crm.dataobject.communications.CRMDOCommunication complete(com.crm.dataobject.communications.CRMDOCommunication communication) throws java.lang.Exception
communication
- - the communication to completejava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunication complete(com.crm.dataobject.communications.CRMDOCommunication communication, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communication
- - the communication to completecommunicationDefinition
- - the active communication definitionjava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunication setTrackingSettings(com.crm.dataobject.communications.CRMDOCommunication communication, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communication
- - the communication to updatecommunicationDefinition
- - the active communication definitionjava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunication setTrackingInformationInBody(com.crm.dataobject.communications.CRMDOCommunication communication, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communication
- - the communication to updatecommunicationDefinition
- - the active communication definitionjava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunication replaceDynamicLinks(com.crm.dataobject.communications.CRMDOCommunication communication, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communication
- - the communication to updatecommunicationDefinition
- - the active communication definitionjava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunication setEmailTrackingInformation(com.crm.dataobject.communications.CRMDOCommunication communication, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communication
- - the communication to updatecommunicationDefinition
- - the active communication definitionjava.lang.Exception
public void processQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue) throws java.lang.Exception
communicationQueue
- - the communication queue to processjava.lang.Exception
public void processQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
communicationQueue
- - the communication queue to processcommunicationDefinition
- - the active communication definitionjava.lang.Exception
public void rejectQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue, java.lang.String errorCode, java.lang.String errorDescription) throws java.lang.Exception
communicationQueue
- - the communication queue to rejecterrorCode
- - the error code of the rejectionerrorDescription
- - the description of the rejectionjava.lang.Exception
public void completeQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue) throws java.lang.Exception
communicationQueue
- - the communication queue to rejectjava.lang.Exception
public void removeQueue(com.crm.dataobject.communications.CRMDOCommunicationQueue communicationQueue) throws java.lang.Exception
communicationQueue
- - the communication queue to complete and removejava.lang.Exception
public java.lang.Boolean sendEmail(java.lang.String fromEmail, java.lang.String toEmailAddress, java.lang.String subject, java.lang.String message, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition, java.lang.String filesPath, java.util.ArrayList<com.crm.dataobject.CRMDO> attachments) throws java.lang.Exception
fromEmail
- toEmailAddress
- subject
- message
- communicationDefinition
- filesPath
- attachments
- java.lang.Exception
public java.lang.Boolean testEmailConnection(com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition, java.lang.String testEmail) throws java.lang.Exception
communicationDefinition
- - the active communication definitiontestEmail
- - the email to test the connectionjava.lang.Exception
public void sendSMS(java.lang.String toPhone, java.lang.String message, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
toPhone
- - the phone of recipientmessage
- - the message of smscommunicationDefinition
- - the active communication definitionjava.lang.Exception
public void sendSMS(java.lang.String toPhone, java.lang.String fromPhone, java.lang.String message, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition) throws java.lang.Exception
toPhone
- - the phone of recipientfromPhone
- - the phone of sendermessage
- - the message of SMScommunicationDefinition
- - the active communication definitionjava.lang.Exception
public void sendSMS(java.lang.String toPhone, java.lang.String fromPhone, java.lang.String message, com.crm.dataobject.communications.CRMDOCommunicationDefinition communicationDefinition, com.crm.dataobject.communications.CRMDOCommunication communication) throws java.lang.Exception
toPhone
- - the phone of recipientfromPhone
- - the phone of sendermessage
- - the message of SMScommunicationDefinition
- - the active communication definitioncommunication
- - the communication to send the sms forjava.lang.Exception
public void dynamicActionEmailTrack(java.lang.String action, java.lang.String communicationID, java.lang.String organisationID, java.lang.String token) throws java.lang.Exception
action
- - the action to executecommunicationID
- - the id of the communicationorganisationID
- - the id of the organisationtoken
- - the token to validate the actionjava.lang.Exception
public void dynamicActionLinkTrack(java.lang.String action, java.lang.String link, java.lang.String communicationID, java.lang.String organisationID, java.lang.String token) throws java.lang.Exception
action
- - the action to executelink
- - the linkcommunicationID
- - the id of the communicationorganisationID
- - the id of the organisationtoken
- - the token to validate the actionjava.lang.Exception
public com.crm.dataobject.communications.CRMDOCommunicationDefinition loadActiveDefinition() throws java.lang.Exception
java.lang.Exception