|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.ejb.ESessionBean
com.bankframe.services.sessionmgmt.SessionManagementBean
public abstract class SessionManagementBean
Defines the generic interface for BankFrame MCA session management.
Constructor Summary | |
---|---|
SessionManagementBean()
|
Method Summary | |
---|---|
abstract int |
getNumValidSessions()
Get the number of valid sessions |
BankFrameSession |
getSession(String sessionId)
Get a BankFrameSession instance associate with the specified id. |
abstract Enumeration |
getSessions()
Get all current valid sessions |
boolean |
isValidSession(String sessionId)
Verify if the specified id refers to a valid session. |
void |
logoff(String sessionId)
Delete a BankFrame session |
String |
logon(String userId,
Vector authResponse)
Create a BankFrame session, by authenticating the user information in the data packet |
Vector |
processDataPacket(DataPacket data)
This method will process a Data Packet. |
abstract int |
removeAllSessions()
Remove all Sessions, effectively logging off all users on the system |
abstract int |
removeInvalidSessions()
Remove all Invalid Sessions |
Methods inherited from class com.bankframe.ejb.ESessionBean |
---|
audit, ejbActivate, ejbCreate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManagementBean()
Method Detail |
---|
public abstract int getNumValidSessions() throws FinderException
FinderException
- on errorpublic BankFrameSession getSession(String sessionId) throws InvalidSessionException, RemoteException
sessionId
- Unique id of the session to retrieve
InvalidSessionException
- if the session does not exist or has expired
RemoteException
public abstract Enumeration getSessions() throws FinderException
FinderException
- if an error is encountered retrieving session instancespublic boolean isValidSession(String sessionId) throws InvalidSessionException, RemoteException
sessionId
- Id of the session to validate
InvalidSessionException
RemoteException
public void logoff(String sessionId)
sessionId
- Id of the session to delete
Exception
- if the session does not existpublic String logon(String userId, Vector authResponse) throws CreateException, RemoteException
authResponse
- Response DataPackets from the authentication EJBuserId
- UserId of the user to logon
CreateException
RemoteException
public Vector processDataPacket(DataPacket data) throws RemoteException, ProcessingErrorException
processDataPacket
in interface ESession
processDataPacket
in class ESessionBean
data
- The DataPacket to process
RemoteException
ProcessingErrorException
- if the request cannot be processedpublic abstract int removeAllSessions() throws FinderException
FinderException
- if an error occurspublic abstract int removeInvalidSessions() throws FinderException
FinderException
- if an error occurs while removing invalid sessions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |