crisp.wbwiki.server
Interface WikiDb

All Known Implementing Classes:
WikiDbTextFile

public interface WikiDb

Something that knows how to store and load wiki data persistently. Currently supports only single page text-only wikis :o)

Author:
Henrik Kniberg

Method Summary
 int getCurrentVersion()
           
 Page loadPage()
          Never null.
 int savePage(String content)
          Null will be treated as an empty page.
 

Method Detail

loadPage

Page loadPage()
Never null. May be empty though.


savePage

int savePage(String content)
Null will be treated as an empty page.

Returns:
the new version

getCurrentVersion

int getCurrentVersion()


Copyright © 2006. All Rights Reserved.