nl.gx.webmanager.authorization
Interface User

All Superinterfaces:
HtmlObjectWrapper
All Known Implementing Classes:
UserImpl

public interface User
extends HtmlObjectWrapper

A WebManager user.

Author:
arjans

Method Summary
 void delete()
          Deletes the user instance.
 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 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 interface nl.gx.webmanager.authorization.HtmlObjectWrapper
getId, getUuid
 

Method Detail

getLogin

java.lang.String getLogin()
Returns the login name of the user.

Returns:
the login name of the user

setLogin

void setLogin(java.lang.String login)
Sets the login name of the user.

Parameters:
login - Login name of the user

getFirstName

java.lang.String getFirstName()
Returns the first name of the user.

Returns:
the first name of the user

getName

java.lang.String getName()
Returns the name of the user which is a concatenation of first and last name

Returns:
Name of the user

setFirstName

void setFirstName(java.lang.String firstName)
Sets the first name of the user.

Parameters:
firstName - First name of the user

getLastName

java.lang.String getLastName()
Returns the lastname of the user.

Returns:
the lastname of the user

setLastName

void setLastName(java.lang.String lastName)
Sest the lastname of the user.

Parameters:
lastName - Lastname of the user

getEmail

java.lang.String getEmail()
Returns the E-mail address of the user.

Returns:
the E-mail address of the user

getEditLanguage

java.lang.String getEditLanguage()
Returns the current edit language of this user,

Returns:
The current edit language

setEmail

void setEmail(java.lang.String email)
Sets the E-mail address of the user.

Parameters:
email - E-mail address of the user

getPassword

java.lang.String getPassword()
Returns the encrypted password of the user.

Returns:
the encrypted password of the user

setPassword

void setPassword(java.lang.String password)
Sets the password of the user, which will be encrypted.

Parameters:
password - Password of the user

getRoles

Role[] getRoles()
Returns the roles that are assigned to the user.

Returns:
the roles that are assigned to the user

setRoles

void setRoles(Role[] roles)
Sets the roles that are assigned to the user.

Parameters:
roles - Roles that are assigned to the user

getTimeZone

java.util.TimeZone getTimeZone()
Returns the user's time zone.

Returns:
the user's time zone, or null if the user has no specific time zone configured.

getLocale

java.util.Locale getLocale()
Returns the user's locale.

Returns:
the user's locale, or null if the user has no specific locale configured.

delete

void delete()
Deletes the user instance.


isDeveloper

boolean isDeveloper()
Returns if this use is a 'developer'. This is true if the user has one or more permission groups assigned with 'development = true'.

Returns:
true if this user is a developer, false otherwise


Copyright © 2007-2011 GX Software BV. All Rights Reserved.