com.bankframe.services.accesscontrol
Class AccessControlBean
java.lang.Object
com.bankframe.ejb.ESessionBean
com.bankframe.services.accesscontrol.AccessControlBean
- All Implemented Interfaces:
- ESession, Serializable, EnterpriseBean, 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
- See Also:
- Serialized Form
Methods inherited from class com.bankframe.ejb.ESessionBean |
audit, ejbActivate, ejbCreate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext |
AccessControlBean
public AccessControlBean()
- Constructor
processDataPacket
public Vector processDataPacket(DataPacket data)
throws 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(String userId,
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 againstrequestId
- 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 © 2005, 2007, Oracle. All rights reserved.