com.groiss.org
Interface User

All Superinterfaces:
Agent, Persistent, java.security.Principal

public interface User
extends Agent, java.security.Principal

A user is a representation for a person registered for working with the system


Field Summary
static long GUEST
          The oid of the user guest, used for public servlet methods.
static long NOBODY
          The oid of the inactive user nobody.
static long SYSADM
          The system administrator (oid).
static User SYSADM_USER
          The sysadm user
 
Method Summary
 boolean getCantChangePwd()
           
 boolean getChangePwdNext()
           
 java.lang.String getDescription()
          Get the description.
 java.lang.String getEmail()
          Get the email address.
 java.lang.String getFirstName()
          Get the first name.
 java.lang.String getId()
          Get the id.
 java.lang.String getLocale()
          Return the locale set for this user as string.
 java.lang.String getName()
          Implemented for Principal interface
 java.lang.String getNameSuffix()
          Get the name suffix for this user
 boolean getPwdNeverExpires()
           
 java.lang.String getSalutation()
          Get the salutation for this user
 java.lang.String getSurname()
          Get the surname.
 java.lang.String getTelNr()
          Get the phone number.
 java.lang.String getTitle()
          Get the title.
 java.util.Locale getUserLocale()
          Get the locale of the user
 void setCantChangePwd(boolean val)
           
 void setChangePwdNext(boolean val)
           
 void setDescription(java.lang.String description)
           
 void setEmail(java.lang.String email)
           
 void setFirstName(java.lang.String firstName)
           
 void setId(java.lang.String id)
           
 void setLocale(java.lang.String locale)
           
 void setNameSuffix(java.lang.String nameSuffix)
          Set the name suffix for this user
 void setPassword(java.lang.String password)
          Set the password for this user
 void setPwdNeverExpires(boolean val)
           
 void setSalutation(java.lang.String salutation)
          Set the salutation for this user
 void setSurname(java.lang.String surname)
           
 void setTelNr(java.lang.String telNr)
           
 void setTitle(java.lang.String title)
           
 java.lang.String toListString()
          A string representation suitable for lists.
 
Methods inherited from interface com.groiss.org.Agent
getOid, isActive, setActive
 
Methods inherited from interface com.groiss.store.Persistent
dbFields, getStore, getTableName, isFilled, onDelete, onInsert, onRead, onUpdate, setFilled, setOid, setStore
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

SYSADM

static final long SYSADM
The system administrator (oid).

See Also:
Constant Field Values

SYSADM_USER

static final User SYSADM_USER
The sysadm user


NOBODY

static final long NOBODY
The oid of the inactive user nobody.

See Also:
Constant Field Values

GUEST

static final long GUEST
The oid of the user guest, used for public servlet methods.

See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Get the id.

Specified by:
getId in interface Agent
Returns:
the id

setId

void setId(java.lang.String id)

getName

java.lang.String getName()
Implemented for Principal interface

Specified by:
getName in interface java.security.Principal

getTitle

java.lang.String getTitle()
Get the title.

Returns:
the title of the user

setTitle

void setTitle(java.lang.String title)

getFirstName

java.lang.String getFirstName()
Get the first name.

Returns:
the first name

setFirstName

void setFirstName(java.lang.String firstName)

getSurname

java.lang.String getSurname()
Get the surname.

Returns:
the surname

setSurname

void setSurname(java.lang.String surname)

getDescription

java.lang.String getDescription()
Get the description.

Returns:
the description

setDescription

void setDescription(java.lang.String description)

getTelNr

java.lang.String getTelNr()
Get the phone number.

Returns:
the phone number as string

setTelNr

void setTelNr(java.lang.String telNr)

getEmail

java.lang.String getEmail()
Get the email address.

Returns:
email address

setEmail

void setEmail(java.lang.String email)

getUserLocale

java.util.Locale getUserLocale()
Get the locale of the user

Returns:
Locale object

toListString

java.lang.String toListString()
A string representation suitable for lists.


getLocale

java.lang.String getLocale()
Return the locale set for this user as string.


setLocale

void setLocale(java.lang.String locale)

getCantChangePwd

boolean getCantChangePwd()

setCantChangePwd

void setCantChangePwd(boolean val)

getChangePwdNext

boolean getChangePwdNext()

setChangePwdNext

void setChangePwdNext(boolean val)

getPwdNeverExpires

boolean getPwdNeverExpires()

setPassword

void setPassword(java.lang.String password)
Set the password for this user

Parameters:
password - the plain password

setPwdNeverExpires

void setPwdNeverExpires(boolean val)

getSalutation

java.lang.String getSalutation()
Get the salutation for this user

Returns:
the salutation

setSalutation

void setSalutation(java.lang.String salutation)
Set the salutation for this user

Parameters:
salutation - the new salutation

getNameSuffix

java.lang.String getNameSuffix()
Get the name suffix for this user

Returns:
the name suffix

setNameSuffix

void setNameSuffix(java.lang.String nameSuffix)
Set the name suffix for this user

Parameters:
nameSuffix - the new name suffix


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.