fr.paris.lutece.plugins.wiki.web
Class WikiApp
java.lang.Object
fr.paris.lutece.plugins.wiki.web.WikiApp
- All Implemented Interfaces:
- fr.paris.lutece.portal.web.xpages.XPageApplication
public class WikiApp
- extends Object
- implements fr.paris.lutece.portal.web.xpages.XPageApplication
This class provides a simple implementation of an XPage
|
Method Summary |
String |
createPageContent(String strPageName)
|
void |
doCreatePage(String strPageName,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strContent)
|
void |
doModifyPage(int nTopicId,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strComment,
String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
fr.paris.lutece.portal.web.xpages.XPage |
getPage(javax.servlet.http.HttpServletRequest request,
int nMode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
" Returns the content of the page wiki. |
String |
modifyPageContent(String strPageName,
String strPreviewContent)
|
String |
previewPageContent(String strTopicName,
String strInput)
|
String |
viewPageContent(String strPageName)
|
String |
viewPageHistory(String strPageName)
|
String |
viewTopicDiff(String strPageName,
int nNewTopicVersion,
int nOldTopicVersion)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_ACTION_MODIFY
public static final String PARAMETER_ACTION_MODIFY
- See Also:
- Constant Field Values
PARAMETER_ACTION_CREATE
public static final String PARAMETER_ACTION_CREATE
- See Also:
- Constant Field Values
PARAMETER_ACTION_VIEW
public static final String PARAMETER_ACTION_VIEW
- See Also:
- Constant Field Values
WikiApp
public WikiApp()
getPage
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request,
int nMode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.portal.service.message.SiteMessageException,
fr.paris.lutece.portal.service.security.UserNotSignedException
- " Returns the content of the page wiki.
- Specified by:
getPage in interface fr.paris.lutece.portal.web.xpages.XPageApplication
- Parameters:
request - The http requestnMode - The current modeplugin - The plugin object
- Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - Message displayed if an exception occurs
fr.paris.lutece.portal.service.security.UserNotSignedException
viewPageContent
public String viewPageContent(String strPageName)
- Parameters:
strPageName -
- Returns:
previewPageContent
public String previewPageContent(String strTopicName,
String strInput)
viewPageHistory
public String viewPageHistory(String strPageName)
- Parameters:
strPageName -
- Returns:
viewTopicDiff
public String viewTopicDiff(String strPageName,
int nNewTopicVersion,
int nOldTopicVersion)
- Parameters:
strPageName - nNewTopicVersion - nOldTopicVersion -
- Returns:
doModifyPage
public void doModifyPage(int nTopicId,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strComment,
String strContent,
int nPreviousVersion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Parameters:
nTopicId - user - strComment - strContent - nPreviousVersion - plugin -
doCreatePage
public void doCreatePage(String strPageName,
fr.paris.lutece.portal.service.security.LuteceUser user,
String strContent)
- Parameters:
strPageName - strContent -
modifyPageContent
public String modifyPageContent(String strPageName,
String strPreviewContent)
- Parameters:
strPageName -
- Returns:
createPageContent
public String createPageContent(String strPageName)
- Parameters:
strPageName -
- Returns:
Copyright © 2013 Mairie de Paris. All Rights Reserved.