Package org.ametys.web.cache.service
Class SitemapServiceCachePolicy
java.lang.Object
org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
org.ametys.web.cache.pageelement.AbstractACLPageElementCachePolicy
org.ametys.web.cache.service.SitemapServiceCachePolicy
- All Implemented Interfaces:
PageElementCachePolicy
PageElementCachePolicy for the Sitemap service.This implementation does not handle virtual pages based on Contents, so that it does not remove cache when Content change.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
PageElementCachePolicy.PolicyResult -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_getRemovingCacheEventIds(String workspace) Returns all event ids for which the cache should be removed.protected booleanChecks if the event is supported.Returns the types of the associated page elements.Methods inherited from class org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
shouldClearCache, shouldClearCache
-
Field Details
-
SERVICE_SITEMAP_ID
The sitemap service ID.- See Also:
-
-
Constructor Details
-
SitemapServiceCachePolicy
public SitemapServiceCachePolicy()
-
-
Method Details
-
getPageElementTypes
Description copied from interface:PageElementCachePolicyReturns the types of the associated page elements.- Returns:
- the types of the associated page elements.
-
_supports
Description copied from class:AbstractSimplePageElementCachePolicyChecks if the event is supported.- Overrides:
_supportsin classAbstractACLPageElementCachePolicy- Parameters:
event- The eventworkspace- The JCR workspace.- Returns:
- If true, the cache should be clear
-
_getRemovingCacheEventIds
Description copied from class:AbstractSimplePageElementCachePolicyReturns all event ids for which the cache should be removed.- Specified by:
_getRemovingCacheEventIdsin classAbstractSimplePageElementCachePolicy- Parameters:
workspace- the current JCR workspace.- Returns:
- all event ids for which the cache should be removed.
-