public class ScmManagerStub extends Object implements ScmManager
ROLE| Constructor and Description |
|---|
ScmManagerStub()
Creates a new stub with stub repository and provider, and empty list of messages
|
public ScmManagerStub()
public void setScmProvider(ScmProvider scmProvider)
public ScmProvider getScmProvider()
public void setScmProvider(String providerType, ScmProvider provider)
setScmProvider in interface ScmManagerpublic void setScmProviderImplementation(String providerType, String providerImplementation)
setScmProviderImplementation in interface ScmManagerpublic void setScmRepository(ScmRepository scmRepository)
public ScmRepository getScmRepository()
public void setMessages(List<String> messages)
messages - List of String objectspublic List<String> getMessages()
List of String objectspublic ScmRepository makeScmRepository(String scmUrl) throws ScmRepositoryException, NoSuchScmProviderException
makeScmRepository in interface ScmManagerScmRepositoryExceptionNoSuchScmProviderExceptionpublic ScmRepository makeProviderScmRepository(String providerType, File path) throws ScmRepositoryException, UnknownRepositoryStructure, NoSuchScmProviderException
makeProviderScmRepository in interface ScmManagerScmRepositoryExceptionUnknownRepositoryStructureNoSuchScmProviderExceptionpublic List<String> validateScmRepository(String scmUrl)
validateScmRepository in interface ScmManagerscmUrl - ignoredList of String objects, the same list returned by getMessages()public ScmProvider getProviderByUrl(String scmUrl) throws ScmRepositoryException, NoSuchScmProviderException
getProviderByUrl in interface ScmManagerScmRepositoryExceptionNoSuchScmProviderExceptionpublic ScmProvider getProviderByType(String providerType) throws NoSuchScmProviderException
getProviderByType in interface ScmManagerNoSuchScmProviderExceptionpublic ScmProvider getProviderByRepository(ScmRepository repository) throws NoSuchScmProviderException
getProviderByRepository in interface ScmManagerNoSuchScmProviderExceptionpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException
add in interface ScmManagerScmExceptionpublic AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
add in interface ScmManagerScmExceptionpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException
branch in interface ScmManagerScmExceptionpublic BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException
branch in interface ScmManagerScmExceptionpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException
changeLog in interface ScmManagerScmExceptionpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException
changeLog in interface ScmManagerScmExceptionpublic ChangeLogScmResult changeLog(ChangeLogScmRequest request) throws ScmException
changeLog in interface ScmManagerScmExceptionpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
changeLog in interface ScmManagerScmExceptionpublic ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision, ScmVersion endRevision, String datePattern) throws ScmException
changeLog in interface ScmManagerScmExceptionpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
checkIn in interface ScmManagerScmExceptionpublic CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message) throws ScmException
checkIn in interface ScmManagerScmExceptionpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException
checkOut in interface ScmManagerScmExceptionpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
checkOut in interface ScmManagerScmExceptionpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive) throws ScmException
checkOut in interface ScmManagerScmExceptionpublic CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean recursive) throws ScmException
checkOut in interface ScmManagerScmExceptionpublic DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
diff in interface ScmManagerScmExceptionpublic EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
edit in interface ScmManagerScmExceptionpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException
export in interface ScmManagerScmExceptionpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
export in interface ScmManagerScmExceptionpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String outputDirectory) throws ScmException
export in interface ScmManagerScmExceptionpublic ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String outputDirectory) throws ScmException
export in interface ScmManagerScmExceptionpublic ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version) throws ScmException
list in interface ScmManagerScmExceptionpublic RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
remove in interface ScmManagerScmExceptionpublic StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException
status in interface ScmManagerScmExceptionpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName) throws ScmException
tag in interface ScmManagerScmExceptionpublic TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message) throws ScmException
tag in interface ScmManagerScmExceptionpublic UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
unedit in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean runChangelog) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String datePattern) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String datePattern) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate, String datePattern) throws ScmException
update in interface ScmManagerScmExceptionpublic UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate, String datePattern) throws ScmException
update in interface ScmManagerScmExceptionpublic BlameScmResult blame(ScmRepository repository, ScmFileSet fileSet, String filename) throws ScmException
blame in interface ScmManagerScmExceptionpublic BlameScmResult blame(BlameScmRequest blameScmRequest) throws ScmException
blame in interface ScmManagerScmExceptionpublic MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException
mkdir in interface ScmManagerScmExceptionCopyright © 2003–2021 The Apache Software Foundation. All rights reserved.