public class DefaultCacheInvalidationPolicy extends AbstractLogEnabled implements CacheInvalidationPolicy
CacheInvalidationPolicy
ROLE
Constructor and Description |
---|
DefaultCacheInvalidationPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
invalidateCacheOnContentCommented(Page page,
Content content)
Invalidate cache on a content commented
|
void |
invalidateCacheOnContentDeletion(Site site,
String contentId)
Invalidate cache on a content deleted
|
void |
invalidateCacheOnContentModification(Site site,
Content content)
Invalidate cache on a content modfication
|
void |
invalidateCacheOnPageDeletion(Site site,
PagesContainer parent,
String pageId,
String pathInSitemap)
Invalidate cache on a page deletion
|
void |
invalidateCacheOnPageMinorChange(Page page)
Invalidate cache on a minor page change.
|
void |
invalidateCacheOnPageModification(Page page)
Invalidate cache when a page is modified.
|
void |
invalidateCacheOnPageMove(Page page,
PagesContainer oldParent,
String oldPathInSitemap)
Invalidate cache on a page move
|
getLogger, setLogger
public DefaultCacheInvalidationPolicy()
public void invalidateCacheOnPageModification(Page page) throws Exception
CacheInvalidationPolicy
invalidateCacheOnPageModification
in interface CacheInvalidationPolicy
page
- the modified pageException
- if an error occurspublic void invalidateCacheOnPageMinorChange(Page page) throws Exception
CacheInvalidationPolicy
invalidateCacheOnPageMinorChange
in interface CacheInvalidationPolicy
page
- the modified pageException
- if an error occurspublic void invalidateCacheOnPageDeletion(Site site, PagesContainer parent, String pageId, String pathInSitemap) throws Exception
CacheInvalidationPolicy
invalidateCacheOnPageDeletion
in interface CacheInvalidationPolicy
site
- the siteparent
- the parent page or sitemappageId
- the page idpathInSitemap
- path of the page in sitemapException
- if an error occurspublic void invalidateCacheOnPageMove(Page page, PagesContainer oldParent, String oldPathInSitemap) throws Exception
CacheInvalidationPolicy
invalidateCacheOnPageMove
in interface CacheInvalidationPolicy
page
- the page movedoldParent
- the old parentoldPathInSitemap
- the old path in sitemapException
- if an error occurspublic void invalidateCacheOnContentCommented(Page page, Content content) throws Exception
CacheInvalidationPolicy
invalidateCacheOnContentCommented
in interface CacheInvalidationPolicy
page
- the pagecontent
- the commented contentException
- if an error occurspublic void invalidateCacheOnContentDeletion(Site site, String contentId) throws Exception
CacheInvalidationPolicy
invalidateCacheOnContentDeletion
in interface CacheInvalidationPolicy
site
- the sitecontentId
- the content idException
- if an error occurspublic void invalidateCacheOnContentModification(Site site, Content content) throws Exception
CacheInvalidationPolicy
invalidateCacheOnContentModification
in interface CacheInvalidationPolicy
site
- the sitecontent
- the contentException
- if an error occurs