com.bankframe.services.authentication.ejb.user
Interface EJBUser

All Superinterfaces:
EEntityRemote, EJBObject, Remote

public interface EJBUser
extends EEntityRemote

This interface is the remote interface for the EJBUser class.


Method Summary
 String getName()
          This method gets the current User's name.
 String getUserId()
          This method gets the current user's ID number.
 DataPacket toDataPacket()
          This method return all the details for this user in the form of a DataPacket.
 boolean validatePassword(String passwordToValidate)
          This method will validate a user's password against a given string.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getName

String getName()
               throws RemoteException
This method gets the current User's name.

Returns:
a string representaion of name
Throws:
RemoteException

getUserId

String getUserId()
                 throws RemoteException
This method gets the current user's ID number.

Returns:
a string representaion of ID number
Throws:
RemoteException

toDataPacket

DataPacket toDataPacket()
                        throws RemoteException
This method return all the details for this user in the form of a DataPacket.

Specified by:
toDataPacket in interface EEntityRemote
Returns:
the user details as a DataPacket
Throws:
RemoteException

validatePassword

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

Parameters:
passwordToValidate - the password to check
Returns:
true if the password is validated, otherwise false
Throws:
RemoteException


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