com.bankframe.services.accesscontrol
Class AccessControlBean

java.lang.Object
  extended bycom.bankframe.ejb.ESessionBean
      extended bycom.bankframe.services.accesscontrol.AccessControlBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, ESession, java.io.Serializable, javax.ejb.SessionBean
Direct Known Subclasses:
EJBAccessControlBean, LDAPAccessControlBean

public abstract class AccessControlBean
extends ESessionBean

This class defines the methods that must be implemented by all access control session beans

Author:
ETU
See Also:
Serialized Form

Constructor Summary
AccessControlBean()
          Constructor
 
Method Summary
 java.util.Vector processDataPacket(DataPacket data)
          Thie method processes the data packet validating the access rights of the user.
abstract  boolean validateUserRequest(java.lang.String userId, java.lang.String requestId)
          This method checks if the specified user has access to the session bean mapped to the specified request id.
 
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

AccessControlBean

public AccessControlBean()
Constructor

Method Detail

processDataPacket

public java.util.Vector processDataPacket(DataPacket data)
                                   throws java.rmi.RemoteException,
                                          ProcessingErrorException
Thie method processes the data packet validating the access rights of the user.

Specified by:
processDataPacket in interface ESession
Specified by:
processDataPacket in class ESessionBean
Parameters:
data - DataPacket is the packet to process
Returns:
a Vector of "Access Control Response" DataPacket with userid and requestid
Throws:
ProcessingErrorException - if a processing problem occurs
RemoteException

validateUserRequest

public abstract boolean validateUserRequest(java.lang.String userId,
                                            java.lang.String requestId)
                                     throws AccessControlException
This method checks if the specified user has access to the session bean mapped to the specified request id.

Parameters:
userId - the userid to check against
requestId - the requestId of the session bean
Returns:
true if the user does have access, otherwise false
Throws:
AccessControlException - if the user is not allowed access the bean


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