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, 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
 String doDefault()
           
 String execute()
           
 User getRemoteUser()
           
protected  String getText0(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).
 String getUnescapedText(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(User remoteUser)
           
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, 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, 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
setCommand
 

Constructor Detail

JiraNonWebActionSupport

public JiraNonWebActionSupport()
Method Detail

execute

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

doDefault

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

isDispatchEvent

public boolean isDispatchEvent()

setDispatchEvent

public void setDispatchEvent(boolean dispatchEvent)

getRemoteUser

public User getRemoteUser()
Specified by:
getRemoteUser in class JiraActionSupport

setRemoteUser

public void setRemoteUser(User remoteUser)

getText0

protected String getText0(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 String getUnescapedText(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-2009 Atlassian. All Rights Reserved.