cli@42
|
1 |
/*
|
cli@42
|
2 |
* SONEWS News Server
|
cli@42
|
3 |
* see AUTHORS for the list of contributors
|
cli@42
|
4 |
*
|
cli@42
|
5 |
* This program is free software: you can redistribute it and/or modify
|
cli@42
|
6 |
* it under the terms of the GNU General Public License as published by
|
cli@42
|
7 |
* the Free Software Foundation, either version 3 of the License, or
|
cli@42
|
8 |
* (at your option) any later version.
|
cli@42
|
9 |
*
|
cli@42
|
10 |
* This program is distributed in the hope that it will be useful,
|
cli@42
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cli@42
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cli@42
|
13 |
* GNU General Public License for more details.
|
cli@42
|
14 |
*
|
cli@42
|
15 |
* You should have received a copy of the GNU General Public License
|
cli@42
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
cli@42
|
17 |
*/
|
cli@42
|
18 |
package org.sonews.storage.impl;
|
cli@42
|
19 |
|
cli@42
|
20 |
import java.util.List;
|
cli@42
|
21 |
import org.sonews.feed.Subscription;
|
cli@42
|
22 |
import org.sonews.storage.Article;
|
cli@42
|
23 |
import org.sonews.storage.ArticleHead;
|
cli@42
|
24 |
import org.sonews.storage.Channel;
|
cli@42
|
25 |
import org.sonews.storage.Group;
|
cli@42
|
26 |
import org.sonews.storage.Storage;
|
cli@42
|
27 |
import org.sonews.storage.StorageBackendException;
|
cli@42
|
28 |
import org.sonews.util.Pair;
|
cli@42
|
29 |
|
cli@42
|
30 |
/**
|
cli@42
|
31 |
*
|
cli@42
|
32 |
* @author Christian Lins
|
cli@42
|
33 |
* @since sonews/1.1
|
cli@42
|
34 |
*/
|
cli@42
|
35 |
public class HSQLDB implements Storage {
|
cli@42
|
36 |
|
cli@42
|
37 |
public void addArticle(Article art) throws StorageBackendException {
|
cli@42
|
38 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
39 |
}
|
cli@42
|
40 |
|
cli@42
|
41 |
public void addEvent(long timestamp, int type, long groupID) throws StorageBackendException {
|
cli@42
|
42 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
43 |
}
|
cli@42
|
44 |
|
cli@42
|
45 |
public void addGroup(String groupname, int flags) throws StorageBackendException {
|
cli@42
|
46 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
47 |
}
|
cli@42
|
48 |
|
cli@42
|
49 |
public int countArticles() throws StorageBackendException {
|
cli@42
|
50 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
51 |
}
|
cli@42
|
52 |
|
cli@42
|
53 |
public int countGroups() throws StorageBackendException {
|
cli@42
|
54 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
55 |
}
|
cli@42
|
56 |
|
cli@42
|
57 |
public void delete(String messageID) throws StorageBackendException {
|
cli@42
|
58 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
59 |
}
|
cli@42
|
60 |
|
cli@42
|
61 |
public Article getArticle(String messageID) throws StorageBackendException {
|
cli@42
|
62 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
63 |
}
|
cli@42
|
64 |
|
cli@42
|
65 |
public Article getArticle(long articleIndex, long groupID) throws StorageBackendException {
|
cli@42
|
66 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
67 |
}
|
cli@42
|
68 |
|
cli@42
|
69 |
public List<Pair<Long, String>> getArticleHeaders(Channel channel, long start, long end, String header, String pattern) throws StorageBackendException {
|
cli@42
|
70 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
71 |
}
|
cli@42
|
72 |
|
cli@42
|
73 |
public List<Pair<Long, ArticleHead>> getArticleHeads(Group group, long first, long last) throws StorageBackendException {
|
cli@42
|
74 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
75 |
}
|
cli@42
|
76 |
|
cli@42
|
77 |
public long getArticleIndex(Article art, Group group) throws StorageBackendException {
|
cli@42
|
78 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
79 |
}
|
cli@42
|
80 |
|
cli@42
|
81 |
public List<Long> getArticleNumbers(long groupID) throws StorageBackendException {
|
cli@42
|
82 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
83 |
}
|
cli@42
|
84 |
|
cli@42
|
85 |
public String getConfigValue(String key) throws StorageBackendException {
|
cli@42
|
86 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
87 |
}
|
cli@42
|
88 |
|
cli@42
|
89 |
public int getEventsCount(int eventType, long startTimestamp, long endTimestamp, Channel channel) throws StorageBackendException {
|
cli@42
|
90 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
91 |
}
|
cli@42
|
92 |
|
cli@42
|
93 |
public double getEventsPerHour(int key, long gid) throws StorageBackendException {
|
cli@42
|
94 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
95 |
}
|
cli@42
|
96 |
|
cli@42
|
97 |
public int getFirstArticleNumber(Group group) throws StorageBackendException {
|
cli@42
|
98 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
99 |
}
|
cli@42
|
100 |
|
cli@42
|
101 |
public Group getGroup(String name) throws StorageBackendException {
|
cli@42
|
102 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
103 |
}
|
cli@42
|
104 |
|
cli@42
|
105 |
public List<Channel> getGroups() throws StorageBackendException {
|
cli@42
|
106 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
107 |
}
|
cli@42
|
108 |
|
cli@42
|
109 |
public List<String> getGroupsForList(String listAddress) throws StorageBackendException {
|
cli@42
|
110 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
111 |
}
|
cli@42
|
112 |
|
cli@42
|
113 |
public int getLastArticleNumber(Group group) throws StorageBackendException {
|
cli@42
|
114 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
115 |
}
|
cli@42
|
116 |
|
cli@42
|
117 |
public List<String> getListsForGroup(String groupname) throws StorageBackendException {
|
cli@42
|
118 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
119 |
}
|
cli@42
|
120 |
|
cli@42
|
121 |
public String getOldestArticle() throws StorageBackendException {
|
cli@42
|
122 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
123 |
}
|
cli@42
|
124 |
|
cli@42
|
125 |
public int getPostingsCount(String groupname) throws StorageBackendException {
|
cli@42
|
126 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
127 |
}
|
cli@42
|
128 |
|
cli@42
|
129 |
public List<Subscription> getSubscriptions(int type) throws StorageBackendException {
|
cli@42
|
130 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
131 |
}
|
cli@42
|
132 |
|
cli@42
|
133 |
public boolean isArticleExisting(String messageID) throws StorageBackendException {
|
cli@42
|
134 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
135 |
}
|
cli@42
|
136 |
|
cli@42
|
137 |
public boolean isGroupExisting(String groupname) throws StorageBackendException {
|
cli@42
|
138 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
139 |
}
|
cli@42
|
140 |
|
cli@42
|
141 |
public void purgeGroup(Group group) throws StorageBackendException {
|
cli@42
|
142 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
143 |
}
|
cli@42
|
144 |
|
cli@42
|
145 |
public void setConfigValue(String key, String value) throws StorageBackendException {
|
cli@42
|
146 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
147 |
}
|
cli@42
|
148 |
|
cli@42
|
149 |
public boolean update(Article article) throws StorageBackendException {
|
cli@42
|
150 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
151 |
}
|
cli@42
|
152 |
|
cli@42
|
153 |
public boolean update(Group group) throws StorageBackendException {
|
cli@42
|
154 |
throw new UnsupportedOperationException("Not supported yet.");
|
cli@42
|
155 |
}
|
cli@42
|
156 |
|
cli@42
|
157 |
}
|