Class ContactItem
- java.lang.Object
-
- org.silverpeas.web.directory.model.AbstractDirectoryItem
-
- org.silverpeas.web.directory.model.ContactItem
-
- All Implemented Interfaces:
Comparable<DirectoryItem>,DirectoryItem
public class ContactItem extends AbstractDirectoryItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.web.directory.model.DirectoryItem
DirectoryItem.ITEM_TYPE
-
-
Constructor Summary
Constructors Constructor Description ContactItem(CompleteContact contact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAvatar()Gets the URL of the person avatar.ContactgetContact()DategetCreationDate()Gets the date at which this item has been created into the directory.StringgetFax()Gets the Fax number.StringgetFirstName()Gets the first name of the person.StringgetLastName()Gets the last name of the person.StringgetMail()Gets the main email address.StringgetOriginalId()Gets the unique identifier of the person referred by this item.StringgetPhone()Gets the phone number.DirectoryItem.ITEM_TYPEgetType()Gets the type of this item.inthashCode()-
Methods inherited from class org.silverpeas.web.directory.model.AbstractDirectoryItem
compareTo, getUniqueId
-
-
-
-
Constructor Detail
-
ContactItem
public ContactItem(CompleteContact contact)
-
-
Method Detail
-
getFirstName
public String getFirstName()
Description copied from interface:DirectoryItemGets the first name of the person.- Returns:
- the first name.
-
getLastName
public String getLastName()
Description copied from interface:DirectoryItemGets the last name of the person.- Returns:
- th last name.
-
getAvatar
public String getAvatar()
Description copied from interface:DirectoryItemGets the URL of the person avatar.- Returns:
- the avatar image.
-
getType
public DirectoryItem.ITEM_TYPE getType()
Description copied from interface:DirectoryItemGets the type of this item.- Returns:
- the type of this item.
-
getCreationDate
public Date getCreationDate()
Description copied from interface:DirectoryItemGets the date at which this item has been created into the directory.- Returns:
- the item creation date.
-
getOriginalId
public String getOriginalId()
Description copied from interface:DirectoryItemGets the unique identifier of the person referred by this item.- Returns:
- the unique identifier of the person.
-
getMail
public String getMail()
Description copied from interface:DirectoryItemGets the main email address.- Returns:
- the email address.
-
getContact
public Contact getContact()
-
getPhone
public String getPhone()
Description copied from interface:DirectoryItemGets the phone number.- Returns:
- a phone number.
-
getFax
public String getFax()
Description copied from interface:DirectoryItemGets the Fax number.- Returns:
- the Fax number
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractDirectoryItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDirectoryItem
-
-