org.tmatesoft.svn.core.replicator

Class SVNReplicationEditor

public class SVNReplicationEditor extends Object implements ISVNEditor

The SVNReplicationEditor is an editor implementation used by a repository replicator as a bridge between an update editor for the source repository and a commit editor of the target one. This editor is provided to an update method of a source SVNRepository driver to properly translate the calls of that driver to calls to a commit editor of the destination SVNRepository driver.

Since: 1.1.0

Version: 1.1.1

Author: TMate Software Ltd.

See Also: SVNRepository

Constructor Summary
SVNReplicationEditor(SVNRepository repository, ISVNEditor commitEditor, SVNLogEntry revision)
Creates a new replication editor.
Method Summary
voidabortEdit()
voidabsentDir(String path)
voidabsentFile(String path)
voidaddDir(String path, String copyFromPath, long copyFromRevision)
voidaddFile(String path, String copyFromPath, long copyFromRevision)
voidapplyTextDelta(String path, String baseChecksum)
voidchangeDirProperty(String name, String value)
voidchangeFileProperty(String path, String name, String value)
voidcloseDir()
SVNCommitInfocloseEdit()
voidcloseFile(String path, String textChecksum)
voiddeleteEntry(String path, long revision)
SVNCommitInfogetCommitInfo()
Returns commit information on the revision committed to the replication destination repository.
voidopenDir(String path, long revision)
voidopenFile(String path, long revision)
voidopenRoot(long revision)
voidtargetRevision(long revision)
OutputStreamtextDeltaChunk(String path, SVNDiffWindow diffWindow)
voidtextDeltaEnd(String path)

Constructor Detail

SVNReplicationEditor

public SVNReplicationEditor(SVNRepository repository, ISVNEditor commitEditor, SVNLogEntry revision)
Creates a new replication editor.

repository must be created for the root location of the source repository which is to be replicated.

Parameters: repository a source repository commitEditor a commit editor received from the destination repository driver (which also must be point to the root location of the destination repository) revision log information of the revision to be copied

Method Detail

abortEdit

public void abortEdit()

absentDir

public void absentDir(String path)

absentFile

public void absentFile(String path)

addDir

public void addDir(String path, String copyFromPath, long copyFromRevision)

addFile

public void addFile(String path, String copyFromPath, long copyFromRevision)

applyTextDelta

public void applyTextDelta(String path, String baseChecksum)

changeDirProperty

public void changeDirProperty(String name, String value)

changeFileProperty

public void changeFileProperty(String path, String name, String value)

closeDir

public void closeDir()

closeEdit

public SVNCommitInfo closeEdit()

closeFile

public void closeFile(String path, String textChecksum)

deleteEntry

public void deleteEntry(String path, long revision)

getCommitInfo

public SVNCommitInfo getCommitInfo()
Returns commit information on the revision committed to the replication destination repository.

Returns: commit info (revision, author, date)

openDir

public void openDir(String path, long revision)

openFile

public void openFile(String path, long revision)

openRoot

public void openRoot(long revision)

targetRevision

public void targetRevision(long revision)

textDeltaChunk

public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow)

textDeltaEnd

public void textDeltaEnd(String path)
Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.