|
||||||||||
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper |
---|
I18nHelper.BeanFactory |
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
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 | |
---|---|
protected |
JiraActionSupport()
|
Method Summary | |
---|---|
void |
addErrorMessages(webwork.dispatcher.ActionResult aResult)
|
void |
addErrorMessages(Collection<String> errorMessages)
|
void |
addErrors(Map<String,String> 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()
|
Set<String> |
getKeysForPrefix(String prefix)
Given a prefix for an i18n key, this method will return all keys that start with the prefix specified. |
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 string,
Object value1,
Object value2,
Object value3,
Object value4,
Object value5,
Object value6)
|
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)
|
protected String |
getText0(String key)
Special accessor for the ActionSupport.getText(String) method as we override that method here :-( |
String |
getUnescapedText(String key)
|
com.atlassian.core.user.preferences.Preferences |
getUserPreferences()
|
WatcherManager |
getWatcherManager()
|
boolean |
hasAnyErrors()
|
boolean |
isEnterprise()
Deprecated. as we know longer have different editions. |
boolean |
isIndexing()
|
boolean |
isProfessional()
Deprecated. as we know longer have different editions. |
boolean |
isProfessionalOrEnterprise()
Deprecated. as we know longer have different editions. |
boolean |
isStandard()
Deprecated. as we know longer have different editions. |
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, 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 |
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<String> errorMessages)
public void addErrors(Map<String,String> 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, Object value1, Object value2, Object value3, Object value4, Object value5, Object value6)
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 Set<String> getKeysForPrefix(String prefix)
I18nHelper
getKeysForPrefix
in interface I18nHelper
prefix
- The prefix for i18n keys. May not be null
public 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)
getUnescapedText
in interface I18nHelper
protected String getText0(String key)
ActionSupport.getText(String)
method as we override that method here :-(
key
- for the translation
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 |