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, 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

This class decides which starter page should be deisplayed 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

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, buildManager, CONFIRM, cookieCutter, dashboardCachingManager
 
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 doExecute()
          Return the page to display
 ExtendedAuthor getAuthor()
           
 java.util.Collection<BuildAgent> getBuildAgents()
           
 java.util.Collection getBuilds()
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.Long agentId)
           
 CurrentlyBuilding getCurrentlyBuilding(java.lang.String planKey)
           
 java.util.Collection getFavouriteBuilds()
           
 ProjectStatusHelper getProjectStatusHelper()
           
 java.util.Collection<BuildContext> getQueue()
           
 java.lang.String getReorderedBuildKey()
           
 java.util.Collection<Build> getResponsibleForBuilds()
          Can probably write this logic better.
 boolean isFavourite(Build build)
           
 boolean isShowDashboard()
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setBuilds(java.util.Collection builds)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLabelManager(LabelManager labelManager)
           
 void setLocalAgentManager(LocalAgentManager localAgentManager)
           
 void setReorderedBuildKey(java.lang.String reorderedBuildKey)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, doDefault, doesLabelKeyHaveMatchingDescription, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getBuildManager, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getInstanceName, getPlan, getReturnUrl, getSecuredDomainObject, getSessionUser, getText, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasGlobalPermission, hasPlanPermission, hasPlanPermission, isEnableJavascript, isEnableSignup, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildManager, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, 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
 
Methods inherited from interface com.atlassian.core.i18n.I18nTextProvider
getText
 

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

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Return the page to display

Overrides:
doExecute in class BambooActionSupport
Returns:
The WebWork view name
Throws:
java.lang.Exception - Generic exception

getCurrentlyBuilding

public CurrentlyBuilding getCurrentlyBuilding(java.lang.Long agentId)

getCurrentlyBuilding

public CurrentlyBuilding getCurrentlyBuilding(java.lang.String planKey)

getBuildAgents

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

getQueue

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

isFavourite

public boolean isFavourite(Build build)

getBuilds

public java.util.Collection getBuilds()

setBuilds

public void setBuilds(java.util.Collection builds)

getProjectStatusHelper

public ProjectStatusHelper getProjectStatusHelper()

isShowDashboard

public boolean isShowDashboard()

getFavouriteBuilds

public java.util.Collection getFavouriteBuilds()

getResponsibleForBuilds

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

Returns:

getAuthor

public ExtendedAuthor getAuthor()

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)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.