com.atlassian.bamboo.webwork
Class StarterAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.webwork.StarterAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, TabSelectionAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
DashboardFilter, ViewPlanUpdates, ViewResponsibilitiesForUser, ViewTelemetryAction

public class StarterAction
extends BambooActionSupport
implements TabSelectionAware

This class decides which starter page should be displayed on the web site.

If the application has not been configured, it displays the Configuration wizard.

Otherwise it displays the default home page.

See Also:
Serialized Form

Nested Class Summary
 class StarterAction.DashboardPage
           
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  ChainBranchManager chainBranchManager
           
protected  ExtendedAuthorManager extendedAuthorManager
           
protected  LabelManager labelManager
           
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
StarterAction()
           
 
Method Summary
 java.lang.String doMyBamboo()
           
 java.lang.String doStart()
           
protected  java.util.List<? extends ImmutableChain> filterPlansByLabel(java.util.List<? extends ImmutableChain> plans, java.util.List<java.lang.String> theLabelNames)
           
protected  java.util.List<ImmutableTopLevelPlan> filterPlansByProject(java.util.List<ImmutableTopLevelPlan> plans, java.util.List<java.lang.String> rawProjectKeys)
           
 ExtendedAuthor getAuthor()
          Deprecated. use getAuthors() instead. You can now have multiple authores for a user.
 java.util.List<ExtendedAuthor> getAuthors()
           
 java.util.Collection<BuildAgent> getBuildAgents()
           
 java.util.Collection<BuildAgent> getBusyBuildAgents()
           
 java.util.Collection<ImmutableChain> getChains()
           
 java.util.Map<java.lang.String,java.lang.Object> getChart()
           
 java.util.List<CommitView> getCommitViews()
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.Long agentId)
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.String buildResultKey)
           
 java.lang.String getDashboardTabUrl()
           
 java.util.Collection<? extends ImmutableChain> getFavouriteBuilds()
           
 java.util.List<java.lang.String> getFilteredProjectKeys()
           
 java.util.List<java.lang.String> getLabelNames()
           
 StarterAction.DashboardPage getPage()
           
 int getPageSize()
           
protected  StarterAction.DashboardPage getPageToNearestProject(java.lang.String lastProjectInPreviousPage, java.util.List<ImmutableTopLevelPlan> plans, int pageSize)
           
 java.util.List<ImmutableTopLevelPlan> getPlans()
           
 java.util.Collection<? extends ImmutableChain> getPlansByLabel()
           
 StarterAction.DashboardPage getPlansForDashboard()
           
 ProjectStatusHelper getProjectStatusHelper()
           
 java.util.Collection<BuildContext> getQueue()
           
 java.lang.String getReorderedBuildKey()
           
 java.lang.String getSelectedTab()
           
 boolean hasBranches(PlanIdentifier plan)
           
 boolean hasPlanPermission(java.lang.String permission, PlanIdentifier plan)
           
 boolean isAllowedRemoteAgents()
           
 boolean isDashboardFilterConfigured()
          Is different to isDashboardFilterEnabled() in that it returns true if there's any saved projectKeys / labels
 boolean isDashboardFilterEnabled()
           
 boolean isFavourite(ImmutableChain plan)
           
 boolean isShowDashboard()
           
 void setAgentManager(AgentManager agentManager)
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setChainBranchManager(ChainBranchManager chainBranchManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setFilteredProjectKeys(java.util.List<java.lang.String> filteredProjectKeys)
           
 void setLabelManager(LabelManager labelManager)
           
 void setLabelNames(java.util.List<java.lang.String> labelNames)
           
 void setLastProject(java.lang.String lastProject)
           
 void setPageSize(int pageSize)
           
 void setReorderedBuildKey(java.lang.String reorderedBuildKey)
           
 void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
           
 void setSelectedTab(java.lang.String selectedTab)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSecuredDomainObject, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Field Detail

extendedAuthorManager

protected ExtendedAuthorManager extendedAuthorManager

labelManager

protected LabelManager labelManager

chainBranchManager

protected ChainBranchManager chainBranchManager
Constructor Detail

StarterAction

public StarterAction()
Method Detail

doStart

public java.lang.String doStart()

doMyBamboo

public java.lang.String doMyBamboo()

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 PlanIdentifier plan)
Overrides:
hasPlanPermission in class BambooActionSupport

getDashboardTabUrl

