| java.lang.Object com.ecyrd.jspwiki.providers.AbstractFileProvider com.ecyrd.jspwiki.providers.VersioningFileProvider
VersioningFileProvider | public class VersioningFileProvider extends AbstractFileProvider implements VersioningProvider(Code) | | Provides a simple directory based repository for Wiki pages.
Pages are held in a directory structure:
Main.txt
Foobar.txt
OLD/
Main/
1.txt
2.txt
page.properties
Foobar/
page.properties
In this case, "Main" has three versions, and "Foobar" just one version.
The properties file contains the necessary metainformation (such as author)
information of the page. DO NOT MESS WITH IT!
All files have ".txt" appended to make life easier for those
who insist on using Windows or other software which makes assumptions
on the files contents based on its name.
author: Janne Jalkanen |
deletePage | public void deletePage(String page) throws ProviderException(Code) | | Removes the relevant page directory under "OLD" -directory as well,
but does not remove any extra subdirectories from it. It will only
touch those files that it thinks to be WikiPages.
|
pageExists | public boolean pageExists(String pageName, int version)(Code) | | |
|
|