@Deprecated public abstract class AbstractRepository extends BaseConfigurablePlugin implements Repository, IncludeExcludeAwareRepository, QuietPeriodAwareRepository, AdvancedConfigurationAwareRepository, FilterChangesetAwareRepository, OnceOffCapableRepository
Modifier and Type | Field and Description |
---|---|
protected AdministrationConfigurationAccessor |
administrationConfigurationAccessor
Deprecated.
since 6.8 inject your own
|
static String |
BUILD_TRIGGER_IP
Deprecated.
|
protected BuildDirectoryManager |
buildDirectoryManager
Deprecated.
since 6.8 inject your own
|
protected BuildLoggerManager |
buildLoggerManager
Deprecated.
since 6.8 inject your own
|
protected CustomVariableContext |
customVariableContext
Deprecated.
since 6.8 inject your own
|
protected FeatureManager |
featureManager
Deprecated.
since 6.8 inject your own
|
static String |
REPO_PREFIX
Deprecated.
|
protected RepositoryModuleDescriptorImpl |
repositoryModuleDescriptor
Deprecated.
|
protected TemplateRenderer |
templateRenderer
Deprecated.
since 6.8 inject your own
|
protected com.opensymphony.xwork2.TextProvider |
textProvider
Deprecated.
since 6.8 inject your own
|
moduleDescriptor
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN
SELECTED_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.
since 6.8 use constructor injection or annotation injection
|
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. |
getTemplateRenderer, populateContextForEdit, populateContextForView, prepareConfigObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getName
collectChangesSinceLastBuild, isRepositoryDifferent
isConfigurationMissing, prepareConfigObject
public static final String REPO_PREFIX
public static final String BUILD_TRIGGER_IP
protected RepositoryModuleDescriptorImpl repositoryModuleDescriptor
@Deprecated protected transient TemplateRenderer templateRenderer
@Deprecated protected transient com.opensymphony.xwork2.TextProvider textProvider
@Deprecated protected transient BuildLoggerManager buildLoggerManager
@Deprecated protected transient BuildDirectoryManager buildDirectoryManager
@Deprecated protected transient CustomVariableContext customVariableContext
@Deprecated protected transient FeatureManager featureManager
@Deprecated protected transient AdministrationConfigurationAccessor administrationConfigurationAccessor
public void init(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
InitablePluginModule
init
in interface InitablePluginModule
init
in class BaseBuildConfigurationAwarePlugin
moduleDescriptor
- Plugin module descriptor@NotNull public String getKey()
Repository
getKey
in interface Repository
@NotNull public String getShortKey()
Repository
getShortKey
in interface Repository
@NotNull public String getLocationIdentifier()
Repository
getLocationIdentifier
in interface Repository
public String getDescription()
getDescription
in interface DescriptionProvider
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
addDefaultValues
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- -public void customizeBuildRequirements(@NotNull PlanKey planKey, @NotNull BuildConfiguration buildConfiguration, @NotNull RequirementSet requirementSet)
ConfigurablePlugin
customizeBuildRequirements
in interface ConfigurablePlugin
customizeBuildRequirements
in class BaseConfigurablePlugin
planKey
- 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)
ConfigurablePlugin
removeBuildRequirements
in interface ConfigurablePlugin
removeBuildRequirements
in class BaseConfigurablePlugin
planKey
- 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
OnceOffCapableRepository
collectChangesForRevision
in interface OnceOffCapableRepository
RepositoryException
- if something goes wrong@Nullable @Deprecated public String getViewHtml(@NotNull Plan plan)
StandaloneRepository.getViewHtml()
RenderableBuildConfiguration
getViewHtml
in interface RenderableBuildConfiguration
getViewHtml
in class BaseBuildConfigurationAwarePlugin
plan
- 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)
RenderableBuildConfiguration
getEditHtml
in interface RenderableBuildConfiguration
getEditHtml
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- 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)
Repository
getMinimalEditHtml
in interface Repository
buildConfiguration
- 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)
BuildConfigurationAwarePlugin
BuildConfiguration
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 BuildConfigurationAwarePlugin
validate
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- -ErrorCollection
keyed by the field name.public void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullpublic boolean isQuietPeriodEnabled()
QuietPeriodAwareRepository
isQuietPeriodEnabled
in interface QuietPeriodAwareRepository
public int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod
in interface QuietPeriodAwareRepository
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries
in interface QuietPeriodAwareRepository
public 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 RepositoryV2
planKey
- Plan keyRepositoryException
- A generic failure@NotNull public ErrorCollection checkConnection()
Repository
checkConnection
in interface Repository
ErrorCollection
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)
@Deprecated public void setTemplateRenderer(TemplateRenderer templateRenderer)
setTemplateRenderer
in class BaseBuildConfigurationAwarePlugin
public String getFilterFilePatternOption()
IncludeExcludeAwareRepository
getFilterFilePatternOption
in interface IncludeExcludeAwareRepository
public void setFilterFilePatternOption(String filterFilePatternOption)
public String getFilterFilePatternRegex()
IncludeExcludeAwareRepository
getFilterFilePatternRegex
in interface IncludeExcludeAwareRepository
public void setFilterFilePatternRegex(String filterFilePatternRegex)
public String getChangesetFilterPatternRegex()
FilterChangesetAwareRepository
getChangesetFilterPatternRegex
in interface FilterChangesetAwareRepository
public void setChangesetFilterPatternRegex(String changesetFilterPatternRegex)
public Collection<String> getSystemWideExclusionPatterns()
FilterChangesetAwareRepository
getSystemWideExclusionPatterns
in interface FilterChangesetAwareRepository
public 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.