01: package org.drools.scm;
02:
03: import java.io.OutputStream;
04: import java.util.List;
05:
06: import org.tmatesoft.svn.core.SVNException;
07:
08: public interface ScmActionFactory {
09: public long getLatestRevision() throws Exception;
10:
11: public ScmAction addFile(String path, String file, byte[] content);
12:
13: public ScmAction addDirectory(String root, String path);
14:
15: public ScmAction updateFile(String path, String file,
16: byte[] oldContent, byte[] newContent);
17:
18: public ScmAction copyFile(String path, String file, String newPath,
19: String newFile, long revision);
20:
21: public ScmAction copyDirectory(String path, String newPath,
22: long revision);
23:
24: public ScmAction moveFile(String path, String file, String newPath,
25: String newFile, long revision);
26:
27: public ScmAction moveDirectory(String path, String newPath,
28: long revision);
29:
30: public ScmAction deleteFile(String path, String file);
31:
32: public ScmAction deleteDirectory(String path);
33:
34: public void execute(ScmAction action, String message)
35: throws Exception;
36:
37: public void getContent(String path, String file, long revision,
38: OutputStream os) throws Exception;
39:
40: public List listEntries(String path) throws Exception;
41:
42: }
|