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

java.lang.Object
  extended bywebwork.action.ActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.web.action.JiraWebActionSupport
              extended bycom.atlassian.jira.web.action.ProjectActionSupport
                  extended bycom.atlassian.jira.web.action.portal.AbstractConfigurePortal
All Implemented Interfaces:
webwork.action.Action, webwork.action.CommandDriven, ErrorCollection, I18nHelper, webwork.action.IllegalArgumentAware, PortalAction, Serializable
Direct Known Subclasses:
ConfigureDefaultPortal, ConfigurePortal

public abstract class AbstractConfigurePortal
extends ProjectActionSupport
implements PortalAction

See Also:
Serialized Form

Field Summary
protected  String dashboardFunction
           
 
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
AbstractConfigurePortal()
           
AbstractConfigurePortal(EmailFormatter emailFormatter, GroupPermissionChecker groupPermissionChecker)
           
 
Method Summary
protected  void copyPortlets(Long[] portlets)
           
protected abstract  String doAdd()
           
protected  String doExecute()
           
protected abstract  String doFunction()
           
protected  String doSave()
           
 String getAddButton()
           
 String getCopyButton()
           
 String getDashboardFunction()
           
 String getDeleteButton()
           
 String getDisplayEmail(String email)
           
 String getEditButton()
           
protected abstract  String getEditRedirect(Long portletConfigId)
           
protected abstract  String getHomeRedirect()
           
 List getLeftPortlets()
           
 String getMoveDownLeftButton()
           
 String getMoveDownRightButton()
           
 String getMoveLeftButton()
           
 String getMoveRightButton()
           
 String getMoveUpLeftButton()
           
 String getMoveUpRightButton()
           
 String getPortletName(PortletConfiguration portletConfig)
           
 List getRightPortlets()
           
 Long[] getSelectedLeftPortlets()
           
 Long[] getSelectedPortlets()
           
 Long[] getSelectedRightPortlets()
           
 User getUser()
           
 boolean isHasViewGroupPermission(String group, User user)
           
protected  void savePortalConfig()
           
 void setAddButton(String addButton)
           
 void setCopyButton(String copyButton)
           
 void setDashboardFunction(String dashboardFunction)
           
 void setDeleteButton(String deleteButton)
           
 void setEditButton(String editButton)
           
 void setMoveDownLeftButton(String moveDownLeftButton)
           
 void setMoveDownRightButton(String moveDownRightButton)
           
 void setMoveLeftButton(String moveLeftButton)
           
 void setMoveRightButton(String moveRightButton)
           
 void setMoveUpLeftButton(String moveUpLeftButton)
           
 void setMoveUpRightButton(String moveUpRightButton)
           
 void setSelectedLeftPortlets(Long[] selectedLeftPortlets)
           
 void setSelectedPortlets(Long[] selectedPortlets)
           
 void setSelectedRightPortlets(Long[] selectedRightPortlets)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, isEnterprise, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getCalendarTranslationFilenameForLanguage, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDefaultAssignee, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSavedFilters, getSelectedProject, getText, getTimeFormat, getUserFullName, getVersionManager, isDefaultAssignee, isDefaultAssignee, isHasCalendarTranslationForLanguage, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, processDefaultAssignee, processDefaultAssignee, processDefaultAssignee, 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, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isProfessional
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, 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.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

dashboardFunction

protected String dashboardFunction
Constructor Detail

AbstractConfigurePortal

public AbstractConfigurePortal()

AbstractConfigurePortal

public AbstractConfigurePortal(EmailFormatter emailFormatter,
                               GroupPermissionChecker groupPermissionChecker)
Method Detail

getLeftPortlets

public List getLeftPortlets()
                     throws PortletConfigurationException
Throws:
PortletConfigurationException

getRightPortlets

public List getRightPortlets()
                      throws PortletConfigurationException
Throws:
PortletConfigurationException

getSelectedLeftPortlets

public Long[] getSelectedLeftPortlets()

setSelectedLeftPortlets

public void setSelectedLeftPortlets(Long[] selectedLeftPortlets)

getSelectedRightPortlets

public Long[] getSelectedRightPortlets()

setSelectedRightPortlets

public void setSelectedRightPortlets(Long[] selectedRightPortlets)

getAddButton

public String getAddButton()

setAddButton

public void setAddButton(String addButton)

getMoveLeftButton

public String getMoveLeftButton()

setMoveLeftButton

public void setMoveLeftButton(String moveLeftButton)

getMoveRightButton

public String getMoveRightButton()

setMoveRightButton

public void setMoveRightButton(String moveRightButton)

getEditButton

public String getEditButton()

setEditButton

public void setEditButton(String editButton)

getDeleteButton

public String getDeleteButton()

getMoveUpLeftButton

public String getMoveUpLeftButton()

setMoveUpLeftButton

public void setMoveUpLeftButton(String moveUpLeftButton)

getMoveDownLeftButton

public String getMoveDownLeftButton()

setMoveDownLeftButton

public void setMoveDownLeftButton(String moveDownLeftButton)

getMoveUpRightButton

public String getMoveUpRightButton()

setMoveUpRightButton

public void setMoveUpRightButton(String moveUpRightButton)

getMoveDownRightButton

public String getMoveDownRightButton()

setMoveDownRightButton

public void setMoveDownRightButton(String moveDownRightButton)

setDeleteButton

public void setDeleteButton(String deleteButton)

setCopyButton

public void setCopyButton(String copyButton)

getCopyButton

public String getCopyButton()

doExecute

protected String doExecute()
                    throws Exception
Throws:
Exception

copyPortlets

protected void copyPortlets(Long[] portlets)
                     throws Exception
Throws:
Exception

doFunction

protected abstract String doFunction()
                              throws Exception
Throws:
Exception

doAdd

protected abstract String doAdd()
                         throws Exception
Throws:
Exception

getEditRedirect

protected abstract String getEditRedirect(Long portletConfigId)
                                   throws Exception
Throws:
Exception

doSave

protected String doSave()
                 throws Exception
Throws:
Exception

savePortalConfig

protected void savePortalConfig()
                         throws PortletConfigurationException
Throws:
PortletConfigurationException

getHomeRedirect

protected abstract String getHomeRedirect()
                                   throws Exception
Throws:
Exception

getUser

public User getUser()

getSelectedPortlets

public Long[] getSelectedPortlets()

setSelectedPortlets

public void setSelectedPortlets(Long[] selectedPortlets)

getDashboardFunction

public String getDashboardFunction()

setDashboardFunction

public void setDashboardFunction(String dashboardFunction)

getPortletName

public String getPortletName(PortletConfiguration portletConfig)

isHasViewGroupPermission

public boolean isHasViewGroupPermission(String group,
                                        User user)

getDisplayEmail

public String getDisplayEmail(String email)


Copyright © 2002-2006 Atlassian. All Rights Reserved.