Decision Center API

ilog.rules.teamserver.model
Interface IlrIsUserInRoleCallback

All Superinterfaces:
IlrSessionCallback
All Known Implementing Classes:
IlrDefaultIsUserInRoleCallback

public interface IlrIsUserInRoleCallback
extends IlrSessionCallback

A callback with a single method to determine the roles of the current user. By default, Decision Center uses the 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:

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.

Since:
JRules 7.0

Field Summary
 
Fields inherited from interface ilog.rules.teamserver.model.IlrSessionCallback
CHANGE_ACTIVITY_CONTROLLER_CALLBACK, CONTROLLER_CALLBACK, ISUSERINROLE_CALLBACK, RELEASE_CONTROLLER_CALLBACK, VALIDATION_ACTIVITY_CONTROLLER_CALLBACK
 
Method Summary
 boolean isUserInRole(String role)
          Indicates whether the user has the given role.
 
Methods inherited from interface ilog.rules.teamserver.model.IlrSessionCallback
setSession
 

Method Detail

isUserInRole

boolean isUserInRole(String role)
Indicates whether the user has the given role.

Parameters:
role - The user role.
Returns:
true if the current user has the given role.

Decision Center API

© Copyright IBM Corp. 1987, 2013