com.atlassian.jira.web.action.portal
Class AbstractSaveConfiguration
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.portal.AbstractSaveConfiguration
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- SaveConfiguration
public abstract class AbstractSaveConfiguration
- extends ProjectActionSupport
An utter utter utter utter abomination...unfortunately it has to stick around until legacy portlets are supported
no more in JIRA. This code is still used when saving prefs for legacy portlets via the gadget bridge.
As soon as we no longer support legacy portlets, this class should be taken out the back and shot.
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, 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 |
MULTISELECT_SEPARATOR
public static final java.lang.String MULTISELECT_SEPARATOR
- See Also:
- Constant Field Values
DEFAULT_SETUP
protected static final int DEFAULT_SETUP
- See Also:
- Constant Field Values
VALIDATE_SETUP
protected static final int VALIDATE_SETUP
- See Also:
- Constant Field Values
EXECUTE_SETUP
protected static final int EXECUTE_SETUP
- See Also:
- Constant Field Values
localParameters
protected java.util.Map localParameters
allHidden
protected boolean allHidden
AbstractSaveConfiguration
protected AbstractSaveConfiguration(ProjectManager projectManager,
PermissionManager permissionManager,
SearchRequestService searchRequestService,
PortalPageService portalPageService,
PortletConfigurationManager portletConfigurationManager)
checkForValidPortalParameters
protected boolean checkForValidPortalParameters(JiraServiceContext serviceContext)
doDefault
public java.lang.String doDefault()
throws java.lang.Exception
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Throws:
java.lang.Exception
doValidation
public void doValidation()
- Overrides:
doValidation
in class webwork.action.ActionSupport
doExecute
protected java.lang.String doExecute()
throws java.lang.Exception
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Throws:
java.lang.Exception
getHomeRedirect
protected abstract java.lang.String getHomeRedirect()
loadPortalPage
protected abstract PortalPage loadPortalPage()
getPortletIdStr
public java.lang.String getPortletIdStr()
setPortletIdStr
public void setPortletIdStr(java.lang.String portletIdStr)
getPortlet
public Portlet getPortlet()
getPortletConfigId
public java.lang.Long getPortletConfigId()
setPortletConfigId
public void setPortletConfigId(java.lang.Long portletConfigId)
throws PortletConfigurationException
- Throws:
PortletConfigurationException
getParamValue
public java.lang.String getParamValue(java.lang.String key)
getParamValues
public java.util.List getParamValues(java.lang.String key)
getLocalParameter
public java.lang.String getLocalParameter(java.lang.String key)
getObjectConfiguration
public ObjectConfiguration getObjectConfiguration()
throws ObjectConfigurationException
- Throws:
ObjectConfigurationException
setupConfiguration
protected PortletConfiguration setupConfiguration(int operation)
throws ObjectConfigurationException
- Throws:
ObjectConfigurationException
syncPropertySetToParams
protected void syncPropertySetToParams(com.opensymphony.module.propertyset.PropertySet ps,
java.util.Map params,
int operation)
throws ObjectConfigurationException
- Throws:
ObjectConfigurationException
addLongToPropertySet
protected void addLongToPropertySet(com.opensymphony.module.propertyset.PropertySet ps,
java.util.Map params,
java.lang.String key)
getUnescapedText
public java.lang.String getUnescapedText(java.lang.String key)
- Specified by:
getUnescapedText
in interface I18nHelper
- Overrides:
getUnescapedText
in class JiraActionSupport
getExcludedFieldKeys
protected java.util.List getExcludedFieldKeys()
- Returns the list of keys that are not enabled keys.
- Returns:
- the excluded keys.
getUser
public com.opensymphony.user.User getUser()
- Returns the user this action if performed for - remote user. This action can be only performed for the same user
as remote user.
- Returns:
- remote user
getFilterName
public java.lang.String getFilterName(java.lang.String filterIdParamName)
- Does a name lookup on the given filter or project value.
- Parameters:
filterIdParamName
- the name of the parameter whose value should be used to look up the filter by id.
- Returns:
- the name of the filter.
getFilterProjectName
public java.lang.String getFilterProjectName(java.lang.String filterOrProjectParamName)
- Takes a parameter name, looks up its value and from that, eats a magic encoded project-or-filter value formatted
in accordance with the protocol:
- project-12345
- filter-67890
The prefix must be either PREFIX_FILTER
or
PREFIX_PROJECT
- Parameters:
filterOrProjectParamName
- the name of a parameter whose value adheres to the above protocol.
- Returns:
- the name of the filter or project whose id is encoded in the value of the given parameter.
getPortalPageService
public PortalPageService getPortalPageService()
Copyright © 2002-2010 Atlassian. All Rights Reserved.