|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.legacy.LegacyAbstractRepository
public abstract class LegacyAbstractRepository
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 | |
---|---|
LegacyAbstractRepository()
|
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 |
Collection |
getChangesSinceLastBuild(Build build,
Date lastBuild)
Obtain the number of changes that have been made to the build since the build was last executed. |
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, 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 LegacyAbstractRepository()
Method Detail |
---|
public String getLabel()
getLabel
in interface Repository
public Collection getChangesSinceLastBuild(Build build, Date lastBuild) throws RepositoryException
Repository
getChangesSinceLastBuild
in interface Repository
build
- The build we are checkinglastBuild
- The date and time of the previous build
ChangeLogEntry
objects
RepositoryException
- Something went wrongpublic 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 Repository
public boolean isProcessingRepositoryRequest()
isProcessingRepositoryRequest
in interface Repository
public void setProcessingRepositoryRequest(boolean processingRepositoryRequest)
setProcessingRepositoryRequest
in interface Repository
processingRepositoryRequest
- True iff the repository is active, False iff the repository is no longer
active.public boolean referencesDifferentRepository()
referencesDifferentRepository
in interface Repository
public void setReferencesDifferentRepository(boolean isDifferentRepository)
setReferencesDifferentRepository
in interface Repository
isDifferentRepository
- true if it has changed, false it it has clearedprotected 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 Repository
triggerIpAddress
- The IP address of the repository serverpublic String getTriggerIpAddress()
getTriggerIpAddress
in interface Repository
public void setWorkingDir(File workingDir)
Repository
setWorkingDir
in interface Repository
workingDir
- the directorypublic File getWorkingDirectory()
public File getSourceCodeDirectory(Build build)
getSourceCodeDirectory
in interface Repository
build
-
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 |