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:
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
protected  ExtendedAuthorManager extendedAuthorManager
           
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, 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 doClearFilterLabelsNames()
           
 java.lang.String doFilterLabelsNames()
           
 java.lang.String doMyBamboo()
           
 java.lang.String doStart()
           
 java.lang.Iterable<Label> getAllPlanLabels()
           
 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> getLabelNames()
           
 java.util.List<DecoratedCapabilityRequirement> getLocalBuilders()
           
 java.util.List<DecoratedCapabilityRequirement> getLocalJdks()
           
 java.util.Collection<ImmutableTopLevelPlan> getPlans()
           
 java.util.Collection<? extends ImmutableChain> getPlansByLabel()
           
 ProjectStatusHelper getProjectStatusHelper()
           
 java.util.Collection<BuildContext> getQueue()
           
 java.lang.String getReorderedBuildKey()
           
 java.util.Collection<ImmutableChain> getResponsibleForBuilds()
          Can probably write this logic better.
 java.lang.String getSelectedTab()
           
 boolean hasBranches(Plan plan)
           
 boolean hasPlanPermission(java.lang.String permission, ImmutablePlan plan)
           
 boolean isAllowedRemoteAgents()
           
 boolean isFavourite(ImmutableChain plan)
           
 boolean isShowDashboard()
           
 void setAgentManager(AgentManager agentManager)
           
 void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
           
 void setBuildQueueManager(BuildQueueManager buildQueueManager)
           
 void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade permissionManagerManager)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setChainBranchManager(ChainBranchManager chainBranchManager)
           
 void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
           
 void setLabelManager(LabelManager labelManager)
           
 void setLabelNames(java.util.List<java.lang.String> labelNames)
           
 void setReorderedBuildKey(java.lang.String reorderedBuildKey)
           
 void setResultsSummaryManager(BuildResultsSummaryManager resultsSummaryManager)
           
 void setSelectedTab(java.lang.String selectedTab)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, 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, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
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

extendedAuthorManager

protected ExtendedAuthorManager extendedAuthorManager
Constructor Detail

StarterAction

public StarterAction()
Method Detail

doFilterLabelsNames

public java.lang.String doFilterLabelsNames()

doClearFilterLabelsNames

public java.lang.String doClearFilterLabelsNames()

doStart

public java.lang.String doStart()

doMyBamboo

public java.lang.String doMyBamboo()

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 ImmutablePlan 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.Collection<ImmutableTopLevelPlan> getPlans()

getChains

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

getAllPlanLabels

public java.lang.Iterable<Label> getAllPlanLabels()

getPlansByLabel

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

getCommitViews

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

getProjectStatusHelper

public ProjectStatusHelper getProjectStatusHelper()

isShowDashboard

public boolean isShowDashboard()

hasBranches

public boolean hasBranches(Plan plan)

getFavouriteBuilds

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

getResponsibleForBuilds

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

Returns:
build this particular user has broken.

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

getLocalBuilders

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

getLocalJdks

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

getLabelNames

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

setLabelNames

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

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

setCachingPermissionManagerFacade

public void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade permissionManagerManager)

setChainBranchManager

public void setChainBranchManager(ChainBranchManager chainBranchManager)


Copyright © 2012 Atlassian. All Rights Reserved.