com.bankframe.services.authentication.ejb.user
Class EJBUserBean

java.lang.Object
  extended bycom.bankframe.ejb.EEntityBean
      extended bycom.bankframe.services.authentication.ejb.user.EJBUserBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class EJBUserBean
extends EEntityBean

This class holds information about a bankframe user. An instance of this class represents one record of the table "EJBUSERS" in the database.

See Also:
Serialized Form

Field Summary
 java.lang.String name
          User's name
 java.lang.String password
          String representing the user's password
 java.lang.String userId
          User's ID in the table.
 
Constructor Summary
EJBUserBean()
           
 
Method Summary
 EJBUserPK ejbCreate(java.lang.String userId, java.lang.String password, java.lang.String name)
          All EJBs must implement a create method.
 void ejbPostCreate(java.lang.String userId, java.lang.String password, java.lang.String name)
          All EJBs must implement a create method.
 java.lang.String getName()
          This method gets the user's name.
 java.lang.String getUserId()
          This method gets the user's ID.
 DataPacket toDataPacket()
          This method convert the results into a DataPacket format.
 boolean validatePassword(java.lang.String passwordToValidate)
          This method will validate a user's password against a given string.
 
Methods inherited from class com.bankframe.ejb.EEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userId

public java.lang.String userId
User's ID in the table. This is the primary key field of the table


name

public java.lang.String name
User's name


password

public java.lang.String password
String representing the user's password

Constructor Detail

EJBUserBean

public EJBUserBean()
Method Detail

ejbCreate

public EJBUserPK ejbCreate(java.lang.String userId,
                           java.lang.String password,
                           java.lang.String name)
                    throws javax.ejb.CreateException
All EJBs must implement a create method. See the javax.ejb.EJBHome Class for details.

Parameters:
name - User Name
Throws:
java.rmi.RemoteException - RemoteException
javax.ejb.CreateException - CreateException
See Also:
javax.ejb.EJBHome.create(...)

ejbPostCreate

public void ejbPostCreate(java.lang.String userId,
                          java.lang.String password,
                          java.lang.String name)
                   throws javax.ejb.CreateException
All EJBs must implement a create method. See the javax.ejb.EJBHome Class for details.

Parameters:
name - User Name
Throws:
java.rmi.RemoteException - RemoteException
javax.ejb.CreateException - CreateException
See Also:
javax.ejb.EJBHome.create(...)

getName

public java.lang.String getName()
This method gets the user's name.

Returns:
the user's name

getUserId

public java.lang.String getUserId()
This method gets the user's ID.

Returns:
the user's ID

toDataPacket

public DataPacket toDataPacket()
This method convert the results into a DataPacket format.

Specified by:
toDataPacket in class EEntityBean
Returns:
a DataPacket of results

validatePassword

public boolean validatePassword(java.lang.String passwordToValidate)
                         throws java.rmi.RemoteException
This method will validate a user's password against a given string.

Returns:
true if the password is validated, otherwise false
Throws:
java.rmi.RemoteException


Copyright © 2005, 2007, Oracle. All rights reserved.