1
package org.tigris.subversion.client;
4
* ====================================================================
5
* Copyright (c) 2000-2003 CollabNet. All rights reserved.
7
* This software is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at http://subversion.tigris.org/license-1.html.
10
* If newer versions of this license are posted there, you may use a
11
* newer version instead, at your option.
13
* This software consists of voluntary contributions made by many
14
* individuals. For exact contribution history, see the revision
15
* history and logs, available at http://subversion.tigris.org/.
16
* ====================================================================
20
import java.io.OutputStream;
21
import java.util.List;
23
import org.tigris.subversion.SubversionException;
24
import org.tigris.subversion.auth.AuthProvider;
25
import org.tigris.subversion.opt.OptRevision;
26
import org.tigris.subversion.wc.Notifier;
29
* The methods of this interface correspond to the types and functions
30
* described in the subversion C api located in 'svn_client.h'.
32
public interface Client
34
/** Fetch an authentication provider which prompts the user for name
36
* @param prompt A delegate for prompting
37
* @param retryLimit How often to re-prompt
38
* @return A <code>AuthProvider</code>
40
AuthProvider getSimplePromptProvider(ClientPrompt prompt, int retryLimit);
42
/** Fetch an authentication provider which prompts the user for a
44
* @param prompt A delegate for prompting
45
* @param retryLimit How often to re-prompt
46
* @return A <code>AuthProvider</code>
48
AuthProvider getUsernamePromptProvider(ClientPrompt prompt, int retryLimit);
50
Notifier getNotifier();
52
LogMessageReceiver getCommitLogReceiver();
54
void checkout(String url, File path, Object revision, boolean recurse)
55
throws SubversionException;
58
* @see <a href="http://svn.collab.net/svn-doxygen/svn__client_8h.html#a33">svn_client_diff</a>
60
void diff(List diffOptions, String path1, OptRevision revision1,
61
String path2, OptRevision revision2, boolean recurse,
62
boolean ignoreAncestry, boolean noDiffDeleted,
63
OutputStream output, OutputStream error)
64
throws SubversionException;