com.bankframe.services.sessionmgmt.ldap.session
Class LDAPBankFrameSessionBean

java.lang.Object
  extended by com.bankframe.ejb.EEntityBean
      extended by com.bankframe.ei.ldap.LDAPEntityBean
          extended by com.bankframe.services.sessionmgmt.ldap.session.LDAPBankFrameSessionBean
All Implemented Interfaces:
Serializable, EnterpriseBean, EntityBean

public class LDAPBankFrameSessionBean
extends LDAPEntityBean

Implementation class used to encapsulate BankFrame session data stored on an ldap server.

See Also:
Serialized Form

Field Summary
static String ID_ATTRIBUTE_NAME
           
static String OBJECT_CLASS_NAME
           
static String TIME_STAMP_ATTRIBUTE_NAME
           
static String USER_ID_ATTRIBUTE_NAME
           
 
Fields inherited from class com.bankframe.ei.ldap.LDAPEntityBean
LDAP_SERVER_CONTEXT_ALIAS
 
Constructor Summary
LDAPBankFrameSessionBean()
           
 
Method Summary
 LDAPEntityBeanPK ejbCreate(String sessionId, String userId)
          EJB Creation method for the EJB bean
 Enumeration ejbFindAll()
          Gets enumeration containing primary key instances of all entries in LDAP
 LDAPEntityBeanPK ejbFindByPrimaryKey(LDAPEntityBeanPK primaryKey)
          Refreshes the Entity Bean from the LDAP server using the specified primary Key
 void ejbPostCreate(String sessionId, String userId)
          EJB Post Create does nothing
 String getRdnAttributeName()
          Gets the ID Attribute name for the Session object
 String getSessionId()
           
 long getTimeStamp()
          Gets the Time Stamp of the Session
 String getUserId()
          Gets the UserId of the Session
 void updateTimeStamp()
          Updates the time stamp of the Session with the current time
 
Methods inherited from class com.bankframe.ei.ldap.LDAPEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, get, getMultiple, getPrimaryKey, ldapCreate, put, putMultiple, putObjectClass, setEntityContext, toDataPacket, unsetEntityContext
 
Methods inherited from class com.bankframe.ejb.EEntityBean
toString, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_CLASS_NAME

public static final String OBJECT_CLASS_NAME

ID_ATTRIBUTE_NAME

public static final String ID_ATTRIBUTE_NAME
See Also:
Constant Field Values

USER_ID_ATTRIBUTE_NAME

public static final String USER_ID_ATTRIBUTE_NAME

TIME_STAMP_ATTRIBUTE_NAME

public static final String TIME_STAMP_ATTRIBUTE_NAME
Constructor Detail

LDAPBankFrameSessionBean

public LDAPBankFrameSessionBean()
Method Detail

ejbCreate

public LDAPEntityBeanPK ejbCreate(String sessionId,
                                  String userId)
                           throws CreateException
EJB Creation method for the EJB bean

Parameters:
sessionId - String for session
userId - String for session
Returns:
LDAPEntityBeanPK primary key object
Throws:
CreateException - if creation failed.

ejbFindAll

public Enumeration ejbFindAll()
                       throws FinderException
Gets enumeration containing primary key instances of all entries in LDAP

Returns:
Enumeration containing primary key instances of all entries in the ldap context
Throws:
FinderException

ejbFindByPrimaryKey

public LDAPEntityBeanPK ejbFindByPrimaryKey(LDAPEntityBeanPK primaryKey)
                                     throws FinderException
Refreshes the Entity Bean from the LDAP server using the specified primary Key

Parameters:
primaryKey - LDAPEntityBeanPK is the primary key to the LDAP entry
Returns:
LDAPEntityBeanPK primary key object after refreshing
Throws:
FinderException

ejbPostCreate

public void ejbPostCreate(String sessionId,
                          String userId)
EJB Post Create does nothing

Parameters:
sessionId - String for session
userId - String for session

getRdnAttributeName

public String getRdnAttributeName()
Gets the ID Attribute name for the Session object

Specified by:
getRdnAttributeName in class LDAPEntityBean
Returns:
String ID Attribute

getSessionId

public String getSessionId()
Returns:
String

getTimeStamp

public long getTimeStamp()
Gets the Time Stamp of the Session

Returns:
timeStamp long

getUserId

public String getUserId()
Gets the UserId of the Session

Returns:
UserId String

updateTimeStamp

public void updateTimeStamp()
Updates the time stamp of the Session with the current time



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