Portal Authentication and Entitlement Authorization
Tag isUserInRole
This tag provides a runtime check which can be used to authorize access to
a WLP application resource. The name of a role passed into this tag is compared
to the set of valid roles (computed during the request) for the user.
If the result of the role check is false, the body of this tag will be
skipped. For convenience, an empty body form of the tag may be used and the return
value id will be set to true or false.
With this tag you can check on visitor roles created via the WLP admin tools
or global roles created with the WLS console.
Tag Information |
Tag Class | com.bea.p13n.entitlements.servlets.jsp.taglib.IsUserInRoleTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | Is User In Role |
Attributes |
Name | Required | Request-time | Description |
roleName | true | true |
This required parameter identifies the role to check for.
|
roleMap | true | false |
A Map containing all the valid roles for the user. Using this returned
value is more efficient than multiple calls to this tag.
|
id | true | false |
The name of a variable which will hold the result of the tag evaluation. Type is Boolean.
|
Variables |
Name | Type | Declare | Scope | Description |
From attribute 'id' | java.lang.Boolean | true | AT_BEGIN | No Description |
From attribute 'roleMap' | java.util.Map | true | AT_BEGIN | No Description |
Output Generated by
Tag Library Documentation Generator.
Copyright © 2008, ${product.vendor} and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.