|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
ページ管理クラスのインタフェース.
| メソッドの概要 | |
void |
addPageChangeListener(PageChangeListener listener)
DOCUMENT ME! |
void |
attachFile(java.lang.String page,
java.lang.String fileName,
org.apache.struts.upload.FormFile uploadFile,
boolean overwrite)
ページにファイルを添付する |
void |
backupPages()
ページバックアップ |
void |
backupPages(java.io.File path)
ページバックアップ |
boolean |
checkLockPassword(cx.ath.kgslab.wiki.pages.Page page,
java.lang.String password)
指定のページのパスワードをチェックする。 |
boolean |
checkPassword(cx.ath.kgslab.wiki.pages.Page page,
java.lang.String password)
指定のページのパスワードをチェックする。 |
boolean |
checkPassword(java.lang.String page,
java.lang.String password)
指定のページのパスワードをチェックする。 |
void |
deletePage(cx.ath.kgslab.wiki.pages.Page page)
ページ削除 |
void |
deletePage(java.lang.String name)
ページ削除 |
java.lang.String |
encode(java.lang.String text)
ページ名をURLEncodeし、%を取り除くことで、 ASCII範囲内のファイル名を生成する。 |
java.lang.StringBuffer |
encode(java.lang.String text,
java.lang.StringBuffer buf)
ページ名をURLEncodeし、%を取り除くことで、 ASCII範囲内のファイル名を生成する。 |
java.lang.String |
encodePath(java.lang.String path)
PathをURLEncodeし、%を取り除くことで、 ASCII範囲内のファイル名を生成する。 |
java.lang.String |
encodePath(java.lang.String path,
java.lang.String page)
PathをURLEncodeし、%を取り除くことで、 ASCII範囲内のファイル名を生成する。 |
java.lang.StringBuffer |
encodePath(java.lang.String path,
java.lang.StringBuffer buf)
PathをURLEncodeし、%を取り除くことで、 ASCII範囲内のファイル名を生成する。 |
boolean |
existsPage(java.lang.String name)
ページの有無確認 |
boolean |
existsPage(java.lang.String path,
java.lang.String name)
ページの有無確認 |
cx.ath.kgslab.wiki.struts.form.AttachFile[] |
getAttachFiles(java.lang.String page)
ページに添付されたファイルの情報を取得する |
JaJaWikiConfig |
getConfig()
JaJaWiki設定情報 |
java.util.List |
getModifiedPageList(int count)
最近更新されたページのリストを取得する。 |
cx.ath.kgslab.wiki.pages.Page |
getPage(java.lang.String name)
ページ取得 |
java.util.List |
getPageList()
全ページのリストを取得する。 |
void |
putPage(cx.ath.kgslab.wiki.pages.Page page)
ページ追加/更新 |
void |
putPage(cx.ath.kgslab.wiki.pages.Page page,
boolean modified)
ページ追加/更新 |
void |
removeFile(java.lang.String page)
ページに添付されたファイルを全て削除する |
void |
removeFile(java.lang.String page,
java.lang.String[] files)
ページに添付されたファイルを削除する |
void |
renamePage(java.lang.String srcName,
java.lang.String dstName)
ページ名変更 |
void |
setConfig(JaJaWikiConfig config)
JaJaWiki設定情報 |
boolean |
useMasterPassword()
マスターパスワードが設定されているか |
| メソッドの詳細 |
public boolean existsPage(java.lang.String name)
throws cx.ath.kgslab.wiki.exception.PageReadException
name - 対象ページ名
cx.ath.kgslab.wiki.exception.PageReadException
public boolean existsPage(java.lang.String path,
java.lang.String name)
throws cx.ath.kgslab.wiki.exception.PageReadException
path - ページパスname - 対象ページ名
cx.ath.kgslab.wiki.exception.PageReadException
public void backupPages()
throws cx.ath.kgslab.wiki.exception.PageReadException,
cx.ath.kgslab.wiki.exception.PageWriteException
cx.ath.kgslab.wiki.exception.PageReadException
cx.ath.kgslab.wiki.exception.PageWriteException
public void backupPages(java.io.File path)
throws cx.ath.kgslab.wiki.exception.PageReadException,
cx.ath.kgslab.wiki.exception.PageWriteException
path - バックアップファイルの出力先
cx.ath.kgslab.wiki.exception.PageReadException
cx.ath.kgslab.wiki.exception.PageWriteException
public java.util.List getModifiedPageList(int count)
throws cx.ath.kgslab.wiki.exception.PageReadException
count - 件数
cx.ath.kgslab.wiki.exception.PageReadException
public java.util.List getPageList()
throws cx.ath.kgslab.wiki.exception.PageReadException
cx.ath.kgslab.wiki.exception.PageReadException
public cx.ath.kgslab.wiki.pages.Page getPage(java.lang.String name)
throws cx.ath.kgslab.wiki.exception.PageReadException
name - ページ名
cx.ath.kgslab.wiki.exception.PageReadExceptionMap.get(java.lang.Object)
public void putPage(cx.ath.kgslab.wiki.pages.Page page)
throws cx.ath.kgslab.wiki.exception.PageWriteException
page - ページ情報
cx.ath.kgslab.wiki.exception.PageWriteExceptionMap.put(java.lang.Object, java.lang.Object)
public void putPage(cx.ath.kgslab.wiki.pages.Page page,
boolean modified)
throws cx.ath.kgslab.wiki.exception.PageWriteException
page - ページ情報modified - ページ内容に更新を行ったかを示すフラグ
cx.ath.kgslab.wiki.exception.PageWriteExceptionMap.put(java.lang.Object, java.lang.Object)
public void deletePage(java.lang.String name)
throws cx.ath.kgslab.wiki.exception.PageWriteException
name - ページ名
cx.ath.kgslab.wiki.exception.PageWriteException
public void deletePage(cx.ath.kgslab.wiki.pages.Page page)
throws cx.ath.kgslab.wiki.exception.PageWriteException
page - ページ
cx.ath.kgslab.wiki.exception.PageWriteException
public void renamePage(java.lang.String srcName,
java.lang.String dstName)
throws cx.ath.kgslab.wiki.exception.PageReadException,
cx.ath.kgslab.wiki.exception.PageWriteException,
cx.ath.kgslab.wiki.exception.PageNotFoundException,
cx.ath.kgslab.wiki.exception.PageAlreadyExistsException,
cx.ath.kgslab.wiki.exception.PathNotFoundException
srcName - 変更前ページ名dstName - 変更後ページ名
cx.ath.kgslab.wiki.exception.PageReadException
cx.ath.kgslab.wiki.exception.PageWriteException
cx.ath.kgslab.wiki.exception.PageNotFoundException
cx.ath.kgslab.wiki.exception.PageAlreadyExistsException
cx.ath.kgslab.wiki.exception.PathNotFoundException
public void attachFile(java.lang.String page,
java.lang.String fileName,
org.apache.struts.upload.FormFile uploadFile,
boolean overwrite)
throws cx.ath.kgslab.wiki.exception.AttachFileOutputException
page - ページfileName - ファイル名uploadFile - ファイルの内容overwrite - オーバライドフラグ
cx.ath.kgslab.wiki.exception.AttachFileOutputException
public void removeFile(java.lang.String page,
java.lang.String[] files)
throws cx.ath.kgslab.wiki.exception.AttachFileOutputException
page - ページfiles - ファイル名
cx.ath.kgslab.wiki.exception.AttachFileOutputException
public cx.ath.kgslab.wiki.struts.form.AttachFile[] getAttachFiles(java.lang.String page)
throws cx.ath.kgslab.wiki.exception.AttachFileOutputException
page - ページ
cx.ath.kgslab.wiki.exception.AttachFileOutputException
public void removeFile(java.lang.String page)
throws cx.ath.kgslab.wiki.exception.AttachFileOutputException
page - ページ
cx.ath.kgslab.wiki.exception.AttachFileOutputExceptionpublic boolean useMasterPassword()
public boolean checkPassword(java.lang.String page,
java.lang.String password)
throws cx.ath.kgslab.wiki.exception.PageReadException
page - password -
cx.ath.kgslab.wiki.exception.PageReadException
public boolean checkPassword(cx.ath.kgslab.wiki.pages.Page page,
java.lang.String password)
page - password -
public boolean checkLockPassword(cx.ath.kgslab.wiki.pages.Page page,
java.lang.String password)
page - password -
public java.lang.StringBuffer encode(java.lang.String text,
java.lang.StringBuffer buf)
throws java.io.UnsupportedEncodingException
text - エンコード対象文字列buf - 格納先StringBuffer
java.io.UnsupportedEncodingException
public java.lang.StringBuffer encodePath(java.lang.String path,
java.lang.StringBuffer buf)
throws java.io.UnsupportedEncodingException
path - エンコード対象文字列buf - 格納先StringBuffer
java.io.UnsupportedEncodingException
public java.lang.String encode(java.lang.String text)
throws java.io.UnsupportedEncodingException
text - エンコード対象文字列
java.io.UnsupportedEncodingException
public java.lang.String encodePath(java.lang.String path)
throws java.io.UnsupportedEncodingException
path - エンコード対象文字列
java.io.UnsupportedEncodingException
public java.lang.String encodePath(java.lang.String path,
java.lang.String page)
throws java.io.UnsupportedEncodingException
path - ページパスpage - ページ名
java.io.UnsupportedEncodingExceptionpublic JaJaWikiConfig getConfig()
public void setConfig(JaJaWikiConfig config)
config - JaJaWiki設定情報public void addPageChangeListener(PageChangeListener listener)
listener - DOCUMENT ME!
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||