Decision Center API

ilog.rules.teamserver.model
Class IlrDefaultIsUserInRoleCallback

java.lang.Object
  extended by ilog.rules.teamserver.model.IlrDefaultIsUserInRoleCallback
All Implemented Interfaces:
IlrIsUserInRoleCallback, IlrSessionCallback

public class IlrDefaultIsUserInRoleCallback
extends Object
implements IlrIsUserInRoleCallback

Default implementation of IlrIsUserInRoleCallback.


Field Summary
protected  IlrSession session
           
 
Fields inherited from interface ilog.rules.teamserver.model.IlrSessionCallback
CHANGE_ACTIVITY_CONTROLLER_CALLBACK, CONTROLLER_CALLBACK, ISUSERINROLE_CALLBACK, RELEASE_CONTROLLER_CALLBACK, VALIDATION_ACTIVITY_CONTROLLER_CALLBACK
 
Constructor Summary
IlrDefaultIsUserInRoleCallback()
           
 
Method Summary
 boolean isUserInRole(String role)
          By default, looks in the J2EE roles of the user.
 void setSession(IlrSession session)
          Sets the session for this callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected IlrSession session
Constructor Detail

IlrDefaultIsUserInRoleCallback

public IlrDefaultIsUserInRoleCallback()
Method Detail

setSession

public void setSession(IlrSession session)
Description copied from interface: IlrSessionCallback
Sets the session for this callback.

This method is called just after a user connects to a session.

Specified by:
setSession in interface IlrSessionCallback
Parameters:
session - The session.
See Also:
IlrSessionFactory.connect(String, String, String, String), Overview

isUserInRole

public boolean isUserInRole(String role)
By default, looks in the J2EE roles of the user.

Specified by:
isUserInRole in interface IlrIsUserInRoleCallback
Parameters:
role - The user role.
Returns:
true if the current user has the given role.
See Also:
HttpServletRequest.isUserInRole(String)

Decision Center API

© Copyright IBM Corp. 1987, 2013