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

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.AbstractConfigurePortal
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
ConfigureDefaultPortal, ConfigurePortal

public abstract class AbstractConfigurePortal
extends ProjectActionSupport

See Also:
Serialized Form

Field Summary
protected  String dashboardFunction
           
protected  PortalPageService portalPageService
           
 
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(EmailFormatter emailFormatter, GroupPermissionChecker groupPermissionChecker, PortalPageService portalPageService)
           
 
Method Summary
protected  PortalPage copyPortlets(JiraServiceContext serviceContext, PortalPage portalPage, Long[] portlets)
           
protected  PortalPage deletePortletConfigurations(JiraServiceContext serviceContext, PortalPage portalPage, Long[] portletConfigIds)
           
protected abstract  String doAdd()
           
protected  String doExecute()
           
protected abstract  String doFunction()
           
 String getDashboardFunction()
           
 String getDisplayEmail(String email)
           
protected abstract  String getEditRedirect(Long portletConfigId)
           
protected abstract  String getHomeRedirect()
           
 List getLeftPortlets()
           
protected abstract  PortalPage getPortalPage()
           
 PortalPageService getPortalPageService()
           
 String getPortletName(PortletConfiguration portletConfig)
           
 List getRightPortlets()
           
 Long[] getSelectedLeftPortlets()
           
 Long[] getSelectedPortlets()
           
 Long[] getSelectedRightPortlets()
           
 User getUser()
           
 boolean isHasViewGroupPermission(String group, User user)
           
protected  void savePortalConfig(JiraServiceContext ctx, PortalPage portalPage)
           
 void setDashboardFunction(String dashboardFunction)
           
 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, 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, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, 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

dashboardFunction

protected String dashboardFunction

portalPageService

protected final PortalPageService portalPageService
Constructor Detail

AbstractConfigurePortal

public AbstractConfigurePortal(EmailFormatter emailFormatter,
                               GroupPermissionChecker groupPermissionChecker,
                               PortalPageService portalPageService)
Method Detail

getPortalPage

protected abstract PortalPage getPortalPage()

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)

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

copyPortlets

protected PortalPage copyPortlets(JiraServiceContext serviceContext,
                                  PortalPage portalPage,
                                  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

deletePortletConfigurations

protected PortalPage deletePortletConfigurations(JiraServiceContext serviceContext,
                                                 PortalPage portalPage,
                                                 Long[] portletConfigIds)
                                          throws PortletConfigurationException
Throws:
PortletConfigurationException

savePortalConfig

protected void savePortalConfig(JiraServiceContext ctx,
                                PortalPage portalPage)
                         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)

getPortalPageService

public PortalPageService getPortalPageService()


Copyright © 2002-2009 Atlassian. All Rights Reserved.