Class BlogVirtualPagesWithCommentsCachePolicy
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.blog.cachepolicy.BlogVirtualPagesCachePolicy
-
- org.ametys.plugins.blog.cachepolicy.BlogVirtualPagesWithCommentsCachePolicy
-
- All Implemented Interfaces:
PageElementCachePolicy
,LogEnabled
,Serviceable
public class BlogVirtualPagesWithCommentsCachePolicy extends BlogVirtualPagesCachePolicy
Cache policy for the sitemap, handling blog virtual pages linked with contents.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
PageElementCachePolicy.PolicyResult
-
-
Field Summary
Fields Modifier and Type Field Description private static Set<String>
_TYPES
-
Fields inherited from class org.ametys.plugins.blog.cachepolicy.BlogVirtualPagesCachePolicy
_blogPageHandler
-
-
Constructor Summary
Constructors Constructor Description BlogVirtualPagesWithCommentsCachePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
_getRemovingCacheEventIds(String workspace)
Returns all event ids for which the cache should be removed.Set<String>
getPageElementTypes()
Returns the types of the associated page elements.-
Methods inherited from class org.ametys.plugins.blog.cachepolicy.BlogVirtualPagesCachePolicy
service, shouldClearCache, shouldClearCache
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
BlogVirtualPagesWithCommentsCachePolicy
public BlogVirtualPagesWithCommentsCachePolicy()
-
-
Method Detail
-
getPageElementTypes
public Set<String> getPageElementTypes()
Description copied from interface:PageElementCachePolicy
Returns the types of the associated page elements.- Specified by:
getPageElementTypes
in interfacePageElementCachePolicy
- Overrides:
getPageElementTypes
in classBlogVirtualPagesCachePolicy
- Returns:
- the types of the associated page elements.
-
_getRemovingCacheEventIds
protected List<String> _getRemovingCacheEventIds(String workspace)
Description copied from class:BlogVirtualPagesCachePolicy
Returns all event ids for which the cache should be removed.- Overrides:
_getRemovingCacheEventIds
in classBlogVirtualPagesCachePolicy
- Parameters:
workspace
- the current JCR workspace.- Returns:
- all event ids for which the cache should be removed.
-
-