Package com.atlassian.bamboo.repository
Class AbstractStandaloneRepository
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
-
- com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
-
- com.atlassian.bamboo.repository.AbstractRepository
-
- com.atlassian.bamboo.repository.AbstractStandaloneRepository
-
- All Implemented Interfaces:
ConvertibleFromConfig
,InitablePluginModule
,AdvancedConfigurationAwareRepository
,FilterChangesetAwareRepository
,IncludeExcludeAwareRepository
,OnceOffCapableRepository
,QuietPeriodAwareRepository
,Repository
,StandaloneRepository
,DescriptionProvider
,NameProvider
,BambooPluginModule
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,RenderableBuildConfiguration
,RepositoryV2
,Serializable
- Direct Known Subclasses:
BitbucketRepository
,GitHubRepository
,GitRepository
,NullRepository
,PerforceRepository
,StashRepositoryImpl
,SvnRepository
public abstract class AbstractStandaloneRepository extends AbstractRepository implements StandaloneRepository
This class provides common repository implementation code for Repositories that can be used by Global Repository feature.- Since:
- 3.4
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository
administrationConfigurationAccessor, BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, featureManager, REPO_PREFIX, repositoryModuleDescriptor, templateRenderer, textProvider
-
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor
-
Fields inherited from interface com.atlassian.bamboo.repository.FilterChangesetAwareRepository
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN
-
Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX
-
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
-
-
Constructor Summary
Constructors Constructor Description AbstractStandaloneRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdvancedEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Return HTML that represents the form fragment for editing advanced options of the repository.String
getAdvancedViewHtml()
Returns the HTML that represents the view of the advanced repository configurationString
getEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
This implementation uses the same ftl templates asAbstractRepository.getEditHtml(BuildConfiguration, Plan)
String
getViewHtml()
This implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan)
.String
getViewHtml(RepositoryData repositoryData)
This implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan)
-
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository
addDefaultValues, checkConnection, collectChangesForRevision, customizeBuildRequirements, getAdvancedEditHtml, getAdvancedViewHtml, getBranchIntegrationEditHtml, getChangesetFilterPatternRegex, getDefaultTriggerModule, getDescription, getEditHtml, getFilterFilePatternOption, getFilterFilePatternRegex, getKey, getLocationIdentifier, getMavenPomCheckoutAccessEditHtml, getMaxCommitsToReturn, getMaxRetries, getMinimalEditHtml, getPollingTriggerModule, getQuietPeriod, getShortKey, getSourceCodeDirectory, getSystemWideExclusionPatterns, getViewHtml, getWorkingDirectory, init, isAdvancedOptionEnabled, isQuietPeriodEnabled, isWorkspaceEmpty, populateFromConfig, removeBuildRequirements, setAdministrationConfigurationAccessor, setBuildDirectoryManager, setBuildLoggerManager, setChangesetFilterPatternRegex, setCustomVariableContext, setFeatureManager, setFilterFilePatternOption, setFilterFilePatternRegex, setTemplateRenderer, setTextProvider, setWorkingDir, substituteString, toConfiguration, toMergeCapableRepository, validate
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
getTemplateRenderer, populateContextForEdit, populateContextForView, prepareConfigObject
-
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.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
-
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
-
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
-
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
Methods inherited from interface com.atlassian.bamboo.repository.Repository
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
-
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
-
-
-
-
Method Detail
-
getEditHtml
public String getEditHtml(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
This implementation uses the same ftl templates asAbstractRepository.getEditHtml(BuildConfiguration, Plan)
- Specified by:
getEditHtml
in interfaceStandaloneRepository
- Parameters:
repositoryConfiguration
-HierarchicalConfiguration
for which edit HTML has to be rendered.- Returns:
- HTML string. May be null.
-
getViewHtml
public String getViewHtml()
This implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan)
. This is not used anywhere.- Specified by:
getViewHtml
in interfaceStandaloneRepository
- Returns:
- HTML string. May be null.
-
getViewHtml
@Internal public String getViewHtml(RepositoryData repositoryData)
This implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan)
-
getAdvancedEditHtml
public String getAdvancedEditHtml(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Description copied from interface:StandaloneRepository
Return HTML that represents the form fragment for editing advanced options of the repository.- Specified by:
getAdvancedEditHtml
in interfaceStandaloneRepository
- Parameters:
repositoryConfiguration
-HierarchicalConfiguration
for which edit HTML has to be rendered.- Returns:
-
getAdvancedViewHtml
public String getAdvancedViewHtml()
Description copied from interface:StandaloneRepository
Returns the HTML that represents the view of the advanced repository configuration- Specified by:
getAdvancedViewHtml
in interfaceStandaloneRepository
- Returns:
- HTML string. May be null.
-
-