Portal Authentication and Entitlement Authorization
Tag isUserInRole


Description

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 Classcom.bea.p13n.entitlements.servlets.jsp.taglib.IsUserInRoleTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameIs User In Role

Attributes
NameRequiredRequest-timeDescription
roleNametruetrue This required parameter identifies the role to check for.
roleMaptruefalse A Map containing all the valid roles for the user. Using this returned value is more efficient than multiple calls to this tag.
idtruefalse The name of a variable which will hold the result of the tag evaluation. Type is Boolean.

Variables
NameTypeDeclareScopeDescription
From attribute 'id'java.lang.BooleantrueAT_BEGINNo Description
From attribute 'roleMap'java.util.MaptrueAT_BEGINNo 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.