Class WikiService
- java.lang.Object
-
- fr.paris.lutece.portal.service.cache.AbstractCacheableService
-
- 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 final class WikiService extends fr.paris.lutece.portal.service.cache.AbstractCacheableServiceWiki Service
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()StringgetPageSource(String strPageName, TopicVersion version, String strLanguage)Get the Wiki page in text formatStringgetWikiPage(String strPageName, TopicVersion version, String strLanguage)Get the Wiki page in HTML formatStringgetWikiPage(String strPageName, TopicVersion version, String strPageUrl, String strLanguage)Get the Wiki page in HTML formatstatic WikiServiceinstance()Returns the unique instancestatic StringrenderEditor(TopicVersion version, String strLanguage)Render the wiki content for the editor (convert special characters)static StringrenderSource(String strContent)Render the wiki source content-
Methods inherited from class fr.paris.lutece.portal.service.cache.AbstractCacheableService
clone, dispose, enableCache, getCache, getCacheSize, getFromCache, getInfos, getKeys, getMaxElements, getMemorySize, getStatistics, getTimeToLive, initCache, initCache, isCacheEnable, notifyElementEvicted, notifyElementExpired, notifyElementPut, notifyElementRemoved, notifyElementUpdated, notifyRemoveAll, putInCache, removeKey, resetCache
-
-
-
-
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, String strLanguage)
Get the Wiki page in HTML format- Parameters:
strPageName- The page nameversion- The content versionstrPageUrl- The page URLstrLanguage- The language- Returns:
- The HTML code
-
getPageSource
public String getPageSource(String strPageName, TopicVersion version, String strLanguage)
Get the Wiki page in text format- Parameters:
strPageName- The page nameversion- The content versionstrLanguage- The language- Returns:
- The HTML code
-
getWikiPage
public String getWikiPage(String strPageName, TopicVersion version, String strLanguage)
Get the Wiki page in HTML format- Parameters:
strPageName- The page nameversion- The topic versionstrLanguage- The language- Returns:
- The HTML code
-
renderEditor
public static String renderEditor(TopicVersion version, String strLanguage)
Render the wiki content for the editor (convert special characters)- Parameters:
version- The versionstrLanguage- The Language- Returns:
- The content
-
-