com.xmlserv.security
Class SecurityManager.User

java.lang.Object
  |
  +--com.xmlserv.security.SecurityManager.User
Enclosing class:
SecurityManager

public class SecurityManager.User
extends java.lang.Object

This inner class encapsulates user credentials. Instances can only be created from within this package as all constructors are protected. Only get accessors are public.


Constructor Summary
  SecurityManager.User()
          create empty instance.
protected SecurityManager.User(java.sql.Connection con, int id)
          Load by numeric id.
protected SecurityManager.User(java.lang.String username, java.lang.String password, java.lang.String uid)
          Create populated instance.
protected SecurityManager.User(java.lang.String username, java.lang.String password, java.lang.String uid, java.lang.String rolegroup, int rolegroupid)
          Create populated instance.
 
Method Summary
 java.lang.String getEmail()
           
 int getId()
           
 java.lang.String getPassword()
          Get password.
 java.lang.String getRoleGroup()
           
 int getRoleGroupId()
           
 java.lang.String getUid()
          Get user ID.
 java.lang.String getUsername()
          Get username.
 void setEmail(java.lang.String email)
           
 void setId(int id)
           
 void setPassword(java.lang.String password)
          Set password.
 void setRoleGroup(java.lang.String rolegroup)
           
 void setRoleGroupId(int roleGroupId)
           
 void setUid(java.lang.String uid)
          Set user ID.
 void setUsername(java.lang.String username)
          Set username.
 org.jdom.Element toElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManager.User

public SecurityManager.User()
create empty instance.

SecurityManager.User

protected SecurityManager.User(java.sql.Connection con,
                               int id)
                        throws XMLServException
Load by numeric id.

SecurityManager.User

protected SecurityManager.User(java.lang.String username,
                               java.lang.String password,
                               java.lang.String uid)
Create populated instance.
Parameters:
username - The username.
password - The password.
uid - The user ID.

SecurityManager.User

protected SecurityManager.User(java.lang.String username,
                               java.lang.String password,
                               java.lang.String uid,
                               java.lang.String rolegroup,
                               int rolegroupid)
Create populated instance.
Parameters:
username - The username.
password - The password.
uid - The user ID.
rolegroup - The users RoleGroup.
Method Detail

getId

public int getId()

setId

public void setId(int id)

setUsername

public void setUsername(java.lang.String username)
Set username.
Parameters:
username - The username.

getUsername

public java.lang.String getUsername()
Get username.
Returns:
The username.

setPassword

public void setPassword(java.lang.String password)
Set password.
Parameters:
password - The password.

getPassword

public java.lang.String getPassword()
Get password.
Returns:
The password.

setUid

public void setUid(java.lang.String uid)
Set user ID.
Parameters:
uid - The user ID.

getUid

public java.lang.String getUid()
Get user ID.
Returns:
The user ID.

getRoleGroup

public java.lang.String getRoleGroup()

setRoleGroup

public void setRoleGroup(java.lang.String rolegroup)

getRoleGroupId

public int getRoleGroupId()

setRoleGroupId

public void setRoleGroupId(int roleGroupId)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

toElement

public org.jdom.Element toElement()