ch.bouquet.jpa.domain
Class AuthUser

java.lang.Object
  extended by ch.bouquet.jpa.domain.AuthUser
All Implemented Interfaces:
java.io.Serializable

public class AuthUser
extends java.lang.Object
implements java.io.Serializable

CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Data-Tier (JPA)
User admininstration (examination question)
Description:
Authenticated user business object implemented as plain old java object.

Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.

Version:
1.0 - 25.05.2007
Author:
Marc Bouquet ( marc at bouquet dot ch, Swiss )
See Also:
Serialized Form

Field Summary
private  java.util.Set<AuthRole> authRoleList
          Authenticated role list of the authenticated user.
private  int authUserId
          auth user id (primary key)
private  java.lang.String encryptionVersion
          encryption version
private  java.util.Date lastLoginDat
          last login date
private static org.apache.log4j.Logger LOG
          constant for the logging
private  java.lang.String login
          login
private  java.lang.String password
          password
private static long serialVersionUID
          Default serial version uid
private  int state
          state
 
Constructor Summary
AuthUser()
          Default constructor
AuthUser(java.lang.String uid, java.lang.String pwd, java.lang.String encryptionVersion, int state, java.util.Date lastLoginDat, java.util.Set<AuthRole> authRoleList)
          Constructor
AuthUser(java.lang.String uid, java.lang.String pwd, java.lang.String encryptionVersion, int state, java.util.Set<AuthRole> authRoleList)
          Constructor
 
Method Summary
 java.util.Set<AuthRole> getAuthRoleList()
          Get auth role list
 int getAuthUserId()
          Gets the authUserId.
 java.lang.String getEncryptionVersion()
          Gets the encryptionVersion.
 java.util.Date getLastLoginDat()
          Gets the lastLoginDat.
 java.lang.String getLogin()
          Gets the login.
 java.lang.String getPassword()
          Gets the password.
 int getState()
          Gets the state.
 void setAuthRoleList(java.util.Set<AuthRole> authRoleList)
          Set auth role list
 void setAuthUserId(int authUserId)
          Sets the authUserId.
 void setEncryptionVersion(java.lang.String encryptionVersion)
          Sets the encryptionVersion.
 void setLastLoginDat(java.util.Date lastLoginDat)
          Sets the lastLoginDat.
 void setLogin(java.lang.String login)
          Sets the login.
 void setPassword(java.lang.String password)
          Sets the password.
 void setState(int state)
          Sets the state.
 java.lang.String toString()
          Return all attributes as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG
constant for the logging


serialVersionUID

private static final long serialVersionUID
Default serial version uid

See Also:
Constant Field Values

authUserId

private int authUserId
auth user id (primary key)


login

private java.lang.String login
login


password

private java.lang.String password
password


encryptionVersion

private java.lang.String encryptionVersion
encryption version


state

private int state
state


lastLoginDat

private java.util.Date lastLoginDat
last login date


authRoleList

private java.util.Set<AuthRole> authRoleList
Authenticated role list of the authenticated user.
Notes:
- Unidirectional one to many relationship.
- The mapping will be done with the join table auth_user_role.

Constructor Detail

AuthUser

public AuthUser()
Default constructor


AuthUser

public AuthUser(java.lang.String uid,
                java.lang.String pwd,
                java.lang.String encryptionVersion,
                int state,
                java.util.Set<AuthRole> authRoleList)
Constructor

Parameters:
uid - String
pwd - String
encryptionVersion - String
state - int
authRoleList - Set

AuthUser

public AuthUser(java.lang.String uid,
                java.lang.String pwd,
                java.lang.String encryptionVersion,
                int state,
                java.util.Date lastLoginDat,
                java.util.Set<AuthRole> authRoleList)
Constructor

Parameters:
uid - String
pwd - String
encryptionVersion - String
state - int
lastLoginDat - Date
authRoleList - Set
Method Detail

toString

public java.lang.String toString()
Return all attributes as String

Overrides:
toString in class java.lang.Object
Returns:
Object as String

getAuthUserId

public int getAuthUserId()
Gets the authUserId.

Returns:
the authUserId

setAuthUserId

public void setAuthUserId(int authUserId)
Sets the authUserId.

Parameters:
authUserId - The authUserId to set

getLogin

public java.lang.String getLogin()
Gets the login.

Returns:
the login

setLogin

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

Parameters:
login - The login to set

getPassword

public java.lang.String getPassword()
Gets the password.

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - The password to set

getEncryptionVersion

public java.lang.String getEncryptionVersion()
Gets the encryptionVersion.

Returns:
the encryptionVersion

setEncryptionVersion

public void setEncryptionVersion(java.lang.String encryptionVersion)
Sets the encryptionVersion.

Parameters:
encryptionVersion - The encryptionVersion to set

getState

public int getState()
Gets the state.

Returns:
the state

setState

public void setState(int state)
Sets the state.

Parameters:
state - The state to set

getLastLoginDat

public java.util.Date getLastLoginDat()
Gets the lastLoginDat.

Returns:
the lastLoginDat

setLastLoginDat

public void setLastLoginDat(java.util.Date lastLoginDat)
Sets the lastLoginDat.

Parameters:
lastLoginDat - The lastLoginDat to set

getAuthRoleList

public java.util.Set<AuthRole> getAuthRoleList()
Get auth role list

Returns:
authRoleList

setAuthRoleList

public void setAuthRoleList(java.util.Set<AuthRole> authRoleList)
Set auth role list

Parameters:
authRoleList -


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.