|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.wiki.rendering.cache.impl.PageRenderingCacheServiceImpl
public class PageRenderingCacheServiceImpl
| Field Summary | |
|---|---|
static String |
ATT_CACHE_NAME
|
static String |
CACHE_NAME
|
static String |
UUID_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)
Adds a link between two pages. |
int |
getAttachmentCount(PageImpl page)
Get number of attachment of a wiki page |
Page |
getPageByParams(WikiPageParams param)
Gets the wiki page object by params |
Map<WikiPageParams,List<WikiPageParams>> |
getPageLinksMap()
Returns a collection of connections of a wiki page. |
String |
getRenderedContent(WikiPageParams param,
String targetSyntax)
Gets the rendered content of a wiki page. |
org.exoplatform.services.cache.ExoCache<Integer,MarkupData> |
getRenderingCache()
Gets the rendering cache. |
void |
invalidateAttachmentCache(WikiPageParams param)
Invalidate cache storing attachment size of a wiki page |
void |
invalidateCache(WikiPageParams param)
Invalidates all cache entries linking to a page in case this page is removed, changed or renamed. |
void |
invalidateUUIDCache(WikiPageParams param)
Invalidates the cache entry containing given wiki page param |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CACHE_NAME
public static final String ATT_CACHE_NAME
public static final String UUID_CACHE_NAME
| Constructor Detail |
|---|
public PageRenderingCacheServiceImpl(org.exoplatform.wiki.rendering.RenderingService renderingService,
WikiService wikiService,
org.exoplatform.services.cache.CacheService cacheService)
renderingService - the rendering service| Method Detail |
|---|
public String getRenderedContent(WikiPageParams param,
String targetSyntax)
PageRenderingCacheService
getRenderedContent in interface PageRenderingCacheServiceparam - The parameter which specifies the wiki page.targetSyntax - The syntax to be displayed.
public Page getPageByParams(WikiPageParams param)
PageRenderingCacheService
getPageByParams in interface PageRenderingCacheServiceparam - the wiki page param
public int getAttachmentCount(PageImpl page)
PageRenderingCacheService
getAttachmentCount in interface PageRenderingCacheServicepublic final org.exoplatform.services.cache.ExoCache<Integer,MarkupData> getRenderingCache()
PageRenderingCacheService
getRenderingCache in interface PageRenderingCacheServicepublic Map<WikiPageParams,List<WikiPageParams>> getPageLinksMap()
PageRenderingCacheService
getPageLinksMap in interface PageRenderingCacheService
public void addPageLink(WikiPageParams param,
WikiPageParams entity)
PageRenderingCacheService
addPageLink in interface PageRenderingCacheServiceparam - The identity parameter of the wiki page to add.entity - The identity parameter of the wiki page to be added.public void invalidateCache(WikiPageParams param)
PageRenderingCacheService
invalidateCache in interface PageRenderingCacheServiceparam - The parameter which specifies the wiki page identity.public void invalidateUUIDCache(WikiPageParams param)
PageRenderingCacheService
invalidateUUIDCache in interface PageRenderingCacheServicepublic void invalidateAttachmentCache(WikiPageParams param)
PageRenderingCacheService
invalidateAttachmentCache in interface PageRenderingCacheServiceparam - specify identity of a page
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||