Package com.atlassian.bamboo.webwork
Class StarterAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.webwork.StarterAction
- All Implemented Interfaces:
JsonStreamingAction,ErrorCollection,BambooSessionAware,NavigationAware,DomainObjectSecurityAware,GlobalReadSecurityAware,ReturnUrlAware,TabSelectionAware,UserAware,com.atlassian.core.i18n.I18nTextProvider,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- Direct Known Subclasses:
DashboardFilter,QuickFilterAction,ViewPlanUpdates,ViewResponsibilitiesForUser,ViewTelemetryAction
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classNested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BambooCachingPermissionManagerFacadeprotected ChainBranchManagerprotected ExtendedAuthorManagerprotected LabelManagerprotected QuickFilterManagerFields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, deploymentProjectService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends ImmutableChain>
@NotNull List<T> filterPlansByLabel(List<T> plans, List<String> theLabelNames) protected List<ImmutableTopLevelPlan> filterPlansByProject(List<ImmutableTopLevelPlan> plans, List<String> rawProjectKeys) Deprecated.protected @NotNull List<ImmutableTopLevelPlan> getChart()getCurrentlyBuilding(Long agentId) getCurrentlyBuilding(String buildResultKey) getPage()intprotected @NotNull StarterAction.DashboardPagegetPageToNearestProject(@Nullable String lastProjectInPreviousPage, @NotNull List<ImmutableTopLevelPlan> plans, int pageSize) @NotNull List<ImmutableTopLevelPlan> getPlans()@NotNull Collection<? extends ImmutableChain> @NotNull StarterAction.DashboardPageprotected <T extends ImmutableChain>
List<T> getPlansWithCheckProjectPermissionFirst(Class<T> clazz) Optimized version ofFilteringPlanManager.getPlans()getQueue()@NotNull String@NotNull List<QuickFilter> booleanhasBranches(PlanIdentifier plan) booleanhasPlanPermission(String permission, PlanIdentifier plan) booleanbooleanbooleanIs different toisDashboardFilterEnabled()in that it returns true if there's any saved projectKeys / labelsbooleanbooleanisFavourite(ImmutableChain plan) booleanisQuickFilterActive(long quickFilterId) myBamboo()voidsetAgentManager(AgentManager agentManager) voidsetBuildExecutionManager(BuildExecutionManager buildExecutionManager) voidsetBuildProjectKey(String buildProjectKey) voidsetBuildQueueManager(BuildQueueManager buildQueueManager) voidsetChainBranchManager(ChainBranchManager chainBranchManager) voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidsetExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager) voidsetFilteredProjectKeys(List<String> filteredProjectKeys) voidsetLabelManager(LabelManager labelManager) voidsetLabelNames(List<String> labelNames) voidsetLastProject(String lastProject) voidsetPageSize(int pageSize) voidsetQuickFilterManager(QuickFilterManager quickFilterManager) voidsetReorderedBuildKey(String reorderedBuildKey) voidsetRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager) voidsetResultsSummaryManager(ResultsSummaryManager resultsSummaryManager) voidsetSelectedTab(@NotNull String selectedTab) voidsetSpecsRepositoryId(Long specsRepositoryId) voidsetUserActiveQuickFilterService(UserActiveQuickFilterService userActiveQuickFilterService) voidsetVcsRepositoryManager(VcsRepositoryManager vcsRepositoryManager) protected booleanstart()Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionErrors, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBambooContainer, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getCheckBoxFields, getConcurrentBuildExecutionStrategyOptions, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDecorator, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNodeLifecycleState, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getRandomString, getReturnUrl, getSecuredDomainObject, 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, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedEnvironmentService, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJsonMethods inherited from class org.apache.struts2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessagesMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
extendedAuthorManager
-
cachingPermissionManagerFacade
-
labelManager
-
chainBranchManager
-
quickFilterManager
-
-
Constructor Details
-
StarterAction
public StarterAction()
-
-
Method Details
-
start
-
myBamboo
-
hasPlanPermission
- Overrides:
hasPlanPermissionin classBambooActionSupport
-
getDashboardTabUrl
-
getCurrentlyBuilding
-
getCurrentlyBuilding
-
getBuildAgents
-
getBusyBuildAgents
-
getQueue
-
isFavourite
-
getPlans
-
getChains
-
getPlansByLabel
-
getPlansForDashboard
-
isDashboardFilterConfigured
public boolean isDashboardFilterConfigured()Is different toisDashboardFilterEnabled()in that it returns true if there's any saved projectKeys / labels -
getBuildPlansForDashboard
-
filterPlansByProject
protected List<ImmutableTopLevelPlan> filterPlansByProject(List<ImmutableTopLevelPlan> plans, List<String> rawProjectKeys) -
filterPlansByLabel
@NotNull protected <T extends ImmutableChain> @NotNull List<T> filterPlansByLabel(List<T> plans, List<String> theLabelNames) -
getPageToNearestProject
@NotNull protected @NotNull StarterAction.DashboardPage getPageToNearestProject(@Nullable @Nullable String lastProjectInPreviousPage, @NotNull @NotNull List<ImmutableTopLevelPlan> plans, int pageSize) -
getCommitViews
-
getProjectStatusHelper
-
hasBranches
-
getFavouriteBuilds
-
getChart
-
getSelectedTab
- Specified by:
getSelectedTabin interfaceTabSelectionAware
-
setSelectedTab
- Specified by:
setSelectedTabin interfaceTabSelectionAware
-
getAuthor
Deprecated.usegetAuthors()instead. You can now have multiple authores for a user. -
getAuthors
-
isAllowedRemoteAgents
public boolean isAllowedRemoteAgents() -
getSpecsOnboarding
-
setSpecsRepositoryId
-
setBuildProjectKey
-
getLabelNames
-
setLabelNames
-
getFilteredProjectKeys
-
showOnlyFavoritesBuilds
protected boolean showOnlyFavoritesBuilds() -
isDashboardFilterEnabled
public boolean isDashboardFilterEnabled() -
setFilteredProjectKeys
-
getConfiguredQuickFilters
-
getVisibleQuickFilters
-
getPlansWithCheckProjectPermissionFirst
protected <T extends ImmutableChain> List<T> getPlansWithCheckProjectPermissionFirst(Class<T> clazz) Optimized version ofFilteringPlanManager.getPlans()- Type Parameters:
T-- Parameters:
clazz-- Returns:
-
isAnyQuickFilterActive
public boolean isAnyQuickFilterActive() -
isQuickFilterActive
public boolean isQuickFilterActive(long quickFilterId) -
setLastProject
-
setPageSize
public void setPageSize(int pageSize) -
getPageSize
public int getPageSize() -
getPage
-
getReorderedBuildKey
-
setReorderedBuildKey
-
setAgentManager
-
setExtendedAuthorManager
-
setRepositoryDefinitionManager
-
setResultsSummaryManager
-
setVcsRepositoryManager
-
setBuildQueueManager
-
setBuildExecutionManager
-
setLabelManager
-
setChainBranchManager
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setQuickFilterManager
-
setUserActiveQuickFilterService
public void setUserActiveQuickFilterService(UserActiveQuickFilterService userActiveQuickFilterService)
-
getAuthors()instead.