public interface IlrIsUserInRoleCallback extends IlrSessionCallback
IlrDefaultIsUserInRoleCallback class, which will get the roles given
by the J2EE authentication provider.
You might want to provide your own callback in order to dynamically determine the list of roles of the user. In this case, here is the process to follow:
com.mycompany.MyIsUserInRoleCallback, which implements
IlrIsUserInRoleCallbackpreferences.properties file, with the following line:
teamserver.isUserInRole.class = com.mycompany.MyIsUserInRoleCallbackcom.mycompany.MyIsUserInRoleCallback in a jar file, for example mycompany.jar.preferences.properties in the root level of the jar filerepackage-ear ant task, with mycompany.jar as an
additional jar.
Note: You cannot specify your implementation using the set-config-param ant task,
which stores parameters in the database. This is because, as opposed to the methods of IlrSessionController,
the isUserInRole method needs to be called at login time, at a time when the database may not exist at
all.
CHANGE_ACTIVITY_CONTROLLER_CALLBACK, CONTROLLER_CALLBACK, ISUSERINROLE_CALLBACK, RELEASE_CONTROLLER_CALLBACK, VALIDATION_ACTIVITY_CONTROLLER_CALLBACK| Modifier and Type | Method and Description |
|---|---|
boolean |
isUserInRole(java.lang.String role)
Indicates whether the user has the given role.
|
setSession© Copyright IBM Corp. 1987, 2017