|
||||||||||
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 UserDetail
public UserAccessLevel getAccessLevel()
getAccessLevel
in class UserDetail
public String getDomainId()
getDomainId
in class UserDetail
public String getFirstName()
getFirstName
in class UserDetail
public String getLastName()
getLastName
in class UserDetail
public String geteMail()
geteMail
in class UserDetail
public boolean isDeletedState()
isDeletedState
in class UserDetail
public boolean isDeactivatedState()
isDeactivatedState
in class UserDetail
public String getLanguage()
public void setAccessLevel(UserAccessLevel accessLevel)
setAccessLevel
in class UserDetail
public void setDomainId(String sDomainId)
setDomainId
in class UserDetail
public void setFirstName(String sFirstName)
setFirstName
in class UserDetail
public void setLastName(String sLastName)
setLastName
in class UserDetail
public void seteMail(String seMail)
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()
getSpecificId
in class UserDetail
public void setSpecificId(String sSpecificId)
setSpecificId
in class UserDetail
public String getLogin()
getLogin
in class UserDetail
public void setLogin(String sLogin)
setLogin
in class UserDetail
public String getStatus()
getStatus
in class UserDetail
public void setStatus(String newStatus)
public String getDomainName()
public boolean isAnonymous()
isAnonymous
in class UserDetail
public UserProfileEntity withAsUri(URI userUri)
public UserDetail toUserDetail()
public void setId(String id)
setId
in class UserDetail
public 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 |