|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.legacy.LegacyAbstractRepository
com.atlassian.bamboo.legacy.LegacySvnRepository
public class LegacySvnRepository
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.legacy.LegacyAbstractRepository |
---|
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 | |
---|---|
LegacySvnRepository()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
void |
getAllSourceCode(Build build)
Forces the repository to refresh all the source code in the repository |
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 |
getWebRepositoryUrlForFile(CommitFile file)
What's the URL to the repostory for the modified 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 |
void |
populateFromConfig(HierarchicalConfiguration config)
Updates a working copy (brings changes from the repository into the working copy). |
void |
setLatestRevision(long latestRevision)
Allow UI/tests to specify the latest revision |
void |
setRepositoryUrl(String repositoryUrl)
Specify the subversion repository we are using |
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 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 LegacySvnRepository()
Method Detail |
---|
public String getKey()
public String getName()
public String getUrl()
public void getAllSourceCode(Build build) throws RepositoryException
Repository
RepositoryException
- Something went wrongpublic 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 setLatestRevision(long latestRevision)
latestRevision
- The latest revisionpublic long getLatestRevision()
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 getHost()
Repository
public boolean isRepositoryDifferent(Repository repository)
Repository
public void populateFromConfig(HierarchicalConfiguration config)
public HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
FieldValueItemHolder
from the current state of the object
FieldValueItemHolder
. Never nullpublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |