com.atlassian.bamboo.ww2.actions
Class PlanActionSupport

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.PlanActionSupport
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, 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:
AvailableVariablesAction, BuildActionSupport, BuildConfigurationSupport, ChainActionSupport, ConfigureArtifactSubscription, ConfigureBuildArtifact, DeleteHgCacheDirectory, DeletePlan, DeletePlanResults, EditLabelsAction, LoadBitbucketRepositories, PlanResultsAction, ShowLatestBuildStatus, StopPlan, ViewActivityLog, ViewLabels, ViewPlanConfiguration, ViewQuarantinedTests, ViewRunningPlans

public class PlanActionSupport
extends BambooActionSupport
implements ProjectAware, PlanAware, DomainObjectSecurityAware

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  java.lang.Integer buildNumber
           
protected  ImmutablePlanCacheService immutablePlanCacheService
           
protected  RepositoryConfigurationService repositoryConfigurationService
           
protected  ResultsSummaryManager resultsSummaryManager
           
 
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
PlanActionSupport()
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(java.lang.String location)
          Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached
 java.lang.String getBuildKey()
           
 java.lang.Integer getBuildNumber()
           
 java.util.Collection<? extends ExecutionStatus> getCurrentlyBuildingPlans(PlanKey planKey)
           
 ErrorAccessor getErrorAccessor()
           
 java.util.Map<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor,java.lang.String> getJobsWebItemsForSection(java.lang.String sectionName, javax.servlet.http.HttpServletRequest req)
           
 Plan getPlan()
           
 java.lang.String getPlanKey()
           
 java.lang.String getPlanResultKey()
           
 Project getProject()
           
protected  ResultsSummaryManager getResultsSummaryManager()
           
 java.lang.Object getSecuredDomainObject()
           
 PlanResultKey getTypedPlanResultKey()
           
 boolean isRestartable(ResultsSummary resultsSummary)
           
protected  java.lang.String planNotFound()
           
 void setBuildKey(java.lang.String buildKey)
           
 void setBuildNumber(java.lang.Integer buildNumber)
           
 void setErrorAccessor(ErrorAccessor errorAccessor)
           
 void setPlan(Plan plan)
           
 void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
           
 void setPlanKey(java.lang.String planKey)
           
 void setPlanResultKey(java.lang.String planResultKey)
           
 void setRepositoryConfigurationService(RepositoryConfigurationService repositoryConfigurationService)
           
 void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, 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, 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, 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, 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

buildNumber

protected java.lang.Integer buildNumber

resultsSummaryManager

protected ResultsSummaryManager resultsSummaryManager

repositoryConfigurationService

protected RepositoryConfigurationService repositoryConfigurationService

immutablePlanCacheService

protected ImmutablePlanCacheService immutablePlanCacheService
Constructor Detail

PlanActionSupport

public PlanActionSupport()
Method Detail

getProject

public Project getProject()
Specified by:
getProject in interface ProjectAware

getPlan

public Plan getPlan()
Specified by:
getPlan in interface PlanAware

setPlan

public void setPlan(Plan plan)
Specified by:
setPlan in interface PlanAware

getPlanKey

public java.lang.String getPlanKey()

setPlanKey

public void setPlanKey(java.lang.String planKey)

getBuildKey

public java.lang.String getBuildKey()

setBuildKey

public void setBuildKey(java.lang.String buildKey)

getPlanResultKey

public java.lang.String getPlanResultKey()

getTypedPlanResultKey

@Nullable
public PlanResultKey getTypedPlanResultKey()

setPlanResultKey

public void setPlanResultKey(java.lang.String planResultKey)

getBuildNumber

public java.lang.Integer getBuildNumber()

setBuildNumber

public void setBuildNumber(java.lang.Integer buildNumber)

getCurrentlyBuildingPlans

public java.util.Collection<? extends ExecutionStatus> getCurrentlyBuildingPlans(@NotNull
                                                                                 PlanKey planKey)

getSecuredDomainObject

public java.lang.Object getSecuredDomainObject()
Specified by:
getSecuredDomainObject in interface DomainObjectSecurityAware
Overrides:
getSecuredDomainObject in class BambooActionSupport

getResultsSummaryManager

protected ResultsSummaryManager getResultsSummaryManager()

setResultsSummaryManager

public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)

setPlanExecutionManager

public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
Overrides:
setPlanExecutionManager in class BambooActionSupport

getErrorAccessor

public ErrorAccessor getErrorAccessor()

setErrorAccessor

public void setErrorAccessor(ErrorAccessor errorAccessor)

buildWebPanelContext

@NotNull
protected java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(@NotNull
                                                                                        java.lang.String location)
Description copied from class: BambooActionSupport
Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached

Overrides:
buildWebPanelContext in class BambooActionSupport
Returns:
context

planNotFound

protected java.lang.String planNotFound()

getJobsWebItemsForSection

public java.util.Map<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor,java.lang.String> getJobsWebItemsForSection(java.lang.String sectionName,
                                                                                                                              javax.servlet.http.HttpServletRequest req)

isRestartable

public boolean isRestartable(@NotNull
                             ResultsSummary resultsSummary)

setRepositoryConfigurationService

public void setRepositoryConfigurationService(RepositoryConfigurationService repositoryConfigurationService)


Copyright © 2012 Atlassian. All Rights Reserved.