com.atlassian.bamboo.repository
Class AbstractStandaloneRepository

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
          extended by com.atlassian.bamboo.repository.AbstractRepository
              extended by com.atlassian.bamboo.repository.AbstractStandaloneRepository
All Implemented Interfaces:
ConvertibleFromConfig, InitablePluginModule, AdvancedConfigurationAwareRepository, FilterChangesetAwareRepository, IncludeExcludeAwareRepository, OnceOffCapableRepository, QuietPeriodAwareRepository, Repository, StandaloneRepository, DescriptionProvider, NameProvider, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, RenderableBuildConfiguration, RepositoryV2, java.io.Serializable
Direct Known Subclasses:
BitbucketRepository, CVSRepository, HgRepository, PerforceRepository, 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
administrationConfigurationManager, 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.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
 
Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX
 
Fields inherited from interface com.atlassian.bamboo.repository.FilterChangesetAwareRepository
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN
 
Constructor Summary
AbstractStandaloneRepository()
           
 
Method Summary
 java.lang.String getAdvancedEditHtml(org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
          Return HTML that represents the form fragment for editing advanced options of the repository.
 java.lang.String getAdvancedViewHtml()
          Returns the HTML that represents the view of the advanced repository configuration
 java.lang.String getEditHtml(org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
          This implementation uses the same ftl templates as AbstractRepository.getEditHtml(BuildConfiguration, Plan)
 java.lang.String getViewHtml()
          This implementation uses the same ftl templates as AbstractRepository.getViewHtml(Plan)
 
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository
addDefaultValues, checkConnection, collectChangesForRevision, customizeBuildRequirements, getAdvancedEditHtml, getAdvancedViewHtml, getBranchIntegrationEditHtml, getChangesetFilterPatternRegex, getDescription, getEditHtml, getFilterFilePatternOption, getFilterFilePatternRegex, getKey, getLocationIdentifier, getMavenPomCheckoutAccessEditHtml, getMaxCommitsToReturn, getMaxRetries, getMinimalEditHtml, getQuietPeriod, getShortKey, getSourceCodeDirectory, getSystemWideExclusionPatterns, getViewHtml, getWorkingDirectory, init, isAdvancedOptionEnabled, isQuietPeriodEnabled, isWorkspaceEmpty, populateFromConfig, removeBuildRequirements, setAdministrationConfigurationManager, setBuildDirectoryManager, setBuildLoggerManager, setChangesetFilterPatternRegex, setCustomVariableContext, setFeatureManager, setFilterFilePatternOption, setFilterFilePatternRegex, setTemplateRenderer, setTextProvider, setWorkingDir, substituteString, toConfiguration, toMergeCapableRepository, validate
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
isConfigurationMissing, 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.repository.Repository
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, prepareConfigObject, validate
 
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.utils.DescriptionProvider
getDescription
 

Constructor Detail

AbstractStandaloneRepository

public AbstractStandaloneRepository()
Method Detail

getEditHtml

public java.lang.String getEditHtml(@NotNull
                                    org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
This implementation uses the same ftl templates as AbstractRepository.getEditHtml(BuildConfiguration, Plan)

Specified by:
getEditHtml in interface StandaloneRepository
Parameters:
repositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.
Returns:
HTML string. May be null.

getViewHtml

public java.lang.String getViewHtml()
This implementation uses the same ftl templates as AbstractRepository.getViewHtml(Plan)

Specified by:
getViewHtml in interface StandaloneRepository
Returns:
HTML string. May be null.

getAdvancedEditHtml

public java.lang.String getAdvancedEditHtml(@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 interface StandaloneRepository
Parameters:
repositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.
Returns:

getAdvancedViewHtml

public java.lang.String getAdvancedViewHtml()
Description copied from interface: StandaloneRepository
Returns the HTML that represents the view of the advanced repository configuration

Specified by:
getAdvancedViewHtml in interface StandaloneRepository
Returns:
HTML string. May be null.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.