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, PortalAction, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
SaveConfiguration, SaveDefaultConfiguration

public abstract class AbstractSaveConfiguration
extends ProjectActionSupport
implements PortalAction

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
AbstractSaveConfiguration()
           
 
Method Summary
protected  void addLongToPropertySet(com.opensymphony.module.propertyset.PropertySet ps, Map params, String key)
           
 String doDefault()
           
protected  String doExecute()
           
 void doValidation()
           
protected  List getExcludedFieldKeys()
           
protected abstract  String getHomeRedirect()
           
 String getLocalParameter(String key)
           
 com.atlassian.configurable.ObjectConfiguration getObjectConfiguration()
           
 String getParamValue(String key)
           
 List getParamValues(String key)
           
 Portlet getPortlet()
           
 String getPortletConfigId()
           
 String getPortletIdStr()
           
 String getUnescapedText(String key)
           
 User getUser()
          Returns the user this action if performed for - remote user.
 void setPortletConfigId(String portletConfigIdStr)
           
 void setPortletIdStr(String portletIdStr)
           
protected  void setupConfiguration(int operation)
           
protected  void syncPropertySetToParams(com.opensymphony.module.propertyset.PropertySet ps, Map params, com.atlassian.configurable.ObjectConfiguration oc, int operation)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getCalendarTranslationFilenameForLanguage, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSavedFilters, getSelectedProject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, isHasCalendarTranslationForLanguage, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, 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, 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.web.action.portal.PortalAction
getPortalConfig, resetPortletConf, usingDefaultPortalConfig
 
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

public AbstractSaveConfiguration()
Method Detail

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()
                                   throws Exception
Throws:
Exception

getPortletIdStr

public String getPortletIdStr()

setPortletIdStr

public void setPortletIdStr(String portletIdStr)

getPortlet

public Portlet getPortlet()

getPortletConfigId

public String getPortletConfigId()

setPortletConfigId

public void setPortletConfigId(String portletConfigIdStr)
                        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,
                                  PortletConfigurationException
Throws:
com.atlassian.configurable.ObjectConfigurationException
PortletConfigurationException

syncPropertySetToParams

protected void syncPropertySetToParams(com.opensymphony.module.propertyset.PropertySet ps,
                                       Map params,
                                       com.atlassian.configurable.ObjectConfiguration oc,
                                       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()

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


Copyright © 2002-2007 Atlassian. All Rights Reserved.