01: /*
02: Very Quick Wiki - WikiWikiWeb clone
03: Copyright (C) 2001-2002 Gareth Cronin
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the latest version of the GNU Lesser General
07: Public License as published by the Free Software Foundation;
08:
09: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU Lesser General Public License for more details.
13:
14: You should have received a copy of the GNU Lesser General Public License
15: along with this program (gpl.txt); if not, write to the Free Software
16: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17:
18: */
19: package vqwiki;
20:
21: import javax.servlet.http.HttpServletRequest;
22: import java.util.Collection;
23: import java.util.Date;
24:
25: public interface ChangeLog {
26:
27: /**
28: * Logs a change of a topic in the persistence.
29: * @param change The change made in the wiki.
30: * @param request the servletrequest to get some request specific config.
31: * @throws Exception Throws exception if something goes wrong.
32: */
33: public void logChange(Change change, HttpServletRequest request)
34: throws Exception;
35:
36: /**
37: * Removes some changes along with the topic name. This happens if someone
38: * purges topics from the vqwiki.
39: * @param virtualwiki the virtual wiki to delete the topics.
40: * @param cl a collection of the topics to be deleted.
41: * @throws Exception
42: */
43: public void removeChanges(String virtualwiki, Collection cl)
44: throws Exception;
45:
46: /**
47: * Gets the recent changes from the persistence.
48: * @param virtualWiki the virtual wiki to get the recent changes.
49: * @param d the date of the recent changes.
50: * @return A collection of changes
51: * @throws Exception
52: * @see vqwiki.Change
53: */
54: public Collection getChanges(String virtualWiki, Date d)
55: throws Exception;
56: }
|