public class SVNWCAccess extends java.lang.Object implements ISVNEventHandler
| Modifier and Type | Class and Description |
|---|---|
private static class |
SVNWCAccess.TCEntryHandler |
| Modifier and Type | Field and Description |
|---|---|
static int |
INFINITE_DEPTH |
private java.util.Map |
myAdminAreas |
private java.io.File |
myAnchor |
private java.util.Map |
myCleanupHandlers |
private ISVNEventHandler |
myEventHandler |
private SVNObjectsPool |
myObjectsPool |
private ISVNOptions |
myOptions |
private static boolean |
ourNeverDescendIntoSymlinks |
UNKNOWNNULL| Modifier | Constructor and Description |
|---|---|
private |
SVNWCAccess(ISVNEventHandler handler) |
| 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) |
private void |
doClose(java.util.Map adminAreas,
boolean preserveLocks) |
private void |
doClose(SVNAdminArea adminArea,
boolean preserveLocks) |
private SVNAdminArea |
doOpen(java.io.File path,
boolean writeLock,
boolean stealLock,
boolean upgradeFormat,
int depth,
java.util.Map tmp,
java.util.logging.Level logLevel) |
SVNAdminArea |
getAdminArea(java.io.File path) |
SVNAdminArea[] |
getAdminAreas() |
java.io.File |
getAnchor() |
SVNEntry |
getEntry(java.io.File path,
boolean showHidden) |
ISVNEventHandler |
getEventHandler() |
(package private) int |
getMaxFormatVersion() |
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) |
private static boolean |
isObjectsPoolEnabled() |
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) |
private java.io.File |
probe(java.io.File path,
java.util.logging.Level logLevel) |
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
private ISVNEventHandler myEventHandler
private ISVNOptions myOptions
private java.util.Map myAdminAreas
private java.util.Map myCleanupHandlers
private SVNObjectsPool myObjectsPool
private java.io.File myAnchor
private static boolean ourNeverDescendIntoSymlinks
private SVNWCAccess(ISVNEventHandler handler)
public static SVNWCAccess newInstance(ISVNEventHandler eventHandler)
private static boolean isObjectsPoolEnabled()
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
SVNExceptionprivate SVNAdminArea doOpen(java.io.File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, java.util.Map tmp, java.util.logging.Level logLevel) throws SVNException
SVNExceptionprivate void doClose(java.util.Map adminAreas,
boolean preserveLocks)
throws SVNException
SVNExceptionprivate void doClose(SVNAdminArea adminArea, boolean preserveLocks) 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
SVNExceptionprivate java.io.File probe(java.io.File path,
java.util.logging.Level logLevel)
throws SVNException
SVNExceptionpublic static boolean matchesChangeList(java.util.Collection changeLists,
SVNEntry entry)
int getMaxFormatVersion()
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()