Skip navigation links
ilog.rules.teamserver.model
Class IlrDefaultIsUserInRoleCallback
java.lang.Object
ilog.rules.teamserver.model.IlrDefaultIsUserInRoleCallback
- All Implemented Interfaces:
- IlrIsUserInRoleCallback, IlrSessionCallback
public class IlrDefaultIsUserInRoleCallback
- extends Object
- implements IlrIsUserInRoleCallback
Default implementation of IlrIsUserInRoleCallback.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected IlrSession session
IlrDefaultIsUserInRoleCallback
public IlrDefaultIsUserInRoleCallback()
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)
Skip navigation links
© Copyright IBM Corp. 1987, 2013