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

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

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 java.lang.String ID_ATTRIBUTE_NAME
           
static java.lang.String OBJECT_CLASS_NAME
           
static java.lang.String TIME_STAMP_ATTRIBUTE_NAME
           
static java.lang.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(java.lang.String sessionId, java.lang.String userId)
          EJB Creation method for the EJB bean
 java.util.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(java.lang.String sessionId, java.lang.String userId)
          EJB Post Create does nothing
 java.lang.String getRdnAttributeName()
          Gets the ID Attribute name for the Session object
 java.lang.String getSessionId()
          EJB Creation method for the EJB bean
 long getTimeStamp()
          Gets the Time Stamp of the Session
 java.lang.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 java.lang.String OBJECT_CLASS_NAME

ID_ATTRIBUTE_NAME

public static final java.lang.String ID_ATTRIBUTE_NAME
See Also:
Constant Field Values

USER_ID_ATTRIBUTE_NAME

public static final java.lang.String USER_ID_ATTRIBUTE_NAME

TIME_STAMP_ATTRIBUTE_NAME

public static final java.lang.String TIME_STAMP_ATTRIBUTE_NAME
Constructor Detail

LDAPBankFrameSessionBean

public LDAPBankFrameSessionBean()
Method Detail

ejbCreate

public LDAPEntityBeanPK ejbCreate(java.lang.String sessionId,
                                  java.lang.String userId)
                           throws javax.ejb.CreateException
EJB Creation method for the EJB bean

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

ejbFindAll

public java.util.Enumeration ejbFindAll()
                                 throws javax.ejb.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:
javax.ejb.FinderException

ejbFindByPrimaryKey

public LDAPEntityBeanPK ejbFindByPrimaryKey(LDAPEntityBeanPK primaryKey)
                                     throws javax.ejb.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:
javax.ejb.FinderException

ejbPostCreate

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

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

getRdnAttributeName

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

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

getSessionId

public java.lang.String getSessionId()
EJB Creation method for the EJB bean

Returns:
LDAPEntityBeanPK primary key object
Throws:
javax.ejb.CreateException - if creation failed.

getTimeStamp

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

Returns:
timeStamp long

getUserId

public java.lang.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.