| java.lang.Object vqwiki.file.FileHandler
Method Summary | |
public void | addReadOnlyTopic(String virtualWiki, String topicName) | public void | addVirtualWiki(String virtualWiki) | public void | createDefaults(Locale locale) | public boolean | exists(String virtualWiki, String topicName) | public static String | fileBase(String virtualWiki) | public List | getLockList(String virtualWiki) | public static File | getPathFor(String virtualWiki, String dir, String fileName) | public static File | getPathFor(String virtualWiki, String fileName) | public Collection | getReadOnlyTopics(String virtualWiki) | public String | getTemplate(String virtualWiki, String templateName) | public Collection | getTemplateNames(String virtualWiki) | public Collection | getVirtualWikiList() | public synchronized boolean | holdsLock(String virtualWiki, String topicName, String key) | public void | initialise(Locale locale) | public boolean | isTopicReadOnly(String virtualWiki, String topicName) Makes check to see if the specified topic is read-only. | protected synchronized void | loadReadOnlyTopics(String virtualWiki) | public synchronized boolean | lockTopic(String virtualWiki, String topicName, String key) | public Collection | purgeDeletes(String virtualWiki) | public void | purgeVersionsOlderThan(String virtualWiki, DBDate date) | public String | read(String virtualWiki, String topicName) | public StringBuffer | read(File file) | public void | removeReadOnlyTopic(String virtualWiki, String topicName) | public void | saveAsTemplate(String virtualWiki, String templateName, String contents) | protected synchronized void | saveReadOnlyTopics(String virtualWiki) | public synchronized void | unlockTopic(String virtualWiki, String topicName) | public synchronized void | write(String virtualWiki, String contents, boolean convertTabs, String topicName) |
VIRTUAL_WIKI_LIST | final public static String VIRTUAL_WIKI_LIST(Code) | | |
readOnlyTopics | protected Map readOnlyTopics(Code) | | |
FileHandler | public FileHandler()(Code) | | |
createDefaults | public void createDefaults(Locale locale)(Code) | | Set up the file system and default topics if necessary
|
isTopicReadOnly | public boolean isTopicReadOnly(String virtualWiki, String topicName) throws Exception(Code) | | Makes check to see if the specified topic is read-only. The check is case-insensitive.
Parameters: virtualWiki - the virtual wiki it appears in Parameters: topicName - the name of the topic throws: Exception - |
loadReadOnlyTopics | protected synchronized void loadReadOnlyTopics(String virtualWiki)(Code) | | Read the read-only topics from disk
|
saveReadOnlyTopics | protected synchronized void saveReadOnlyTopics(String virtualWiki) throws IOException(Code) | | Write the read-only list out to disk
|
write | public synchronized void write(String virtualWiki, String contents, boolean convertTabs, String topicName) throws Exception(Code) | | Write contents to file
Write to version file if versioning is on
|
|
|