|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.repository.AbstractRepository
public abstract class AbstractRepository
This class provides common repository implementation code,
| Field Summary | |
|---|---|
static String |
BUILD_TRIGGER_IP
|
static String |
WEB_REPO_MODULE_NAME
|
static String |
WEB_REPO_URL
|
| Fields inherited from interface com.atlassian.bamboo.repository.Repository |
|---|
REPOSIORTY_TYPE, UNKNOWN_HOST |
| Constructor Summary | |
|---|---|
AbstractRepository()
|
|
| Method Summary | |
|---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
|
protected String |
addPasswordToCvsRoot(String cvsRoot,
String password)
Appends the password to the CVSROOT string |
protected String |
createStringFromList(List list)
Create a string from the collection of value in the given list |
String |
getLabel()
|
File |
getSourceCodeDirectory(Build build)
For Subversion, we use the build name's directory within the system's working directory |
String |
getTriggerIpAddress()
What's the repositorys optional trigger IP address? |
File |
getWorkingDirectory()
|
boolean |
hasWebBasedRepositoryAccess()
Does this implementation of the repository provide a web access to the repository? |
boolean |
isProcessingRepositoryRequest()
Is the repository currently active? |
boolean |
referencesDifferentRepository()
Default behaviour is to not support major configuration changes |
void |
setLabel(String label)
Not implemented. |
void |
setProcessingRepositoryRequest(boolean processingRepositoryRequest)
Mark the repository currently active/inactive to prevent multiple concurrent accesses. |
void |
setReferencesDifferentRepository(boolean isDifferentRepository)
Mark the repository as having changed/cleared of change, |
void |
setTriggerIpAddress(String triggerIpAddress)
Bamboo checks to ensure a repository triggered build request comes from a valid host. |
void |
setWorkingDir(File workingDir)
Where should the repository place repository specific working files. |
protected String |
updateAectIfRepositoryHasChanged(String originalValue,
String newValue)
Utility method to return the new field value. |
| 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 |
|---|
getAllSourceCode, getChangesSinceLastBuild, getHost, getKey, getName, getWebRepositoryUrl, getWebRepositoryUrlForFile, getWebRepositoryUrlRepoName, isRepositoryDifferent, setWebRepositoryUrl, setWebRepositoryUrlRepoName, validate, validate |
| Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig |
|---|
populateFromConfig, toConfiguration |
| Field Detail |
|---|
public static final String WEB_REPO_URL
public static final String WEB_REPO_MODULE_NAME
public static final String BUILD_TRIGGER_IP
| Constructor Detail |
|---|
public AbstractRepository()
| Method Detail |
|---|
public String getLabel()
getLabel in interface Repositorypublic void setLabel(String label)
protected String createStringFromList(List list)
list - the list we are using to create the string
public boolean hasWebBasedRepositoryAccess()
hasWebBasedRepositoryAccess in interface Repositorypublic boolean isProcessingRepositoryRequest()
isProcessingRepositoryRequest in interface Repositorypublic void setProcessingRepositoryRequest(boolean processingRepositoryRequest)
setProcessingRepositoryRequest in interface RepositoryprocessingRepositoryRequest - True iff the repository is active, False iff the repository is no longer
active.public boolean referencesDifferentRepository()
referencesDifferentRepository in interface Repositorypublic void setReferencesDifferentRepository(boolean isDifferentRepository)
setReferencesDifferentRepository in interface RepositoryisDifferentRepository - true if it has changed, false it it has cleared
protected String updateAectIfRepositoryHasChanged(String originalValue,
String newValue)
originalValue - The orginal value of the fieldnewValue - The new value of the field
public void setTriggerIpAddress(String triggerIpAddress)
setTriggerIpAddress in interface RepositorytriggerIpAddress - The IP address of the repository serverpublic String getTriggerIpAddress()
getTriggerIpAddress in interface Repositorypublic void setWorkingDir(File workingDir)
Repository
setWorkingDir in interface RepositoryworkingDir - the directorypublic File getWorkingDirectory()
public File getSourceCodeDirectory(Build build)
getSourceCodeDirectory in interface Repositorybuild -
public void addDefaultValues(BuildConfiguration buildConfiguration)
addDefaultValues in interface Repository
protected String addPasswordToCvsRoot(String cvsRoot,
String password)
cvsRoot - - CVSROOTpassword - - Non encoded password
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||