com.bankframe.services.accesscontrol.ejb
Class EJBAccessControlBean
java.lang.Object
com.bankframe.ejb.ESessionBean
com.bankframe.services.accesscontrol.AccessControlBean
com.bankframe.services.accesscontrol.ejb.EJBAccessControlBean
- All Implemented Interfaces:
- ESession, Serializable, EnterpriseBean, SessionBean
public class EJBAccessControlBean
- extends AccessControlBean
This class controls access to EJBs for users. It does this via the
validateUserRequest()
method. This method is passed a userId
and a requestId variable and checks the accessibility to the bean based on these
parameters.
- See Also:
- Serialized Form
Methods inherited from class com.bankframe.ejb.ESessionBean |
audit, ejbActivate, ejbCreate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext |
EJBAccessControlBean
public EJBAccessControlBean()
validateUserRequest
public boolean validateUserRequest(String userId,
String requestId)
throws AccessControlException
- This method checks if a user has access to the specified request id.
- Specified by:
validateUserRequest
in class AccessControlBean
- 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.