Class VcsTagTaskConfigurator
- 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.VcsTagTaskConfigurator
-
- All Implemented Interfaces:
DeploymentTaskRequirementSupport
,RepositoryAwareDeploymentTaskConfigurator
,BuildTaskRequirementSupport
,RepositoryAwareTaskConfigurator
,TaskConfigurator
public class VcsTagTaskConfigurator extends AbstractVcsTaskConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static String
CFG_TAG_NAME
static String
CFG_TAG_NAME_OLD
-
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 VcsTagTaskConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
populateContextForEdit(@NotNull Map<String,Object> context, @NotNull TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for view editing a task definition-
Methods inherited from class com.atlassian.bamboo.plugins.vcs.task.configuration.AbstractVcsTaskConfigurator
generateTaskConfigMap, populateContextForCreate, 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
-
-
-
-
Field Detail
-
CFG_TAG_NAME_OLD
public static final String CFG_TAG_NAME_OLD
- See Also:
- Constant Field Values
-
CFG_TAG_NAME
public static final String CFG_TAG_NAME
- See Also:
- Constant Field Values
-
-
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
public 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
-
populateContextForEdit
public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TaskDefinition taskDefinition)
Description copied from interface:TaskConfigurator
Provide any required context to be used when rendering the freemarker template for view editing a task definition- Specified by:
populateContextForEdit
in interfaceTaskConfigurator
- Overrides:
populateContextForEdit
in classAbstractVcsTaskConfigurator
- Parameters:
context
- map to put your context in.taskDefinition
- existing task definition
-
-