public java.lang.String getDashboardTabUrl()

getCurrentlyBuilding

public CurrentlyBuilding getCurrentlyBuilding(java.lang.Long agentId)

getCurrentlyBuilding

public CurrentlyBuilding getCurrentlyBuilding(java.lang.String buildResultKey)

getBuildAgents

public java.util.Collection<BuildAgent> getBuildAgents()

getBusyBuildAgents

public java.util.Collection<BuildAgent> getBusyBuildAgents()

getQueue

public java.util.Collection<BuildContext> getQueue()

isFavourite

public boolean isFavourite(ImmutableChain plan)

getPlans

public java.util.List<ImmutableTopLevelPlan> getPlans()

getChains

public java.util.Collection<ImmutableChain> getChains()

getPlansByLabel

@NotNull
public java.util.Collection<? extends ImmutableChain> getPlansByLabel()

getPlansForDashboard

public StarterAction.DashboardPage getPlansForDashboard()

isDashboardFilterConfigured

public boolean isDashboardFilterConfigured()
Is different to isDashboardFilterEnabled() in that it returns true if there's any saved projectKeys / labels


filterPlansByProject

protected java.util.List<ImmutableTopLevelPlan> filterPlansByProject(java.util.List<ImmutableTopLevelPlan> plans,
                                                                     java.util.List<java.lang.String> rawProjectKeys)

filterPlansByLabel

@NotNull
protected java.util.List<? extends ImmutableChain> filterPlansByLabel(java.util.List<? extends ImmutableChain> plans,
                                                                              java.util.List<java.lang.String> theLabelNames)

getPageToNearestProject

@NotNull
protected StarterAction.DashboardPage getPageToNearestProject(@Nullable
                                                                      java.lang.String lastProjectInPreviousPage,
                                                                      @NotNull
                                                                      java.util.List<ImmutableTopLevelPlan> plans,
                                                                      int pageSize)

getCommitViews

public java.util.List<CommitView> getCommitViews()

getProjectStatusHelper

public ProjectStatusHelper getProjectStatusHelper()

isShowDashboard

public boolean isShowDashboard()

hasBranches

public boolean hasBranches(PlanIdentifier plan)

getFavouriteBuilds

public java.util.Collection<? extends ImmutableChain> getFavouriteBuilds()

getChart

public java.util.Map<java.lang.String,java.lang.Object> getChart()

getSelectedTab

@NotNull
public java.lang.String getSelectedTab()
Specified by:
getSelectedTab in interface TabSelectionAware

setSelectedTab

public void setSelectedTab(@NotNull
                           java.lang.String selectedTab)
Specified by:
setSelectedTab in interface TabSelectionAware

getAuthor

@Deprecated
public ExtendedAuthor getAuthor()
Deprecated. use getAuthors() instead. You can now have multiple authores for a user.


getAuthors

public java.util.List<ExtendedAuthor> getAuthors()

isAllowedRemoteAgents

public boolean isAllowedRemoteAgents()

getLabelNames

@Nullable
public java.util.List<java.lang.String> getLabelNames()

setLabelNames

public void setLabelNames(java.util.List<java.lang.String> labelNames)

getFilteredProjectKeys

@Nullable
public java.util.List<java.lang.String> getFilteredProjectKeys()

isDashboardFilterEnabled

public boolean isDashboardFilterEnabled()

setFilteredProjectKeys

public void setFilteredProjectKeys(java.util.List<java.lang.String> filteredProjectKeys)

setLastProject

public void setLastProject(java.lang.String lastProject)

setPageSize

public void setPageSize(int pageSize)

getPageSize

public int getPageSize()

getPage

public StarterAction.DashboardPage getPage()

getReorderedBuildKey

public java.lang.String getReorderedBuildKey()

setReorderedBuildKey

public void setReorderedBuildKey(java.lang.String reorderedBuildKey)

setAgentManager

public void setAgentManager(AgentManager agentManager)

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

setResultsSummaryManager

public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)

setBuildQueueManager

public void setBuildQueueManager(BuildQueueManager buildQueueManager)

setBuildExecutionManager

public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)

setCapabilityHelper

public void setCapabilityHelper(CapabilityHelper capabilityHelper)

setLabelManager

public void setLabelManager(LabelManager labelManager)

setChainBranchManager

public void setChainBranchManager(ChainBranchManager chainBranchManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.