com.atlassian.bamboo.ww2.actions.admin.bulk.repository
Class AbstractRepositoryBulkAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.admin.bulk.repository.AbstractRepositoryBulkAction
All Implemented Interfaces:
ErrorCollection, BulkAction, BulkActionScope, RepositoryAwareBulkAction, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, 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:
CvsBulkAction, SvnBulkAction, UpdateWebUrlBulkAction

public abstract class AbstractRepositoryBulkAction
extends BambooActionSupport
implements RepositoryAwareBulkAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.ww2.actions.admin.bulk.BulkAction
BulkAction.WebWorkAction, BulkAction.WebWorkActionImpl
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.atlassian.bamboo.ww2.actions.admin.bulk.BulkAction
WW_NAMESPACE_ADMIN, WW_NAMESPACE_BUILD_ADMIN, WW_NAMESPACE_BUILD_ADMIN_EDIT, WW_NAMESPACE_CHAIN_ADMIN, WW_NAMESPACE_CHAIN_CONFIG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractRepositoryBulkAction()
           
 
Method Summary
 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, RepositoryDefinition repositoryDefinition)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, 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, getFormattedErrorMessages, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSecuredDomainObject, getServerLifecycleState, getSessionUser, 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, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, 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.ww2.actions.admin.bulk.repository.RepositoryAwareBulkAction
getRepositoryDefinitions
 
Methods inherited from interface com.atlassian.bamboo.ww2.actions.admin.bulk.BulkAction
getChangedItem, getEditSnippetAction, getKey, getTitle, getViewAction, getViewUpdatedAction
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 

Constructor Detail

AbstractRepositoryBulkAction

public AbstractRepositoryBulkAction()
Method Detail

isApplicable

public boolean isApplicable(ImmutablePlan plan)
Description copied from interface: BulkActionScope
Returns whether or not a plan is applicable for a certain bulk action, eg. only plans with svn repositories for an action updating svn details

Specified by:
isApplicable in interface BulkActionScope
Returns:
true if applicable

isApplicableForRepositories

public boolean isApplicableForRepositories()
Specified by:
isApplicableForRepositories in interface BulkActionScope

hasUpdates

public boolean hasUpdates()
Description copied from interface: BulkAction
Returns whether or not a plan's details have been updated in order to carry out the bulk action

Specified by:
hasUpdates in interface BulkAction
Returns:
true if updated

getResultAction

@NotNull
public BulkAction.WebWorkAction getResultAction()
Action to show the result of the bulk action

Specified by:
getResultAction in interface BulkAction
Returns:

getExecuteAction

@NotNull
public BulkAction.WebWorkAction getExecuteAction()
Description copied from interface: BulkAction
The final action to execute to act on the bulk action

Specified by:
getExecuteAction in interface BulkAction
Returns:

populateActionParameters

public void populateActionParameters(@NotNull
                                     ActionParametersMap actionParameters,
                                     @NotNull
                                     Plan plan)
Description copied from interface: BulkAction
Provides possibility to populate action parameters before executing bulk action.

Specified by:
populateActionParameters in interface BulkAction
Parameters:
actionParameters - Action parameters to be populated
plan - Plan which will be subject to action

populateActionParameters

public void populateActionParameters(@NotNull
                                     ActionParametersMap actionParameters,
                                     @NotNull
                                     Plan plan,
                                     @NotNull
                                     RepositoryDefinition repositoryDefinition)
Specified by:
populateActionParameters in interface RepositoryAwareBulkAction


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.