Blue Mind
Release 1.0

net.bluemind.core.api.contact
Class Contact

java.lang.Object
  extended by net.bluemind.core.api.Entity
      extended by net.bluemind.core.api.contact.Contact
All Implemented Interfaces:
java.io.Serializable, IEntity, IHasEmails
Direct Known Subclasses:
User

public class Contact
extends Entity
implements IHasEmails

This object represent a Blue Mind contact. In Blue Mind, User are instances of Contact.

See Also:
Serialized Form

Field Summary
protected  boolean isUser
           
 
Constructor Summary
Contact()
           
 
Method Summary
 void addAddress(java.lang.String lbl, Address p)
           
 void addEmail(java.lang.String lbl, Email email)
           
 void addIMIdentifier(java.lang.String lbl, InstantMessagingId imid)
           
 void addPhone(java.lang.String lbl, Phone p)
           
 void addWebsite(java.lang.String lbl, Website p)
           
 Contact clone()
           
 java.util.Map<java.lang.String,Address> getAddresses()
           
 java.lang.String getAka()
           
 java.util.Date getAnniversary()
           
 java.lang.Integer getAnniversaryId()
           
 java.lang.String getAssistant()
           
 java.util.Date getBirthday()
           
 java.lang.Integer getBirthdayId()
           
 java.lang.String getCompany()
           
 java.lang.String getDefaultEmail()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
          Returns a String suitable for displaying the contact name.
 Domain getDomain()
           
 java.util.Map<java.lang.String,Email> getEmails()
           
 java.lang.String getExternalId()
           
 java.lang.String getFirstname()
           
 java.lang.Integer getFolderId()
          Returns the id of the Folder the contact is in.
 java.util.Map<java.lang.String,InstantMessagingId> getImIdentifiers()
           
 java.lang.String getLastname()
           
 java.lang.String getManager()
           
 java.lang.String getMiddlename()
           
 java.util.Map<java.lang.String,Phone> getPhones()
           
 java.lang.Integer getPhotoId()
          Returns the id (as in Entity.getId()) of the document holding a picture for this contact.
 java.lang.String getService()
           
 java.lang.String getSpouse()
           
 java.lang.String getSuffix()
           
 java.lang.String getTitle()
           
 java.util.Map<java.lang.String,Website> getWebsites()
           
 boolean isArchived()
           
 boolean isCollected()
           
 boolean isPublic()
           
 boolean isUser()
           
 void setAddress(java.util.Map<java.lang.String,Address> ads)
           
 void setAka(java.lang.String aka)
           
 void setAnniversary(java.util.Date anniversary)
           
 void setAnniversaryId(java.lang.Integer anniversaryId)
           
 void setArchived(boolean archived)
           
 void setAssistant(java.lang.String assistant)
           
 void setBirthday(java.util.Date birthday)
           
 void setBirthdayId(java.lang.Integer birthdayId)
           
 void setCollected(boolean collected)
           
 void setCompany(java.lang.String company)
           
 void setDescription(java.lang.String comment)
           
 void setDisplayName(java.lang.String displayName)
           
 void setDomain(Domain domain)
           
 void setEmails(java.util.Map<java.lang.String,Email> emails)
           
 void setExternalId(java.lang.String externalId)
           
 void setFirstname(java.lang.String firstname)
           
 void setFolderId(java.lang.Integer folderId)
          Set the id of the Folder where the contact will be stored.
 void setIMIdentifiers(java.util.Map<java.lang.String,InstantMessagingId> imids)
           
 void setLastname(java.lang.String lastname)
           
 void setManager(java.lang.String manager)
           
 void setMiddlename(java.lang.String middlename)
           
 void setPhones(java.util.Map<java.lang.String,Phone> phones)
           
 void setPhotoId(java.lang.Integer photoId)
           
 void setPublic(boolean cPublic)
           
 void setService(java.lang.String service)
           
 void setSpouse(java.lang.String spouse)
           
 void setSuffix(java.lang.String suffix)
           
 void setTitle(java.lang.String title)
           
 void setUser(boolean isUser)
           
 void setWebsites(java.util.Map<java.lang.String,Website> webs)
           
 
Methods inherited from class net.bluemind.core.api.Entity
equals, getCustomProperties, getEntityId, getId, getTimeCreate, getTimeUpdate, getUserCreateId, getUserUpdateId, hashCode, setCustomProperties, setEntityId, setId, setTimeCreate, setTimeUpdate, setUserCreateId, setUserUpdateId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isUser

protected boolean isUser
Constructor Detail

