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, 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:
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
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
static java.lang.String WIZARD
          Webwork label state we want to display the wizard view
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, buildManager, commentManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, planManager, projectManager
 
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
 ExtendedAuthor getAuthor()
           
 java.util.Collection<BuildAgent> getBuildAgents()
           
 java.util.List<Build> getBuilds()
           
 java.util.Collection<BuildAgent> getBusyBuildAgents()
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.Long agentId)
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.String buildResultKey)
           
 java.util.Collection<TopLevelPlan> getFavouriteBuilds()
           
 java.util.List<DecoratedCapabilityRequirement> getLocalBuilders()
           
 java.util.List<DecoratedCapabilityRequirement> getLocalJdks()
           
 java.util.Collection<TopLevelPlan> getPlans()
           
 ProjectStatusHelper getProjectStatusHelper()
           
 java.util.Collection<BuildContext> getQueue()
           
 java.lang.String getReorderedBuildKey()
           
 java.util.Collection<TopLevelPlan> getResponsibleForBuilds()
          Can probably write this logic better.
 java.lang.String getSelectedTab()
           
 boolean hasPlanResultComments(ResultsSummary resultsSummary)
          TODO: should not make DB calls
 boolean isAllowedRemoteAgents()
           
 boolean isFavourite(Plan plan)
           
 boolean isShowDashboard()
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLabelManager(LabelManager labelManager)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setReorderedBuildKey(java.lang.String reorderedBuildKey)
           
 void setSelectedTab(java.lang.String selectedTab)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getBuildManager, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedErrorMessages, getInstanceName, getJsonObject, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getReturnUrl, getSecuredDomainObject, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setBuildManager, setCheckBoxFields, setCommentManager, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setPlanExecutionManager, setPlanManager, setProjectManager, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, 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, getFieldErrors
 

Field Detail

WIZARD

public static final java.lang.String WIZARD
Webwork label state we want to display the wizard view

See Also:
Constant Field Values
Constructor Detail

StarterAction

public StarterAction()
Method Detail

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(Plan plan)

getBuilds

public java.util.List<Build> getBuilds()

getPlans

public java.util.Collection<TopLevelPlan> getPlans()

getProjectStatusHelper

public ProjectStatusHelper getProjectStatusHelper()

isShowDashboard

public boolean isShowDashboard()

getFavouriteBuilds

public java.util.Collection<TopLevelPlan> getFavouriteBuilds()

getResponsibleForBuilds

public java.util.Collection<TopLevelPlan> getResponsibleForBuilds()
Can probably write this logic better.

Returns:

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

public ExtendedAuthor getAuthor()

hasPlanResultComments

public boolean hasPlanResultComments(ResultsSummary resultsSummary)
TODO: should not make DB calls

Parameters:
resultsSummary -
Returns:

getReorderedBuildKey

public java.lang.String getReorderedBuildKey()

setReorderedBuildKey

public void setReorderedBuildKey(java.lang.String reorderedBuildKey)

setLocalAgentManager

public void setLocalAgentManager(LocalAgentManager localAgentManager)

setLabelManager

public void setLabelManager(LabelManager labelManager)

setExtendedAuthorManager

public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)

setBuildQueueManager

public void setBuildQueueManager(BuildQueueManager buildQueueManager)

setBuildExecutionManager

public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)

isAllowedRemoteAgents

public boolean isAllowedRemoteAgents()

getLocalBuilders

public java.util.List<DecoratedCapabilityRequirement> getLocalBuilders()

getLocalJdks

public java.util.List<DecoratedCapabilityRequirement> getLocalJdks()

setCapabilitySetManager

public void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)

setCapabilityHelper

public void setCapabilityHelper(CapabilityHelper capabilityHelper)


Copyright © 2010 Atlassian. All Rights Reserved.