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 boolean
equals(Object o)
This implementation to indicates that the equals is explicitly delegated to the overridden class.String
getAccessLevel()
String
getAvatar()
Gets the URL of the person avatar.Date
getCreationDate()
Gets the date at which this item has been created into the directory.String
getDomainId()
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.UserDetail
getUserDetail()
Gets the details of the user associated to the item.UserFull
getUserFull()
Gets full data of the user associated to the item.int
hashCode()
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:DirectoryItem
Gets the first name of the person.- Specified by:
getFirstName
in interfaceDirectoryItem
- Returns:
- the first name.
-
getLastName
public String getLastName()
Description copied from interface:DirectoryItem
Gets the last name of the person.- Specified by:
getLastName
in interfaceDirectoryItem
- Returns:
- th last name.
-
getAvatar
public String getAvatar()
Description copied from interface:DirectoryItem
Gets the URL of the person avatar.- Specified by:
getAvatar
in interfaceDirectoryItem
- Returns:
- the avatar image.
-
getType
public DirectoryItem.ITEM_TYPE getType()
Description copied from interface:DirectoryItem
Gets the type of this item.- Specified by:
getType
in interfaceDirectoryItem
- Returns:
- the type of this item.
-
getDomainId
public String getDomainId()
- Specified by:
getDomainId
in interfaceDirectoryUserItem
-
getCreationDate
public Date getCreationDate()
Description copied from interface:DirectoryItem
Gets the date at which this item has been created into the directory.- Specified by:
getCreationDate
in interfaceDirectoryItem
- 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.- Specified by:
getOriginalId
in interfaceDirectoryItem
- Returns:
- the unique identifier of the person.
-
getAccessLevel
public String getAccessLevel()
-
getMail
public String getMail()
Description copied from interface:DirectoryItem
Gets the main email address.- Specified by:
getMail
in interfaceDirectoryItem
- Returns:
- the email address.
-
getPhone
public String getPhone()
Description copied from interface:DirectoryItem
Gets the phone number.- Specified by:
getPhone
in interfaceDirectoryItem
- Returns:
- a phone number.
-
getFax
public String getFax()
Description copied from interface:DirectoryItem
Gets the Fax number.- Specified by:
getFax
in interfaceDirectoryItem
- Returns:
- the Fax number
-
getUserDetail
public UserDetail getUserDetail()
Gets the details of the user associated to the item.- Returns:
- a
UserDetail
instance explicitly. If the item has been initialized fromUser
instance which is not aUserDetail
one, thenUserDetail
instance is reached from persistence.
-
getUserFull
public UserFull getUserFull()
Gets full data of the user associated to the item.- Returns:
- a
UserFull
instance.
-
equals
public boolean equals(Object o)
This implementation to indicates that the equals is explicitly delegated to the overridden class.- Overrides:
equals
in classAbstractDirectoryItem
-
hashCode
public int hashCode()
This implementation to indicates that the hasCode is explicitly delegated to the overridden class.- Overrides:
hashCode
in classAbstractDirectoryItem
-
-