psdi.common.emailstner

Class InboundComm

  • java.lang.Object
    • Field Detail

      • freeFormAction

        public java.lang.String freeFormAction
        String represents insert/update action for freeform mail
      • senderSecurityType

        public int senderSecurityType
        Sender security type
    • Constructor Detail

      • InboundComm

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

      • init

        public void init()
                  throws MXException
        initialization rountine. This sets the READONLY flags for fields when status is active
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

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

        public void setFormatMode(int type)
                           throws java.rmi.RemoteException
        Sets format mode for the email for email message body
        Specified by:
        setFormatMode in interface InboundCommRemote
        Parameters:
        int -
        Throws:
        java.rmi.RemoteException
      • getFormatMode

        public int getFormatMode()
                          throws java.rmi.RemoteException
        Gets the format mode for email message body
        Specified by:
        getFormatMode in interface InboundCommRemote
        Returns:
        FREEFORM = 0;ATTRVALUE = 1;XML = 2
        Throws:
        java.rmi.RemoteException
      • setSenderSecurityType

        public void setSenderSecurityType(int type)
                                   throws java.rmi.RemoteException
        Sets the security tye of the sender
        Specified by:
        setSenderSecurityType in interface InboundCommRemote
        Parameters:
        int -
        Throws:
        java.rmi.RemoteException
      • getSenderSecurityType

        public int getSenderSecurityType()
                                  throws java.rmi.RemoteException
        Gets the security tye of the sender
        Specified by:
        getSenderSecurityType in interface InboundCommRemote
        Returns:
        0-Run as User,1-User exist with all permission,2-User exist with no pemission
        Throws:
        java.rmi.RemoteException
      • setFreeFormAction

        public void setFreeFormAction(java.lang.String action)
                               throws java.rmi.RemoteException
        Sets the action for freeform email
        Specified by:
        setFreeFormAction in interface InboundCommRemote
        Parameters:
        String -
        Throws:
        java.rmi.RemoteException
      • getFreeFormAction

        public java.lang.String getFreeFormAction()
                                           throws java.rmi.RemoteException
        Gets the action for freeform email
        Specified by:
        getFreeFormAction in interface InboundCommRemote
        Returns:
        create or update action
        Throws:
        java.rmi.RemoteException
      • setQueryWhereClause

        public void setQueryWhereClause(java.lang.String str)
                                 throws java.rmi.RemoteException
        Sets the where condition for Query action
        Specified by:
        setQueryWhereClause in interface InboundCommRemote
        Parameters:
        String -
        Throws:
        java.rmi.RemoteException
      • getQueryWhereClause

        public java.lang.String getQueryWhereClause()
                                             throws java.rmi.RemoteException
        Gets the where condition for Query action
        Specified by:
        getQueryWhereClause in interface InboundCommRemote
        Returns:
        where condition
        Throws:
        java.rmi.RemoteException
      • setResultColumn

        public void setResultColumn(java.lang.String str)
                             throws java.rmi.RemoteException
        Sets the vector with all result columns specified in the email
        Specified by:
        setResultColumn in interface InboundCommRemote
        Parameters:
        String -
        Throws:
        java.rmi.RemoteException
      • getResultColumn

        public java.lang.String getResultColumn()
                                         throws java.rmi.RemoteException
        Gets all result columns specified in the email
        Specified by:
        getResultColumn in interface InboundCommRemote
        Returns:
        String of all column names
        Throws:
        java.rmi.RemoteException
      • setAppName

        public void setAppName(java.lang.String str)
                        throws java.rmi.RemoteException
        Sets the app name associated with the object
        Specified by:
        setAppName in interface InboundCommRemote
        Parameters:
        String -
        Throws:
        java.rmi.RemoteException
      • getAppName

        public java.lang.String getAppName()
                                    throws java.rmi.RemoteException
        Gets the app name associated with the object
        Specified by:
        getAppName in interface InboundCommRemote
        Returns:
        String of all column names
        Throws:
        java.rmi.RemoteException
      • setNewStatusValue

        public void setNewStatusValue(java.lang.String str)
                               throws java.rmi.RemoteException
        Sets the new status value for the change status action
        Specified by:
        setNewStatusValue in interface InboundCommRemote
        Parameters:
        String -
        Throws:
        java.rmi.RemoteException
      • getNewStatusValue

        public java.lang.String getNewStatusValue()
                                           throws java.rmi.RemoteException
        Gets the new status value for the change status action
        Specified by:
        getNewStatusValue in interface InboundCommRemote
        Returns:
        String of all column names
        Throws:
        java.rmi.RemoteException
      • setAttrHash

        public void setAttrHash(java.util.Hashtable ht)
                         throws java.rmi.RemoteException
        Sets the attributes specified in the email
        Specified by:
        setAttrHash in interface InboundCommRemote
        Parameters:
        Hashtable -
        Throws:
        java.rmi.RemoteException
      • getAttrHash

        public java.util.Hashtable getAttrHash()
                                        throws java.rmi.RemoteException
        Gets all attributes specified in the email
        Specified by:
        getAttrHash in interface InboundCommRemote
        Returns:
        Hashtable of all attributes
        Throws:
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Logic to validate before we delete a record
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setCommLogOwnerNameAndUniqueId

        public void setCommLogOwnerNameAndUniqueId(java.lang.Object[] obj)
                                            throws java.rmi.RemoteException
        Sets the commlog owner and uniquid
        Specified by:
        setCommLogOwnerNameAndUniqueId in interface InboundCommRemote
        Throws:
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: Mbo
        Mark the object to be deleted depending on the access modifier. This will usually be overridden in the subclass of Mbo as there may be application specific rules as to if and when an object can be deleted. Object is not actually deleted in the database until save() is called. This method will also mark all associated Long Description and Translation Mbos for deletion.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)