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  String arrayToString(String[] array)
           
 void beforeSetAttributes()
           
protected  boolean contextContainsAfter(String[] requiredContextVariablesAfter, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean contextContainsBefore(String[] requiredContextVariablesBefore, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean contextValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  void copyRedirectUrlParametersToTag(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)
           
 String getActionName()
           
 String getProperty(String key)
           
 JellyHttpRequest getRequest()
           
abstract  String[] getRequiredContextVariables()
           
abstract  String[] getRequiredContextVariablesAfter()
           
abstract  String[] getRequiredProperties()
           
 JellyHttpResponse getResponse()
           
protected  String getTagName()
          Get the Tag Name The tag name is just the class name after all (without the package name)
protected  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(String[] requiredContextVariables, Map map)
           
protected  void mapProperty(String mapFromKey, Map mapping, String propertyName, org.apache.commons.jelly.XMLOutput output)
           
protected  void mapProperty(String mapFromKey, String mapToKey, Map mapping, 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(String[] requiredProperties, org.apache.commons.jelly.XMLOutput output)
           
protected  boolean propertyContains(String key)
           
protected  boolean propertyValidation(org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequired(String[] required, String MESSAGE_SUFFIX, org.apache.commons.jelly.XMLOutput output, Map current)
           
protected  void reportRequiredContextVariablesAfter(String[] requiredContextVariablesAfter, org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequiredContextVariablesBefore(String[] requiredContextVariables, Map current, org.apache.commons.jelly.XMLOutput output)
           
protected  void reportRequiredProperties(String[] requiredProperties, org.apache.commons.jelly.XMLOutput output)
           
protected  void setActionName(String actionName)
           
 void setBackendAction(boolean backendAction)
           
 void setExecuteWebworkOnClose(boolean executeWebworkOnClose)
           
 void setProperty(String key, String value)
           
 void setProperty(String key, String[] value)
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.jelly.JiraDynaBeanTagSupport
getProperties
 
Methods inherited from class org.apache.commons.jelly.DynaBeanTagSupport
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, isEscapeText, isTrim, setBody, setEscapeText, 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 String getActionName()

setActionName

protected void setActionName(String actionName)

setProperty

public void setProperty(String key,
                        String value)

setProperty

public void setProperty(String key,
                        String[] value)

getProperty

public String getProperty(String key)

propertyContains

protected boolean propertyContains(String key)

getResponse

public JellyHttpResponse getResponse()

beforeSetAttributes

public void beforeSetAttributes()
                         throws org.apache.commons.jelly.JellyTagException
Overrides:
beforeSetAttributes in class org.apache.commons.jelly.DynaBeanTagSupport
Throws:
org.apache.commons.jelly.JellyTagException

getRequest

public JellyHttpRequest getRequest()

getWebWorkAdaptor

public WebWorkAdaptor getWebWorkAdaptor()

isBackendAction

public boolean isBackendAction()

setBackendAction

public void setBackendAction(boolean backendAction)

toString

public String toString()
Overrides:
toString in class 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.

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(String url)

getTagName

protected 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 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(String[] requiredContextVariablesBefore,
                                        org.apache.commons.jelly.XMLOutput output)
                                 throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

contextContainsAfter

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

propertiesContains

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

mapContainsAll

protected boolean mapContainsAll(String[] requiredContextVariables,
                                 Map map)

reportRequiredContextVariablesBefore

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

reportRequiredProperties

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

reportRequiredContextVariablesAfter

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

reportRequired

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

arrayToString

protected String arrayToString(String[] array)

getRequiredProperties

public abstract String[] getRequiredProperties()

getRequiredContextVariablesAfter

public abstract String[] getRequiredContextVariablesAfter()

getRequiredContextVariables

public abstract String[] getRequiredContextVariables()

mapProperty

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

mapProperty

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


Copyright © 2002-2009 Atlassian. All Rights Reserved.