Contact

public Contact()
Method Detail

getFirstname

public java.lang.String getFirstname()

setFirstname

public void setFirstname(java.lang.String firstname)

getLastname

public java.lang.String getLastname()

setLastname

public void setLastname(java.lang.String lastname)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getService

public java.lang.String getService()

setService

public void setService(java.lang.String service)

getAka

public java.lang.String getAka()

setAka

public void setAka(java.lang.String aka)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String comment)

getCompany

public java.lang.String getCompany()

setCompany

public void setCompany(java.lang.String company)

getBirthday

public java.util.Date getBirthday()

setBirthday

public void setBirthday(java.util.Date birthday)

getPhones

public java.util.Map<java.lang.String,Phone> getPhones()

getWebsites

public java.util.Map<java.lang.String,Website> getWebsites()

getEmails

public java.util.Map<java.lang.String,Email> getEmails()
Specified by:
getEmails in interface IHasEmails

getDefaultEmail

public java.lang.String getDefaultEmail()

getImIdentifiers

public java.util.Map<java.lang.String,InstantMessagingId> getImIdentifiers()

getAddresses

public java.util.Map<java.lang.String,Address> getAddresses()

addPhone

public void addPhone(java.lang.String lbl,
                     Phone p)

setPhones

public void setPhones(java.util.Map<java.lang.String,Phone> phones)

addAddress

public void addAddress(java.lang.String lbl,
                       Address p)

setAddress

public void setAddress(java.util.Map<java.lang.String,Address> ads)

addWebsite

public void addWebsite(java.lang.String lbl,
                       Website p)

setWebsites

public void setWebsites(java.util.Map<java.lang.String,Website> webs)

addIMIdentifier

public void addIMIdentifier(java.lang.String lbl,
                            InstantMessagingId imid)

setIMIdentifiers

public void setIMIdentifiers(java.util.Map<java.lang.String,InstantMessagingId> imids)

addEmail

public void addEmail(java.lang.String lbl,
                     Email email)
Specified by:
addEmail in interface IHasEmails

setEmails

public void setEmails(java.util.Map<java.lang.String,Email> emails)

getBirthdayId

public java.lang.Integer getBirthdayId()

setBirthdayId

public void setBirthdayId(java.lang.Integer birthdayId)

getMiddlename

public java.lang.String getMiddlename()

setMiddlename

public void setMiddlename(java.lang.String middlename)

getSuffix

public java.lang.String getSuffix()

setSuffix

public void setSuffix(java.lang.String suffix)

getAnniversary

public java.util.Date getAnniversary()

setAnniversary

public void setAnniversary(java.util.Date anniversary)

getAnniversaryId

public java.lang.Integer getAnniversaryId()

setAnniversaryId

public void setAnniversaryId(java.lang.Integer anniversaryId)

getAssistant

public java.lang.String getAssistant()

setAssistant

public void setAssistant(java.lang.String assistant)

getManager

public java.lang.String getManager()

setManager

public void setManager(java.lang.String manager)

getSpouse

public java.lang.String getSpouse()

setSpouse

public void setSpouse(java.lang.String spouse)

isCollected

public boolean isCollected()

setCollected

public void setCollected(boolean collected)

setFolderId

public void setFolderId(java.lang.Integer folderId)
Set the id of the Folder where the contact will be stored.

Parameters:
folderId -

getFolderId

public java.lang.Integer getFolderId()
Returns the id of the Folder the contact is in.

Returns:

setPublic

public void setPublic(boolean cPublic)

isPublic

public boolean isPublic()

getDisplayName

public java.lang.String getDisplayName()
Returns a String suitable for displaying the contact name. If no previous setDisplayName(String) call was made, it will combine firstname & lastname.

Returns:

setDisplayName

public void setDisplayName(java.lang.String displayName)

isUser

public boolean isUser()

setUser

public void setUser(boolean isUser)

isArchived

public boolean isArchived()

setArchived

public void setArchived(boolean archived)

getPhotoId

public java.lang.Integer getPhotoId()
Returns the id (as in Entity.getId()) of the document holding a picture for this contact. Might return null when no picture is associated.

Returns:
The document id for this contact's picture.

setPhotoId

public void setPhotoId(java.lang.Integer photoId)

setDomain

public void setDomain(Domain domain)

getDomain

public Domain getDomain()

clone

public Contact clone()
Overrides:
clone in class java.lang.Object

getExternalId

public java.lang.String getExternalId()

setExternalId

public void setExternalId(java.lang.String externalId)

Blue Mind
Release 1.0