|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.Address
javax.mail.internet.InternetAddress
com.knowgate.hipermail.DBInetAddr
Internet Address register from k_inet_addrs
| Field Summary |
| Fields inherited from class javax.mail.internet.InternetAddress |
address, encodedPersonal, personal |
| Constructor Summary | |
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 |
|
| Method Summary | |
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 |
| Methods inherited from class javax.mail.internet.InternetAddress |
clone, getLocalAddress, hashCode, parse, parse, setAddress, setPersonal, setPersonal, toString, toString, toUnicodeString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
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 address
java.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 }| Method Detail |
public java.lang.String getAddress()
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
oOtherAddr - DBInetAddr
java.lang.ClassCastException - if oOtherAddr is not of type DBInetAddrpublic java.lang.String getType()
public java.lang.String getPersonal()
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-mail
oConn - 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 Name
java.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 address
javax.mail.internet.AddressException
java.lang.NullPointerException
java.io.UnsupportedEncodingExceptionpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||