Package org.apache.wiki.providers
Class FileSystemProvider
java.lang.Object
org.apache.wiki.providers.AbstractFileProvider
org.apache.wiki.providers.FileSystemProvider
- All Implemented Interfaces:
PageProvider,WikiProvider
Provides a simple directory based repository for Wiki pages.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wiki.providers.AbstractFileProvider
AbstractFileProvider.WikiFileFilter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAll metadata is stored in a file with this extension.Fields inherited from class org.apache.wiki.providers.AbstractFileProvider
DEFAULT_ENCODING, DEFAULT_MAX_PROPKEYLENGTH, DEFAULT_MAX_PROPLIMIT, DEFAULT_MAX_PROPVALUELENGTH, FILE_EXT, m_encoding, m_engine, MAX_PROPKEYLENGTH, MAX_PROPLIMIT, MAX_PROPVALUELENGTH, PROP_CUSTOMPROP_MAXKEYLENGTH, PROP_CUSTOMPROP_MAXLIMIT, PROP_CUSTOMPROP_MAXVALUELENGTH, PROP_PAGEDIRFields inherited from interface org.apache.wiki.api.providers.WikiProvider
LATEST_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeletePage(String pageName) getPageInfo(String page, int version) Always returns the latest version, since FileSystemProvider does not support versioning.voidvoidputPageText(Page page, String text) Methods inherited from class org.apache.wiki.providers.AbstractFileProvider
addCustomProperties, deleteVersion, findPage, findPages, getAllChangedSince, getAllPages, getCustomProperties, getPageCount, getPageText, getProviderInfo, getVersionHistory, initialize, mangleName, pageExists, pageExists, setCustomProperties, unmangleName, validateCustomPageProperties
-
Field Details
-
PROP_EXT
All metadata is stored in a file with this extension.- See Also:
-
-
Constructor Details
-
FileSystemProvider
public FileSystemProvider()
-
-
Method Details
-
putPageText
- Specified by:
putPageTextin interfacePageProvider- Overrides:
putPageTextin classAbstractFileProvider- Throws:
ProviderException
-
getPageInfo
Always returns the latest version, since FileSystemProvider does not support versioning.- Specified by:
getPageInfoin interfacePageProvider- Overrides:
getPageInfoin classAbstractFileProvider- Throws:
ProviderException
-
deletePage
- Specified by:
deletePagein interfacePageProvider- Overrides:
deletePagein classAbstractFileProvider- Throws:
ProviderException
-
movePage
- Throws:
ProviderException
-