summaryrefslogtreecommitdiff
path: root/plugins/svn4idea/src/org/jetbrains/idea/svn/lock/LockClient.java
blob: f36891f294b330cc26e704335f0e4619791d0b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.jetbrains.idea.svn.lock;

import com.intellij.openapi.vcs.VcsException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.idea.svn.api.SvnClient;
import org.tmatesoft.svn.core.wc.ISVNEventHandler;

import java.io.File;

/**
 * @author Konstantin Kolosovsky.
 */
public interface LockClient extends SvnClient {

  void lock(@NotNull File file,
            boolean force,
            @NotNull String message,
            @Nullable ISVNEventHandler handler) throws VcsException;

  void unlock(@NotNull File file,
              boolean force,
              @Nullable ISVNEventHandler handler) throws VcsException;
}