public class Contacts extends ArrayList<Contact>
| Constructor and Description |
|---|
Contacts() |
Contacts(List<Map<String,Serializable>> data) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContact(Contact contact) |
String |
asNameEmailString() |
List<Contact> |
getContacts() |
ArrayList<Map<String,Serializable>> |
getContactsData() |
static Contacts |
getContactsForDoc(DocumentModel doc,
String propertyName) |
List<String> |
getEmails()
This method returns the list of non null emails.
|
List<String> |
getMailboxes()
This method returns the list of non null mailbox ids
|
List<String> |
getNames()
This method returns the list of non null names.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodepublic Contacts()
public Contacts(List<Map<String,Serializable>> data)
public static Contacts getContactsForDoc(DocumentModel doc, String propertyName) throws PropertyException
PropertyExceptionpublic void addContact(Contact contact)
public ArrayList<Map<String,Serializable>> getContactsData()
public List<String> getEmails()
TODO: filter non "valid" emails
public List<String> getMailboxes()
public String asNameEmailString()
Copyright © 2013 Nuxeo SA. All Rights Reserved.