com.bankframe.services.sessionmgmt.ldap
Class LDAPSessionManagementBean

java.lang.Object
  extended bycom.bankframe.ejb.ESessionBean
      extended bycom.bankframe.services.sessionmgmt.SessionManagementBean
          extended bycom.bankframe.services.sessionmgmt.ldap.LDAPSessionManagementBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, ESession, java.io.Serializable, javax.ejb.SessionBean

public class LDAPSessionManagementBean
extends SessionManagementBean

LDAP based implementation of Session Management mechanism.

Author:
ETU
See Also:
Serialized Form

Field Summary
static java.lang.String ENTITY_JNDI_NAME
           
 
Constructor Summary
LDAPSessionManagementBean()
           
 
Method Summary
 int getNumValidSessions()
          Get the number of valid sessions
 java.util.Enumeration getSessions()
          Get all current valid sessions
 int removeAllSessions()
          Remove all Sessions, effectively logging off all users on the system
 int removeInvalidSessions()
          Remove all Invalid Sessions
 
Methods inherited from class com.bankframe.services.sessionmgmt.SessionManagementBean
getSession, isValidSession, logoff, logon, processDataPacket
 
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
 

Field Detail

ENTITY_JNDI_NAME

public static final java.lang.String ENTITY_JNDI_NAME
See Also:
Constant Field Values
Constructor Detail

LDAPSessionManagementBean

public LDAPSessionManagementBean()
Method Detail

getNumValidSessions

public int getNumValidSessions()
                        throws javax.ejb.FinderException
Get the number of valid sessions

Specified by:
getNumValidSessions in class SessionManagementBean
Returns:
Number of valid sessions currently logged on
Throws:
java.lang.Exception - on error
javax.ejb.FinderException - on error

getSessions

public java.util.Enumeration getSessions()
                                  throws javax.ejb.FinderException
Get all current valid sessions

Specified by:
getSessions in class SessionManagementBean
Returns:
Enumeration containing all valid session instances
Throws:
java.lang.Exception - if an error is encountered retrieving session instances
javax.ejb.FinderException - if an error is encountered retrieving session instances

removeAllSessions

public int removeAllSessions()
                      throws javax.ejb.FinderException
Remove all Sessions, effectively logging off all users on the system

Specified by:
removeAllSessions in class SessionManagementBean
Returns:
Number of sessions removed
Throws:
java.lang.Exception - if an error occurs
javax.ejb.FinderException - if an error occurs

removeInvalidSessions

public int removeInvalidSessions()
                          throws javax.ejb.FinderException
Remove all Invalid Sessions

Specified by:
removeInvalidSessions in class SessionManagementBean
Returns:
Number of sessions removed
Throws:
java.lang.Exception - if an error occurs while removing invalid sessions
javax.ejb.FinderException - if an error occurs while removing invalid sessions


Copyright © 2004 Siebel Systems, Inc. All rights reserved.