|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object webwork.action.ActionSupport com.atlassian.jira.action.JiraActionSupport
public abstract class JiraActionSupport
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
log
|
Fields inherited from class webwork.action.ActionSupport |
---|
command, errorMap, errorMessages |
Fields inherited from interface com.atlassian.jira.util.I18nHelper |
---|
DEFAULT_RESOURCE_BUNDLE |
Fields inherited from interface webwork.action.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
protected |
JiraActionSupport()
|
Method Summary | |
---|---|
void |
addErrorMessages(webwork.dispatcher.ActionResult aResult)
|
void |
addErrorMessages(Collection errorMessages)
|
void |
addErrors(Map errors)
|
void |
addIllegalArgumentException(String fieldName,
IllegalArgumentException e)
Override this method from ActionSupport. |
String |
execute()
|
String |
getActionName()
|
ApplicationProperties |
getApplicationProperties()
|
ResourceBundle |
getDefaultResourceBundle()
|
org.ofbiz.core.entity.GenericDelegator |
getDelegator()
|
JiraLocaleUtils |
getJiraLocaleUtils()
|
Locale |
getLocale()
override default getLocale() to use the locale specified by the user |
abstract User |
getRemoteUser()
|
String |
getResult()
Get a definitive result. |
String |
getText(String string)
|
String |
getText(String string,
Object parameters)
A parameterised i18n'zed message |
String |
getText(String key,
String value1)
A parameterised i18n'zed message with one string parameters |
String |
getText(String string,
String param1,
String param2)
A parameterised i18n'zed message with two string parameters |
String |
getText(String string,
String param1,
String param2,
String param3)
A parameterised i18n'zed message with two string parameters |
String |
getText(String key,
String value1,
String value2,
String value3,
String value4)
|
String |
getText(String string,
String value1,
String value2,
String value3,
String value4,
String value5,
String value6,
String value7,
String value8,
String value9)
|
String |
getUnescapedText(String key)
|
com.atlassian.core.user.preferences.Preferences |
getUserPreferences()
|
WatcherManager |
getWatcherManager()
|
boolean |
hasAnyErrors()
|
boolean |
isEnterprise()
|
boolean |
isIndexing()
|
boolean |
isProfessional()
|
boolean |
isProfessionalOrEnterprise()
|
boolean |
isStandard()
|
protected void |
removeKeyOrAddError(Map params,
String key,
String messageKey)
Checks if descriptorParams contains key and removes it, otherwise adds the error message with the given message key. |
Methods inherited from class webwork.action.ActionSupport |
---|
addError, addErrorMessage, doDefault, 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 |
Field Detail |
---|
protected final org.apache.log4j.Logger log
Constructor Detail |
---|
protected JiraActionSupport()
Method Detail |
---|
public abstract User getRemoteUser()
public String execute() throws Exception
execute
in interface webwork.action.Action
execute
in class webwork.action.ActionSupport
Exception
public org.ofbiz.core.entity.GenericDelegator getDelegator()
public ApplicationProperties getApplicationProperties()
public WatcherManager getWatcherManager()
public final String getActionName()
getActionName
in class webwork.action.ActionSupport
public String getResult()
Action.ERROR
if there are error messages,
otherwise Action.SUCCESS
.
Action.ERROR
or Action.SUCCESS
public void addErrorMessages(Collection errorMessages)
public void addErrors(Map errors)
public boolean hasAnyErrors()
public void addErrorMessages(webwork.dispatcher.ActionResult aResult)
public boolean isIndexing()
public JiraLocaleUtils getJiraLocaleUtils()
public String getText(String string)
getText
in interface I18nHelper
getText
in class webwork.action.ActionSupport
public String getText(String key, String value1, String value2, String value3, String value4)
getText
in interface I18nHelper
public String getText(String string, String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9)
getText
in interface I18nHelper
public String getText(String string, Object parameters)
getText
in interface I18nHelper
parameters
- A single object, or array of objects, or list of objectspublic String getText(String key, String value1)
getText
in interface I18nHelper
public String getText(String string, String param1, String param2)
getText
in interface I18nHelper
public ResourceBundle getDefaultResourceBundle()
getDefaultResourceBundle
in interface I18nHelper
public String getText(String string, String param1, String param2, String param3)
getText
in interface I18nHelper
public Locale getLocale()
getLocale
in interface I18nHelper
getLocale
in class webwork.action.ActionSupport
public com.atlassian.core.user.preferences.Preferences getUserPreferences()
public String getUnescapedText(String key)
public void addIllegalArgumentException(String fieldName, IllegalArgumentException e)
addIllegalArgumentException
in interface webwork.action.IllegalArgumentAware
addIllegalArgumentException
in class webwork.action.ActionSupport
public final boolean isEnterprise()
public final boolean isProfessionalOrEnterprise()
public final boolean isProfessional()
public final boolean isStandard()
protected void removeKeyOrAddError(Map params, String key, String messageKey)
params
- the map of parameterskey
- the param key to remove.messageKey
- the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |