public class DeleteBuilds extends BambooActionSupport implements GlobalAdminSecurityAware, BulkActionScope
BambooActionSupport.JSONStatusACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, environmentService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager| Constructor and Description |
|---|
DeleteBuilds() |
| Modifier and Type | Method and Description |
|---|---|
String |
doConfirm() |
String |
doExecute()
Remove the selected builds
|
List<Chain> |
getBuildsToConfirm() |
List<Job> |
getJobsToConfirm(Plan plan) |
List<Project> |
getProjectsToConfirm() |
String[] |
getSelectedBuilds() |
String[] |
getSelectedProjects() |
List<? extends Plan> |
getSortedPlans(Project project) |
List<Project> |
getSortedProjects() |
List<ImmutableTopLevelPlan> |
getSortedTopLevelPlans(Project project) |
String |
getSuccessMessage() |
boolean |
isApplicable(BulkActionScope bulkAction,
Project project) |
boolean |
isApplicable(ImmutablePlan plan)
Returns whether or not a plan is applicable for a certain bulk action, eg.
|
boolean |
isApplicableForRepositories() |
boolean |
isPlanSelected(String planKey) |
boolean |
isProjectSelected(String projectKey) |
void |
setDeletionService(DeletionService deletionService) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setSelectedBuilds(String[] selectedBuilds)
The checkboxes all have the same name, but with different value.
|
void |
setSelectedProjects(String[] selectedProjects) |
void |
setStopBuildManager(StopBuildManager stopBuildManager) |
void |
setSuccessMessage(String successMessage) |
void |
validate() |
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doInput, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSecuredDomainObject, getServerLifecycleState, 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, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, input, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJsonaddActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setContainer, setFieldErrorsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSecuredDomainObjectgetErrorMessages, getErrorspublic void setSelectedBuilds(String[] selectedBuilds)
selectedBuilds - The key of the builds that have been selected for deletion.public String[] getSelectedBuilds()
public String[] getSelectedProjects()
public void setSelectedProjects(String[] selectedProjects)
public void validate()
validate in interface com.opensymphony.xwork2.Validateablevalidate in class com.opensymphony.xwork2.ActionSupportpublic String doExecute() throws Exception
doExecute in class BambooActionSupportException - A generic failurepublic boolean isApplicableForRepositories()
isApplicableForRepositories in interface BulkActionScopepublic boolean isApplicable(BulkActionScope bulkAction, Project project)
public boolean isApplicable(ImmutablePlan plan)
BulkActionScopeisApplicable in interface BulkActionScopepublic boolean isProjectSelected(String projectKey)
public boolean isPlanSelected(String planKey)
public String getSuccessMessage()
public void setSuccessMessage(String successMessage)
public List<ImmutableTopLevelPlan> getSortedTopLevelPlans(Project project)
public void setStopBuildManager(StopBuildManager stopBuildManager)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setDeletionService(DeletionService deletionService)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.