The Application Assembly Tool (AAT) can be used to both define the role-name and map them to the actual run-time roles in the environment with the role-link element.
To get to this panel in the AAT, you must have already created an entity bean. Once you have created a bean, expand the EJB module. Expand the bean type (session beans, for example). Expand a particular session bean. Security role references display in the navigation.
For example, if the name is boss, then the AccountBean can make a decision based on whether the user executing a method is granted the role of a boss.
Data type | String |
The role reference will be linked to this name. For example, the AccountBean code uses a role named boss. The Account Bean is a part of an enterprise application, FinanceApp, that has a role named Manager. If the link specifies "Manager," then when the bean makes a call to isCallerInRole("boss"), the result will be true if and only if the user, who invoked the method, has been granted the FinanceApp's Manager role. The security role reference is the name used by an application component (module), and the link name is the name defined in the deployment descriptor of the encompassing application. The link maps the name used in the component to a corresponding name in the application.
Data type | String |
Data type | String |