Package org.ametys.web.cache.pageelement
Class AbstractACLPageElementCachePolicy
java.lang.Object
org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
org.ametys.web.cache.pageelement.AbstractACLPageElementCachePolicy
- All Implemented Interfaces:
PageElementCachePolicy
- Direct Known Subclasses:
FilteredContentsInputDataCachePolicy
,FilteredPagesInputDataCachePolicy
,SitemapServiceCachePolicy
public abstract class AbstractACLPageElementCachePolicy
extends AbstractSimplePageElementCachePolicy
Base class for
When ACL is updated, the returned value will be REMOVE only if reading access has updated. Implementations should provide a list of event ids for which the cache should be removed. Be aware that for all other events, the returned value will be KEEP.
PageElementCachePolicy
based on event ids and site aware ACL context.When ACL is updated, the returned value will be REMOVE only if reading access has updated. Implementations should provide a list of event ids for which the cache should be removed. Be aware that for all other events, the returned value will be KEEP.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
PageElementCachePolicy.PolicyResult
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ametys.web.cache.pageelement.AbstractSimplePageElementCachePolicy
_getRemovingCacheEventIds, shouldClearCache, shouldClearCache
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.cache.pageelement.PageElementCachePolicy
getPageElementTypes
-
Constructor Details
-
AbstractACLPageElementCachePolicy
public AbstractACLPageElementCachePolicy()
-
-
Method Details
-
_supports
Description copied from class:AbstractSimplePageElementCachePolicy
Checks if the event is supported.- Overrides:
_supports
in classAbstractSimplePageElementCachePolicy
- Parameters:
event
- The eventworkspace
- The JCR workspace.- Returns:
- If true, the cache should be clear
-