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.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
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.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)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, doDefault, doesLabelKeyHaveMatchingDescription, execute, getAdministrationConfiguration, getAsPreformattedText, getBamboo, getBambooLicenseManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getBuildManager, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getInstanceName, getReturnUrl, getSecuredDomainObject, getSessionUser, getTotalErrors, getUser, getWebFragmentsContextMap, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasGlobalPermission, hasPlanPermission, hasPlanPermission, isEnableSignup, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfiguration, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildManager, setCookieCutter, setDashboardCachingManager, setErrorMessages, setHtmlUtils, setReturnUrl, setWebInterfaceManager, setWebResourceManager
 
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
 

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

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 © 2008 Atlassian Pty Ltd. All Rights Reserved.