public class VcsPushTaskConfigurator extends AbstractVcsTaskConfigurator
CFG_AVAILABLE_REPOSITORIES, CFG_DEFAULT_REPOSITORY_KEY, CFG_DEFAULT_REPOSITORY_NAME, CFG_SUPPORTED_REPOSITORIES
environmentService, repositoryDefinitionManager, repositoryManager, textProvider, vcsRepositoryManager
bambooAuthenticationContext, taskConfiguratorHelper
Constructor and Description |
---|
VcsPushTaskConfigurator() |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalValidate(ActionParametersMap params,
ErrorCollection errorCollection)
Additional validation required by this task.
|
protected List<String> |
getAdditionalFieldsToCopy()
Additional fields to persist to the database.
|
protected Map<String,Object> |
getDefaultFieldValues()
Default values for specified fields.
|
boolean |
isRepositoryModuleSupported(VcsRepositoryModuleDescriptor repositoryModuleDescriptor)
Whether the given repository type is eligible for this task.
|
generateTaskConfigMap, populateContextForCreate, populateContextForEdit, validate
calculateRequirements, calculateRequirements, getPlanRepositoriesUsedByTask, getPlanRepositoriesUsedByTask, getRepositoriesUsedByTask, getRepositoriesUsedByTask, handleRepositoryIdChanged, setEnvironmentService, setRepositoryDefinitionManager, setRepositoryManager, setTextProvider, setVcsRepositoryManager
calculateRequirements, getI18nBean, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlanRepositoriesUsedByTask, getRepositoriesUsedByTask, handleRepositoryIdChanged
calculateRequirements
public boolean isRepositoryModuleSupported(@NotNull VcsRepositoryModuleDescriptor repositoryModuleDescriptor)
AbstractVcsTaskConfigurator
isRepositoryModuleSupported
in class AbstractVcsTaskConfigurator
@NotNull protected List<String> getAdditionalFieldsToCopy()
AbstractVcsTaskConfigurator
TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
and RepositoryTaskHelper.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.getAdditionalFieldsToCopy
in class AbstractVcsTaskConfigurator
@NotNull protected Map<String,Object> getDefaultFieldValues()
AbstractVcsTaskConfigurator
getDefaultFieldValues
in class AbstractVcsTaskConfigurator
protected void additionalValidate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
AbstractVcsTaskConfigurator
TaskConfigConstants.CFG_WORKING_SUB_DIRECTORY
is
always validated.additionalValidate
in class AbstractVcsTaskConfigurator
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.