public class SVNWCAccess extends java.lang.Object implements ISVNEventHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
INFINITE_DEPTH |
UNKNOWNNULL| 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
ISVNCancellercheckCancelled in interface ISVNCancellerSVNCancelExceptionpublic void handleEvent(SVNEvent event) throws SVNException
SVNExceptionpublic void registerCleanupHandler(SVNAdminArea area, ISVNCleanupHandler handler)
public void handleEvent(SVNEvent event, double progress) throws SVNException
ISVNEventHandlerGenerally 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 ISVNEventHandlerevent - 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.UNKNOWNSVNExceptionpublic 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
SVNExceptionpublic SVNAdminArea open(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNExceptionpublic SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, int depth) throws SVNException
SVNExceptionpublic SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, java.util.logging.Level logLevel) throws SVNException
SVNExceptionpublic SVNAdminArea probeOpen(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNExceptionpublic SVNAdminArea probeOpen(java.io.File path, boolean writeLock, int depth, java.util.logging.Level logLevel) throws SVNException
SVNExceptionpublic SVNAdminArea probeTry(java.io.File path, boolean writeLock, int depth) throws SVNException
SVNExceptionpublic void close()
throws SVNException
SVNExceptionpublic void closeAdminArea(java.io.File path)
throws SVNException
SVNExceptionpublic SVNAdminArea probeRetrieve(java.io.File path) throws SVNException
SVNExceptionpublic boolean isMissing(java.io.File path)
public boolean isLocked(java.io.File path)
throws SVNException
SVNExceptionpublic boolean isWCRoot(java.io.File path)
throws SVNException
SVNExceptionpublic SVNTreeConflictDescription getTreeConflict(java.io.File path) throws SVNException
SVNExceptionpublic boolean hasTreeConflict(java.io.File path)
throws SVNException
SVNExceptionpublic SVNEntry getEntry(java.io.File path, boolean showHidden) throws SVNException
SVNExceptionpublic SVNEntry getVersionedEntry(java.io.File path, boolean showHidden) throws SVNException
SVNExceptionpublic void setRepositoryRoot(java.io.File path,
SVNURL reposRoot)
throws SVNException
SVNExceptionpublic SVNAdminArea[] getAdminAreas()
public SVNAdminArea upgrade(java.io.File path) throws SVNException
path - path associated with already retrieved and locked SVNAdminAreaSVNExceptionpublic SVNAdminArea retrieve(java.io.File path) throws SVNException
SVNExceptionpublic SVNAdminArea getAdminArea(java.io.File path)
public void walkEntries(java.io.File path,
ISVNEntryHandler handler,
boolean showHidden,
SVNDepth depth)
throws SVNException
SVNExceptionpublic void walkEntries(java.io.File path,
ISVNEntryHandler handler,
boolean showHidden,
boolean includeTC,
SVNDepth depth)
throws SVNException
SVNExceptionpublic 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
SVNExceptionpublic 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.