]> git.argeo.org Git - lgpl/argeo-commons.git/blob - remote/IOManagerBean.java
Prepare next development cycle
[lgpl/argeo-commons.git] / remote / IOManagerBean.java
1 package org.argeo.jackrabbit.remote;
2
3 import java.io.IOException;
4 import java.util.ArrayList;
5 import java.util.List;
6
7 import org.apache.jackrabbit.server.io.ExportContext;
8 import org.apache.jackrabbit.server.io.IOHandler;
9 import org.apache.jackrabbit.server.io.IOManager;
10 import org.apache.jackrabbit.server.io.ImportContext;
11 import org.apache.jackrabbit.webdav.DavResource;
12 import org.apache.tika.detect.Detector;
13
14 /** {@link IOManager} that can easily be configured as a bean. */
15 public class IOManagerBean implements IOManager {
16 private Detector detector = null;
17 private List<IOHandler> ioHandlers = new ArrayList<IOHandler>();
18
19 public boolean importContent(ImportContext context, boolean isCollection)
20 throws IOException {
21 // TODO Auto-generated method stub
22 return false;
23 }
24
25 public boolean importContent(ImportContext context, DavResource resource)
26 throws IOException {
27 // TODO Auto-generated method stub
28 return false;
29 }
30
31 public boolean exportContent(ExportContext context, boolean isCollection)
32 throws IOException {
33 // TODO Auto-generated method stub
34 return false;
35 }
36
37 public boolean exportContent(ExportContext context, DavResource resource)
38 throws IOException {
39 // TODO Auto-generated method stub
40 return false;
41 }
42
43 public synchronized void addIOHandler(IOHandler ioHandler) {
44 ioHandlers.add(ioHandler);
45 }
46
47 public synchronized IOHandler[] getIOHandlers() {
48 return ioHandlers.toArray(new IOHandler[ioHandlers.size()]);
49 }
50
51 public Detector getDetector() {
52 return detector;
53 }
54
55 public void setDetector(Detector detector) {
56 this.detector = detector;
57 }
58
59 public synchronized List<IOHandler> getIoHandlers() {
60 return ioHandlers;
61 }
62
63 public synchronized void setIoHandlers(List<IOHandler> ioHandlers) {
64 this.ioHandlers = ioHandlers;
65 }
66
67 }