oracle.cle.persistence
Class UserImpl

java.lang.Object
  |
  +--oracle.cle.persistence.UserImpl
All Implemented Interfaces:
User

public class UserImpl
extends java.lang.Object
implements User

This class holds onto the user information that is used throughout the system the information is gather from the user during the login process and is authenticated by the security mechanism.

Unlike other resources, this is not an interface. If a specific persistence provider cannot map to this class or a subclass of this class, then it must contain an attribute of this class in its own User-like entity object. (See BC4J).


Field Summary
protected  boolean accountModificationEnabled
           
protected  java.lang.String emailAddress
           
protected  java.lang.String firstName
           
protected  java.lang.String hintAnswer
           
protected  java.lang.String hintQuestion
           
protected  java.lang.Integer ID
           
protected  java.lang.String lastName
           
protected  boolean loggedIn
           
protected  java.lang.String middleInitial
           
protected  java.lang.String password
           
protected  java.util.Vector roles
          The roles that this user plays
protected  boolean suspended
           
protected  java.lang.String userId
           
 
Constructor Summary
UserImpl()
           
UserImpl(ConnectionProvider aConnectionProvider)
           
UserImpl(java.lang.String userId, java.lang.String password)
           
 
Method Summary
 boolean getAccountModificationEnabled()
           
 java.lang.String getEmailAddress()
           
 java.lang.String getFirstName()
           
 java.lang.String getFullName()
           
 java.lang.String getHintAnswer()
           
 java.lang.String getHintQuestion()
           
 java.lang.Integer getID()
          Deprecated. getID will be removed in future releases because it is no longer required by the Resource interface
 java.lang.String getLastName()
           
 boolean getLoggedIn()
           
 java.lang.String getMiddleInitial()
           
 java.lang.String getPassword()
           
 java.util.Vector getRoles()
           
 boolean getSuspended()
          setting suspended to true will prevent access to the system
 java.lang.String getUserId()
          the userId represents the user's login id not necessarily the id for persisting the object
 boolean isLoggedIn()
           
static void main(java.lang.String[] args)
           
 void setAccountModificationEnabled(boolean enabled)
           
 void setEmailAddress(java.lang.String emailAddress)
           
 void setFirstName(java.lang.String firstName)
           
 void setHintAnswer(java.lang.String hintAnswer)
           
 void setHintQuestion(java.lang.String hintQuestion)
           
 void setID(java.lang.Integer id)
          Deprecated. setID will be removed in future releases because it is no longer required by the Resource interface
 void setLastName(java.lang.String lastName)
           
 void setLoggedIn(boolean aBoolean)
           
 void setMiddleInitial(java.lang.String middleInitial)
           
 void setPassword(java.lang.String password)
           
 void setRoles(java.util.Vector aVector)
           
 void setSuspended(boolean aBoolean)
          setting suspended to true will prevent access to the system
 void setSuspended(java.lang.String suspended)
          Deprecated. Use the 'boolean' methods instead.
 void setUserId(java.lang.String userId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roles

protected java.util.Vector roles
The roles that this user plays

ID

protected java.lang.Integer ID

userId

protected java.lang.String userId

password

protected java.lang.String password

firstName

protected java.lang.String firstName

middleInitial

protected java.lang.String middleInitial

lastName

protected java.lang.String lastName

hintQuestion

protected java.lang.String hintQuestion

hintAnswer

protected java.lang.String hintAnswer

loggedIn

protected boolean loggedIn

emailAddress

protected java.lang.String emailAddress

accountModificationEnabled

protected boolean accountModificationEnabled

suspended

protected boolean suspended
Constructor Detail

UserImpl

public UserImpl()

UserImpl

public UserImpl(java.lang.String userId,
                java.lang.String password)

UserImpl

public UserImpl(ConnectionProvider aConnectionProvider)
Method Detail

getID

public java.lang.Integer getID()
Deprecated. getID will be removed in future releases because it is no longer required by the Resource interface


setID

public void setID(java.lang.Integer id)
Deprecated. setID will be removed in future releases because it is no longer required by the Resource interface


getUserId

public java.lang.String getUserId()
Description copied from interface: User
the userId represents the user's login id not necessarily the id for persisting the object
Specified by:
getUserId in interface User

setUserId

public void setUserId(java.lang.String userId)
Specified by:
setUserId in interface User

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface User

setPassword

public void setPassword(java.lang.String password)
Specified by:
setPassword in interface User

getHintQuestion

public java.lang.String getHintQuestion()
Specified by:
getHintQuestion in interface User

setHintQuestion

public void setHintQuestion(java.lang.String hintQuestion)
Specified by:
setHintQuestion in interface User

getHintAnswer

public java.lang.String getHintAnswer()
Specified by:
getHintAnswer in interface User

setHintAnswer

public void setHintAnswer(java.lang.String hintAnswer)
Specified by:
setHintAnswer in interface User

getFirstName

public java.lang.String getFirstName()
Specified by:
getFirstName in interface User

setFirstName

public void setFirstName(java.lang.String firstName)
Specified by:
setFirstName in interface User

getMiddleInitial

public java.lang.String getMiddleInitial()
Specified by:
getMiddleInitial in interface User

setMiddleInitial

public void setMiddleInitial(java.lang.String middleInitial)
Specified by:
setMiddleInitial in interface User

setLastName

public void setLastName(java.lang.String lastName)
Specified by:
setLastName in interface User

getLastName

public java.lang.String getLastName()
Specified by:
getLastName in interface User

isLoggedIn

public boolean isLoggedIn()
Specified by:
isLoggedIn in interface User

getFullName

public java.lang.String getFullName()
Specified by:
getFullName in interface User

setLoggedIn

public void setLoggedIn(boolean aBoolean)
Specified by:
setLoggedIn in interface User

getLoggedIn

public boolean getLoggedIn()
Specified by:
getLoggedIn in interface User

toString

public java.lang.String toString()
Specified by:
toString in interface User
Overrides:
toString in class java.lang.Object

getEmailAddress

public java.lang.String getEmailAddress()
Specified by:
getEmailAddress in interface User

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)
Specified by:
setEmailAddress in interface User

setAccountModificationEnabled

public void setAccountModificationEnabled(boolean enabled)
Specified by:
setAccountModificationEnabled in interface User

getAccountModificationEnabled

public boolean getAccountModificationEnabled()
Specified by:
getAccountModificationEnabled in interface User

setSuspended

public void setSuspended(java.lang.String suspended)
Deprecated. Use the 'boolean' methods instead.

setting suspended to true will prevent access to the system

setSuspended

public void setSuspended(boolean aBoolean)
setting suspended to true will prevent access to the system
Specified by:
setSuspended in interface User

getSuspended

public boolean getSuspended()
setting suspended to true will prevent access to the system
Specified by:
getSuspended in interface User

getRoles

public java.util.Vector getRoles()
Specified by:
getRoles in interface User

setRoles

public void setRoles(java.util.Vector aVector)
Specified by:
setRoles in interface User

main

public static void main(java.lang.String[] args)


Copyright © 2003 ORACLE Corp. All Rights Reserved.