ALES Tags


Standard Syntax:
     <%@ taglib prefix="ales" uri="http://www.bea.com/ales/tags" %>

XML Syntax:
     <anyxmlelement xmlns:ales="http://www.bea.com/ales/tags" />

ALES Authorization Tag Library

Tag Library Information
Display NameALES Tags
Version1.0
Short Nameales
URIhttp://www.bea.com/ales/tags
 

Tag Summary
isAccessAllowedThe isAccessAllowed tag will call the ALES runtime to see if the user is allowed to perform the requested action on the requested resource. If true is returned it will allow the container to continue processing the body of the then tag. For convenience the result of calling isAccessAllowed can be placed within the resultVar for use later by the jsp author. From a configuration standpoint, isAccessAllowed will look for the authorization and role mapping engine (ARME) configuration file in the system properties. If not found, all elements in the body tag should be displayed.
isAccessNotAllowedThe isAccessNotAllowed tag will call the ALES runtime to see if the user is allowed to perform the requested action on the requested resource. If true is returned it will allow the container to continue processing the body of the tag. For convenience the result of calling isAccessNotAllowed can be placed within the resultVar for use later by the jsp author. From a configuration standpoint, isAccessNotAllowed will look for the ARME configuration file in the system properties. If not found, all elements in the body tag should be displayed.
isAccessAllowedQueryResourcesThe isAccessAllowedQueryResources tag will call the ALES runtime using the query resource extra attribute. This tag does not have a body associated with it. Instead, it returns a set of data that can be consumed by the jsp. The grantedVar attribute will set a variable to contain the granted response from the authorization and roll mapping engine (ARME). The deniedVar attribute will set a variable to contain the denied response from the ARME. If the ARME configuration file is not found, this tag will not set any data for the JSP to consume.
getUserRolesThe getUserRoles tag will query the ALES system for the set of roles that a user currently has in the system for the requested action and requested resource. It will return the collection of role names as a variable defined by the var attribute.
isUserInRoleThe isUserInRole tag is a conditional and cooperative tag. If the user is in the role specified, the body of the tag will be processed. If the user has the role passed into the tag attribute, the body of the tag will be processed. In addition the result var can be used for later processing.
setSecurityContextThe setSecurityContext tag is used to set the base resource for all elements on a jsp page. The value of this tag will be pre-pended to all other resource attributes on the page. In addition, variables that should be set globally for the application context can be set in the body of this tag.
recordEventThe recordEvent tag is purely an input tag that will cause an audit message to be written to the audit log of ALES. The body of this tag can also take an attribute tag. All attributes will be added to the audit context as additional descriptionrmation for the audit event.
attributeThe attribute tag is used to add attributes to ALES runtime calls. For Authorization/Role calls attributes will be added to the ALES applicatio context. For the recordEvent tag attributes will be added to the audit context.
thenThe Then tag will be used in the context of an conditional ALES tag. If the condition of the tag returns true, the body of the then tag will be processed.
elseThe Else tag is used in the context of a conditional ALES tag. If the condition of the tag returns false, the body of the Else tag will be processed.
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.