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 Map
private File
private 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
(File path) createMergeCallback
(SVNMergeDriver mergeDriver, SVNAdminArea adminArea, SVNURL url, SVNDiffOptions mergeOptions, Map conflictedPaths, boolean force, boolean dryRun) createUpdateEditor
(SVNAdminAreaInfo info, String switchURL, boolean allowUnversionedObstructions, boolean depthIsSticky, SVNDepth depth, String[] preservedExtensions, ISVNFileFetcher fileFetcher, boolean lockOnDemand) private void
private void
doClose
(SVNAdminArea adminArea, boolean preserveLocks) private SVNAdminArea
doOpen
(File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, Map tmp, Level logLevel) getAdminArea
(File path) (package private) int
getTreeConflict
(File path) getVersionedEntry
(File path, boolean showHidden) void
handleEvent
(SVNEvent event) void
handleEvent
(SVNEvent event, double progress) Handles the current event.boolean
hasTreeConflict
(File path) boolean
boolean
private static boolean
boolean
static boolean
matchesChangeList
(Collection changeLists, SVNEntry entry) static SVNWCAccess
newInstance
(ISVNEventHandler eventHandler) open
(File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, Level logLevel) openAnchor
(File path, boolean writeLock, int depth) private File
probeRetrieve
(File path) void
registerCleanupHandler
(SVNAdminArea area, ISVNCleanupHandler handler) void
void
setEventHandler
(ISVNEventHandler handler) void
setOptions
(ISVNOptions options) void
setRepositoryRoot
(File path, SVNURL reposRoot) Ugrades SVNAdminArea associated with the path and cached in this SVNWCAccess instance.void
walkEntries
(File path, ISVNEntryHandler handler, boolean showHidden, boolean includeTC, SVNDepth depth) void
walkEntries
(File path, ISVNEntryHandler handler, boolean showHidden, SVNDepth depth)
-
Field Details
-
INFINITE_DEPTH
public static final int INFINITE_DEPTH- See Also:
-
myEventHandler
-
myOptions
-
myAdminAreas
-
myCleanupHandlers
-
myObjectsPool
-
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
-
getAnchor
-
openAnchor
- Throws:
SVNException
-
open
- Throws:
SVNException
-
open
public SVNAdminArea open(File path, boolean writeLock, boolean stealLock, int depth) throws SVNException - Throws:
SVNException
-
open
public SVNAdminArea open(File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, Level logLevel) throws SVNException - Throws:
SVNException
-
probeOpen
- Throws:
SVNException
-
probeOpen
public SVNAdminArea probeOpen(File path, boolean writeLock, int depth, Level logLevel) throws SVNException - Throws:
SVNException
-
probeTry
- Throws:
SVNException
-
close
- Throws:
SVNException
-
closeAdminArea
- Throws:
SVNException
-
doOpen
private SVNAdminArea doOpen(File path, boolean writeLock, boolean stealLock, boolean upgradeFormat, int depth, Map tmp, Level logLevel) throws SVNException - Throws:
SVNException
-
doClose
- Throws:
SVNException
-
doClose
- Throws:
SVNException
-
probeRetrieve
- Throws:
SVNException
-
isMissing
-
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(File path, ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) throws SVNException - Throws:
SVNException
-
walkEntries
public void walkEntries(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, String switchURL, boolean allowUnversionedObstructions, boolean depthIsSticky, SVNDepth depth, String[] preservedExtensions, ISVNFileFetcher fileFetcher, boolean lockOnDemand) throws SVNException - Throws:
SVNException
-
createMergeCallback
public SVNMergeCallback createMergeCallback(SVNMergeDriver mergeDriver, SVNAdminArea adminArea, SVNURL url, SVNDiffOptions mergeOptions, Map conflictedPaths, boolean force, boolean dryRun) -
getObjectsPool
-