org.tmatesoft.svn.core.wc2
Class SvnUnlock

java.lang.Object
  extended by org.tmatesoft.svn.core.wc2.SvnOperation<T>
      extended by org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNLock>
          extended by org.tmatesoft.svn.core.wc2.SvnUnlock
All Implemented Interfaces:
ISvnObjectReceiver<SVNLock>, ISvnOperationOptionsProvider

public class SvnUnlock
extends SvnReceivingOperation<SVNLock>

Represents operation for unlocking files. Unlocks file items in a working copy as well as in a repository.

SvnOperation.run() method returns SVNLock object that represents information of lock. SvnOperation.run() method @throws SVNException if one of the following is true:


Constructor Summary
protected SvnUnlock(SvnOperationFactory factory)
           
 
Method Summary
protected  int getMaximumTargetsCount()
           
 boolean isBreakLock()
          Gets whether or not the locks belonging to different users should be also unlocked ("broken")
 boolean isChangesWorkingCopy()
          Gets whether the operation changes working copy
 void setBreakLock(boolean breakLock)
          Sets whether or not the locks belonging to different users should be also unlocked ("broken")
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
 
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnUnlock

protected SvnUnlock(SvnOperationFactory factory)
Method Detail

isBreakLock

public boolean isBreakLock()
Gets whether or not the locks belonging to different users should be also unlocked ("broken")

Returns:
true if other users locks should be "broken", otherwise false

setBreakLock

public void setBreakLock(boolean breakLock)
Sets whether or not the locks belonging to different users should be also unlocked ("broken")

Parameters:
breakLock - true if other users locks should be "broken", otherwise false

getMaximumTargetsCount

protected int getMaximumTargetsCount()
Overrides:
getMaximumTargetsCount in class SvnOperation<SVNLock>

isChangesWorkingCopy

public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy

Overrides:
isChangesWorkingCopy in class SvnOperation<SVNLock>
Returns:
true if the operation changes the working copy, otherwise false