01: package ru.emdev.EmForge.wiki;
02:
03: import java.io.IOException;
04: import java.io.InputStream;
05: import java.util.ArrayList;
06: import java.util.Collection;
07: import java.util.Date;
08: import java.util.List;
09: import java.util.Properties;
10:
11: import com.ecyrd.jspwiki.NoRequiredPropertyException;
12: import com.ecyrd.jspwiki.QueryItem;
13: import com.ecyrd.jspwiki.WikiEngine;
14: import com.ecyrd.jspwiki.WikiPage;
15: import com.ecyrd.jspwiki.attachment.Attachment;
16: import com.ecyrd.jspwiki.providers.ProviderException;
17: import com.ecyrd.jspwiki.providers.WikiAttachmentProvider;
18:
19: public class DummyAttachmentsProvider implements WikiAttachmentProvider {
20:
21: public void putAttachmentData(Attachment att, InputStream data)
22: throws ProviderException, IOException {
23: // nothing to do
24:
25: }
26:
27: public InputStream getAttachmentData(Attachment att)
28: throws ProviderException, IOException {
29: return null;
30: }
31:
32: public Collection listAttachments(WikiPage page)
33: throws ProviderException {
34: return new ArrayList();
35: }
36:
37: public Collection findAttachments(QueryItem[] query) {
38: return new ArrayList();
39: }
40:
41: public List listAllChanged(Date timestamp) throws ProviderException {
42: return new ArrayList();
43: }
44:
45: public Attachment getAttachmentInfo(WikiPage page, String name,
46: int version) throws ProviderException {
47: return null;
48: }
49:
50: public List getVersionHistory(Attachment att) {
51: return new ArrayList();
52: }
53:
54: public void deleteVersion(Attachment att) throws ProviderException {
55: }
56:
57: public void deleteAttachment(Attachment att)
58: throws ProviderException {
59: }
60:
61: public void moveAttachmentsForPage(String oldParent,
62: String newParent) throws ProviderException {
63: }
64:
65: public void initialize(WikiEngine engine, Properties properties)
66: throws NoRequiredPropertyException, IOException {
67: }
68:
69: public String getProviderInfo() {
70: return "Dummy attachments provider for later initialization via Spring";
71: }
72:
73: }
|