VaultFsTransaction.java
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.jcr.RepositoryException
*/
package com.day.jcr.vault.fs.api;
import com.day.jcr.vault.fs.api.VaultFile;
import com.day.jcr.vault.fs.api.VaultFileOutput;
import com.day.jcr.vault.fs.api.VaultInputSource;
import java.io.IOException;
import java.util.Collection;
import javax.jcr.RepositoryException;
public interface VaultFsTransaction {
public boolean isVerbose();
public void setVerbose(boolean var1);
public void delete(VaultFile var1) throws IOException;
public void modify(VaultFile var1, VaultInputSource var2) throws IOException;
public VaultFileOutput add(String var1, VaultInputSource var2) throws IOException, RepositoryException;
public void mkdir(String var1) throws IOException, RepositoryException;
public Collection<Info> commit() throws RepositoryException, IOException;
public static class Info {
private final Type type;
private String path;
public Info(Type type, String path) {
this.type = type;
this.path = path;
}
public String getPath() {
return this.path;
}
public Type getType() {
return this.type;
}
}
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public static enum Type {
ADDED,
ADDED_X,
DELETED,
MODIFIED,
MOVED,
MKDIR,
ERROR;
private Type() {
}
}
}