|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl
nl.gx.webmanager.authorization.impl.UserImpl
public class UserImpl
Implementation of the User interface. This implementation wraps the UserObject siteworks objecttype.
| Field Summary |
|---|
| Fields inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl |
|---|
id |
| Constructor Summary | |
|---|---|
UserImpl()
Default constructor for a User implementation instance. |
|
UserImpl(int id)
Constructor for a User implementation taking the id of the siteworks object it wraps as a parameter. |
|
UserImpl(java.lang.String id)
Constructor for a User implementation taking the id of the siteworks object it wraps as a parameter. |
|
| Method Summary | |
|---|---|
static nl.gx.siteworks.core.UserObject |
getCurrentUser()
Returns the current user login. |
java.lang.String |
getEditLanguage()
Returns the current edit language of this user, |
java.lang.String |
getEmail()
Returns the E-mail address of the user. |
java.lang.String |
getFirstName()
Returns the first name of the user. |
java.lang.String |
getId()
Returns the unique id of the wrapped Siteworks object. |
java.lang.String |
getLastName()
Returns the lastname of the user. |
java.util.Locale |
getLocale()
Returns the user's locale. |
java.lang.String |
getLogin()
Returns the login name of the user. |
java.lang.String |
getName()
Returns the name of the user which is a concatenation of first and last name |
java.lang.String |
getPassword()
Returns the encrypted password of the user. |
Role[] |
getRoles()
Returns the roles that are assigned to the user. |
java.util.TimeZone |
getTimeZone()
Returns the user's time zone. |
boolean |
isDeveloper()
Returns if this use is a 'developer'. |
void |
setEmail(java.lang.String email)
Sets the E-mail address of the user. |
void |
setFirstName(java.lang.String firstName)
Sets the first name of the user. |
void |
setLastName(java.lang.String lastName)
Sest the lastname of the user. |
void |
setLogin(java.lang.String login)
Sets the login name of the user. |
void |
setPassword(java.lang.String password)
Sets the password of the user, which will be encrypted. |
void |
setRoles(Role[] roles)
Sets the roles that are assigned to the user. |
| Methods inherited from class nl.gx.webmanager.authorization.impl.HtmlObjectWrapperImpl |
|---|
assignRelatedObject, delete, equals, getAssignment, getAssignmentObjects, getAssignments, getUuid, removeRelatedObjects, setAssignment, setAssignments, setComponent, setId, setNode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.gx.webmanager.authorization.User |
|---|
delete |
| Methods inherited from interface nl.gx.webmanager.authorization.HtmlObjectWrapper |
|---|
getUuid |
| Constructor Detail |
|---|
public UserImpl()
public UserImpl(java.lang.String id)
id - Id of a UserObject siteworks objectpublic UserImpl(int id)
id - Id of a UserObject siteworks object| Method Detail |
|---|
public java.lang.String getEmail()
getEmail in interface Userpublic java.lang.String getFirstName()
getFirstName in interface Userpublic java.lang.String getLastName()
getLastName in interface Userpublic java.lang.String getName()
getName in interface Userpublic java.lang.String getLogin()
getLogin in interface Userpublic java.lang.String getEditLanguage()
getEditLanguage in interface Userpublic java.lang.String getPassword()
getPassword in interface Userpublic boolean isDeveloper()
true if the user has one or more permission
groups assigned with 'development = true'.
isDeveloper in interface Usertrue if this user is a developer, false otherwisepublic Role[] getRoles()
getRoles in interface Userpublic void setEmail(java.lang.String email)
setEmail in interface Useremail - E-mail address of the userpublic void setFirstName(java.lang.String firstName)
setFirstName in interface UserfirstName - First name of the userpublic void setLastName(java.lang.String lastName)
setLastName in interface UserlastName - Lastname of the userpublic void setLogin(java.lang.String login)
setLogin in interface Userlogin - Login name of the userpublic void setPassword(java.lang.String password)
setPassword in interface Userpassword - Password of the userpublic void setRoles(Role[] roles)
setRoles in interface Userroles - Roles that are assigned to the userpublic java.lang.String getId()
getId in interface HtmlObjectWrappergetId in class HtmlObjectWrapperImplpublic java.util.TimeZone getTimeZone()
getTimeZone in interface Usernull if the user has no specific time zone configured.public java.util.Locale getLocale()
getLocale in interface Usernull if the user has no specific locale configured.public static nl.gx.siteworks.core.UserObject getCurrentUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||