org.exoplatform.wiki.rendering.cache.impl
Class PageRenderingCacheServiceImpl

java.lang.Object
  extended by org.exoplatform.wiki.rendering.cache.impl.PageRenderingCacheServiceImpl
All Implemented Interfaces:
PageRenderingCacheService

public class PageRenderingCacheServiceImpl
extends Object
implements PageRenderingCacheService


Field Summary
static String CACHE_NAME
           
 
Constructor Summary
PageRenderingCacheServiceImpl(org.exoplatform.wiki.rendering.RenderingService renderingService, WikiService wikiService, org.exoplatform.services.cache.CacheService cacheService)
          Initialize rendering cache service
 
Method Summary
 void addPageLink(WikiPageParams param, WikiPageParams entity)
          Record a link between two pages
 Map<WikiPageParams,List<WikiPageParams>> getPageLinksMap()
          Return the collection of connections of page.
 String getRenderedContent(WikiPageParams param, String targetSyntax)
          Get rendered content of a wiki page
 org.exoplatform.services.cache.ExoCache<MarkupKey,MarkupData> getRenderingCache()
          Get the rendering cache
 void invalidateCache(WikiPageParams param)
          Invalidate all cache entries link to a page in case this page is removed, changed or renamed...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_NAME

public static final String CACHE_NAME
See Also:
Constant Field Values
Constructor Detail

PageRenderingCacheServiceImpl

public PageRenderingCacheServiceImpl(org.exoplatform.wiki.rendering.RenderingService renderingService,
                                     WikiService wikiService,
                                     org.exoplatform.services.cache.CacheService cacheService)
Initialize rendering cache service

Parameters:
renderingService - the rendering service
Method Detail

getRenderedContent

public String getRenderedContent(WikiPageParams param,
                                 String targetSyntax)
Description copied from interface: PageRenderingCacheService
Get rendered content of a wiki page

Specified by:
getRenderedContent in interface PageRenderingCacheService
Parameters:
param - the parameter to specify the wiki page
targetSyntax - the syntax to be display
Returns:
the rendered content

getRenderingCache

public final org.exoplatform.services.cache.ExoCache<MarkupKey,MarkupData> getRenderingCache()
Description copied from interface: PageRenderingCacheService
Get the rendering cache

Specified by:
getRenderingCache in interface PageRenderingCacheService
Returns:
the rendering cache

getPageLinksMap

public Map<WikiPageParams,List<WikiPageParams>> getPageLinksMap()
Description copied from interface: PageRenderingCacheService
Return the collection of connections of page. In details, a connections is built if in content of a page, there is a link to another page

Specified by:
getPageLinksMap in interface PageRenderingCacheService
Returns:
the map of connection

addPageLink

public void addPageLink(WikiPageParams param,
                        WikiPageParams entity)
Description copied from interface: PageRenderingCacheService
Record a link between two pages

Specified by:
addPageLink in interface PageRenderingCacheService
Parameters:
param - identity parameter of a page to add
entity - identity parameter of page to be added

invalidateCache

public void invalidateCache(WikiPageParams param)
Description copied from interface: PageRenderingCacheService
Invalidate all cache entries link to a page in case this page is removed, changed or renamed...

Specified by:
invalidateCache in interface PageRenderingCacheService
Parameters:
param - specify identity of a page


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.