|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.repository.AbstractRepository
com.atlassian.bamboo.repository.svn.SvnRepository
public class SvnRepository
This class provides a Subversion repository for Bamboo.
Field Summary | |
---|---|
static String |
KEY
|
static String |
NAME
|
static String |
SVN_PASSWORD
|
static String |
SVN_REPO_URL
|
static String |
SVN_USERNAME
|
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
BUILD_TRIGGER_IP, WEB_REPO_MODULE_NAME, WEB_REPO_URL |
Fields inherited from interface com.atlassian.bamboo.repository.Repository |
---|
REPOSIORTY_TYPE, UNKNOWN_HOST |
Constructor Summary | |
---|---|
SvnRepository()
|
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object o)
|
void |
getAllSourceCode(Build build)
Check out the latest revision of the code |
Collection |
getChangesSinceLastBuild(Build build,
Date lastBuild)
Get the build's changes (if any) since the last build |
String |
getEncryptedPassword()
|
String |
getHost()
What's the repostory server host |
String |
getKey()
|
long |
getLatestRevision()
Place the latest revision in the ui so it can be kept when user edits the repository settings |
String |
getName()
What's the name of the plugin - appears in the GUI dropdown |
String |
getRepositoryUrl()
Which repository URL are we using? |
String |
getUrl()
Where is the documentation and help about using Subversion? |
String |
getUsername()
What username are we using to access the repository? |
String |
getUserPassword()
What password are we using to access the repository |
String |
getWebRepositoryUrl()
What's the repository's web url |
String |
getWebRepositoryUrlForDiff(CommitFile file)
|
String |
getWebRepositoryUrlForFile(CommitFile file)
What's the URL to the repostory for the modified file? |
String |
getWebRepositoryUrlForRevision(CommitFile file)
|
String |
getWebRepositoryUrlRepoName()
What's the repository's web url repository |
int |
hashCode()
|
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly |
boolean |
isUseExternals()
|
void |
populateFromConfig(HierarchicalConfiguration config)
Update the current object with data in the FieldValueItemHolder |
void |
setEncryptedPassword(String encryptedPassword)
|
void |
setLatestRevision(long latestRevision)
Allow UI/tests to specify the latest revision |
void |
setRepositoryUrl(String repositoryUrl)
Specify the subversion repository we are using |
void |
setUseExternals(boolean useExternals)
|
void |
setUsername(String username)
What's the username (if any) we are using to acces the repository? |
void |
setUserPassword(String password)
Specify the password required to access the resposotory |
void |
setWebRepositoryUrl(String url)
Where should we link to to show build file changes? |
void |
setWebRepositoryUrlRepoName(String repoName)
This is used to identify the repository on multi-repository configurations. |
HierarchicalConfiguration |
toConfiguration()
Generate a FieldValueItemHolder from the current state of the object |
ErrorCollection |
validate()
Ensures the user has entered a subversion repository that we can authenticate against and connect to |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
addDefaultValues, addPasswordToCvsRoot, createStringFromList, getLabel, getSourceCodeDirectory, getTriggerIpAddress, getWorkingDirectory, hasWebBasedRepositoryAccess, isProcessingRepositoryRequest, referencesDifferentRepository, setLabel, setProcessingRepositoryRequest, setReferencesDifferentRepository, setTriggerIpAddress, setWorkingDir, updateAectIfRepositoryHasChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String KEY
public static final String SVN_REPO_URL
public static final String SVN_USERNAME
public static final String SVN_PASSWORD
Constructor Detail |
---|
public SvnRepository()
Method Detail |
---|
public String getKey()
public String getName()
public String getUrl()
public void setRepositoryUrl(String repositoryUrl)
repositoryUrl
- The subversion repositorypublic String getRepositoryUrl()
public void setUsername(String username)
username
- The user name, null if there is no userpublic String getUsername()
public void setUserPassword(String password)
password
- The password (null if we are not using user authentication)public String getUserPassword()
public String getEncryptedPassword()
public void setEncryptedPassword(String encryptedPassword)
public void setLatestRevision(long latestRevision)
latestRevision
- The latest revisionpublic long getLatestRevision()
public Collection getChangesSinceLastBuild(Build build, Date lastBuild) throws RepositoryException
build
- The build we're checkinglastBuild
- The date of the last build (ignored by this implementation)
ChangeLogEntry
objects. An empty collection if no changes are detected
RepositoryException
- A generic failurepublic void getAllSourceCode(Build build) throws RepositoryException
build
-
RepositoryException
public ErrorCollection validate()
public ErrorCollection validate(BuildConfiguration buildConfiguration)
public String getWebRepositoryUrl()
Repository
public void setWebRepositoryUrl(String url)
Repository
url
- The url of the repositories web interfacepublic String getWebRepositoryUrlRepoName()
Repository
public void setWebRepositoryUrlRepoName(String repoName)
Repository
repoName
- The name of the repository we are viewingpublic String getWebRepositoryUrlForFile(CommitFile file)
Repository
file
- The file that has been modified
public String getWebRepositoryUrlForDiff(CommitFile file)
public String getWebRepositoryUrlForRevision(CommitFile file)
public String getHost()
Repository
public boolean isRepositoryDifferent(Repository repository)
Repository
public void populateFromConfig(HierarchicalConfiguration config)
ConvertibleFromConfig
FieldValueItemHolder
public HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
FieldValueItemHolder
from the current state of the object
FieldValueItemHolder
. Never nullpublic boolean isUseExternals()
public void setUseExternals(boolean useExternals)
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |