com.atlassian.bamboo.repository
Interface Repository

All Superinterfaces:
BambooPluginModule, ConfigurablePlugin, ConvertibleFromConfig, RepositoryV2, java.io.Serializable
All Known Subinterfaces:
CleanCheckoutAwareRepository, IncludeExcludeAwareRepository, InitialBuildAwareRepository, MutableQuietPeriodAwareRepository, PostConfigurableRepository, QuietPeriodAwareRepository, RepositoryEventAware, SelectableAuthenticationRepository, WebRepositoryEnabledRepository
All Known Implementing Classes:
AbstractRepository, CVSRepository, PerforceRepository, SvnRepository

public interface Repository
extends ConvertibleFromConfig, RepositoryV2, ConfigurablePlugin

Basic contract for interfacing with various version control repository systems.


Field Summary
static java.lang.String SELECTED_REPOSITORY
          Constant for fetching out the selected repository key from a BuildConfiguration
static java.lang.String UNKNOWN_HOST
          A marker string to return when the host is not known
 
Method Summary
 ErrorCollection checkConnection()
          This method internally validates the current connection for the repository.
 java.lang.String getHost()
          What's the repostory server host
 java.lang.String getKey()
          The full complete plugin key for the repo
 java.lang.String getName()
          The display name for the repository type
 java.lang.String getTriggerIpAddress()
          What's the repository's optional trigger IP address?
 boolean isRepositoryDifferent(Repository repository)
          Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly
 void setReferencesDifferentRepository(boolean isDifferentRepository)
          Record that the repository configutation
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, referencesDifferentRepository, retrieveSourceCode
 
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
addDefaultValues, customizeBuildRequirements, getEditHtml, getViewHtml, init, prepareConfigObject, validate
 

Field Detail

UNKNOWN_HOST

static final java.lang.String UNKNOWN_HOST
A marker string to return when the host is not known

See Also:
Constant Field Values

SELECTED_REPOSITORY

static final java.lang.String SELECTED_REPOSITORY
Constant for fetching out the selected repository key from a BuildConfiguration

See Also:
Constant Field Values
Method Detail

getKey

@NotNull
java.lang.String getKey()
The full complete plugin key for the repo

Returns:

getName

@NotNull
java.lang.String getName()
The display name for the repository type

Returns:

getHost

java.lang.String getHost()
What's the repostory server host

Returns:
The host!

checkConnection

@NotNull
ErrorCollection checkConnection()
This method internally validates the current connection for the repository. Usually the same as running validate

Returns:
ErrorCollection must not be null. The errros should be translated to error messages, rather than field errors.

getTriggerIpAddress

@Nullable
java.lang.String getTriggerIpAddress()
What's the repository's optional trigger IP address?

Returns:
the ip address, null if it does not have a trigger address.

isRepositoryDifferent

boolean isRepositoryDifferent(@NotNull
                              Repository repository)
Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly

Parameters:
repository -

setReferencesDifferentRepository

void setReferencesDifferentRepository(boolean isDifferentRepository)
Record that the repository configutation

Parameters:
isDifferentRepository - true iff the repository now references a different repostory


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.