com.atlassian.jira.web.action.portal
Class AbstractSaveConfiguration

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.jira.web.action.ProjectActionSupport
                  extended by 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

Field Summary
protected  boolean allHidden
           
protected static int DEFAULT_SETUP
           
protected static int EXECUTE_SETUP
           
protected  Map localParameters
           
static String MULTISELECT_SEPARATOR
           
protected static int VALIDATE_SETUP
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
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
protected AbstractSaveConfiguration(ProjectManager projectManager, PermissionManager permissionManager, SearchRequestService searchRequestService, PortalPageService portalPageService)
           
 
Method Summary
protected  void addLongToPropertySet(com.opensymphony.module.propertyset.PropertySet ps, Map params, String key)
           
protected  boolean checkForValidPortalParameters(JiraServiceContext serviceContext)
           
 String doDefault()
           
protected  String doExecute()
           
 void doValidation()
           
protected  List getExcludedFieldKeys()
          Returns the list of keys that are not enabled keys.
 String getFilterName(String filterIdParamName)
          Does a name lookup on the given filter or project value.
 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

protected abstract  String getHomeRedirect()
           
 String getLocalParameter(String key)
           
 com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
           
 String getParamValue(String key)
           
 List getParamValues(String key)
           
 PortalPageService getPortalPageService()
           
 Portlet getPortlet()
           
 Long getPortletConfigId()
           
 String getPortletIdStr()
           
 String getUnescapedText(String key)
           
 User getUser()
          Returns the user this action if performed for - remote user.
protected abstract  PortalPage loadPortalPage()
           
 void setPortletConfigId(Long portletConfigId)
           
 void setPortletIdStr(String portletIdStr)
           
protected  void setupConfiguration(int operation)
           
protected  void syncPropertySetToParams(com.opensymphony.module.propertyset.PropertySet ps, Map params, int operation)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Field Detail

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
Constructor Detail

AbstractSaveConfiguration

protected AbstractSaveConfiguration(ProjectManager projectManager,
                                    PermissionManager permissionManager,
                                    SearchRequestService searchRequestService,
                                    PortalPageService portalPageService)
Method Detail

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:

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.