3 * see AUTHORS for the list of contributors
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package org.sonews.storage.impl;
20 import java.util.List;
21 import org.sonews.feed.Subscription;
22 import org.sonews.storage.Article;
23 import org.sonews.storage.ArticleHead;
24 import org.sonews.storage.Channel;
25 import org.sonews.storage.Group;
26 import org.sonews.storage.Storage;
27 import org.sonews.storage.StorageBackendException;
28 import org.sonews.util.Pair;
32 * @author Christian Lins
35 public class HSQLDB implements Storage {
37 public void addArticle(Article art) throws StorageBackendException {
38 throw new UnsupportedOperationException("Not supported yet.");
41 public void addEvent(long timestamp, int type, long groupID) throws StorageBackendException {
42 throw new UnsupportedOperationException("Not supported yet.");
45 public void addGroup(String groupname, int flags) throws StorageBackendException {
46 throw new UnsupportedOperationException("Not supported yet.");
49 public int countArticles() throws StorageBackendException {
50 throw new UnsupportedOperationException("Not supported yet.");
53 public int countGroups() throws StorageBackendException {
54 throw new UnsupportedOperationException("Not supported yet.");
57 public void delete(String messageID) throws StorageBackendException {
58 throw new UnsupportedOperationException("Not supported yet.");
61 public Article getArticle(String messageID) throws StorageBackendException {
62 throw new UnsupportedOperationException("Not supported yet.");
65 public Article getArticle(long articleIndex, long groupID) throws StorageBackendException {
66 throw new UnsupportedOperationException("Not supported yet.");
69 public List<Pair<Long, String>> getArticleHeaders(Channel channel, long start, long end, String header, String pattern) throws StorageBackendException {
70 throw new UnsupportedOperationException("Not supported yet.");
73 public List<Pair<Long, ArticleHead>> getArticleHeads(Group group, long first, long last) throws StorageBackendException {
74 throw new UnsupportedOperationException("Not supported yet.");
77 public long getArticleIndex(Article art, Group group) throws StorageBackendException {
78 throw new UnsupportedOperationException("Not supported yet.");
81 public List<Long> getArticleNumbers(long groupID) throws StorageBackendException {
82 throw new UnsupportedOperationException("Not supported yet.");
85 public String getConfigValue(String key) throws StorageBackendException {
86 throw new UnsupportedOperationException("Not supported yet.");
89 public int getEventsCount(int eventType, long startTimestamp, long endTimestamp, Channel channel) throws StorageBackendException {
90 throw new UnsupportedOperationException("Not supported yet.");
93 public double getEventsPerHour(int key, long gid) throws StorageBackendException {
94 throw new UnsupportedOperationException("Not supported yet.");
97 public int getFirstArticleNumber(Group group) throws StorageBackendException {
98 throw new UnsupportedOperationException("Not supported yet.");
101 public Group getGroup(String name) throws StorageBackendException {
102 throw new UnsupportedOperationException("Not supported yet.");
105 public List<Channel> getGroups() throws StorageBackendException {
106 throw new UnsupportedOperationException("Not supported yet.");
109 public List<String> getGroupsForList(String listAddress) throws StorageBackendException {
110 throw new UnsupportedOperationException("Not supported yet.");
113 public int getLastArticleNumber(Group group) throws StorageBackendException {
114 throw new UnsupportedOperationException("Not supported yet.");
117 public List<String> getListsForGroup(String groupname) throws StorageBackendException {
118 throw new UnsupportedOperationException("Not supported yet.");
121 public String getOldestArticle() throws StorageBackendException {
122 throw new UnsupportedOperationException("Not supported yet.");
125 public int getPostingsCount(String groupname) throws StorageBackendException {
126 throw new UnsupportedOperationException("Not supported yet.");
129 public List<Subscription> getSubscriptions(int type) throws StorageBackendException {
130 throw new UnsupportedOperationException("Not supported yet.");
133 public boolean isArticleExisting(String messageID) throws StorageBackendException {
134 throw new UnsupportedOperationException("Not supported yet.");
137 public boolean isGroupExisting(String groupname) throws StorageBackendException {
138 throw new UnsupportedOperationException("Not supported yet.");
141 public void purgeGroup(Group group) throws StorageBackendException {
142 throw new UnsupportedOperationException("Not supported yet.");
145 public void setConfigValue(String key, String value) throws StorageBackendException {
146 throw new UnsupportedOperationException("Not supported yet.");
149 public boolean update(Article article) throws StorageBackendException {
150 throw new UnsupportedOperationException("Not supported yet.");
153 public boolean update(Group group) throws StorageBackendException {
154 throw new UnsupportedOperationException("Not supported yet.");