Class 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:

    • 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 is false
    • targets to be unlocked belong to different repositories
    Version:
    1.7
    Author:
    TMate Software Ltd.
    • 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
      • 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