public class SvnSetLock extends SvnReceivingOperation<SVNLock>
SvnOperation.run()
method returns SVNLock
object that represents information of lock.
SvnOperation.run()
method throws SVNException
if one of the following is true:
target
's path to be locked is not under version control
target
's path to lock it in the
repository - there's no such entry
targets
to be locked belong to different
repositories ((for SVN 1.6 working copy only)
Modifier | Constructor and Description |
---|---|
protected |
SvnSetLock(SvnOperationFactory factory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLockMessage()
Gets the optional comment for the lock.
|
protected int |
getMaximumTargetsCount() |
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy
|
boolean |
isStealLock()
Gets whether or not all existing locks on the specified targets
will be "stolen" from another user or working copy.
|
void |
setLockMessage(java.lang.String lockMessage)
Sets the optional comment for the lock.
|
void |
setStealLock(boolean stealLock)
Sets whether or not all existing locks on the specified targets
will be "stolen" from another user or working copy.
|
first, getReceiver, initDefaults, last, receive, run, setReceiver
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
protected SvnSetLock(SvnOperationFactory factory)
public boolean isStealLock()
true
if locks should be "stolen", otherwise false
public void setStealLock(boolean stealLock)
stealLock
- true
if locks should be "stolen", otherwise false
public java.lang.String getLockMessage()
public void setLockMessage(java.lang.String lockMessage)
lockMessage
- comment for the lockprotected int getMaximumTargetsCount()
getMaximumTargetsCount
in class SvnOperation<SVNLock>
public boolean isChangesWorkingCopy()
isChangesWorkingCopy
in class SvnOperation<SVNLock>
true
if the operation changes the working copy, otherwise false
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.