| java.lang.Object vqwiki.Topic
Topic | public class Topic (Code) | | Class, which represents one topic
author: $author$ version: $Revision: 644 $ |
Constructor Summary | |
public | Topic(String topicName) Creates a new Topic object. |
contents | protected String contents(Code) | | Contents of this topic
|
lastRevisionDate | protected Date lastRevisionDate(Code) | | Last modification date of this topic
|
revision | protected int revision(Code) | | revision number of this topic
|
topicName | protected String topicName(Code) | | Name of this topic
|
Topic | public Topic(String topicName) throws Exception(Code) | | Creates a new Topic object.
Parameters: topicName - The name of this topic throws: Exception - If the topic cannot be retrieved |
getDiff | public String getDiff(String virtualWiki, int firstVersion, int secondVersion, boolean useHtml) throws Exception(Code) | | Get a diff for two arbitrary versions of a topic
Parameters: virtualWiki - the virtual wiki Parameters: firstVersion - the first version number Parameters: secondVersion - the second version number Parameters: useHtml - Set to true if the diff should be returned as HTML.Returns the diff as text otherwise. |
getMostRecentAuthor | public String getMostRecentAuthor(String virtualWiki) throws Exception(Code) | | Find the most recent author.
Parameters: virtualWiki - The virtualWiki, which contains the topic the author, who editied the last revision, or null if versioning is off |
getMostRecentRevisionDate | public Date getMostRecentRevisionDate(String virtualWiki) throws Exception(Code) | | Find the most recent revision before the current
Parameters: virtualWiki - The virtualWiki, which contains the topic the last revision date, or null if versioning is off |
getRevision | public int getRevision(String virtualWiki) throws Exception(Code) | | Find the revision number.
Parameters: virtualWiki - The virtualWiki, which contains the topic the revision number |
isReadOnlyTopic | public boolean isReadOnlyTopic(String virtualWiki) throws Exception(Code) | | Return whether a topic is read-only
Parameters: virtualWiki - The virtualWiki, which contains the topic |
makeTopicReadOnly | public synchronized void makeTopicReadOnly(String virtualWiki) throws Exception(Code) | | Make a topic read-only
Parameters: virtualWiki - The virtualWiki, which contains the topic |
makeTopicWritable | public synchronized void makeTopicWritable(String virtualWiki) throws Exception(Code) | | Make a previously read-only topic writable
Parameters: virtualWiki - The virtualWiki, which contains the topic |
mostRecentDiff | public String mostRecentDiff(String virtualWiki, boolean useHtml) throws Exception(Code) | | Return a diff for the current vs the most recent revision before it.
Parameters: virtualWiki - The virtualWiki, which contains the topic Parameters: useHtml - Set to true if the diff should be returned as HTML.Returns the diff as text otherwise. a diff to the last revision |
|
|