|
||||||||||
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 UserDetail
public UserAccessLevel getAccessLevel()
UserDetail
getAccessLevel
in class UserDetail
public String getDomainId()
UserDetail
getDomainId
in class UserDetail
public String getFirstName()
UserDetail
getFirstName
in class UserDetail
public String getLastName()
UserDetail
getLastName
in class UserDetail
public String geteMail()
UserDetail
geteMail
in class UserDetail
public boolean isDeletedState()
UserDetail
UserDetail.getState()
to retrieve user deletion information.
isDeletedState
in class UserDetail
public boolean isDeactivatedState()
UserDetail
UserDetail.getState()
to retrieve user deactivated information.
isDeactivatedState
in class UserDetail
public String getLanguage()
public void setAccessLevel(UserAccessLevel accessLevel)
UserDetail
setAccessLevel
in class UserDetail
public void setDomainId(String sDomainId)
UserDetail
setDomainId
in class UserDetail
public void setFirstName(String sFirstName)
UserDetail
setFirstName
in class UserDetail
sFirstName
- user first namepublic void setLastName(String sLastName)
UserDetail
setLastName
in class UserDetail
sLastName
- user last namepublic void seteMail(String seMail)
UserDetail
seteMail
in class UserDetail
public void setDeletedState(boolean deletedState)
public void setDeactivatedState(boolean deactivatedState)
public String getAvatar()
getAvatar
in class UserDetail
public String getWebPage()
public String getTchatPage()
public String getFullName()
public boolean isConnected()
isConnected
in class UserDetail
public String getSpecificId()
UserDetail
getSpecificId
in class UserDetail
public void setSpecificId(String sSpecificId)
UserDetail
setSpecificId
in class UserDetail
public String getLogin()
UserDetail
getLogin
in class UserDetail
public void setLogin(String sLogin)
UserDetail
setLogin
in class UserDetail
sLogin
- the login to setpublic String getStatus()
getStatus
in class UserDetail
public void setStatus(String newStatus)
public String getDomainName()
public boolean isAnonymous()
UserDetail
isAnonymous
in class UserDetail
public UserProfileEntity withAsUri(URI userUri)
public UserDetail toUserDetail()
public void setId(String id)
UserDetail
setId
in class UserDetail
id
- the user identifier to setpublic boolean equals(Object other)
equals
in class UserDetail
public int hashCode()
hashCode
in class UserDetail
public URI getURI()
Exposable
getURI
in interface Exposable
public URI getContactsURI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |