Package com.atlassian.bamboo.ww2.actions
Class PlanActionSupport
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.bamboo.ww2.BambooActionSupport
-
- com.atlassian.bamboo.ww2.actions.PlanActionSupport
-
- All Implemented Interfaces:
JsonStreamingAction
,ErrorCollection
,BambooSessionAware
,NavigationAware
,DomainObjectSecurityAware
,GlobalReadSecurityAware
,PlanAware
,ProjectAware
,ReturnUrlAware
,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:
AvailableVariablesAction
,BuildActionSupport
,BuildConfigurationSupport
,ChainActionSupport
,ConfigureArtifactSubscription
,ConfigureBuildArtifact
,CreateRemoteJiraLinkAction
,DeleteGitCacheDirectoryAction
,DeletePlan
,DeletePlanResults
,EditLabelsAction
,LoadGitHubRepositories
,PlanResultsAction
,ResponsibleAvatars
,RssConfigurationInterceptorTest
,ShowLatestBuildStatus
,StopPlan
,UpdateResponsibilitiesAction
,ViewActivityLog
,ViewLabels
,ViewPlanConfiguration
,ViewPlanSpecs
,ViewQuarantinedTests
,ViewRunningPlans
,ViewTestsSummaryForPlan
public class PlanActionSupport extends BambooActionSupport implements ProjectAware, PlanAware
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
buildNumber
protected JiraApplinksService
jiraApplinksService
protected RepositoryDefinitionManager
repositoryDefinitionManager
protected ResultsSummaryManager
resultsSummaryManager
protected VcsRepositoryConfigurationService
vcsRepositoryConfigurationService
-
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
-
-
Constructor Summary
Constructors Constructor Description PlanActionSupport()
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, 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, 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, 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, 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
-
-
-
-
Field Detail
-
buildNumber
protected Integer buildNumber
-
resultsSummaryManager
protected ResultsSummaryManager resultsSummaryManager
-
vcsRepositoryConfigurationService
protected VcsRepositoryConfigurationService vcsRepositoryConfigurationService
-
jiraApplinksService
protected JiraApplinksService jiraApplinksService
-
repositoryDefinitionManager
protected RepositoryDefinitionManager repositoryDefinitionManager
-
-
Method Detail
-
getProject
public Project getProject()
- Specified by:
getProject
in interfaceProjectAware
-
getImmutablePlan
@Nullable public @Nullable ImmutablePlan getImmutablePlan()
- Specified by:
getImmutablePlan
in interfacePlanAware
-
getPlan
@Deprecated public Plan getPlan()
Deprecated.since 4.4
-
getMutablePlan
public Plan getMutablePlan()
- Specified by:
getMutablePlan
in interfacePlanAware
-
setPlan
public void setPlan(ImmutablePlan plan)
-
getPlanKey
public String getPlanKey()
-
setPlanKey
public void setPlanKey(String planKey)
-
getBuildKey
public String getBuildKey()
-
setBuildKey
public void setBuildKey(String buildKey)
-
getPlanResultKey
public String getPlanResultKey()
-
getTypedPlanKey
@Nullable public @Nullable PlanKey getTypedPlanKey()
-
getTypedPlanResultKey
@Nullable public @Nullable PlanResultKey getTypedPlanResultKey()
-
setPlanResultKey
public void setPlanResultKey(String planResultKey)
-
getBuildNumber
public Integer getBuildNumber()
-
setBuildNumber
public void setBuildNumber(Integer buildNumber)
-
getCurrentlyBuildingPlans
public Collection<? extends ExecutionStatus> getCurrentlyBuildingPlans(@NotNull @NotNull PlanKey planKey)
-
getSecuredDomainObject
public Object getSecuredDomainObject()
- Specified by:
getSecuredDomainObject
in interfaceDomainObjectSecurityAware
- Overrides:
getSecuredDomainObject
in classBambooActionSupport
-
isJiraApplicationLinkDefined
public boolean isJiraApplicationLinkDefined()
-
getResultsSummaryManager
protected ResultsSummaryManager getResultsSummaryManager()
-
setResultsSummaryManager
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
-
setPlanExecutionManager
public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
- Overrides:
setPlanExecutionManager
in classBambooActionSupport
-
getErrorAccessor
public ErrorAccessor getErrorAccessor()
Returns decoratingErrorAccessor bean
-
setDecoratingErrorAccessor
public void setDecoratingErrorAccessor(DecoratingErrorAccessorImpl errorAccessor)
Property injection with autowiring via property name- Parameters:
errorAccessor
- decoratingErrorAccessor bean
-
buildWebPanelContext
@NotNull protected @NotNull Map<String,Object> buildWebPanelContext(@NotNull @NotNull String location)
Description copied from class:BambooActionSupport
Builds a context suitable for renderingWebPanel
s viaFreemarkerContext.getWebPanels(String)
In the future the results of this method may be cached- Overrides:
buildWebPanelContext
in classBambooActionSupport
- Returns:
- context
-
planNotFound
protected String planNotFound()
-
getJobsWebItemsForSection
public Map<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor,String> getJobsWebItemsForSection(String sectionName, javax.servlet.http.HttpServletRequest req)
-
isRestartable
public boolean isRestartable(@NotNull @NotNull ResultsSummary resultsSummary)
-
isContinuable
public boolean isContinuable(@NotNull @NotNull ResultsSummary resultsSummary)
-
getFirstNotRunnableStage
@Nullable public @Nullable String getFirstNotRunnableStage(@NotNull @NotNull ResultsSummary resultsSummary)
-
setJiraApplinksService
public void setJiraApplinksService(JiraApplinksService jiraApplinksService)
-
setRepositoryDefinitionManager
public void setRepositoryDefinitionManager(RepositoryDefinitionManager repositoryDefinitionManager)
-
setVcsRepositoryConfigurationService
public void setVcsRepositoryConfigurationService(VcsRepositoryConfigurationService vcsRepositoryConfigurationService)
-
setBuildContextFactory
public void setBuildContextFactory(BuildContextFactory buildContextFactory)
-
-