Class UserItem
- java.lang.Object
-
- org.silverpeas.web.directory.model.AbstractDirectoryItem
-
- org.silverpeas.web.directory.model.UserItem
-
- All Implemented Interfaces:
Comparable<DirectoryItem>,DirectoryItem,DirectoryUserItem
public class UserItem extends AbstractDirectoryItem implements DirectoryUserItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.web.directory.model.DirectoryItem
DirectoryItem.ITEM_TYPE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)This implementation to indicates that the equals is explicitly delegated to the overridden class.StringgetAccessLevel()StringgetAvatar()Gets the URL of the person avatar.DategetCreationDate()Gets the date at which this item has been created into the directory.StringgetDomainId()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.UserDetailgetUserDetail()Gets the details of the user associated to the item.UserFullgetUserFull()Gets full data of the user associated to the item.inthashCode()This implementation to indicates that the hasCode is explicitly delegated to the overridden class.-
Methods inherited from class org.silverpeas.web.directory.model.AbstractDirectoryItem
compareTo, getUniqueId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.silverpeas.web.directory.model.DirectoryItem
getUniqueId
-
-
-
-
Constructor Detail
-
UserItem
public UserItem(@Nonnull User user)
-
-
Method Detail
-
getFirstName
public String getFirstName()
Description copied from interface:DirectoryItemGets the first name of the person.- Specified by:
getFirstNamein interfaceDirectoryItem- Returns:
- the first name.
-
getLastName
public String getLastName()
Description copied from interface:DirectoryItemGets the last name of the person.- Specified by:
getLastNamein interfaceDirectoryItem- Returns:
- th last name.
-
getAvatar
public String getAvatar()
Description copied from interface:DirectoryItemGets the URL of the person avatar.- Specified by:
getAvatarin interfaceDirectoryItem- Returns:
- the avatar image.
-
getType
public DirectoryItem.ITEM_TYPE getType()
Description copied from interface:DirectoryItemGets the type of this item.- Specified by:
getTypein interfaceDirectoryItem- Returns:
- the type of this item.
-
getDomainId
public String getDomainId()
- Specified by:
getDomainIdin interfaceDirectoryUserItem
-
getCreationDate
public Date getCreationDate()
Description copied from interface:DirectoryItemGets the date at which this item has been created into the directory.- Specified by:
getCreationDatein interfaceDirectoryItem- Returns:
- the item creation date.
-
getOriginalId
public String getOriginalId()
Description copied from interface:DirectoryItemGets the unique identifier of the person referred by this item.- Specified by:
getOriginalIdin interfaceDirectoryItem- Returns:
- the unique identifier of the person.
-
getAccessLevel
public String getAccessLevel()
-
getMail
public String getMail()
Description copied from interface:DirectoryItemGets the main email address.- Specified by:
getMailin interfaceDirectoryItem- Returns:
- the email address.
-
getPhone
public String getPhone()
Description copied from interface:DirectoryItemGets the phone number.- Specified by:
getPhonein interfaceDirectoryItem- Returns:
- a phone number.
-
getFax
public String getFax()
Description copied from interface:DirectoryItemGets the Fax number.- Specified by:
getFaxin interfaceDirectoryItem- Returns:
- the Fax number
-
getUserDetail
public UserDetail getUserDetail()
Gets the details of the user associated to the item.- Returns:
- a
UserDetailinstance explicitly. If the item has been initialized fromUserinstance which is not aUserDetailone, thenUserDetailinstance is reached from persistence.
-
getUserFull
public UserFull getUserFull()
Gets full data of the user associated to the item.- Returns:
- a
UserFullinstance.
-
equals
public boolean equals(Object o)
This implementation to indicates that the equals is explicitly delegated to the overridden class.- Overrides:
equalsin classAbstractDirectoryItem
-
hashCode
public int hashCode()
This implementation to indicates that the hasCode is explicitly delegated to the overridden class.- Overrides:
hashCodein classAbstractDirectoryItem
-
-