|
|||||||||||
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 com.atlassian.jira.web.action.JiraWebActionSupport
All web actions should extend this class - it provides basic common functionality for all web actions.
When adding to this class, be sure that what you are adding is used by a large number of actions - otherwise add it to a sub class of this.
Field Summary | |
static java.lang.String |
ISSUE_NOT_FOUND_RESULT
|
static java.lang.String |
PERMISSION_VIOLATION_RESULT
|
protected javax.servlet.http.HttpServletRequest |
request
|
Fields inherited from class com.atlassian.jira.action.JiraActionSupport |
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 | |
JiraWebActionSupport()
|
Method Summary | |
void |
addErrorCollection(ErrorCollection errors)
|
java.util.Map |
getAssignableUsers(org.ofbiz.core.entity.GenericValue entity)
|
java.util.Map |
getAssignableUsers(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue issue)
|
protected java.util.Collection |
getCachedGroups()
|
java.lang.String |
getColumnViewHtml(CustomField field,
org.ofbiz.core.entity.GenericValue issue)
|
ComponentManager |
getComponentManager()
|
ConstantsManager |
getConstantsManager()
|
java.lang.String |
getCustomFieldHtml(CustomField field,
org.ofbiz.core.entity.GenericValue issue)
|
java.lang.String |
getCustomFieldXML(CustomField field,
org.ofbiz.core.entity.GenericValue issue)
|
protected com.opensymphony.user.User |
getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
|
java.util.ResourceBundle |
getDefaultResourceBundle()
|
Field |
getField(java.lang.String id)
|
java.util.Locale |
getLocale()
override default getLocale() to use the locale specified by the user |
OutlookDate |
getOutlookDate()
|
protected PermissionManager |
getPermissionManager()
|
ProjectManager |
getProjectManager()
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(org.ofbiz.core.entity.GenericValue gv)
|
java.lang.String |
getRedirect(java.lang.String defaultUrl)
Get a definitive result with a redirect upon success. |
com.opensymphony.user.User |
getRemoteUser()
|
java.lang.String |
getReturnUrl()
|
java.lang.String |
getText(java.lang.String key)
If called from a JSP page that is not associated with an action, look for key in the default JiraWebActionSupport.properties file |
java.lang.String |
getText(java.lang.String string,
java.lang.Object parameters)
A parameterised i18n'zed message |
java.lang.String |
getText(java.lang.String key,
java.lang.String value1)
A parameterised i18n'zed message with one string parameters |
java.lang.String |
getText(java.lang.String string,
java.lang.String param1,
java.lang.String param2)
A parameterised i18n'zed message with two string parameters |
java.lang.String |
getText(java.lang.String string,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3)
A parameterised i18n'zed message with two string parameters |
java.lang.String |
getUserFullName(java.lang.String username)
|
com.atlassian.core.user.preferences.Preferences |
getUserPreferences()
|
VersionManager |
getVersionManager()
|
boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
|
protected boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
|
boolean |
isHasIssuePermission(int permissionsId,
org.ofbiz.core.entity.GenericValue issue)
|
boolean |
isHasIssuePermission(java.lang.String permName,
org.ofbiz.core.entity.GenericValue issue)
|
boolean |
isHasPermission(int permissionsId)
|
boolean |
isHasPermission(java.lang.String permName)
|
boolean |
isHasPermission(java.lang.String permName,
org.ofbiz.core.entity.GenericValue entity)
Deprecated. Please use either isHasIssuePermission or isHasProjectPermission |
boolean |
isHasProjectPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue project)
|
boolean |
isHasProjectPermission(java.lang.String permName,
org.ofbiz.core.entity.GenericValue project)
|
protected java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue project,
java.lang.String assignee)
|
protected java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
java.lang.String assignee)
|
protected java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
java.lang.String[] components,
java.lang.String assignee)
Takes a project and component ids for an issue and tries to return the default assignee. |
void |
setReturnUrl(java.lang.String returnUrl)
|
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, execute, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getUnescapedText, getWatcherManager, hasAnyErrors, isIndexing |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, 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 com.atlassian.jira.util.ErrorCollection |
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors |
Methods inherited from interface webwork.action.CommandDriven |
setCommand |
Field Detail |
public static java.lang.String PERMISSION_VIOLATION_RESULT
public static java.lang.String ISSUE_NOT_FOUND_RESULT
protected javax.servlet.http.HttpServletRequest request
Constructor Detail |
public JiraWebActionSupport()
Method Detail |
public com.opensymphony.user.User getRemoteUser()
getRemoteUser
in class JiraActionSupport
public com.atlassian.core.user.preferences.Preferences getUserPreferences()
public java.lang.String getRedirect(java.lang.String defaultUrl)
public com.opensymphony.module.propertyset.PropertySet getPropertySet(org.ofbiz.core.entity.GenericValue gv)
public boolean isHasPermission(java.lang.String permName)
public boolean isHasPermission(int permissionsId)
public boolean isHasIssuePermission(java.lang.String permName, org.ofbiz.core.entity.GenericValue issue)
public boolean isHasIssuePermission(int permissionsId, org.ofbiz.core.entity.GenericValue issue)
public boolean isHasProjectPermission(java.lang.String permName, org.ofbiz.core.entity.GenericValue project)
public boolean isHasProjectPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project)
public boolean isHasPermission(java.lang.String permName, org.ofbiz.core.entity.GenericValue entity)
protected PermissionManager getPermissionManager()
protected java.util.Collection getCachedGroups()
public ConstantsManager getConstantsManager()
public java.lang.String getUserFullName(java.lang.String username)
public java.util.Map getAssignableUsers(org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
java.lang.Exception
public java.util.Map getAssignableUsers(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue issue) throws java.lang.Exception
java.lang.Exception
public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
protected boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
protected com.opensymphony.user.User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue component)
public ProjectManager getProjectManager()
public VersionManager getVersionManager()
protected java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue project, java.lang.String[] components, java.lang.String assignee) throws org.ofbiz.core.entity.GenericEntityException
project
- Project GenericValuecomponents
- List of Long ids of componentsassignee
- Assignee to process, if -1 we have something to do
org.ofbiz.core.entity.GenericEntityException
protected java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue, org.ofbiz.core.entity.GenericValue project, java.lang.String assignee)
protected java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue, java.lang.String assignee)
public java.lang.String getText(java.lang.String key)
getText
in interface I18nHelper
getText
in class JiraActionSupport
key
-
public java.lang.String getText(java.lang.String string, java.lang.Object parameters)
parameters
- A single object, or array of objects, or list of objectspublic java.lang.String getText(java.lang.String key, java.lang.String value1)
getText
in interface I18nHelper
public java.lang.String getText(java.lang.String string, java.lang.String param1, java.lang.String param2)
getText
in interface I18nHelper
public java.util.ResourceBundle getDefaultResourceBundle()
getDefaultResourceBundle
in interface I18nHelper
public java.lang.String getText(java.lang.String string, java.lang.String param1, java.lang.String param2, java.lang.String param3)
public java.util.Locale getLocale()
getLocale
in interface I18nHelper
public void addErrorCollection(ErrorCollection errors)
addErrorCollection
in interface ErrorCollection
public Field getField(java.lang.String id)
public ComponentManager getComponentManager()
public OutlookDate getOutlookDate()
public java.lang.String getCustomFieldHtml(CustomField field, org.ofbiz.core.entity.GenericValue issue)
public java.lang.String getCustomFieldXML(CustomField field, org.ofbiz.core.entity.GenericValue issue)
public java.lang.String getColumnViewHtml(CustomField field, org.ofbiz.core.entity.GenericValue issue)
public java.lang.String getReturnUrl()
public void setReturnUrl(java.lang.String returnUrl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |