fr.paris.lutece.plugins.wiki.service
Class WikiService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.AbstractCacheableService
      extended by fr.paris.lutece.plugins.wiki.service.WikiService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService, fr.paris.lutece.portal.service.util.LuteceService, Cloneable, net.sf.ehcache.event.CacheEventListener

public class WikiService
extends fr.paris.lutece.portal.service.cache.AbstractCacheableService

Wiki Service


Method Summary
 String getName()
          
 String getWikiPage(String strPageName, TopicVersion version)
          Get the Wiki page in HTML format
 String getWikiPage(String strPageName, TopicVersion version, String strPageUrl)
          Get the Wiki page in HTML format
static WikiService instance()
          Returns the unique instance
static String renderEditor(TopicVersion version)
          Render the wiki content for the editor (convert special characters)
 
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()


instance

public static WikiService instance()
Returns the unique instance

Returns:
The instance

getWikiPage

public String getWikiPage(String strPageName,
                          TopicVersion version,
                          String strPageUrl)
Get the Wiki page in HTML format

Parameters:
strPageName - The page name
version - The content version
strPageUrl - tHe page URL
Returns:
The HTML code

getWikiPage

public String getWikiPage(String strPageName,
                          TopicVersion version)
Get the Wiki page in HTML format

Parameters:
strPageName - The page name
version - The content version
Returns:
The HTML code

renderEditor

public static String renderEditor(TopicVersion version)
Render the wiki content for the editor (convert special characters)

Parameters:
version - The version
Returns:
The content


Copyright © 2014 Mairie de Paris. All Rights Reserved.