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 intprivate java.util.Mapprivate java.io.Fileprivate java.util.Mapprivate ISVNEventHandlerprivate SVNObjectsPoolprivate ISVNOptionsprivate static booleanFields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if the current operation is cancelled (somehow interrupted) and should throw an SVNCancelException or notify the handler if exists.voidclose()voidcloseAdminArea(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 voiddoClose(java.util.Map adminAreas, boolean preserveLocks) private voiddoClose(SVNAdminArea adminArea, boolean preserveLocks) private SVNAdminAreadoOpen(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.FilegetEntry(java.io.File path, boolean showHidden) (package private) intgetTreeConflict(java.io.File path) getVersionedEntry(java.io.File path, boolean showHidden) voidhandleEvent(SVNEvent event) voidhandleEvent(SVNEvent event, double progress) Handles the current event.booleanhasTreeConflict(java.io.File path) booleanisLocked(java.io.File path) booleanisMissing(java.io.File path) private static booleanbooleanisWCRoot(java.io.File path) static booleanmatchesChangeList(java.util.Collection changeLists, SVNEntry entry) static SVNWCAccessnewInstance(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.Fileprobe(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) voidregisterCleanupHandler(SVNAdminArea area, ISVNCleanupHandler handler) retrieve(java.io.File path) voidsetAnchor(java.io.File anchor) voidsetEventHandler(ISVNEventHandler handler) voidsetOptions(ISVNOptions options) voidsetRepositoryRoot(java.io.File path, SVNURL reposRoot) upgrade(java.io.File path) Ugrades SVNAdminArea associated with the path and cached in this SVNWCAccess instance.voidwalkEntries(java.io.File path, ISVNEntryHandler handler, boolean showHidden, boolean includeTC, SVNDepth depth) voidwalkEntries(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:ISVNCancellerChecks 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:
checkCancelledin interfaceISVNCanceller- Throws:
SVNCancelException
-
handleEvent
- Throws:
SVNException
-
registerCleanupHandler
-
handleEvent
Description copied from interface:ISVNEventHandlerHandles 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:
handleEventin 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
-