|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc2.SvnOperation<T> org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNLock> org.tmatesoft.svn.core.wc2.SvnSetLock
public class SvnSetLock
Represents operation for locking files. Locks file items in a working copy as well as in a repository so that no other user can commit changes to them.
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)
Constructor Summary | |
---|---|
protected |
SvnSetLock(SvnOperationFactory factory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation |
---|
first, getReceiver, initDefaults, last, receive, run, setReceiver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SvnSetLock(SvnOperationFactory factory)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |