fr.paris.lutece.plugins.wiki.web
Class WikiApp

java.lang.Object
  extended by 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


Field Summary
static int ACTION_VIEW
           
 
Constructor Summary
WikiApp()
           
 
Method Summary
 String createPageContent(javax.servlet.http.HttpServletRequest request, String strPageName)
          Create page
 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(javax.servlet.http.HttpServletRequest request, Topic topic)
          Modify page content
 String viewPageHistory(javax.servlet.http.HttpServletRequest request, Topic topic)
          View page history
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_VIEW

public static final int ACTION_VIEW
See Also:
Constant Field Values
Constructor Detail

WikiApp

public WikiApp()
Method Detail

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 request
nMode - The current mode
plugin - The plugin object
Returns:
The Xpage
Throws:
fr.paris.lutece.portal.service.message.SiteMessageException - Message displayed if an exception occurs
fr.paris.lutece.portal.service.security.UserNotSignedException - if user not connected

viewPageHistory

public String viewPageHistory(javax.servlet.http.HttpServletRequest request,
                              Topic topic)
View page history

Parameters:
request - The HTTP request
topic - The topic
Returns:
The page content

createPageContent

public String createPageContent(javax.servlet.http.HttpServletRequest request,
                                String strPageName)
Create page

Parameters:
strPageName - The page name
Returns:
The page

modifyPageContent

public String modifyPageContent(javax.servlet.http.HttpServletRequest request,
                                Topic topic)
Modify page content

Parameters:
request - The HTTP request
topic - The topic
Returns:
The page


Copyright © 2013 Mairie de Paris. All Rights Reserved.