xdoclet.ejb.tags
Class SecurityTagsHandler

java.lang.Object
  |
  +--xdoclet.template.TemplateTagHandler
        |
        +--xdoclet.XDocletTagSupport
              |
              +--xdoclet.ejb.tags.EjbTagsHandler
                    |
                    +--xdoclet.ejb.tags.SecurityTagsHandler

public class SecurityTagsHandler
extends EjbTagsHandler

Version:
$Revision: 1.3 $
Author:
Ara Abrahamian (ara_e@email.com)

Field Summary
protected  java.lang.String currentSecurityRoleName
          The current security role name, set by forAllSecurityRoles and returned by securityRoleName.
 
Fields inherited from class xdoclet.ejb.tags.EjbTagsHandler
LOCAL_SUFFIX
 
Fields inherited from class xdoclet.XDocletTagSupport
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
 
Constructor Summary
SecurityTagsHandler()
           
 
Method Summary
 void forAllSecurityRoles(java.lang.String template)
          Evaluates the body block for each ejb:permission defined in class level or method level.
 java.lang.String securityRoleName()
          Returns current security role name set by the containing forAllSecurityRoles.
 
Methods inherited from class xdoclet.ejb.tags.EjbTagsHandler
beanType, choosePackage, concreteFullClassName, ejbExternalRefName, ejbName, ejbRefName, extendsFromFor, forAllBeans, getDependentClassFor, getDependentClassTagName, getEjbIdFor, getEjbNameFor, getEjbSpec, getShortEjbNameFor, hasPermission, hasTransaction, id, ifIsAConcreteEJBean, ifLocalEjb, ifNotLocalEjb, ifNotRemoteEjb, ifRemoteEjb, isAConcreteEJBean, isEjb, isLocalEjb, isOnlyLocalEjb, isOnlyRemoteEjb, isRemoteEjb, prefixWithEjbSlash, shortEjbName, shouldTraverseSuperclassForDependentClass, symbolicClassName
 
Methods inherited from class xdoclet.XDocletTagSupport
getClassTagValue, getClassTagValue, getConstructorTagValue, getCurrentClass, getCurrentConstructor, getCurrentField, getCurrentMethod, getCurrentPackage, getCurrentTag, getDocletContext, getFieldTagValue, getFieldTagValue, getMethodTagValue, getMethodTagValue, getParameterValue, getParameterValue, getTagValue, getTagValue, getTagValue, invalidParamValueFound, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, parsePropertyString, popCurrentClass, pushCurrentClass, replaceProperties, setCurrentClass, setCurrentConstructor, setCurrentField, setCurrentMethod, setCurrentPackage, setCurrentTag, tokenizeValue
 
Methods inherited from class xdoclet.template.TemplateTagHandler
generate, getContext, getEngine, getParser, setContext, setEngine, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSecurityRoleName

protected transient java.lang.String currentSecurityRoleName
The current security role name, set by forAllSecurityRoles and returned by securityRoleName. It somehow is like the current index for the forAllSecurityRoles loop.
See Also:
forAllSecurityRoles(java.lang.String), securityRoleName()
Constructor Detail

SecurityTagsHandler

public SecurityTagsHandler()
Method Detail

securityRoleName

public java.lang.String securityRoleName()
                                  throws XDocletException
Returns current security role name set by the containing forAllSecurityRoles.
Returns:
Current security role name
Throws:
XDocletException - Description of Exception
See Also:
forAllSecurityRoles(java.lang.String)

forAllSecurityRoles

public void forAllSecurityRoles(java.lang.String template)
                         throws XDocletException
Evaluates the body block for each ejb:permission defined in class level or method level.
Parameters:
template - The body of the block tag
Throws:
XDocletException - Description of Exception
See Also:
EjbTagsHandler.hasPermission(com.sun.javadoc.Doc), securityRoleName()