Class SvnNgSetLock
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
-
- org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner<V,T>
-
- org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner<SVNLock,SvnSetLock>
-
- org.tmatesoft.svn.core.internal.wc2.ng.SvnNgSetLock
-
- All Implemented Interfaces:
ISVNLockHandler
,ISVNCanceller
,ISVNEventHandler
,ISvnOperationRunner<SVNLock,SvnSetLock>
public class SvnNgSetLock extends SvnNgOperationRunner<SVNLock,SvnSetLock> implements ISVNLockHandler
-
-
Field Summary
-
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
-
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description SvnNgSetLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleLock(java.lang.String path, SVNLock lock, SVNErrorMessage error)
Handles the path locked.void
handleUnlock(java.lang.String path, SVNLock lock, SVNErrorMessage error)
Handles the path unlocked.protected SVNLock
run(SVNWCContext context)
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getRepositoryAccess, getWcGeneration, matchesChangelist, reset, run, setRepositoryAccess
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, isApplicable, sleepForTimestamp
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContext
-
-
-
-
Method Detail
-
run
protected SVNLock run(SVNWCContext context) throws SVNException
- Specified by:
run
in classSvnNgOperationRunner<SVNLock,SvnSetLock>
- Throws:
SVNException
-
handleLock
public void handleLock(java.lang.String path, SVNLock lock, SVNErrorMessage error) throws SVNException
Description copied from interface:ISVNLockHandler
Handles the path locked.- Specified by:
handleLock
in interfaceISVNLockHandler
- Parameters:
path
- a file path relative to the repository root directorylock
- the lock set on thispath
error
- if not null then it's an error message object for an error occurred while trying to lock an entry, in this caselock
may be null- Throws:
SVNException
-
handleUnlock
public void handleUnlock(java.lang.String path, SVNLock lock, SVNErrorMessage error) throws SVNException
Description copied from interface:ISVNLockHandler
Handles the path unlocked.- Specified by:
handleUnlock
in interfaceISVNLockHandler
- Parameters:
path
- a file path relative to the repository root directorylock
- the lock released from thispath
error
- if not null then it's an exception occurred while trying to unlock thepath
, in this caselock
may be null- Throws:
SVNException
-
-