|
||||||||||
| 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()
|
String |
getAvatar()
|
URI |
getContactsURI()
|
String |
getDomainId()
|
String |
getDomainName()
|
String |
geteMail()
|
String |
getFirstName()
|
String |
getFullName()
Gets the full name of the user. |
String |
getId()
|
String |
getLanguage()
Gets the language used by the user. |
String |
getLastName()
|
String |
getLogin()
|
String |
getSpecificId()
|
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()
|
boolean |
isConnected()
Is this user connected to Silverpeas? |
boolean |
isDeactivatedState()
|
boolean |
isDeletedState()
|
void |
setAccessLevel(UserAccessLevel accessLevel)
|
void |
setDeactivatedState(boolean deactivatedState)
|
void |
setDeletedState(boolean deletedState)
|
void |
setDomainId(String sDomainId)
|
void |
seteMail(String seMail)
|
void |
setFirstName(String sFirstName)
|
void |
setId(String id)
|
void |
setLastName(String sLastName)
|
void |
setLogin(String sLogin)
|
void |
setSpecificId(String sSpecificId)
|
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()
getId in class UserDetailpublic UserAccessLevel getAccessLevel()
getAccessLevel in class UserDetailpublic String getDomainId()
getDomainId in class UserDetailpublic String getFirstName()
getFirstName in class UserDetailpublic String getLastName()
getLastName in class UserDetailpublic String geteMail()
geteMail in class UserDetailpublic boolean isDeletedState()
isDeletedState in class UserDetailpublic boolean isDeactivatedState()
isDeactivatedState in class UserDetailpublic String getLanguage()
public void setAccessLevel(UserAccessLevel accessLevel)
setAccessLevel in class UserDetailpublic void setDomainId(String sDomainId)
setDomainId in class UserDetailpublic void setFirstName(String sFirstName)
setFirstName in class UserDetailpublic void setLastName(String sLastName)
setLastName in class UserDetailpublic void seteMail(String seMail)
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()
getSpecificId in class UserDetailpublic void setSpecificId(String sSpecificId)
setSpecificId in class UserDetailpublic String getLogin()
getLogin in class UserDetailpublic void setLogin(String sLogin)
setLogin in class UserDetailpublic String getStatus()
getStatus in class UserDetailpublic void setStatus(String newStatus)
public String getDomainName()
public boolean isAnonymous()
isAnonymous in class UserDetailpublic UserProfileEntity withAsUri(URI userUri)
public UserDetail toUserDetail()
public void setId(String id)
setId in class UserDetailpublic 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 | |||||||||