Class SvnRemoteUnlock
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
-
- org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner<SVNLock,SvnUnlock>
-
- org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteUnlock
-
- All Implemented Interfaces:
ISVNLockHandler
,ISVNCanceller
,ISVNEventHandler
,ISvnOperationRunner<SVNLock,SvnUnlock>
public class SvnRemoteUnlock extends SvnRemoteOperationRunner<SVNLock,SvnUnlock> 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 SvnRemoteUnlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map<java.lang.String,java.lang.String>
fetchLockTokens(SVNRepository repository, java.util.Map<java.lang.String,java.lang.String> pathsTokensMap)
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.boolean
isApplicable(SvnUnlock operation, SvnWcGeneration wcGeneration)
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)protected SVNLock
run()
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner
getRepositoryAccess, getWcGeneration, isRevisionLocalToWc, reset
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContext
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(SvnUnlock operation, SvnWcGeneration wcGeneration) throws SVNException
Description copied from interface:ISvnOperationRunner
Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicable
in interfaceISvnOperationRunner<SVNLock,SvnUnlock>
- Overrides:
isApplicable
in classSvnRemoteOperationRunner<SVNLock,SvnUnlock>
- Parameters:
operation
- operation that needs runnerwcGeneration
- working copy generation- Returns:
true
if the runner is applicable, otherwisefalse
- Throws:
SVNException
-
run
protected SVNLock run() throws SVNException
- Specified by:
run
in classSvnOperationRunner<SVNLock,SvnUnlock>
- Throws:
SVNException
-
fetchLockTokens
private java.util.Map<java.lang.String,java.lang.String> fetchLockTokens(SVNRepository repository, java.util.Map<java.lang.String,java.lang.String> pathsTokensMap) throws SVNException
- 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
-
-