|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.questionReply.web.AuthorEntity
public class AuthorEntity
The entity representing the author of a comment. It is a user that has written a comment and that is exposed in the web as an entity (a web entity). As such, it publishes only some of its attributes.
Constructor Summary | |
---|---|
protected |
AuthorEntity()
Creates an empty comment author. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static AuthorEntity |
fromUser(com.stratelia.webactiv.beans.admin.UserDetail user)
Creates an new comment author entity from the specified user. |
String |
getAvatar()
Gets the relative path of the user avatar. |
String |
getFullName()
Gets the full name of the author (both the first name and the last name). |
String |
getId()
Gets the unique identifier of the author. |
String |
getLanguage()
Gets the prefered language of the author. |
com.silverpeas.personalization.UserPreferences |
getUserPreferences()
Gets the preference of this author. |
int |
hashCode()
|
void |
setAvatar(String avatarURL)
Sets the URL at which is located the user's avatar. |
com.stratelia.webactiv.beans.admin.UserDetail |
toUser()
Gets a user detail from this entity. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AuthorEntity()
Method Detail |
---|
public static AuthorEntity fromUser(com.stratelia.webactiv.beans.admin.UserDetail user)
user
- the user to entitify.
public String getAvatar()
public void setAvatar(String avatarURL)
avatarURL
- the URL of the user's avatar.public String getId()
public String getFullName()
public String getLanguage()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public com.stratelia.webactiv.beans.admin.UserDetail toUser()
public final com.silverpeas.personalization.UserPreferences getUserPreferences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |