psdi.common.commlog

Class CommLog

  • All Implemented Interfaces:
    java.rmi.Remote, CommLogRemote, MboConstants, MboRemote, MaxRemoteProxy
    Direct Known Subclasses:
    EscalationCommLog


    public class CommLog
    extends Mbo
    implements CommLogRemote
    MBO to represent a communication log entry.
    BCC bcc'ed recipients of communication.
    CC cc'ed recipient of communication.
    COMMLOGID Communication Log Identifier
    COMMLOGTEMPLATEID COMMLOGTEMPLATEID
    COMMLOGUID Unique Identifier
    CREATEBY Creator of the Communication Log
    CREATEDATE Creation Date
    INBOUND Is communication inbound or outbound?
    MESSAGE Body of communication message.
    OWNERID Unique id of owner record
    OWNERTABLE Table name of the owner record
    REPLYTO Reply to email address
    SENDFROM From address of the Communication
    SENDTO Single/multiple Recipient of the Communication
    SUBJECT Subject of the communication
    TEMPLATEID Template Id
    • Constructor Detail

      • CommLog

        public CommLog(MboSet ms)
                throws MXException,
                       java.rmi.RemoteException
        Construct the CommLog object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets default values for a new CommLog
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • isValidEmailAddress

        public static boolean isValidEmailAddress(java.lang.String email)
      • sendMessage

        public void sendMessage()
                         throws MXException,
                                java.rmi.RemoteException
        Method to send email message. All parameters are taken from this CommLog object. Variable substitions in subject and message will be resolved before message is sent.
        Specified by:
        sendMessage in interface CommLogRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        CommLog.sendMessage()
      • copyFromTemplate

        public void copyFromTemplate(MboRemote commTemplate)
                              throws MXException,
                                     java.rmi.RemoteException
        Copy contents of a commtemplate into the log object.
        Specified by:
        copyFromTemplate in interface CommLogRemote
        Parameters:
        commTemplate -
        Throws:
        MXException
        java.rmi.RemoteException
      • setSendPartial

        public void setSendPartial(boolean value)
        This flag will be used as mail.smtp.sendpartial in mail session established in MXServer so that if any of the email addresses are invalid, the rest of them still still get the message.
        Parameters:
        value - Value to use for mail.smtp.sendpartial
      • initFieldFlagsOnMbo

        public void initFieldFlagsOnMbo(java.lang.String attrName)
                                 throws MXException
        Returns the set of doclinks associated with the commlog record.
        Overrides:
        initFieldFlagsOnMbo in class Mbo
        Throws:
        MXException