Package com.atlassian.bamboo.webwork
Class StarterAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.webwork.StarterAction
- All Implemented Interfaces:
JsonStreamingAction
,ErrorCollection
,BambooSessionAware
,NavigationAware
,DomainObjectSecurityAware
,GlobalReadSecurityAware
,ReturnUrlAware
,TabSelectionAware
,com.atlassian.core.i18n.I18nTextProvider
,com.atlassian.struts.TextProvider
,com.atlassian.struts.ValidationAware
,com.opensymphony.xwork.ValidationAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- 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
Modifier and TypeClassDescriptionclass
static class
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BambooCachingPermissionManagerFacade
protected ChainBranchManager
protected ExtendedAuthorManager
protected LabelManager
protected QuickFilterManager
Fields 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, webInterfaceManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
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()
int
protected @NotNull StarterAction.DashboardPage
getPageToNearestProject
(@Nullable String lastProjectInPreviousPage, @NotNull List<ImmutableTopLevelPlan> plans, int pageSize) @NotNull List<ImmutableTopLevelPlan>
getPlans()
@NotNull Collection<? extends ImmutableChain>
@NotNull StarterAction.DashboardPage
protected <T extends ImmutableChain>
List<T>getPlansWithCheckProjectPermissionFirst
(Class<T> clazz) Optimized version ofFilteringPlanManager.getPlans()
getQueue()
@NotNull String
@NotNull List<QuickFilter>
boolean
hasBranches
(PlanIdentifier plan) boolean
hasPlanPermission
(String permission, PlanIdentifier plan) boolean
boolean
boolean
Is different toisDashboardFilterEnabled()
in that it returns true if there's any saved projectKeys / labelsboolean
boolean
isFavourite
(ImmutableChain plan) boolean
isQuickFilterActive
(long quickFilterId) myBamboo()
void
setAgentManager
(AgentManager agentManager) void
setBuildExecutionManager
(BuildExecutionManager buildExecutionManager) void
setBuildProjectKey
(String buildProjectKey) void
setBuildQueueManager
(BuildQueueManager buildQueueManager) void
setChainBranchManager
(ChainBranchManager chainBranchManager) void
setEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) void
setExtendedAuthorManager
(ExtendedAuthorManager extendedAuthorManager) void
setFilteredProjectKeys
(List<String> filteredProjectKeys) void
setLabelManager
(LabelManager labelManager) void
setLabelNames
(List<String> labelNames) void
setLastProject
(String lastProject) void
setPageSize
(int pageSize) void
setQuickFilterManager
(QuickFilterManager quickFilterManager) void
setReorderedBuildKey
(String reorderedBuildKey) void
setRepositoryDefinitionManager
(RepositoryDefinitionManager repositoryDefinitionManager) void
setResultsSummaryManager
(ResultsSummaryManager resultsSummaryManager) void
setSelectedTab
(@NotNull String selectedTab) void
setSpecsRepositoryId
(Long specsRepositoryId) void
setUserActiveQuickFilterService
(UserActiveQuickFilterService userActiveQuickFilterService) void
setVcsRepositoryManager
(VcsRepositoryManager vcsRepositoryManager) protected boolean
start()
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildExecutionStrategyOptions, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, 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, 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, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJson
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, 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
getAllErrorMessages
Methods inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionErrors, 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:
hasPlanPermission
in 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:
getSelectedTab
in interfaceTabSelectionAware
-
setSelectedTab
- Specified by:
setSelectedTab
in 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.