public class FileSystemProvider extends AbstractFileProvider
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.
AbstractFileProvider.WikiFileFilter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_EXT
All metadata is stored in a file with this extension.
|
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_PAGEDIRLATEST_VERSION| Constructor and Description |
|---|
FileSystemProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
deletePage(java.lang.String pageName) |
Page |
getPageInfo(java.lang.String page,
int version)
Always returns the latest version, since FileSystemProvider
does not support versioning.
|
void |
movePage(java.lang.String from,
java.lang.String to) |
void |
putPageText(Page page,
java.lang.String text) |
addCustomProperties, deleteVersion, findPage, findPages, getAllChangedSince, getAllPages, getCustomProperties, getPageCount, getPageText, getProviderInfo, getVersionHistory, initialize, mangleName, pageExists, pageExists, setCustomProperties, unmangleName, validateCustomPagePropertiespublic static final java.lang.String PROP_EXT
public FileSystemProvider()
public void putPageText(Page page, java.lang.String text) throws ProviderException
putPageText in interface PageProviderputPageText in class AbstractFileProviderProviderExceptionpublic Page getPageInfo(java.lang.String page, int version) throws ProviderException
getPageInfo in interface PageProvidergetPageInfo in class AbstractFileProviderProviderExceptionpublic void deletePage(java.lang.String pageName) throws ProviderException
deletePage in interface PageProviderdeletePage in class AbstractFileProviderProviderExceptionpublic void movePage(java.lang.String from, java.lang.String to) throws ProviderException
ProviderExceptionCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.