java.lang.AutoCloseable
, java.io.Closeable
public interface ISvnRepository
extends java.io.Closeable
Modifier and Type | Field | Description |
---|---|---|
static long |
HEAD |
Modifier and Type | Method | Description |
---|---|---|
void |
export(java.lang.String path,
long revision,
java.io.File targetDir) |
Exports the given directory content to the given target directory.
|
java.lang.String |
getBaseUrl() |
|
void |
getContent(java.lang.String path,
long pegRevision,
long revision,
IStreamHandler streamHandler) |
Retrieves the content of the given SVN URL and calls the given stream handler for the input stream
|
java.lang.String |
getCRPath() |
|
long |
getCurrentCRRevision() |
|
java.lang.String |
getRepositoryUuid() |
|
java.lang.String |
getSvnRootUrl() |
|
SvnInfo |
info() |
returns details about the base path at HEAD revision
|
SvnInfo |
info(java.lang.String path,
long pegRevision) |
returns details about a single path
|
int |
list(java.lang.String path,
long pegRevision,
long revision,
IDirEntryHandler dirEntryHandler) |
Retrieves all direct children for the given SVN URL and calls the given resource handler for each child
|
int |
log(java.lang.String path,
long pegRevision,
long revisionFrom,
long revisionTo,
ISvnLogEntryHandler logEntryHandler) |
Retrieves all changes for the given SVN URL and the given revision range and calls the given log entry handler for each change.
|
void |
setBaseUrl(java.lang.String baseUrl) |
Sets the base URL - this is the z2 component repository URL
|
void |
setPassword(java.lang.String password) |
Sets the password (like --password)
|
void |
setUsername(java.lang.String username) |
Sets the username (like --username)
|
static final long HEAD
java.lang.String getBaseUrl()
void setBaseUrl(java.lang.String baseUrl)
baseUrl
- base URLvoid setUsername(java.lang.String username)
username
- svn uservoid setPassword(java.lang.String password)
password
- svn passwordjava.lang.String getRepositoryUuid() throws java.io.IOException
java.io.IOException
long getCurrentCRRevision() throws java.io.IOException
java.io.IOException
java.lang.String getSvnRootUrl() throws java.io.IOException
java.io.IOException
java.lang.String getCRPath() throws java.io.IOException
java.io.IOException
SvnInfo info(java.lang.String path, long pegRevision) throws java.io.IOException
path
- path relative to the component repositorypegRevision
- peg revision, use -1 for HEADSvnDirEntry
containing the details
or null if the given path does not exist in the given revisionjava.io.IOException
SvnInfo info() throws java.io.IOException
java.io.IOException
int log(java.lang.String path, long pegRevision, long revisionFrom, long revisionTo, ISvnLogEntryHandler logEntryHandler) throws java.io.IOException
path
- path relative to CR-rootpegRevision
- peg revision, use -1 for HEADrevisionFrom
- revision fromrevisionTo
- revision tologEntryHandler
- log entry handler is called for each changed resourcejava.io.IOException
- if SVN LOG failsint list(java.lang.String path, long pegRevision, long revision, IDirEntryHandler dirEntryHandler) throws java.io.IOException
path
- path relative to CR-rootpegRevision
- peg revision, use -1 for HEADrevision
- revision, use -1 for HEADdirEntryHandler
- resource handlerjava.io.IOException
- if SVN URL does not exist in the given revisionvoid getContent(java.lang.String path, long pegRevision, long revision, IStreamHandler streamHandler) throws java.io.IOException
path
- path relative to component repository URLpegRevision
- peg revision, use -1 for HEADrevision
- revisionstreamHandler
- stream handlerjava.io.IOException
- if SVN URL does not exist in the given revisionvoid export(java.lang.String path, long revision, java.io.File targetDir) throws java.io.IOException
path
- path relative to component repository URLrevision
- revision, use -1 for HEAD (we always use preg revision HEAD)targetDir
- target directoryjava.io.IOException
- if SVN URL does not exist in the given revision or targetDir refers to an existing file