~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/bindings/java/org/tigris/subversion/client/Client.java

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.tigris.subversion.client;
 
2
 
 
3
/*
 
4
 * ====================================================================
 
5
 * Copyright (c) 2000-2003 CollabNet.  All rights reserved.
 
6
 *
 
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.
 
12
 *
 
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
 * ====================================================================
 
17
 */
 
18
 
 
19
import java.io.File;
 
20
import java.io.OutputStream;
 
21
import java.util.List;
 
22
 
 
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;
 
27
 
 
28
/**
 
29
 * The methods of this interface correspond to the types and functions
 
30
 * described in the subversion C api located in 'svn_client.h'.
 
31
 */
 
32
public interface Client
 
33
{
 
34
    /** Fetch an authentication provider which prompts the user for name
 
35
     * and password.
 
36
     * @param prompt A delegate for prompting
 
37
     * @param retryLimit How often to re-prompt
 
38
     * @return A <code>AuthProvider</code> 
 
39
     */
 
40
    AuthProvider getSimplePromptProvider(ClientPrompt prompt, int retryLimit);
 
41
 
 
42
    /** Fetch an authentication provider which prompts the user for a
 
43
     * username.
 
44
     * @param prompt A delegate for prompting
 
45
     * @param retryLimit How often to re-prompt
 
46
     * @return A <code>AuthProvider</code> 
 
47
     */
 
48
    AuthProvider getUsernamePromptProvider(ClientPrompt prompt, int retryLimit);
 
49
 
 
50
    Notifier getNotifier();
 
51
 
 
52
    LogMessageReceiver getCommitLogReceiver();
 
53
 
 
54
    void checkout(String url, File path, Object revision, boolean recurse)
 
55
        throws SubversionException;
 
56
 
 
57
    /**
 
58
     * @see <a href="http://svn.collab.net/svn-doxygen/svn__client_8h.html#a33">svn_client_diff</a>
 
59
     */
 
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;
 
65
}