Package org.tmatesoft.svn.core.wc2
Class SvnUnlock
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNLock>
-
- 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 returnsSVNLock
object that represents information of lock.SvnOperation.run()
method @throwsSVNException
if one of the following is true:- a
target
's path is not under version control - can not obtain a URL of a local
target
's path to unlock it in the repository - there's no such entry - if a path is not locked in the working copy and
breakLock
isfalse
targets
to be unlocked belong to different repositories
- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
breakLock
-
Constructor Summary
Constructors Modifier Constructor Description protected
SvnUnlock(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 copyvoid
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, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
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", otherwisefalse
-
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", otherwisefalse
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()
- Overrides:
getMaximumTargetsCount
in classSvnOperation<SVNLock>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SVNLock>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-
-