@Deprecated public abstract class AbstractRepository extends BaseConfigurablePlugin implements Repository, IncludeExcludeAwareRepository, QuietPeriodAwareRepository, AdvancedConfigurationAwareRepository, FilterChangesetAwareRepository, OnceOffCapableRepository
| Modifier and Type | Field and Description |
|---|---|
protected AdministrationConfigurationAccessor |
administrationConfigurationAccessor
Deprecated.
|
static String |
BUILD_TRIGGER_IP
Deprecated.
|
protected BuildDirectoryManager |
buildDirectoryManager
Deprecated.
|
protected BuildLoggerManager |
buildLoggerManager
Deprecated.
|
protected CustomVariableContext |
customVariableContext
Deprecated.
|
protected FeatureManager |
featureManager
Deprecated.
|
static String |
REPO_PREFIX
Deprecated.
|
protected RepositoryModuleDescriptorImpl |
repositoryModuleDescriptor
Deprecated.
|
protected TemplateRenderer |
templateRenderer
Deprecated.
|
protected com.opensymphony.xwork2.TextProvider |
textProvider
Deprecated.
|
moduleDescriptorFILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEXCHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERNSELECTED_REPOSITORY, UNKNOWN_HOST| Constructor and Description |
|---|
AbstractRepository()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Deprecated.
Extension point for adding default values to the form for
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
ErrorCollection |
checkConnection()
Deprecated.
This method internally validates the current connection for the repository.
|
BuildRepositoryChanges |
collectChangesForRevision(PlanKey planKey,
String targetRevision)
Deprecated.
Collects the changes for the targetRevision.
|
void |
customizeBuildRequirements(PlanKey planKey,
BuildConfiguration buildConfiguration,
RequirementSet requirementSet)
Deprecated.
Extension point for adding/customizing requirements when editing a build's builder configuration.
|
String |
getAdvancedEditHtml(BuildConfiguration buildConfiguration,
Plan plan)
Deprecated.
|
String |
getAdvancedViewHtml(Plan plan)
Deprecated.
since 5.5 use
StandaloneRepository.getAdvancedViewHtml() |
String |
getBranchIntegrationEditHtml()
Deprecated.
|
String |
getChangesetFilterPatternRegex()
Deprecated.
The regex expression on which changeset comments are matched for exclusion.
|
TriggerModuleDescriptor |
getDefaultTriggerModule()
Deprecated.
since 5.14
|
String |
getDescription()
Deprecated.
|
String |
getEditHtml(BuildConfiguration buildConfiguration,
Plan plan)
Deprecated.
|
String |
getFilterFilePatternOption()
Deprecated.
Do we want to include files which match pattern or exclude files
which match pattern?
|
String |
getFilterFilePatternRegex()
Deprecated.
The regex expression on which fileName (paths) are matched for inclusion/exclusion.
|
String |
getKey()
Deprecated.
The full complete plugin key for the repo
|
String |
getLocationIdentifier()
Deprecated.
A string representing the location of the repository
|
String |
getMavenPomCheckoutAccessEditHtml(BuildConfiguration buildConfiguration)
Deprecated.
|
protected int |
getMaxCommitsToReturn()
Deprecated.
|
int |
getMaxRetries()
Deprecated.
Returns the maximum number of times to collect changes
|
String |
getMinimalEditHtml(BuildConfiguration buildConfiguration)
Deprecated.
Returns HTML for the minimal configuration of the repository.
|
static TriggerModuleDescriptor |
getPollingTriggerModule()
Deprecated.
since 5.14
|
int |
getQuietPeriod()
Deprecated.
Returns the number of seconds to wait between each retry
|
String |
getShortKey()
Deprecated.
The mini key from the plugin (should not contain plugin prefix)
|
File |
getSourceCodeDirectory(PlanKey planKey)
Deprecated.
For Subversion, we use the build name's directory within the system's working directory
|
Collection<String> |
getSystemWideExclusionPatterns()
Deprecated.
Collection of system wide, hardcoded changeset filtering patterns
|
String |
getViewHtml(Plan plan)
Deprecated.
since 5.5 use
StandaloneRepository.getViewHtml() |
File |
getWorkingDirectory()
Deprecated.
|
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Deprecated.
Initialises the Plugin with the plugin module descriptor
|
boolean |
isAdvancedOptionEnabled(BuildConfiguration buildConfiguration)
Deprecated.
|
boolean |
isQuietPeriodEnabled()
Deprecated.
Returns true if we were to enable the quiet period
|
protected boolean |
isWorkspaceEmpty(File sourceCodeDirectory)
Deprecated.
|
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Deprecated.
Update the current object with data in the
HierarchicalConfiguration |
void |
removeBuildRequirements(PlanKey planKey,
BuildConfiguration buildConfiguration,
RequirementSet requirementSet)
Deprecated.
Extension point for removing requirements when given plugin is excluded from build's builder configuration.
|
void |
setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
Deprecated.
|
void |
setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
Deprecated.
|
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
Deprecated.
|
void |
setChangesetFilterPatternRegex(String changesetFilterPatternRegex)
Deprecated.
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext)
Deprecated.
|
void |
setFeatureManager(FeatureManager featureManager)
Deprecated.
|
void |
setFilterFilePatternOption(String filterFilePatternOption)
Deprecated.
|
void |
setFilterFilePatternRegex(String filterFilePatternRegex)
Deprecated.
|
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
Deprecated.
|
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Deprecated.
|
void |
setWorkingDir(File workingDir)
Deprecated.
|
protected String |
substituteString(String stringWithValuesToSubstitute)
Deprecated.
|
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Deprecated.
Generate a
HierarchicalConfiguration from the current state of the object |
static BranchMergingAwareRepository |
toMergeCapableRepository(RepositoryV2 defaultRepository)
Deprecated.
|
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Deprecated.
Validates the properties in the
BuildConfiguration object. |
populateContextForEdit, populateContextForView, prepareConfigObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHost, getNamecollectChangesSinceLastBuild, isRepositoryDifferentisConfigurationMissing, prepareConfigObjectpublic static final String REPO_PREFIX
public static final String BUILD_TRIGGER_IP
protected RepositoryModuleDescriptorImpl repositoryModuleDescriptor
protected transient TemplateRenderer templateRenderer
protected transient com.opensymphony.xwork2.TextProvider textProvider
protected transient BuildLoggerManager buildLoggerManager
protected transient BuildDirectoryManager buildDirectoryManager
protected transient CustomVariableContext customVariableContext
protected transient FeatureManager featureManager
protected transient AdministrationConfigurationAccessor administrationConfigurationAccessor
public void init(@NotNull
com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModuleinit in interface InitablePluginModuleinit in class BaseBuildConfigurationAwarePluginmoduleDescriptor - Plugin module descriptor@NotNull public String getKey()
RepositorygetKey in interface Repository@NotNull public String getShortKey()
RepositorygetShortKey in interface Repository@NotNull public String getLocationIdentifier()
RepositorygetLocationIdentifier in interface Repositorypublic String getDescription()
getDescription in interface DescriptionProviderpublic void addDefaultValues(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)addDefaultValues in interface BuildConfigurationAwarePluginaddDefaultValues in class BaseBuildConfigurationAwarePluginbuildConfiguration - -public void customizeBuildRequirements(@NotNull
PlanKey planKey,
@NotNull
BuildConfiguration buildConfiguration,
@NotNull
RequirementSet requirementSet)
ConfigurablePlugincustomizeBuildRequirements in interface ConfigurablePlugincustomizeBuildRequirements in class BaseConfigurablePluginplanKey - key of Plan for which requirements has to be removed.buildConfiguration - source of information for customizing build requirementsrequirementSet - requirements to be customizedpublic void removeBuildRequirements(@NotNull
PlanKey planKey,
@NotNull
BuildConfiguration buildConfiguration,
@NotNull
RequirementSet requirementSet)
ConfigurablePluginremoveBuildRequirements in interface ConfigurablePluginremoveBuildRequirements in class BaseConfigurablePluginplanKey - key of Plan for which requirements has to be removed.buildConfiguration - source of information for customizing build requirementsrequirementSet - requirements to be customizedprotected int getMaxCommitsToReturn()
@NotNull public BuildRepositoryChanges collectChangesForRevision(@NotNull PlanKey planKey, @NotNull String targetRevision) throws RepositoryException
OnceOffCapableRepositorycollectChangesForRevision in interface OnceOffCapableRepositoryRepositoryException - if something goes wrong@Nullable @Deprecated public String getViewHtml(@NotNull Plan plan)
StandaloneRepository.getViewHtml()RenderableBuildConfigurationgetViewHtml in interface RenderableBuildConfigurationgetViewHtml in class BaseBuildConfigurationAwarePluginplan - for which view HTML has to be rendered.@Nullable @Deprecated public String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
StandaloneRepository.getEditHtml(org.apache.commons.configuration.HierarchicalConfiguration)RenderableBuildConfigurationgetEditHtml in interface RenderableBuildConfigurationgetEditHtml in class BaseBuildConfigurationAwarePluginbuildConfiguration - BuildConfiguration for which edit HTML has to be rendered.plan - Plan for which edit HTML has to be rendered. May be null during creation phase of plan.@Nullable public String getMinimalEditHtml(@NotNull BuildConfiguration buildConfiguration)
RepositorygetMinimalEditHtml in interface RepositorybuildConfiguration - BuildConfiguration object@Deprecated public String getAdvancedViewHtml(@NotNull Plan plan)
StandaloneRepository.getAdvancedViewHtml()getAdvancedViewHtml in interface AdvancedConfigurationAwareRepository@Deprecated public String getAdvancedEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
StandaloneRepository.getAdvancedEditHtml(org.apache.commons.configuration.HierarchicalConfiguration)getAdvancedEditHtml in interface AdvancedConfigurationAwareRepository@Nullable public String getMavenPomCheckoutAccessEditHtml(@NotNull BuildConfiguration buildConfiguration)
@Nullable public String getBranchIntegrationEditHtml()
@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.validate in interface BuildConfigurationAwarePluginvalidate in class BaseBuildConfigurationAwarePluginbuildConfiguration - -ErrorCollection keyed by the field name.public void populateFromConfig(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfigHierarchicalConfigurationpopulateFromConfig in interface ConvertibleFromConfig@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfigHierarchicalConfiguration from the current state of the objecttoConfiguration in interface ConvertibleFromConfigHierarchicalConfiguration. Never nullpublic boolean isQuietPeriodEnabled()
QuietPeriodAwareRepositoryisQuietPeriodEnabled in interface QuietPeriodAwareRepositorypublic int getQuietPeriod()
QuietPeriodAwareRepositorygetQuietPeriod in interface QuietPeriodAwareRepositorypublic int getMaxRetries()
QuietPeriodAwareRepositorygetMaxRetries in interface QuietPeriodAwareRepositorypublic boolean isAdvancedOptionEnabled(@NotNull
BuildConfiguration buildConfiguration)
public void setWorkingDir(File workingDir)
public File getWorkingDirectory()
@NotNull public File getSourceCodeDirectory(@NotNull PlanKey planKey) throws RepositoryException
getSourceCodeDirectory in interface RepositoryV2planKey - Plan keyRepositoryException - A generic failure@NotNull public ErrorCollection checkConnection()
RepositorycheckConnection in interface RepositoryErrorCollection must not be null. The errors should be translated to error messages, rather than
field errors.protected String substituteString(@Nullable String stringWithValuesToSubstitute)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
setTemplateRenderer in class BaseBuildConfigurationAwarePluginpublic String getFilterFilePatternOption()
IncludeExcludeAwareRepositorygetFilterFilePatternOption in interface IncludeExcludeAwareRepositorypublic void setFilterFilePatternOption(String filterFilePatternOption)
public String getFilterFilePatternRegex()
IncludeExcludeAwareRepositorygetFilterFilePatternRegex in interface IncludeExcludeAwareRepositorypublic void setFilterFilePatternRegex(String filterFilePatternRegex)
public String getChangesetFilterPatternRegex()
FilterChangesetAwareRepositorygetChangesetFilterPatternRegex in interface FilterChangesetAwareRepositorypublic void setChangesetFilterPatternRegex(String changesetFilterPatternRegex)
public Collection<String> getSystemWideExclusionPatterns()
FilterChangesetAwareRepositorygetSystemWideExclusionPatterns in interface FilterChangesetAwareRepositorypublic void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
protected boolean isWorkspaceEmpty(File sourceCodeDirectory)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setFeatureManager(FeatureManager featureManager)
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
@Nullable public static BranchMergingAwareRepository toMergeCapableRepository(@Nullable RepositoryV2 defaultRepository)
@Deprecated public static TriggerModuleDescriptor getPollingTriggerModule()
@Deprecated public TriggerModuleDescriptor getDefaultTriggerModule()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.