com.ideo.sweetdev.core.user
Interface IUser

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
User

public interface IUser
extends java.io.Serializable

The interface IUser is a bean containing all datas about the User.

When a IUser is present in the session, we consider that the user is logged.

 

Field Summary
static java.lang.String GUEST_ID
          GUEST_ID
 
Method Summary
 boolean getAuthenticated()
          retrieves the authenticated attribute
 java.lang.String getFirstname()
          retrieves the firstname attribute
 java.lang.String getId()
          Returns the user ID
 java.util.Locale getLanguage()
          Returns the user locale
 java.lang.String getLastname()
          retrieves the lastname attribute
 java.lang.String getLogin()
          Retrieves the login attribute
 void setAuthenticated(boolean _authenticated)
          sets the authenticated attribute
 void setFirstname(java.lang.String _firstname)
          sets the firstname attribute
 void setId(java.lang.String _id)
          Enregistre l'identifiant
 void setLanguage(java.util.Locale _locale)
          Sets the user locale
 void setLastname(java.lang.String _lastname)
          sets the lastname attribute
 void setLogin(java.lang.String _login)
          Sets the login attribute
 

Field Detail

GUEST_ID

public static final java.lang.String GUEST_ID
GUEST_ID

See Also:
Constant Field Values
Method Detail

setLanguage

public void setLanguage(java.util.Locale _locale)
Sets the user locale

Parameters:
_locale - language

getLanguage

public java.util.Locale getLanguage()
Returns the user locale

Returns:
Locale language

setId

public void setId(java.lang.String _id)
Enregistre l'identifiant

Parameters:
_id - String

getId

public java.lang.String getId()
Returns the user ID

Returns:
Id String

setLogin

public void setLogin(java.lang.String _login)
Sets the login attribute

Parameters:
_login - String

getLogin

public java.lang.String getLogin()
Retrieves the login attribute

Returns:
String

setLastname

public void setLastname(java.lang.String _lastname)
sets the lastname attribute

Parameters:
_lastname - String

setFirstname

public void setFirstname(java.lang.String _firstname)
sets the firstname attribute

Parameters:
_firstname - String

getLastname

public java.lang.String getLastname()
retrieves the lastname attribute

Returns:
String

getFirstname

public java.lang.String getFirstname()
retrieves the firstname attribute

Returns:
String

setAuthenticated

public void setAuthenticated(boolean _authenticated)
sets the authenticated attribute

Parameters:
_authenticated - new value

getAuthenticated

public boolean getAuthenticated()
retrieves the authenticated attribute

Returns:
boolean authenticated attribute