public abstract class AbstractRepositoryBulkAction extends BambooActionSupport implements RepositoryAwareBulkAction
BambooActionSupport.JSONStatus
BulkAction.WebWorkAction, BulkAction.WebWorkActionImpl
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
WW_NAMESPACE_ADMIN, WW_NAMESPACE_BUILD_ADMIN, WW_NAMESPACE_BUILD_ADMIN_EDIT, WW_NAMESPACE_BULK_ACTIONS, WW_NAMESPACE_CHAIN_ADMIN, WW_NAMESPACE_CHAIN_CONFIG
Constructor and Description |
---|
AbstractRepositoryBulkAction() |
Modifier and Type | Method and Description |
---|---|
BulkAction.WebWorkAction |
getExecuteAction()
The final action to execute to act on the bulk action
|
BulkAction.WebWorkAction |
getResultAction()
Action to show the result of the bulk action
|
boolean |
hasUpdates()
Returns whether or not a plan's details have been updated in order to carry out the bulk action
|
boolean |
isApplicable(ImmutablePlan plan)
Returns whether or not a plan is applicable for a certain bulk action, eg.
|
boolean |
isApplicableForRepositories() |
void |
populateActionParameters(ActionParametersMap actionParameters,
Plan plan)
Provides possibility to populate action parameters before executing bulk action.
|
void |
populateActionParameters(ActionParametersMap actionParameters,
Plan plan,
PlanRepositoryDefinition repositoryDefinition) |
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, 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, 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, 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, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, streamJson, toJson, toJson
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRepositoryDefinitions
getChangedItem, getEditSnippetAction, getKey, getTitle, getViewAction, getViewUpdatedAction
getAllErrorMessages
public boolean isApplicable(ImmutablePlan plan)
BulkActionScope
isApplicable
in interface BulkActionScope
public boolean isApplicableForRepositories()
isApplicableForRepositories
in interface BulkActionScope
public boolean hasUpdates()
BulkAction
hasUpdates
in interface BulkAction
@NotNull public BulkAction.WebWorkAction getResultAction()
getResultAction
in interface BulkAction
@NotNull public BulkAction.WebWorkAction getExecuteAction()
BulkAction
getExecuteAction
in interface BulkAction
public void populateActionParameters(@NotNull ActionParametersMap actionParameters, @NotNull Plan plan)
BulkAction
populateActionParameters
in interface BulkAction
actionParameters
- Action parameters to be populatedplan
- Plan which will be subject to actionpublic void populateActionParameters(@NotNull ActionParametersMap actionParameters, @NotNull Plan plan, @NotNull PlanRepositoryDefinition repositoryDefinition)
populateActionParameters
in interface RepositoryAwareBulkAction
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.