Class SvnRemoteSetLock
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner<SVNLock,SvnSetLock>
org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteSetLock
- All Implemented Interfaces:
ISVNLockHandler,ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<SVNLock,SvnSetLock>
public class SvnRemoteSetLock
extends SvnRemoteOperationRunner<SVNLock,SvnSetLock>
implements ISVNLockHandler
-
Field Summary
Fields 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 TypeMethodDescriptionvoidhandleLock(java.lang.String path, SVNLock lock, SVNErrorMessage error) Handles the path locked.voidhandleUnlock(java.lang.String path, SVNLock lock, SVNErrorMessage error) Handles the path unlocked.booleanisApplicable(SvnSetLock operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)protected SVNLockrun()Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner
getRepositoryAccess, getWcGeneration, isRevisionLocalToWc, resetMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SvnRemoteSetLock
public SvnRemoteSetLock()
-
-
Method Details
-
isApplicable
Description copied from interface:ISvnOperationRunnerReturns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicablein interfaceISvnOperationRunner<SVNLock,SvnSetLock> - Overrides:
isApplicablein classSvnRemoteOperationRunner<SVNLock,SvnSetLock> - Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
run
- Specified by:
runin classSvnOperationRunner<SVNLock,SvnSetLock> - Throws:
SVNException
-
handleLock
public void handleLock(java.lang.String path, SVNLock lock, SVNErrorMessage error) throws SVNException Description copied from interface:ISVNLockHandlerHandles the path locked.- Specified by:
handleLockin interfaceISVNLockHandler- Parameters:
path- a file path relative to the repository root directorylock- the lock set on thispatherror- if not null then it's an error message object for an error occurred while trying to lock an entry, in this caselockmay be null- Throws:
SVNException
-
handleUnlock
public void handleUnlock(java.lang.String path, SVNLock lock, SVNErrorMessage error) throws SVNException Description copied from interface:ISVNLockHandlerHandles the path unlocked.- Specified by:
handleUnlockin interfaceISVNLockHandler- Parameters:
path- a file path relative to the repository root directorylock- the lock released from thispatherror- if not null then it's an exception occurred while trying to unlock thepath, in this caselockmay be null- Throws:
SVNException
-