org.nuxeo.cm.contact
Class Contacts
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Contact>
org.nuxeo.cm.contact.Contacts
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Contact>, Collection<Contact>, List<Contact>, RandomAccess
public class Contacts
- extends ArrayList<Contact>
A data structure representative for nxs:contacts complex type. It helps
setting/retrieving contacts data.
- Author:
- Laurent Doguin
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Contacts
public Contacts()
Contacts
public Contacts(List<Map<String,Serializable>> data)
getContactsForDoc
public static Contacts getContactsForDoc(org.nuxeo.ecm.core.api.DocumentModel doc,
String propertyName)
throws org.nuxeo.ecm.core.api.model.PropertyException
- Throws:
org.nuxeo.ecm.core.api.model.PropertyException
addContact
public void addContact(Contact contact)
getContacts
public List<Contact> getContacts()
getContactsData
public ArrayList<Map<String,Serializable>> getContactsData()
getEmails
public List<String> getEmails()
- This method returns the list of non null emails.
TODO: filter non "valid" emails
getNames
public List<String> getNames()
- This method returns the list of non null names.
getMailboxes
public List<String> getMailboxes()
- This method returns the list of non null mailbox ids
asNameEmailString
public String asNameEmailString()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.