org.seasar.tuigwaa.cms.core.wiki
インタフェース WikiContext

既知の実装クラスの一覧:
WikiContextImpl

public interface WikiContext

Defines various platform dependent functions. This is mainly used from plugin, like to get creation page URL etc.

作成者:
someda

メソッドの概要
 URL getAttachedFileURL(String pagename, String filename, CmsRequest request)
          Provides URL for given attachment filename.
 List getAttachmentFileList(CmsRequest request, String pagePath)
           
 URL getCompleteURL(String filepath, CmsRequest request)
           
 URL getCreatePageURL(String pagename, CmsRequest request)
          Provides [new page] URL for given pagename.
 List getDirectoryList(CmsRequest request, String folder)
           
 URL getEditPageURL(String pagename, CmsRequest request)
           
 URL getPluginProxyURL(String pluginname, CmsRequest request)
           
 List getRecentList(CmsRequest request, int size)
          Provides page list which is recently modified.
 List getRecursiveDirectoryList(CmsRequest request, String folder)
           
 Resource getResource(CmsRequest request, String pagePath)
           
 List getResourceList(CmsRequest request, String path)
           
 URL getURLByName(String pagename, CmsRequest request)
          Provides URL of given pagename.
 URL getURLByName(String pagename, CmsRequest request, Map params)
          Provides URL of given pagename and parameters.
 boolean hasCreatePermission(CmsRequest request)
           
 boolean isPageExist(String pagename, CmsRequest request)
          Check whether the page specified by pagename exists or not.
 

メソッドの詳細

isPageExist

public boolean isPageExist(String pagename,
                           CmsRequest request)
                    throws TgwSecurityException
Check whether the page specified by pagename exists or not.

戻り値:
true if page exists on given request context
例外:
TgwSecurityException

getURLByName

public URL getURLByName(String pagename,
                        CmsRequest request)
                 throws TgwSecurityException
Provides URL of given pagename.

例外:
TgwSecurityException

getURLByName

public URL getURLByName(String pagename,
                        CmsRequest request,
                        Map params)
                 throws TgwSecurityException
Provides URL of given pagename and parameters.

例外:
TgwSecurityException

getCreatePageURL

public URL getCreatePageURL(String pagename,
                            CmsRequest request)
                     throws TgwSecurityException
Provides [new page] URL for given pagename. URL is absolute path from http,https, also includes port etc.

パラメータ:
pagename - pagename like "How to Use Tuigwaa" etc, which will be created newly.
戻り値:
URL newpage URL
例外:
TgwSecurityException

getEditPageURL

public URL getEditPageURL(String pagename,
                          CmsRequest request)
                   throws TgwSecurityException
例外:
TgwSecurityException

getAttachedFileURL

public URL getAttachedFileURL(String pagename,
                              String filename,
                              CmsRequest request)
Provides URL for given attachment filename.


getRecentList

public List getRecentList(CmsRequest request,
                          int size)
                   throws Exception
Provides page list which is recently modified.

パラメータ:
request - search path
size - size of page list to be extracted should be positive.
例外:
Exception

getDirectoryList

public List getDirectoryList(CmsRequest request,
                             String folder)
                      throws Exception
例外:
Exception

getRecursiveDirectoryList

public List getRecursiveDirectoryList(CmsRequest request,
                                      String folder)
                               throws Exception
例外:
Exception

getResourceList

public List getResourceList(CmsRequest request,
                            String path)
                     throws Exception
例外:
Exception

getPluginProxyURL

public URL getPluginProxyURL(String pluginname,
                             CmsRequest request)

getAttachmentFileList

public List getAttachmentFileList(CmsRequest request,
                                  String pagePath)
                           throws TgwSecurityException
例外:
TgwSecurityException

getCompleteURL

public URL getCompleteURL(String filepath,
                          CmsRequest request)

getResource

public Resource getResource(CmsRequest request,
                            String pagePath)

hasCreatePermission

public boolean hasCreatePermission(CmsRequest request)


Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.