001: /*
002: * ====================================================================
003: * Copyright (c) 2004-2008 TMate Software Ltd. All rights reserved.
004: *
005: * This software is licensed as described in the file COPYING, which
006: * you should have received as part of this distribution. The terms
007: * are also available at http://svnkit.com/license.html
008: * If newer versions of this license are posted there, you may use a
009: * newer version instead, at your option.
010: * ====================================================================
011: */
012: package org.tigris.subversion.javahl;
013:
014: import java.io.OutputStream;
015:
016: import org.tmatesoft.svn.core.javahl.SVNClientImpl;
017:
018: /**
019: *
020: * @version 1.1.1
021: * @author TMate Software Ltd.
022: */
023: public class SVNClient implements SVNClientInterface {
024:
025: private SVNClientImpl myDelegate;
026:
027: public static final class LogLevel implements SVNClientLogLevel {
028: }
029:
030: public SVNClient() {
031: myDelegate = SVNClientImpl.newInstance(this );
032: }
033:
034: public String getLastPath() {
035: return myDelegate.getLastPath();
036: }
037:
038: public Status[] status(String path, boolean descend,
039: boolean onServer, boolean getAll) throws ClientException {
040: return myDelegate.status(path, descend, onServer, getAll);
041: }
042:
043: public Status[] status(String path, boolean descend,
044: boolean onServer, boolean getAll, boolean noIgnore)
045: throws ClientException {
046: return myDelegate.status(path, descend, onServer, getAll,
047: noIgnore, false);
048: }
049:
050: public Status[] status(final String path, boolean descend,
051: boolean onServer, boolean getAll, boolean noIgnore,
052: boolean ignoreExternals) throws ClientException {
053: return myDelegate.status(path, descend, onServer, getAll,
054: noIgnore, ignoreExternals);
055: }
056:
057: public DirEntry[] list(String url, Revision revision,
058: boolean recurse) throws ClientException {
059: return myDelegate.list(url, revision, recurse);
060: }
061:
062: public DirEntry[] list(String url, Revision revision,
063: Revision pegRevision, boolean recurse)
064: throws ClientException {
065: return myDelegate.list(url, revision, pegRevision, recurse);
066: }
067:
068: public Status singleStatus(final String path, boolean onServer)
069: throws ClientException {
070: return myDelegate.singleStatus(path, onServer);
071: }
072:
073: public void username(String username) {
074: myDelegate.username(username);
075: }
076:
077: public void password(String password) {
078: myDelegate.password(password);
079: }
080:
081: public void setPrompt(PromptUserPassword prompt) {
082: myDelegate.setPrompt(prompt);
083: }
084:
085: public LogMessage[] logMessages(String path,
086: Revision revisionStart, Revision revisionEnd)
087: throws ClientException {
088: return myDelegate.logMessages(path, revisionStart, revisionEnd);
089: }
090:
091: public LogMessage[] logMessages(String path,
092: Revision revisionStart, Revision revisionEnd,
093: boolean stopOnCopy) throws ClientException {
094: return myDelegate.logMessages(path, revisionStart, revisionEnd,
095: stopOnCopy);
096: }
097:
098: public LogMessage[] logMessages(String path,
099: Revision revisionStart, Revision revisionEnd,
100: boolean stopOnCopy, boolean discoverPath)
101: throws ClientException {
102: return myDelegate.logMessages(path, revisionStart, revisionEnd,
103: stopOnCopy, discoverPath);
104: }
105:
106: public LogMessage[] logMessages(String path,
107: Revision revisionStart, Revision revisionEnd,
108: boolean stopOnCopy, boolean discoverPath, long limit)
109: throws ClientException {
110: return myDelegate.logMessages(path, revisionStart, revisionEnd,
111: stopOnCopy, discoverPath, limit);
112: }
113:
114: public long checkout(String moduleName, String destPath,
115: Revision revision, Revision pegRevision, boolean recurse,
116: boolean ignoreExternals) throws ClientException {
117: return myDelegate.checkout(moduleName, destPath, revision,
118: pegRevision, recurse, ignoreExternals);
119: }
120:
121: public long checkout(String moduleName, String destPath,
122: Revision revision, boolean recurse) throws ClientException {
123: return myDelegate.checkout(moduleName, destPath, revision,
124: recurse);
125: }
126:
127: /**
128: * @deprecated
129: */
130: public void notification(Notify notify) {
131: myDelegate.notification(notify);
132: }
133:
134: public void notification2(Notify2 notify) {
135: myDelegate.notification2(notify);
136: }
137:
138: public void commitMessageHandler(CommitMessage messageHandler) {
139: myDelegate.commitMessageHandler(messageHandler);
140: }
141:
142: public void remove(String[] path, String message, boolean force)
143: throws ClientException {
144: myDelegate.remove(path, message, force);
145: }
146:
147: public void revert(String path, boolean recurse)
148: throws ClientException {
149: myDelegate.revert(path, recurse);
150: }
151:
152: public void add(String path, boolean recurse)
153: throws ClientException {
154: myDelegate.add(path, recurse);
155: }
156:
157: public void add(String path, boolean recurse, boolean force)
158: throws ClientException {
159: myDelegate.add(path, recurse, force);
160: }
161:
162: public long update(String path, Revision revision, boolean recurse)
163: throws ClientException {
164: return myDelegate.update(path, revision, recurse);
165: }
166:
167: public long[] update(String[] path, Revision revision,
168: boolean recurse, boolean ignoreExternals)
169: throws ClientException {
170: return myDelegate.update(path, revision, recurse,
171: ignoreExternals);
172: }
173:
174: public long commit(String[] path, String message, boolean recurse)
175: throws ClientException {
176: return myDelegate.commit(path, message, recurse);
177: }
178:
179: public long commit(String[] path, String message, boolean recurse,
180: boolean noUnlock) throws ClientException {
181: return myDelegate.commit(path, message, recurse, noUnlock);
182: }
183:
184: public void copy(String srcPath, String destPath, String message,
185: Revision revision) throws ClientException {
186: myDelegate.copy(srcPath, destPath, message, revision);
187: }
188:
189: public void move(String srcPath, String destPath, String message,
190: Revision revision, boolean force) throws ClientException {
191: myDelegate.move(srcPath, destPath, message, revision, force);
192: }
193:
194: public void move(String srcPath, String destPath, String message,
195: boolean force) throws ClientException {
196: myDelegate.move(srcPath, destPath, message, force);
197: }
198:
199: public void mkdir(String[] path, String message)
200: throws ClientException {
201: myDelegate.mkdir(path, message);
202: }
203:
204: public void cleanup(String path) throws ClientException {
205: myDelegate.cleanup(path);
206: }
207:
208: public void resolved(String path, boolean recurse)
209: throws ClientException {
210: myDelegate.resolved(path, recurse);
211: }
212:
213: public long doExport(String srcPath, String destPath,
214: Revision revision, boolean force) throws ClientException {
215: return myDelegate.doExport(srcPath, destPath, revision, force);
216: }
217:
218: public long doExport(String srcPath, String destPath,
219: Revision revision, Revision pegRevision, boolean force,
220: boolean ignoreExternals, boolean recurse, String nativeEOL)
221: throws ClientException {
222: return myDelegate
223: .doExport(srcPath, destPath, revision, pegRevision,
224: force, ignoreExternals, recurse, nativeEOL);
225: }
226:
227: public long doSwitch(String path, String url, Revision revision,
228: boolean recurse) throws ClientException {
229: return myDelegate.doSwitch(path, url, revision, recurse);
230: }
231:
232: public void doImport(String path, String url, String message,
233: boolean recurse) throws ClientException {
234: myDelegate.doImport(path, url, message, recurse);
235: }
236:
237: public void merge(String path1, Revision revision1, String path2,
238: Revision revision2, String localPath, boolean force,
239: boolean recurse) throws ClientException {
240: myDelegate.merge(path1, revision1, path2, revision2, localPath,
241: force, recurse);
242: }
243:
244: public void merge(String path1, Revision revision1, String path2,
245: Revision revision2, String localPath, boolean force,
246: boolean recurse, boolean ignoreAncestry, boolean dryRun)
247: throws ClientException {
248: myDelegate.merge(path1, revision1, path2, revision2, localPath,
249: force, recurse, ignoreAncestry, dryRun);
250: }
251:
252: public void merge(String path, Revision pegRevision,
253: Revision revision1, Revision revision2, String localPath,
254: boolean force, boolean recurse, boolean ignoreAncestry,
255: boolean dryRun) throws ClientException {
256: myDelegate.merge(path, pegRevision, revision1, revision2,
257: localPath, force, recurse, ignoreAncestry, dryRun);
258: }
259:
260: public void diff(String target1, Revision revision1,
261: String target2, Revision revision2, String outFileName,
262: boolean recurse) throws ClientException {
263: myDelegate.diff(target1, revision1, target2, revision2,
264: outFileName, recurse);
265: }
266:
267: public void diff(String target1, Revision revision1,
268: String target2, Revision revision2, String outFileName,
269: boolean recurse, boolean ignoreAncestry,
270: boolean noDiffDeleted, boolean force)
271: throws ClientException {
272: myDelegate.diff(target1, revision1, target2, revision2,
273: outFileName, recurse, ignoreAncestry, noDiffDeleted,
274: force);
275: }
276:
277: public void diff(String target, Revision pegRevision,
278: Revision startRevision, Revision endRevision,
279: String outFileName, boolean recurse,
280: boolean ignoreAncestry, boolean noDiffDeleted, boolean force)
281: throws ClientException {
282: myDelegate.diff(target, pegRevision, startRevision,
283: endRevision, outFileName, recurse, ignoreAncestry,
284: noDiffDeleted, force);
285: }
286:
287: public PropertyData[] properties(String path)
288: throws ClientException {
289: return myDelegate.properties(path);
290: }
291:
292: public PropertyData[] properties(String path, Revision revision)
293: throws ClientException {
294: return myDelegate.properties(path, revision);
295: }
296:
297: public PropertyData[] properties(String path, Revision revision,
298: Revision pegRevision) throws ClientException {
299: return myDelegate.properties(path, revision, pegRevision);
300: }
301:
302: public void propertySet(String path, String name, byte[] value,
303: boolean recurse) throws ClientException {
304: myDelegate.propertySet(path, name, value, recurse);
305: }
306:
307: public void propertySet(String path, String name, byte[] value,
308: boolean recurse, boolean force) throws ClientException {
309: myDelegate.propertySet(path, name, value, recurse, force);
310: }
311:
312: public void propertySet(String path, String name, String value,
313: boolean recurse) throws ClientException {
314: myDelegate.propertySet(path, name, value, recurse);
315: }
316:
317: public void propertySet(String path, String name, String value,
318: boolean recurse, boolean force) throws ClientException {
319: myDelegate.propertySet(path, name, value, recurse, force);
320: }
321:
322: public void propertyRemove(String path, String name, boolean recurse)
323: throws ClientException {
324: myDelegate.propertyRemove(path, name, recurse);
325: }
326:
327: public void propertyCreate(String path, String name, String value,
328: boolean recurse) throws ClientException {
329: myDelegate.propertyCreate(path, name, value, recurse);
330: }
331:
332: public void propertyCreate(String path, String name, String value,
333: boolean recurse, boolean force) throws ClientException {
334: myDelegate.propertyCreate(path, name, value, recurse, force);
335: }
336:
337: public void propertyCreate(String path, String name, byte[] value,
338: boolean recurse) throws ClientException {
339: myDelegate.propertyCreate(path, name, value, recurse);
340: }
341:
342: public void propertyCreate(String path, String name, byte[] value,
343: boolean recurse, boolean force) throws ClientException {
344: myDelegate.propertyCreate(path, name, value, recurse, force);
345: }
346:
347: public PropertyData revProperty(String path, String name,
348: Revision rev) throws ClientException {
349: return myDelegate.revProperty(path, name, rev);
350: }
351:
352: public PropertyData[] revProperties(String path, Revision rev)
353: throws ClientException {
354: return myDelegate.revProperties(path, rev);
355: }
356:
357: public void setRevProperty(String path, String name, Revision rev,
358: String value, boolean force) throws ClientException {
359: myDelegate.setRevProperty(path, name, rev, value, force);
360: }
361:
362: public PropertyData propertyGet(String path, String name)
363: throws ClientException {
364: return myDelegate.propertyGet(path, name);
365: }
366:
367: public PropertyData propertyGet(String path, String name,
368: Revision revision) throws ClientException {
369: return myDelegate.propertyGet(path, name, revision);
370: }
371:
372: public PropertyData propertyGet(String path, String name,
373: Revision revision, Revision pegRevision)
374: throws ClientException {
375: return myDelegate
376: .propertyGet(path, name, revision, pegRevision);
377: }
378:
379: public byte[] fileContent(String path, Revision revision)
380: throws ClientException {
381: return myDelegate.fileContent(path, revision);
382: }
383:
384: public byte[] fileContent(String path, Revision revision,
385: Revision pegRevision) throws ClientException {
386: return myDelegate.fileContent(path, revision, pegRevision);
387: }
388:
389: public void streamFileContent(String path, Revision revision,
390: Revision pegRevision, int bufferSize, OutputStream stream)
391: throws ClientException {
392: myDelegate.streamFileContent(path, revision, pegRevision,
393: bufferSize, stream);
394: }
395:
396: public void relocate(String from, String to, String path,
397: boolean recurse) throws ClientException {
398: myDelegate.relocate(from, to, path, recurse);
399: }
400:
401: public byte[] blame(String path, Revision revisionStart,
402: Revision revisionEnd) throws ClientException {
403: return myDelegate.blame(path, revisionStart, revisionEnd);
404: }
405:
406: public void blame(String path, Revision revisionStart,
407: Revision revisionEnd, BlameCallback callback)
408: throws ClientException {
409: myDelegate.blame(path, revisionStart, revisionEnd, callback);
410: }
411:
412: public void blame(String path, Revision pegRevision,
413: Revision revisionStart, Revision revisionEnd,
414: final BlameCallback callback) throws ClientException {
415: myDelegate.blame(path, pegRevision, revisionStart, revisionEnd,
416: callback);
417: }
418:
419: public void dispose() {
420: myDelegate.dispose();
421: }
422:
423: public void setConfigDirectory(String configDir)
424: throws ClientException {
425: myDelegate.setConfigDirectory(configDir);
426: }
427:
428: public String getConfigDirectory() throws ClientException {
429: return myDelegate.getConfigDirectory();
430: }
431:
432: public void cancelOperation() throws ClientException {
433: myDelegate.cancelOperation();
434: }
435:
436: public Info info(String path) throws ClientException {
437: return myDelegate.info(path);
438: }
439:
440: public void lock(String[] path, String comment, boolean force)
441: throws ClientException {
442: myDelegate.lock(path, comment, force);
443: }
444:
445: public void unlock(String[] path, boolean force)
446: throws ClientException {
447: myDelegate.unlock(path, force);
448: }
449:
450: public Info2[] info2(String pathOrUrl, Revision revision,
451: Revision pegRevision, boolean recurse)
452: throws ClientException {
453: return myDelegate.info2(pathOrUrl, revision, pegRevision,
454: recurse);
455: }
456:
457: public String getVersionInfo(String path, String trailUrl,
458: boolean lastChanged) throws ClientException {
459: return myDelegate.getVersionInfo(path, trailUrl, lastChanged);
460: }
461:
462: public String getAdminDirectoryName() {
463: return myDelegate.getAdminDirectoryName();
464: }
465:
466: public boolean isAdminDirectory(String name) {
467: return myDelegate.isAdminDirectory(name);
468: }
469:
470: public static String version() {
471: return SVNClientImpl.version();
472: }
473:
474: public static int versionMajor() {
475: return SVNClientImpl.versionMajor();
476: }
477:
478: public static int versionMinor() {
479: return SVNClientImpl.versionMinor();
480: }
481:
482: public static int versionMicro() {
483: return SVNClientImpl.versionMicro();
484: }
485:
486: public Version getVersion() {
487: return myDelegate.getVersion();
488: }
489:
490: public static void initNative() {
491: }
492: }
|