Class SVNWCAccess
java.lang.Object
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess
- All Implemented Interfaces:
ISVNCanceller
,ISVNEventHandler
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private java.util.Map
private java.io.File
private java.util.Map
private ISVNEventHandler
private SVNObjectsPool
private ISVNOptions
private static boolean
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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) createMergeCallback
(SVNMergeDriver mergeDriver, SVNAdminArea adminArea, SVNURL url, SVNDiffOptions mergeOptions, java.util.Map conflictedPaths, boolean force, boolean dryRun) 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) getAdminArea
(java.io.File path) java.io.File
getEntry
(java.io.File path, boolean showHidden) (package private) int
getTreeConflict
(java.io.File path) 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
boolean
isWCRoot
(java.io.File path) static boolean
matchesChangeList
(java.util.Collection changeLists, SVNEntry entry) static SVNWCAccess
newInstance
(ISVNEventHandler eventHandler) open
(java.io.File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, java.util.logging.Level logLevel) open
(java.io.File path, boolean writeLock, boolean stealLock, int depth) open
(java.io.File path, boolean writeLock, int depth) openAnchor
(java.io.File path, boolean writeLock, int depth) private java.io.File
probe
(java.io.File path, java.util.logging.Level logLevel) probeOpen
(java.io.File path, boolean writeLock, int depth) probeOpen
(java.io.File path, boolean writeLock, int depth, java.util.logging.Level logLevel) probeRetrieve
(java.io.File path) probeTry
(java.io.File path, boolean writeLock, int depth) void
registerCleanupHandler
(SVNAdminArea area, ISVNCleanupHandler handler) 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) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INFINITE_DEPTH
public static final int INFINITE_DEPTH- See Also:
-
myEventHandler
-
myOptions
-
myAdminAreas
private java.util.Map myAdminAreas -
myCleanupHandlers
private java.util.Map myCleanupHandlers -
myObjectsPool
-
myAnchor
private java.io.File myAnchor -
ourNeverDescendIntoSymlinks
private static boolean ourNeverDescendIntoSymlinks
-
-
Constructor Details
-
SVNWCAccess
-
-
Method Details
-
newInstance
-
isObjectsPoolEnabled
private static boolean isObjectsPoolEnabled() -
setEventHandler
-
getEventHandler
-
checkCancelled
Description copied from interface:ISVNCanceller
Checks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists. This method is often called during iterations when processing trees of versioned items. This way the entire operation may be interrupted without waiting till the iteration run out.- Specified by:
checkCancelled
in interfaceISVNCanceller
- Throws:
SVNCancelException
-
handleEvent
- Throws:
SVNException
-
registerCleanupHandler
-
handleEvent
Description copied from interface:ISVNEventHandler
Handles the current event.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.
- Specified by:
handleEvent
in interfaceISVNEventHandler
- Parameters:
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 toISVNEventHandler.UNKNOWN
- Throws:
SVNException
-
setOptions
-
getOptions
-
setAnchor
public void setAnchor(java.io.File anchor) -
getAnchor
public java.io.File getAnchor() -
openAnchor
public SVNAdminAreaInfo openAnchor(java.io.File path, boolean writeLock, int depth) throws SVNException - Throws:
SVNException
-
open
- Throws:
SVNException
-
open
public SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, int depth) throws SVNException - Throws:
SVNException
-
open
public SVNAdminArea open(java.io.File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, java.util.logging.Level logLevel) throws SVNException - Throws:
SVNException
-
probeOpen
- Throws:
SVNException
-
probeOpen
public SVNAdminArea probeOpen(java.io.File path, boolean writeLock, int depth, java.util.logging.Level logLevel) throws SVNException - Throws:
SVNException
-
probeTry
- Throws:
SVNException
-
close
- Throws:
SVNException
-
closeAdminArea
- Throws:
SVNException
-
doOpen
private 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 - Throws:
SVNException
-
doClose
- Throws:
SVNException
-
doClose
- Throws:
SVNException
-
probeRetrieve
- Throws:
SVNException
-
isMissing
public boolean isMissing(java.io.File path) -
isLocked
- Throws:
SVNException
-
isWCRoot
- Throws:
SVNException
-
getTreeConflict
- Throws:
SVNException
-
hasTreeConflict
- Throws:
SVNException
-
getEntry
- Throws:
SVNException
-
getVersionedEntry
- Throws:
SVNException
-
setRepositoryRoot
- Throws:
SVNException
-
getAdminAreas
-
upgrade
Ugrades SVNAdminArea associated with the path and cached in this SVNWCAccess instance. Updates caches if upgrade was done.- Parameters:
path
- path associated with already retrieved and locked SVNAdminArea- Returns:
- newly created SVNAdminArea object if upgrade was done or already cached SVNAdminArea instance otherwise.
- Throws:
SVNException
-
retrieve
- Throws:
SVNException
-
getAdminArea
-
walkEntries
public void walkEntries(java.io.File path, ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) throws SVNException - Throws:
SVNException
-
walkEntries
public void walkEntries(java.io.File path, ISVNEntryHandler handler, boolean showHidden, boolean includeTC, SVNDepth depth) throws SVNException - Throws:
SVNException
-
probe
- Throws:
SVNException
-
matchesChangeList
-
getMaxFormatVersion
int getMaxFormatVersion() -
createUpdateEditor
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 - Throws:
SVNException
-
createMergeCallback
public SVNMergeCallback createMergeCallback(SVNMergeDriver mergeDriver, SVNAdminArea adminArea, SVNURL url, SVNDiffOptions mergeOptions, java.util.Map conflictedPaths, boolean force, boolean dryRun) -
getObjectsPool
-