com.atlassian.jira.jelly
Class ActionTagSupport

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.jelly.DynaTagSupport
          extended by org.apache.commons.jelly.DynaBeanTagSupport
              extended by com.atlassian.jira.jelly.JiraDynaBeanTagSupport
                  extended by com.atlassian.jira.jelly.ActionTagSupport
All Implemented Interfaces:
org.apache.commons.jelly.DynaTag, org.apache.commons.jelly.Tag
Direct Known Subclasses:
ChangeIssue, LinkIssue, Login, NotImplementedTag, UserAwareActionTagSupport

public abstract class ActionTagSupport
extends JiraDynaBeanTagSupport


Field Summary
protected static boolean FAILURE
           
protected  boolean ignoreErrors
           
protected static boolean SUCCESS
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ActionTagSupport()
           
 
Method Summary
protected  java.lang.String arrayToString(java.lang.String[] array)
           
protected  boolean contextContainsAfter(java.lang.String[] requiredContextVariablesAfter, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean contextContainsBefore(java.lang.String[] requiredContextVariablesBefore, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean contextValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  void copyRedirectUrlParametersToTag(java.lang.String url)
           
 void doTag(org.apache.commons.jelly.XMLOutput output)
          Evaluates this tag after all the tag properties have been initialized.
protected  void endTagExecution(org.apache.commons.jelly.XMLOutput output)
           
 java.lang.String getActionName()
           
 java.lang.String getProperty(java.lang.String key)
           
 JellyHttpRequest getRequest()
           
abstract  java.lang.String[] getRequiredContextVariables()
           
abstract  java.lang.String[] getRequiredContextVariablesAfter()
           
abstract  java.lang.String[] getRequiredProperties()
           
 JellyHttpResponse getResponse()
           
protected  java.lang.String getTagName()
          Get the Tag Name The tag name is just the class name after all (without the package name)
protected  java.lang.String getTagName(org.apache.commons.jelly.Tag tag)
          Get the Tag Name for another tag The tag name is just the class name after all (without the package name)
 WebWorkAdaptor getWebWorkAdaptor()
           
 boolean isBackendAction()
           
 boolean isExecuteWebworkOnClose()
           
protected  boolean mapContainsAll(java.lang.String[] requiredContextVariables, java.util.Map map)
           
protected  void mapProperty(java.lang.String mapFromKey, java.util.Map mapping, java.lang.String propertyName, org.apache.commons.jelly.XMLOutput output)
           
protected  void mapProperty(java.lang.String mapFromKey, java.lang.String mapToKey, java.util.Map mapping, java.lang.String propertyName, org.apache.commons.jelly.XMLOutput output)
           
protected  void postTagExecution(org.apache.commons.jelly.XMLOutput output)
           
protected  void postTagValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  void preContextValidation()
           
protected  void prePropertyValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  boolean propertiesContains(java.lang.String[] requiredProperties, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean propertyContains(java.lang.String key)
           
protected  boolean propertyValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequired(java.lang.String[] required, java.lang.String MESSAGE_SUFFIX, org.apache.commons.jelly.XMLOutput output, java.util.Map current)
           
protected  void reportRequiredContextVariablesAfter(java.lang.String[] requiredContextVariablesAfter, org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequiredContextVariablesBefore(java.lang.String[] requiredContextVariables, java.util.Map current, org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequiredProperties(java.lang.String[] requiredProperties, org.apache.commons.jelly.XMLOutput output)
           
protected  void setActionName(java.lang.String actionName)
           
 void setBackendAction(boolean backendAction)
           
 void setExecuteWebworkOnClose(boolean executeWebworkOnClose)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void setProperty(java.lang.String key, java.lang.String[] value)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.jira.jelly.JiraDynaBeanTagSupport
getProperties
 
Methods inherited from class org.apache.commons.jelly.DynaBeanTagSupport
beforeSetAttributes, getAttributeType, getDynaBean, setAttribute, setContext, setDynaBean
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setParent
 

Field Detail

SUCCESS

protected static final boolean SUCCESS
See Also:
Constant Field Values

FAILURE

protected static final boolean FAILURE
See Also:
Constant Field Values

ignoreErrors

protected boolean ignoreErrors
Constructor Detail

ActionTagSupport

public ActionTagSupport()
Method Detail

isExecuteWebworkOnClose

public boolean isExecuteWebworkOnClose()

setExecuteWebworkOnClose

public void setExecuteWebworkOnClose(boolean executeWebworkOnClose)

getActionName

public java.lang.String getActionName()

setActionName

protected void setActionName(java.lang.String actionName)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String[] value)

getProperty

public java.lang.String getProperty(java.lang.String key)

propertyContains

protected boolean propertyContains(java.lang.String key)

getResponse

public JellyHttpResponse getResponse()

getRequest

public JellyHttpRequest getRequest()

getWebWorkAdaptor

public WebWorkAdaptor getWebWorkAdaptor()

isBackendAction

public boolean isBackendAction()

setBackendAction

public void setBackendAction(boolean backendAction)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Evaluates this tag after all the tag properties have been initialized.

Specified by:
doTag in interface org.apache.commons.jelly.Tag
Specified by:
doTag in class org.apache.commons.jelly.TagSupport
Parameters:
output - the xml output stream
Throws:
org.apache.commons.jelly.JellyTagException

preContextValidation

protected void preContextValidation()

contextValidation

protected boolean contextValidation(org.apache.commons.jelly.XMLOutput output)
                             throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

prePropertyValidation

protected void prePropertyValidation(org.apache.commons.jelly.XMLOutput output)
                              throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

propertyValidation

protected boolean propertyValidation(org.apache.commons.jelly.XMLOutput output)
                              throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

postTagExecution

protected void postTagExecution(org.apache.commons.jelly.XMLOutput output)
                         throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

postTagValidation

protected void postTagValidation(org.apache.commons.jelly.XMLOutput output)
                          throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

endTagExecution

protected void endTagExecution(org.apache.commons.jelly.XMLOutput output)

copyRedirectUrlParametersToTag

protected void copyRedirectUrlParametersToTag(java.lang.String url)

getTagName

protected java.lang.String getTagName()
Get the Tag Name The tag name is just the class name after all (without the package name)

Returns:
The Name of the Tag

getTagName

protected java.lang.String getTagName(org.apache.commons.jelly.Tag tag)
Get the Tag Name for another tag The tag name is just the class name after all (without the package name)

Returns:
The Name of the Tag

contextContainsBefore

protected boolean contextContainsBefore(java.lang.String[] requiredContextVariablesBefore,
                                        org.apache.commons.jelly.XMLOutput output)
                                 throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

contextContainsAfter

protected boolean contextContainsAfter(java.lang.String[] requiredContextVariablesAfter,
                                       org.apache.commons.jelly.XMLOutput output)
                                throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

propertiesContains

protected boolean propertiesContains(java.lang.String[] requiredProperties,
                                     org.apache.commons.jelly.XMLOutput output)
                              throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

mapContainsAll

protected boolean mapContainsAll(java.lang.String[] requiredContextVariables,
                                 java.util.Map map)

reportRequiredContextVariablesBefore

protected void reportRequiredContextVariablesBefore(java.lang.String[] requiredContextVariables,
                                                    java.util.Map current,
                                                    org.apache.commons.jelly.XMLOutput output)
                                             throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

reportRequiredProperties

protected void reportRequiredProperties(java.lang.String[] requiredProperties,
                                        org.apache.commons.jelly.XMLOutput output)
                                 throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

reportRequiredContextVariablesAfter

protected void reportRequiredContextVariablesAfter(java.lang.String[] requiredContextVariablesAfter,
                                                   org.apache.commons.jelly.XMLOutput output)
                                            throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

reportRequired

protected void reportRequired(java.lang.String[] required,
                              java.lang.String MESSAGE_SUFFIX,
                              org.apache.commons.jelly.XMLOutput output,
                              java.util.Map current)
                       throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

arrayToString

protected java.lang.String arrayToString(java.lang.String[] array)

getRequiredProperties

public abstract java.lang.String[] getRequiredProperties()

getRequiredContextVariablesAfter

public abstract java.lang.String[] getRequiredContextVariablesAfter()

getRequiredContextVariables

public abstract java.lang.String[] getRequiredContextVariables()

mapProperty

protected void mapProperty(java.lang.String mapFromKey,
                           java.util.Map mapping,
                           java.lang.String propertyName,
                           org.apache.commons.jelly.XMLOutput output)
                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

mapProperty

protected void mapProperty(java.lang.String mapFromKey,
                           java.lang.String mapToKey,
                           java.util.Map mapping,
                           java.lang.String propertyName,
                           org.apache.commons.jelly.XMLOutput output)
                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException


Copyright © 2002-2006 Atlassian. All Rights Reserved.