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 ScmManager
public void setScmProviderImplementation(String providerType, String providerImplementation)
setScmProviderImplementation
in interface ScmManager
public 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 ScmManager
ScmRepositoryException
NoSuchScmProviderException
public ScmRepository makeProviderScmRepository(String providerType, File path) throws ScmRepositoryException, UnknownRepositoryStructure, NoSuchScmProviderException
makeProviderScmRepository
in interface ScmManager
ScmRepositoryException
UnknownRepositoryStructure
NoSuchScmProviderException
public List<String> validateScmRepository(String scmUrl)
validateScmRepository
in interface ScmManager
scmUrl
- ignoredList
of String
objects, the same list returned by getMessages()public ScmProvider getProviderByUrl(String scmUrl) throws ScmRepositoryException, NoSuchScmProviderException
getProviderByUrl
in interface ScmManager
ScmRepositoryException
NoSuchScmProviderException
public ScmProvider getProviderByType(String providerType) throws NoSuchScmProviderException
getProviderByType
in interface ScmManager
NoSuchScmProviderException
public ScmProvider getProviderByRepository(ScmRepository repository) throws NoSuchScmProviderException
getProviderByRepository
in interface ScmManager
NoSuchScmProviderException
public AddScmResult add(ScmRepository repository, ScmFileSet fileSet) throws ScmException
add
in interface ScmManager
ScmException
public AddScmResult add(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
add
in interface ScmManager
ScmException
public BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName) throws ScmException
branch
in interface ScmManager
ScmException
public BranchScmResult branch(ScmRepository repository, ScmFileSet fileSet, String branchName, String message) throws ScmException
branch
in interface ScmManager
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch) throws ScmException
changeLog
in interface ScmManager
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, Date startDate, Date endDate, int numDays, ScmBranch branch, String datePattern) throws ScmException
changeLog
in interface ScmManager
ScmException
public ChangeLogScmResult changeLog(ChangeLogScmRequest request) throws ScmException
changeLog
in interface ScmManager
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
changeLog
in interface ScmManager
ScmException
public ChangeLogScmResult changeLog(ScmRepository repository, ScmFileSet fileSet, ScmVersion startRevision, ScmVersion endRevision, String datePattern) throws ScmException
changeLog
in interface ScmManager
ScmException
public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
checkIn
in interface ScmManager
ScmException
public CheckInScmResult checkIn(ScmRepository repository, ScmFileSet fileSet, ScmVersion revision, String message) throws ScmException
checkIn
in interface ScmManager
ScmException
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet) throws ScmException
checkOut
in interface ScmManager
ScmException
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
checkOut
in interface ScmManager
ScmException
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, boolean recursive) throws ScmException
checkOut
in interface ScmManager
ScmException
public CheckOutScmResult checkOut(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean recursive) throws ScmException
checkOut
in interface ScmManager
ScmException
public DiffScmResult diff(ScmRepository repository, ScmFileSet fileSet, ScmVersion startVersion, ScmVersion endVersion) throws ScmException
diff
in interface ScmManager
ScmException
public EditScmResult edit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
edit
in interface ScmManager
ScmException
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet) throws ScmException
export
in interface ScmManager
ScmException
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
export
in interface ScmManager
ScmException
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, String outputDirectory) throws ScmException
export
in interface ScmManager
ScmException
public ExportScmResult export(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String outputDirectory) throws ScmException
export
in interface ScmManager
ScmException
public ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, ScmVersion version) throws ScmException
list
in interface ScmManager
ScmException
public RemoveScmResult remove(ScmRepository repository, ScmFileSet fileSet, String message) throws ScmException
remove
in interface ScmManager
ScmException
public StatusScmResult status(ScmRepository repository, ScmFileSet fileSet) throws ScmException
status
in interface ScmManager
ScmException
public TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName) throws ScmException
tag
in interface ScmManager
ScmException
public TagScmResult tag(ScmRepository repository, ScmFileSet fileSet, String tagName, String message) throws ScmException
tag
in interface ScmManager
ScmException
public UnEditScmResult unedit(ScmRepository repository, ScmFileSet fileSet) throws ScmException
unedit
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, boolean runChangelog) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, boolean runChangelog) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, String datePattern) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, String datePattern) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, Date lastUpdate, String datePattern) throws ScmException
update
in interface ScmManager
ScmException
public UpdateScmResult update(ScmRepository repository, ScmFileSet fileSet, ScmVersion version, Date lastUpdate, String datePattern) throws ScmException
update
in interface ScmManager
ScmException
public BlameScmResult blame(ScmRepository repository, ScmFileSet fileSet, String filename) throws ScmException
blame
in interface ScmManager
ScmException
public BlameScmResult blame(BlameScmRequest blameScmRequest) throws ScmException
blame
in interface ScmManager
ScmException
public MkdirScmResult mkdir(ScmRepository repository, ScmFileSet fileSet, String message, boolean createInLocal) throws ScmException
mkdir
in interface ScmManager
ScmException
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.