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

All Superinterfaces:
EEntityRemote, javax.ejb.EJBObject, java.rmi.Remote

public interface EJBUser
extends EEntityRemote

This interface is the remote interface for the EJBUser class.


Method Summary
 java.lang.String getName()
          This method gets the current User's name.
 java.lang.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(java.lang.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

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

Returns:
a string representaion of name
Throws:
java.rmi.RemoteException

getUserId

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

Returns:
a string representaion of ID number
Throws:
java.rmi.RemoteException

toDataPacket

public DataPacket toDataPacket()
                        throws java.rmi.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:
java.rmi.RemoteException

validatePassword

public boolean validatePassword(java.lang.String passwordToValidate)
                         throws java.rmi.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:
java.rmi.RemoteException


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