ejb.authenticating
Interface Authenticate

All Superinterfaces:
EJBObject, Remote

public interface Authenticate
extends EJBObject

The Authenticate interface is the remote interface for the Authenticate EJB component.

This component maintains no state. When a method is called, it connects to the database, reads data and return it to the caller.

This component is in the EJB tier of the architecture.

Version:
1.0
Author:
Team Two: Matthew Bass, Vijay Sai, Mannik Bhojwani, Paulo Merson

Method Summary
 boolean isAlive()
          This is a "ping" method that always returns true.
 int login(String userName)
          Given a user name (which has to be unique), returns a uniques system generated identifier for the users - this is a 3-digit integer.

If the name is not found in the database the -1 is returned.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

login

public int login(String userName)
          throws RemoteException
Given a user name (which has to be unique), returns a uniques system generated identifier for the users - this is a 3-digit integer.

If the name is not found in the database the -1 is returned.
Parameters:
userName - - the name of the user
Returns:
int - the unique system generated identifier of the user.
Throws:
RemoteException -  

isAlive

public boolean isAlive()
                throws RemoteException
This is a "ping" method that always returns true. If the method is unaccessible (the client receives a RemoteException) then the assumption is that the ARS application is unavailable.

Returns:
boolean - true always
Throws:
RemoteException -  


Copyright © 2003 Team Two.