|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.beans.admin.UserDetail
com.silverpeas.profile.web.UserProfileEntity
public class UserProfileEntity
The profile of a user that is exposable in the WEB. It is a web entity representing the profile of a user that can be serialized into a given media type (JSON, XML). It is a decorator that decorates a UserDetail object with additional properties concerning its exposition in the WEB.
| Field Summary |
|---|
| Fields inherited from class com.stratelia.webactiv.beans.admin.UserDetail |
|---|
CURRENT_REQUESTER_KEY |
| Constructor Summary | |
|---|---|
protected |
UserProfileEntity()
|
protected |
UserProfileEntity(UserDetail user)
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
static UserProfileEntity |
fromUser(UserDetail user)
Decorates the specified user details with the required WEB exposition features. |
static UserProfileEntity[] |
fromUsers(List<? extends UserDetail> users,
URI usersUri)
Decorates the specified user details with the required WEB exposition features. |
UserAccessLevel |
getAccessLevel()
Get user's access level |
String |
getAvatar()
|
URI |
getContactsURI()
|
String |
getDomainId()
Get user's domain id |
String |
getDomainName()
|
String |
geteMail()
Get user's email |
String |
getFirstName()
Get user's first name |
String |
getFullName()
Gets the full name of the user. |
String |
getId()
Get user id as stored in database |
String |
getLanguage()
Gets the language used by the user. |
String |
getLastName()
Get user's last name |
String |
getLogin()
Get user's login |
String |
getSpecificId()
Get specific user id |
String |
getStatus()
|
String |
getTchatPage()
Gets the URL of the tchat WEB page opened to discuss with this user. |
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
String |
getWebPage()
Gets the URL of the WEB page in which is presented the profile of this user. |
int |
hashCode()
|
boolean |
isAnonymous()
Is the user is the anonymous one? |
boolean |
isConnected()
Is this user connected to Silverpeas? |
boolean |
isDeactivatedState()
This method is the only one able to indicate the user deactivated state. |
boolean |
isDeletedState()
This method is the only one able to indicate the user deletion state. |
void |
setAccessLevel(UserAccessLevel accessLevel)
Set user access level |
void |
setDeactivatedState(boolean deactivatedState)
|
void |
setDeletedState(boolean deletedState)
|
void |
setDomainId(String sDomainId)
Set user domain id |
void |
seteMail(String seMail)
Set user's email |
void |
setFirstName(String sFirstName)
Set user first name |
void |
setId(String id)
Set user identifier |
void |
setLastName(String sLastName)
Set user last name |
void |
setLogin(String sLogin)
Set user login |
void |
setSpecificId(String sSpecificId)
Set specific user id |
void |
setStatus(String newStatus)
|
UserDetail |
toUserDetail()
|
UserProfileEntity |
withAsUri(URI userUri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected UserProfileEntity(UserDetail user)
protected UserProfileEntity()
| Method Detail |
|---|
public static UserProfileEntity fromUser(UserDetail user)
user - the user details to decorate.
public static UserProfileEntity[] fromUsers(List<? extends UserDetail> users,
URI usersUri)
users - a list of details on some users.usersUri - the URI at which the specified users are defined.
public String getId()
UserDetail
getId in class UserDetailpublic UserAccessLevel getAccessLevel()
UserDetail
getAccessLevel in class UserDetailpublic String getDomainId()
UserDetail
getDomainId in class UserDetailpublic String getFirstName()
UserDetail
getFirstName in class UserDetailpublic String getLastName()
UserDetail
getLastName in class UserDetailpublic String geteMail()
UserDetail
geteMail in class UserDetailpublic boolean isDeletedState()
UserDetailUserDetail.getState() to retrieve user deletion information.
isDeletedState in class UserDetailpublic boolean isDeactivatedState()
UserDetailUserDetail.getState() to retrieve user deactivated information.
isDeactivatedState in class UserDetailpublic String getLanguage()
public void setAccessLevel(UserAccessLevel accessLevel)
UserDetail
setAccessLevel in class UserDetailpublic void setDomainId(String sDomainId)
UserDetail
setDomainId in class UserDetailpublic void setFirstName(String sFirstName)
UserDetail
setFirstName in class UserDetailsFirstName - user first namepublic void setLastName(String sLastName)
UserDetail
setLastName in class UserDetailsLastName - user last namepublic void seteMail(String seMail)
UserDetail
seteMail in class UserDetailpublic void setDeletedState(boolean deletedState)
public void setDeactivatedState(boolean deactivatedState)
public String getAvatar()
getAvatar in class UserDetailpublic String getWebPage()
public String getTchatPage()
public String getFullName()
public boolean isConnected()
isConnected in class UserDetailpublic String getSpecificId()
UserDetail
getSpecificId in class UserDetailpublic void setSpecificId(String sSpecificId)
UserDetail
setSpecificId in class UserDetailpublic String getLogin()
UserDetail
getLogin in class UserDetailpublic void setLogin(String sLogin)
UserDetail
setLogin in class UserDetailsLogin - the login to setpublic String getStatus()
getStatus in class UserDetailpublic void setStatus(String newStatus)
public String getDomainName()
public boolean isAnonymous()
UserDetail
isAnonymous in class UserDetailpublic UserProfileEntity withAsUri(URI userUri)
public UserDetail toUserDetail()
public void setId(String id)
UserDetail
setId in class UserDetailid - the user identifier to setpublic boolean equals(Object other)
equals in class UserDetailpublic int hashCode()
hashCode in class UserDetailpublic URI getURI()
Exposable
getURI in interface Exposablepublic URI getContactsURI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||