public class DBInetAddr
extends javax.mail.internet.InternetAddress
Internet Address register from k_inet_addrs
Constructor and Description |
---|
DBInetAddr(java.lang.String sMsgGUID,
int iPart) |
DBInetAddr(java.lang.String sMsgGUID,
java.lang.String sMsgId,
java.lang.String sTxEMail,
java.lang.String sTxPersonal,
java.lang.String sTpRecipient,
java.lang.String sGuUser,
java.lang.String sGuContact,
java.lang.String sGuCompany)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object oOtherAddr)
Two addresses are equal if they hold the same e-mail
|
java.lang.String |
getAddress()
Get e-mail address
|
java.lang.String |
getPersonal()
Get display (personal) name
|
java.lang.String |
getString(java.lang.String sKey) |
java.lang.String |
getStringNull(java.lang.String sKey,
java.lang.String sDefault) |
java.lang.String |
getType() |
static javax.mail.internet.InternetAddress |
parseAddress(java.lang.String sNamePlusEMail)
Parse address of the form (Name)
|
boolean |
store(JDCConnection oConn)
This method is unsupported and will always throw an exception when called
|
java.lang.String |
toString()
Get Display name concatenated with e-mail into angles
|
boolean |
write(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId)
Forward call to static method DBInetAddr.write()
|
static boolean |
write(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sGuMimeMsg,
java.lang.String sIdMimeMsg,
java.lang.String sTxEMail,
java.lang.String sTpRecipient,
java.lang.String sTxPersonal)
Write address resolving e-mails to contact and company GUIDs
This method writes to k_inet_addr table but it first lookup the given e-mail
at table k_member_address and fills gu_contact and gu_company fields of
k_inet_addr if there is a contact or company at the specified workarea that
has that e-mail
|
public DBInetAddr(java.lang.String sMsgGUID, int iPart)
public DBInetAddr(java.lang.String sMsgGUID, java.lang.String sMsgId, java.lang.String sTxEMail, java.lang.String sTxPersonal, java.lang.String sTpRecipient, java.lang.String sGuUser, java.lang.String sGuContact, java.lang.String sGuCompany) throws java.lang.NullPointerException, java.lang.IllegalArgumentException
sMsgGUID
- Message GUIDsMsgId
- Mime Message IdentifiersTxEMail
- Mail addresssTxPersonal
- Address displyed namesTpRecipient
- Recipient type { from, to, cc, bcc } case sensitivesGuUser
- GUID of User which tx_main_email is the same as this addresssGuContact
- GUID of Contact which tx_main_email is the same as this addresssGuCompany
- GUID of Copany which tx_main_email is the same as this addressjava.lang.NullPointerException
- If sMsgGUID or sMsgId or sTxEMail or sTpRecipient is null.java.lang.IllegalArgumentException
- If sTpRecipient is not one of { from, to, cc, bcc }public java.lang.String getAddress()
getAddress
in class javax.mail.internet.InternetAddress
public java.lang.String getString(java.lang.String sKey)
public java.lang.String getStringNull(java.lang.String sKey, java.lang.String sDefault)
public boolean equals(java.lang.Object oOtherAddr) throws java.lang.ClassCastException
equals
in class javax.mail.internet.InternetAddress
oOtherAddr
- DBInetAddrjava.lang.ClassCastException
- if oOtherAddr is not of type DBInetAddrpublic java.lang.String getType()
getType
in class javax.mail.internet.InternetAddress
public java.lang.String getPersonal()
getPersonal
in class javax.mail.internet.InternetAddress
public boolean store(JDCConnection oConn) throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
public static boolean write(JDCConnection oConn, int iDomainId, java.lang.String sWorkAreaId, java.lang.String sGuMimeMsg, java.lang.String sIdMimeMsg, java.lang.String sTxEMail, java.lang.String sTpRecipient, java.lang.String sTxPersonal) throws java.sql.SQLException
Write address resolving e-mails to contact and company GUIDs
This method writes to k_inet_addr table but it first lookup the given e-mail at table k_member_address and fills gu_contact and gu_company fields of k_inet_addr if there is a contact or company at the specified workarea that has that e-mailoConn
- JDCConnectioniDomainId
- int Domain IdentifiersWorkAreaId
- String WorkArea GUID (search for matches will be restricted to this WorkArea)sGuMimeMsg
- String Message GUIDsIdMimeMsg
- String Message IdentifiersTxEMail
- String e-mailsTpRecipient
- String One of {to, cc, bcc}sTxPersonal
- String Display Namejava.sql.SQLException
public boolean write(JDCConnection oConn, int iDomainId, java.lang.String sWorkAreaId) throws java.sql.SQLException
Forward call to static method DBInetAddr.write()
oConn
- JDCConnectioniDomainId
- int Domain IdentifiersWorkAreaId
- String WorkArea GUID (search for matches will be restricted to this WorkArea)java.sql.SQLException
public static javax.mail.internet.InternetAddress parseAddress(java.lang.String sNamePlusEMail) throws javax.mail.internet.AddressException, java.lang.NullPointerException, java.io.UnsupportedEncodingException
sNamePlusEMail
- String Display name and e-mail addressjavax.mail.internet.AddressException
java.lang.NullPointerException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class javax.mail.internet.InternetAddress