Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.contact
Class Contact

java.lang.Object
  extended by org.nuxeo.cm.contact.Contact
All Implemented Interfaces:
Serializable, Comparable<Contact>

public class Contact
extends Object
implements Serializable, Comparable<Contact>

Wrapper for contact item.

Author:
Laurent Doguin
See Also:
Serialized Form

Nested Class Summary
static class Contact.CONTACT_FIELD
           
 
Constructor Summary
Contact()
           
Contact(Map<? extends String,? extends Serializable> m)
           
 
Method Summary
 String asStringForIndexing()
           
 int compareTo(Contact other)
           
 boolean equals(Object obj)
           
static Contact getContactForMailbox(Mailbox mailbox, String email, String service, String surname)
           
 HashMap<String,Serializable> getContactMap()
           
 String getEmail()
           
 String getMailboxIdd()
           
 String getName()
           
 String getService()
           
 String getSurname()
           
 void setEmail(String email)
           
 void setMailboxId(String mailboxId)
           
 void setName(String name)
           
 void setService(String service)
           
 void setSurname(String surname)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Contact

public Contact()

Contact

public Contact(Map<? extends String,? extends Serializable> m)
Method Detail

asStringForIndexing

public String asStringForIndexing()

getContactMap

public HashMap<String,Serializable> getContactMap()

getName

public String getName()

setName

public void setName(String name)

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getSurname

public String getSurname()

setSurname

public void setSurname(String surname)

getService

public String getService()

setService

public void setService(String service)

getMailboxIdd

public String getMailboxIdd()

setMailboxId

public void setMailboxId(String mailboxId)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Contact other)
Specified by:
compareTo in interface Comparable<Contact>

getContactForMailbox

public static Contact getContactForMailbox(Mailbox mailbox,
                                           String email,
                                           String service,
                                           String surname)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.