public class SVNWCAccess extends java.lang.Object implements ISVNEventHandler
Modifier and Type | Field and Description |
---|---|
static int |
INFINITE_DEPTH |
UNKNOWN
NULL
Modifier and Type | Method and Description |
---|---|
void |
checkCancelled()
Checks if the current operation is cancelled (somehow interrupted)
and should throw an SVNCancelException or notify the handler if exists.
|
void |
close() |
void |
closeAdminArea(java.io.File path) |
SVNMergeCallback |
createMergeCallback(SVNMergeDriver mergeDriver,
SVNAdminArea adminArea,
SVNURL url,
SVNDiffOptions mergeOptions,
java.util.Map conflictedPaths,
boolean force,
boolean dryRun) |
ISVNUpdateEditor |
createUpdateEditor(SVNAdminAreaInfo info,
java.lang.String switchURL,
boolean allowUnversionedObstructions,
boolean depthIsSticky,
SVNDepth depth,
java.lang.String[] preservedExtensions,
ISVNFileFetcher fileFetcher,
boolean lockOnDemand) |
SVNAdminArea |
getAdminArea(java.io.File path) |
SVNAdminArea[] |
getAdminAreas() |
java.io.File |
getAnchor() |
SVNEntry |
getEntry(java.io.File path,
boolean showHidden) |
ISVNEventHandler |
getEventHandler() |
SVNObjectsPool |
getObjectsPool() |
ISVNOptions |
getOptions() |
SVNTreeConflictDescription |
getTreeConflict(java.io.File path) |
SVNEntry |
getVersionedEntry(java.io.File path,
boolean showHidden) |
void |
handleEvent(SVNEvent event) |
void |
handleEvent(SVNEvent event,
double progress)
Handles the current event.
|
boolean |
hasTreeConflict(java.io.File path) |
boolean |
isLocked(java.io.File path) |
boolean |
isMissing(java.io.File path) |
boolean |
isWCRoot(java.io.File path) |
static boolean |
matchesChangeList(java.util.Collection changeLists,
SVNEntry entry) |
static SVNWCAccess |
newInstance(ISVNEventHandler eventHandler) |
SVNAdminArea |
open(java.io.File path,
boolean writeLock,
boolean stealLock,
boolean upgradeFormat,
int depth,
java.util.logging.Level logLevel) |
SVNAdminArea |
open(java.io.File path,
boolean writeLock,
boolean stealLock,
int depth) |
SVNAdminArea |
open(java.io.File path,
boolean writeLock,
int depth) |
SVNAdminAreaInfo |
openAnchor(java.io.File path,
boolean writeLock,
int depth) |
SVNAdminArea |
probeOpen(java.io.File path,
boolean writeLock,
int depth) |
SVNAdminArea |
probeOpen(java.io.File path,
boolean writeLock,
int depth,
java.util.logging.Level logLevel) |
SVNAdminArea |
probeRetrieve(java.io.File path) |
SVNAdminArea |
probeTry(java.io.File path,
boolean writeLock,
int depth) |
void |
registerCleanupHandler(SVNAdminArea area,
ISVNCleanupHandler handler) |
SVNAdminArea |
retrieve(java.io.File path) |
void |
setAnchor(java.io.File anchor) |
void |
setEventHandler(ISVNEventHandler handler) |
void |
setOptions(ISVNOptions options) |
void |
setRepositoryRoot(java.io.File path,
SVNURL reposRoot) |
SVNAdminArea |
upgrade(java.io.File path)
Ugrades SVNAdminArea associated with the path and cached in this SVNWCAccess instance.
|
void |
walkEntries(java.io.File path,
ISVNEntryHandler handler,
boolean showHidden,
boolean includeTC,
SVNDepth depth) |
void |
walkEntries(java.io.File path,
ISVNEntryHandler handler,
boolean showHidden,
SVNDepth depth) |
public static final int INFINITE_DEPTH
public static SVNWCAccess newInstance(ISVNEventHandler eventHandler)
public void setEventHandler(ISVNEventHandler handler)
public ISVNEventHandler getEventHandler()
public void checkCancelled() throws SVNCancelException
ISVNCanceller
checkCancelled
in interface ISVNCanceller
SVNCancelException
public void handleEvent(SVNEvent event) throws SVNException
SVNException
public void registerCleanupHandler(SVNAdminArea area, ISVNCleanupHandler handler)
public void handleEvent(SVNEvent event, double progress) throws SVNException
ISVNEventHandler
Generally all operations represented by do*() methods of SVN*Client objects are followed by generating a sequence of events that are passed to the registered ISVNEventHandler object for custom processing. For example, during an update operation each local item being modified is signaled about by dispatching a specific for this item SVNEvent object to this method where this event can be scrutinized and handled in a desired way.
handleEvent
in interface ISVNEventHandler
event
- the current event that keeps detailed information on
the type of action occured and other attributes like path,
status, etc.progress
- currently reserved for future use; now it's value
is always set to ISVNEventHandler.UNKNOWN
SVNException
public void setOptions(ISVNOptions options)
public ISVNOptions getOptions()
public void setAnchor(java.io.File anchor)
public java.io.File getAnchor()
public SVNAdminAreaInfo openAnchor(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNException
public SVNAdminArea open(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNException
public SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, int depth) throws SVNException
SVNException
public SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, java.util.logging.Level logLevel) throws SVNException
SVNException
public SVNAdminArea probeOpen(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNException
public SVNAdminArea probeOpen(java.io.File path, boolean writeLock, int depth, java.util.logging.Level logLevel) throws SVNException
SVNException
public SVNAdminArea probeTry(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNException
public void close() throws SVNException
SVNException
public void closeAdminArea(java.io.File path) throws SVNException
SVNException
public SVNAdminArea probeRetrieve(java.io.File path) throws SVNException
SVNException
public boolean isMissing(java.io.File path)
public boolean isLocked(java.io.File path) throws SVNException
SVNException
public boolean isWCRoot(java.io.File path) throws SVNException
SVNException
public SVNTreeConflictDescription getTreeConflict(java.io.File path) throws SVNException
SVNException
public boolean hasTreeConflict(java.io.File path) throws SVNException
SVNException
public SVNEntry getEntry(java.io.File path, boolean showHidden) throws SVNException
SVNException
public SVNEntry getVersionedEntry(java.io.File path, boolean showHidden) throws SVNException
SVNException
public void setRepositoryRoot(java.io.File path, SVNURL reposRoot) throws SVNException
SVNException
public SVNAdminArea[] getAdminAreas()
public SVNAdminArea upgrade(java.io.File path) throws SVNException
path
- path associated with already retrieved and locked SVNAdminAreaSVNException
public SVNAdminArea retrieve(java.io.File path) throws SVNException
SVNException
public SVNAdminArea getAdminArea(java.io.File path)
public void walkEntries(java.io.File path, ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) throws SVNException
SVNException
public void walkEntries(java.io.File path, ISVNEntryHandler handler, boolean showHidden, boolean includeTC, SVNDepth depth) throws SVNException
SVNException
public static boolean matchesChangeList(java.util.Collection changeLists, SVNEntry entry)
public ISVNUpdateEditor createUpdateEditor(SVNAdminAreaInfo info, java.lang.String switchURL, boolean allowUnversionedObstructions, boolean depthIsSticky, SVNDepth depth, java.lang.String[] preservedExtensions, ISVNFileFetcher fileFetcher, boolean lockOnDemand) throws SVNException
SVNException
public SVNMergeCallback createMergeCallback(SVNMergeDriver mergeDriver, SVNAdminArea adminArea, SVNURL url, SVNDiffOptions mergeOptions, java.util.Map conflictedPaths, boolean force, boolean dryRun)
public SVNObjectsPool getObjectsPool()
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.