| java.lang.Object vqwiki.file.FileVersionManager
FileVersionManager | public class FileVersionManager implements VersionManager(Code) | | Very Quick Wiki - WikiWikiWeb clone
Copyright (C) 2001-2002 Gareth Cronin
FileVersionManager is the VQWiki native file system implementation of
the version manager for looking after the version trail that is used
in diffs etc.
This program is free software; you can redistribute it and/or modify
it under the terms of the latest version of the GNU Lesser General
Public License as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program (gpl.txt); if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Method Summary | |
public void | addVersion(String virtualWiki, String topicName, String contents, Date at) | public String | diff(String virtualWiki, String topicName, int revision1, int revision2, boolean useHtml) | public List | getAllVersions(String virtualWiki, String topicName) | public static VersionManager | getInstance() | public int | getNumberOfVersions(String virtualWiki, String topicName) | public TopicVersion | getTopicVersion(String virtualWiki, String topicName, int versionNumber) | public String | getVersionContents(String virtualWiki, String topicName, int versionNumber) | public Date | lastRevisionDate(String virtualWiki, String topicName) | public synchronized String | lookupLastRevision(String virtualWiki, String topicName) | public synchronized Object | lookupRevision(String virtualWiki, String topicName, int version) |
getAllVersions | public List getAllVersions(String virtualWiki, String topicName) throws Exception(Code) | | Returns all versions of the given topic in reverse chronological order
Parameters: virtualWiki - Parameters: topicName - throws: Exception - |
lookupRevision | public synchronized Object lookupRevision(String virtualWiki, String topicName, int version) throws Exception(Code) | | Revision 0 is the most recent revision
|
|
|