public interface LockHandler
Defines a facade for VCS locking operations.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public LockStatus |
getLockStatusFor(java.io.File file)Get the locking status of a particular file. |
|
public java.lang.String |
getLockedBy(java.io.File file)Retrieve the name of the user holding the lock of a particular file. |
|
public LockStatus |
lock(java.io.File fileToLock)Locks a file so that it can changed exclusively by the lock holder. |
|
public LockStatus |
unlock(java.io.File fileToUnlock)Releases the lock of a file so that others can modify it. |
Get the locking status of a particular file.
file - the file for which to check the lock statusRetrieve the name of the user holding the lock of a particular file.
file - the file to check status forLocks a file so that it can changed exclusively by the lock holder.
fileToLock - the file to lockReleases the lock of a file so that others can modify it.
fileToUnlock - the file to unlock