com.atlassian.jira.action
Class JiraNonWebActionSupport

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.action.JiraNonWebActionSupport
All Implemented Interfaces:
SafeAction, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AbstractIssueAction, AbstractProjectEntityCreate, AbstractProjectEntityEdit, DataClean, DataExport, DataImport, ListenerCreate, ListenerDelete, ProjectCategoryCreate, ProjectCategoryDelete, ProjectCategoryEdit

public class JiraNonWebActionSupport
extends JiraActionSupport
implements SafeAction

The superclass for all non-web actions in JIRA. This implements SafeAction and hence can receive any arbitrary map of parameters.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
JiraNonWebActionSupport()
           
 
Method Summary
 java.lang.String doDefault()
           
 java.lang.String execute()
           
 com.opensymphony.user.User getRemoteUser()
           
protected  java.lang.String getText0(java.lang.String key)
          Translations by default live in JiraWebActionSupport.properties which isn't in our class heirarchy (webwork looks at the heirarchy to find resource bundles).
 java.lang.String getUnescapedText(java.lang.String key)
          Translations by default live in JiraWebActionSupport.properties which isn't in our class heirarchy (webwork looks at the heirarchy to find resource bundles).
 boolean isDispatchEvent()
           
 void setDispatchEvent(boolean dispatchEvent)
           
 void setRemoteUser(com.opensymphony.user.User remoteUser)
           
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

JiraNonWebActionSupport

public JiraNonWebActionSupport()
Method Detail

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface webwork.action.Action
Overrides:
execute in class JiraActionSupport
Throws:
java.lang.Exception

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
java.lang.Exception

isDispatchEvent

public boolean isDispatchEvent()

setDispatchEvent

public void setDispatchEvent(boolean dispatchEvent)

getRemoteUser

public com.opensymphony.user.User getRemoteUser()
Specified by:
getRemoteUser in class JiraActionSupport

setRemoteUser

public void setRemoteUser(com.opensymphony.user.User remoteUser)

getText0

protected java.lang.String getText0(java.lang.String key)
Translations by default live in JiraWebActionSupport.properties which isn't in our class heirarchy (webwork looks at the heirarchy to find resource bundles). We look directly for that property file here and then fall back to webwork if that fails.

Overrides:
getText0 in class JiraActionSupport
Parameters:
key - for the translation
Returns:
the translated String if found or the key if not found.

getUnescapedText

public java.lang.String getUnescapedText(java.lang.String key)
Translations by default live in JiraWebActionSupport.properties which isn't in our class heirarchy (webwork looks at the heirarchy to find resource bundles). We look directly for that property file here and then fall back to webwork if that fails.

Specified by:
getUnescapedText in interface I18nHelper
Overrides:
getUnescapedText in class JiraActionSupport
Parameters:
key - for the translation
Returns:
the translated String if found or the key if not found.


Copyright © 2002-2011 Atlassian. All Rights Reserved.