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()
Date
getCreationDate()
String
getDomainId()
String
getFax()
String
getFirstName()
String
getLastName()
String
getMail()
String
getOriginalId()
String
getPhone()
DirectoryItem.ITEM_TYPE
getType()
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(User user)
-
-
Method Detail
-
getFirstName
public String getFirstName()
- Specified by:
getFirstName
in interfaceDirectoryItem
-
getLastName
public String getLastName()
- Specified by:
getLastName
in interfaceDirectoryItem
-
getAvatar
public String getAvatar()
- Specified by:
getAvatar
in interfaceDirectoryItem
-
getType
public DirectoryItem.ITEM_TYPE getType()
- Specified by:
getType
in interfaceDirectoryItem
-
getDomainId
public String getDomainId()
- Specified by:
getDomainId
in interfaceDirectoryUserItem
-
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interfaceDirectoryItem
-
getOriginalId
public String getOriginalId()
- Specified by:
getOriginalId
in interfaceDirectoryItem
-
getAccessLevel
public String getAccessLevel()
-
getMail
public String getMail()
- Specified by:
getMail
in interfaceDirectoryItem
-
getPhone
public String getPhone()
- Specified by:
getPhone
in interfaceDirectoryItem
-
getFax
public String getFax()
- Specified by:
getFax
in interfaceDirectoryItem
-
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
-
-