Class VcsPushTaskConfigurator
- java.lang.Object
-
- com.atlassian.bamboo.task.AbstractTaskConfigurator
-
- com.atlassian.bamboo.task.repository.AbstractRepositoryAwareTaskConfigurator
-
- com.atlassian.bamboo.plugins.vcs.task.configuration.AbstractVcsTaskConfigurator
-
- com.atlassian.bamboo.plugins.vcs.task.configuration.VcsPushTaskConfigurator
-
- All Implemented Interfaces:
DeploymentTaskRequirementSupport
,RepositoryAwareDeploymentTaskConfigurator
,BuildTaskRequirementSupport
,RepositoryAwareTaskConfigurator
,TaskConfigurator
public class VcsPushTaskConfigurator extends AbstractVcsTaskConfigurator
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.plugins.vcs.task.configuration.AbstractVcsTaskConfigurator
CFG_AVAILABLE_REPOSITORIES, CFG_DEFAULT_REPOSITORY_KEY, CFG_DEFAULT_REPOSITORY_NAME, CFG_SUPPORTED_REPOSITORIES
-
Fields inherited from class com.atlassian.bamboo.task.repository.AbstractRepositoryAwareTaskConfigurator
environmentService, repositoryDefinitionManager, repositoryManager, textProvider, vcsRepositoryManager
-
Fields inherited from class com.atlassian.bamboo.task.AbstractTaskConfigurator
bambooAuthenticationContext, taskConfiguratorHelper
-
-
Constructor Summary
Constructors Constructor Description VcsPushTaskConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
additionalValidate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
Additional validation required by this task.protected @NotNull List<String>
getAdditionalFieldsToCopy()
Additional fields to persist to the database.protected @NotNull Map<String,Object>
getDefaultFieldValues()
Default values for specified fields.boolean
isRepositoryModuleSupported(@NotNull VcsRepositoryModuleDescriptor repositoryModuleDescriptor)
Whether the given repository type is eligible for this task.-
Methods inherited from class com.atlassian.bamboo.plugins.vcs.task.configuration.AbstractVcsTaskConfigurator
generateTaskConfigMap, populateContextForCreate, populateContextForEdit, validate
-
Methods inherited from class com.atlassian.bamboo.task.repository.AbstractRepositoryAwareTaskConfigurator
calculateRequirements, calculateRequirements, getPlanRepositoriesUsedByTask, getPlanRepositoriesUsedByTask, getRepositoriesUsedByTask, getRepositoriesUsedByTask, handleRepositoryIdChanged, setEnvironmentService, setRepositoryDefinitionManager, setRepositoryManager, setTextProvider, setVcsRepositoryManager
-
Methods inherited from class com.atlassian.bamboo.task.AbstractTaskConfigurator
calculateRequirements, getI18nBean, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.task.BuildTaskRequirementSupport
calculateRequirements
-
Methods inherited from interface com.atlassian.bamboo.task.repository.RepositoryAwareTaskConfigurator
getPlanRepositoriesUsedByTask, getRepositoriesUsedByTask, handleRepositoryIdChanged
-
-
-
-
Method Detail
-
isRepositoryModuleSupported
public boolean isRepositoryModuleSupported(@NotNull @NotNull VcsRepositoryModuleDescriptor repositoryModuleDescriptor)
Description copied from class:AbstractVcsTaskConfigurator
Whether the given repository type is eligible for this task.- Specified by:
isRepositoryModuleSupported
in classAbstractVcsTaskConfigurator
-
getAdditionalFieldsToCopy
@NotNull protected @NotNull List<String> getAdditionalFieldsToCopy()
Description copied from class:AbstractVcsTaskConfigurator
Additional fields to persist to the database.TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
andRepositoryTaskHelper.CFG_SELECTED_REPOSITORY
are always persisted, so they needn't be returned by this method. Return an empty list if no additional fields are needed.- Specified by:
getAdditionalFieldsToCopy
in classAbstractVcsTaskConfigurator
-
getDefaultFieldValues
@NotNull protected @NotNull Map<String,Object> getDefaultFieldValues()
Description copied from class:AbstractVcsTaskConfigurator
Default values for specified fields. Return an empty map if no defaults are needed.- Specified by:
getDefaultFieldValues
in classAbstractVcsTaskConfigurator
-
additionalValidate
protected void additionalValidate(@NotNull @NotNull ActionParametersMap params, @NotNull @NotNull ErrorCollection errorCollection)
Description copied from class:AbstractVcsTaskConfigurator
Additional validation required by this task. Lack ofTaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
is always validated.- Specified by:
additionalValidate
in classAbstractVcsTaskConfigurator
-
-