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, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- SaveConfiguration, SaveDefaultConfiguration
public abstract class AbstractSaveConfiguration
- extends ProjectActionSupport
An utter utter utter utter abomination.
- 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, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortReverseDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, 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 |
MULTISELECT_SEPARATOR
public static final 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 Map localParameters
allHidden
protected boolean allHidden
AbstractSaveConfiguration
protected AbstractSaveConfiguration(ProjectManager projectManager,
PermissionManager permissionManager,
SearchRequestService searchRequestService,
PortalPageService portalPageService)
checkForValidPortalParameters
protected boolean checkForValidPortalParameters(JiraServiceContext serviceContext)
doDefault
public String doDefault()
throws Exception
- Overrides:
doDefault
in class webwork.action.ActionSupport
- Throws:
Exception
doValidation
public void doValidation()
- Overrides:
doValidation
in class webwork.action.ActionSupport
doExecute
protected String doExecute()
throws Exception
- Overrides:
doExecute
in class webwork.action.ActionSupport
- Throws:
Exception
getHomeRedirect
protected abstract String getHomeRedirect()
loadPortalPage
protected abstract PortalPage loadPortalPage()
getPortletIdStr
public String getPortletIdStr()
setPortletIdStr
public void setPortletIdStr(String portletIdStr)
getPortlet
public Portlet getPortlet()
getPortletConfigId
public Long getPortletConfigId()
setPortletConfigId
public void setPortletConfigId(Long portletConfigId)
throws PortletConfigurationException
- Throws:
PortletConfigurationException
getParamValue
public String getParamValue(String key)
getParamValues
public List getParamValues(String key)
getLocalParameter
public String getLocalParameter(String key)
getObjectConfiguration
public com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
throws com.atlassian.configurable.ObjectConfigurationException
- Throws:
com.atlassian.configurable.ObjectConfigurationException
setupConfiguration
protected void setupConfiguration(int operation)
throws com.atlassian.configurable.ObjectConfigurationException
- Throws:
com.atlassian.configurable.ObjectConfigurationException
syncPropertySetToParams
protected void syncPropertySetToParams(com.opensymphony.module.propertyset.PropertySet ps,
Map params,
int operation)
throws com.atlassian.configurable.ObjectConfigurationException
- Throws:
com.atlassian.configurable.ObjectConfigurationException
addLongToPropertySet
protected void addLongToPropertySet(com.opensymphony.module.propertyset.PropertySet ps,
Map params,
String key)
getUnescapedText
public String getUnescapedText(String key)
- Overrides:
getUnescapedText
in class JiraActionSupport
getExcludedFieldKeys
protected List getExcludedFieldKeys()
- Returns the list of keys that are not enabled keys.
- Returns:
- the excluded keys.
getUser
public 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 String getFilterName(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 String getFilterProjectName(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-2009 Atlassian. All Rights Reserved.