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 boolean
equals(Object o)
String
getAvatar()
Gets the URL of the person avatar.Contact
getContact()
Date
getCreationDate()
Gets the date at which this item has been created into the directory.String
getFax()
Gets the Fax number.String
getFirstName()
Gets the first name of the person.String
getLastName()
Gets the last name of the person.String
getMail()
Gets the main email address.String
getOriginalId()
Gets the unique identifier of the person referred by this item.String
getPhone()
Gets the phone number.DirectoryItem.ITEM_TYPE
getType()
Gets the type of this item.int
hashCode()
-
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:DirectoryItem
Gets the first name of the person.- Returns:
- the first name.
-
getLastName
public String getLastName()
Description copied from interface:DirectoryItem
Gets the last name of the person.- Returns:
- th last name.
-
getAvatar
public String getAvatar()
Description copied from interface:DirectoryItem
Gets the URL of the person avatar.- Returns:
- the avatar image.
-
getType
public DirectoryItem.ITEM_TYPE getType()
Description copied from interface:DirectoryItem
Gets the type of this item.- Returns:
- the type of this item.
-
getCreationDate
public Date getCreationDate()
Description copied from interface:DirectoryItem
Gets 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:DirectoryItem
Gets 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:DirectoryItem
Gets the main email address.- Returns:
- the email address.
-
getContact
public Contact getContact()
-
getPhone
public String getPhone()
Description copied from interface:DirectoryItem
Gets the phone number.- Returns:
- a phone number.
-
getFax
public String getFax()
Description copied from interface:DirectoryItem
Gets the Fax number.- Returns:
- the Fax number
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractDirectoryItem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractDirectoryItem
-
-