com.bankframe.services.accesscontrol.ejb.userpermission
Class EJBUserPermissionBean

java.lang.Object
  extended bycom.bankframe.ejb.EEntityBean
      extended bycom.bankframe.services.accesscontrol.ejb.userpermission.EJBUserPermissionBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class EJBUserPermissionBean
extends EEntityBean

This class refers to the EJBUSER_PERMISSIONS table in the database. This table is responsible for holding information about the different permissions each user has in bankframe. A permission in this table refers to an EJB which is denoted by its request id.

Author:
ETU
See Also:
Serialized Form

Field Summary
 java.lang.String requestId
          Request ID for a user
 java.lang.String userId
          User ID
 
Constructor Summary
EJBUserPermissionBean()
           
 
Method Summary
 EJBUserPermissionPK ejbCreate(java.lang.String userId, java.lang.String requestId)
          This method must be implemented by all EJBs.
 void ejbPostCreate(java.lang.String userId, java.lang.String requestId)
          This method must be implmented by all EJBs.
 java.lang.String getRequestId()
          This method retrieves the requestID for the bean this user has access to.
 java.lang.String getUserId()
          This method retrieves the userID.
 DataPacket toDataPacket()
          This method returns this bean's instance variables in DataPacket format.
 
Methods inherited from class com.bankframe.ejb.EEntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, toString, unsetEntityContext, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userId

public java.lang.String userId
User ID


requestId

public java.lang.String requestId
Request ID for a user

Constructor Detail

EJBUserPermissionBean

public EJBUserPermissionBean()
Method Detail

ejbCreate

public EJBUserPermissionPK ejbCreate(java.lang.String userId,
                                     java.lang.String requestId)
                              throws javax.ejb.CreateException
This method must be implemented by all EJBs. See the javax.ejb.EJBHome Class for details.

Throws:
javax.ejb.CreateException
RemoteException

ejbPostCreate

public void ejbPostCreate(java.lang.String userId,
                          java.lang.String requestId)
                   throws javax.ejb.CreateException
This method must be implmented by all EJBs. See the javax.ejb.EJBHome Class for details.

Throws:
RemoteException
javax.ejb.CreateException

getRequestId

public java.lang.String getRequestId()
This method retrieves the requestID for the bean this user has access to.

Returns:
requestID

getUserId

public java.lang.String getUserId()
This method retrieves the userID.

Returns:
the user id

toDataPacket

public DataPacket toDataPacket()
This method returns this bean's instance variables in DataPacket format.

Specified by:
toDataPacket in class EEntityBean
Returns:
a DataPacket representation of this bean


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