Importer.java
2.25 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
68
69
70
71
72
73
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.jcr.Node
* javax.jcr.RepositoryException
* javax.jcr.Session
* org.apache.jackrabbit.vault.fs.config.ConfigurationException
* org.apache.jackrabbit.vault.fs.io.Archive
* org.apache.jackrabbit.vault.fs.io.ImportOptions
* org.apache.jackrabbit.vault.fs.io.Importer
*/
package com.day.jcr.vault.fs.io;
import com.day.jcr.vault.fs.impl.JrVltArchive;
import com.day.jcr.vault.fs.io.Archive;
import com.day.jcr.vault.fs.io.ImportOptions;
import com.day.jcr.vault.fs.io.JrVltImportOptions;
import java.io.IOException;
import java.util.List;
import javax.jcr.Node;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import org.apache.jackrabbit.vault.fs.config.ConfigurationException;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class Importer {
private org.apache.jackrabbit.vault.fs.io.Importer importer;
public Importer() {
this.importer = new org.apache.jackrabbit.vault.fs.io.Importer();
}
public Importer(ImportOptions opts) {
this.importer = new org.apache.jackrabbit.vault.fs.io.Importer((org.apache.jackrabbit.vault.fs.io.ImportOptions)opts.toJrVltImportOptions());
}
public ImportOptions getOptions() {
return ImportOptions.create(this.importer.getOptions());
}
public List<String> getSubPackages() {
return this.importer.getSubPackages();
}
public void setDebugFailAfterSave(int failAfterEach) {
this.importer.setDebugFailAfterSave(failAfterEach);
}
public void run(Archive archive, Node importRoot) throws IOException, RepositoryException, com.day.jcr.vault.fs.config.ConfigurationException {
try {
this.importer.run(JrVltArchive.create(archive), importRoot);
}
catch (ConfigurationException e) {
throw new com.day.jcr.vault.fs.config.ConfigurationException((Throwable)e);
}
}
public boolean hasErrors() {
return this.importer.hasErrors();
}
public void checkinNodes(Session session) {
this.importer.checkinNodes(session);
}
public void applyMemberships(Session session) {
this.importer.applyMemberships(session);
}
}