|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.mail.ContactList
public class ContactList
The ContactList is used to group e-mail addresses and name such a group. It
is the frameworks implementation of a MailList. The e-mail adresses are given
either by providing them as strings or in the form of
identites (org.olat.core.id.Identity). Further it is
possible to add all contacts from another ContactList.
TODO:pb:a remove dependency to EmailPrioInstitutional if a solution for core.id.user is found
Moreover one can specify to use the users institional e-mail first and use
the other e-mail as fall-back.
Initial Date: Sep 23, 2004
| Constructor Summary | |
|---|---|
ContactList(java.lang.String name)
A ContacList must have at least a name != null, matching ^[^;,:]*$ |
|
ContactList(java.lang.String name,
java.lang.String description)
A ContactList must have at least a name != null, matching ^[a-zA-Z ]*$, and can have a description. |
|
| Method Summary | |
|---|---|
void |
add(ContactList emailList)
add members of another ContactList to this ContactList. |
void |
add(Identity identity)
contribute a contact as an identity. |
void |
add(java.lang.String emailAddress)
contribute a contact as a string email address. |
void |
addAllIdentites(java.util.List listOfIdentity)
add all identity-Objects in the provided list. |
java.lang.String |
getDescription()
Description getter |
javax.mail.internet.InternetAddress[] |
getEmailsAsAddresses()
The e-mail addresses are generated as InternetAddresses, the priority of the institutional email is taken in account. |
java.util.ArrayList |
getEmailsAsStrings()
the returned ArrayList contains String Objects representing the e-mail addresses added. |
java.lang.String |
getName()
Name getter |
java.lang.String |
getRFC2822Name()
ContactList-name as String formatted according to RFC2822 |
java.lang.String |
getRFC2822NameWithAddresses()
ContactList-name and e-mail adresses as String formatted according to http://www.rfc.net/rfc2822.html |
boolean |
isEmailPrioInstitutional()
check the priority of the institutional mail is set. |
void |
remove(Identity identity)
|
void |
setEmailPrioInstitutional(boolean emailPrioInstitutional)
set the priority of the institutional mail. |
java.lang.String |
toString()
A comma separated list of e-mail addresses. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContactList(java.lang.String name)
name -
public ContactList(java.lang.String name,
java.lang.String description)
name - description - | Method Detail |
|---|
public boolean isEmailPrioInstitutional()
public void setEmailPrioInstitutional(boolean emailPrioInstitutional)
emailPrioInstitutional - The emailPrioInstitutional to set.public void add(java.lang.String emailAddress)
emailAddress - public void add(Identity identity)
identity - public void remove(Identity identity)
public java.lang.String getName()
public java.lang.String getRFC2822Name()
public java.lang.String getRFC2822NameWithAddresses()
public java.lang.String getDescription()
public java.util.ArrayList getEmailsAsStrings()
public void add(ContactList emailList)
emailList - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void addAllIdentites(java.util.List listOfIdentity)
listOfIdentity - List containing Identites
public javax.mail.internet.InternetAddress[] getEmailsAsAddresses()
throws javax.mail.internet.AddressException
javax.mail.internet.AddressException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||