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 forPageElementCachePolicy
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
Constructors Constructor Description AbstractACLPageElementCachePolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
_supports(Event event, String workspace)
Checks if the event is supported.-
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 Detail
-
AbstractACLPageElementCachePolicy
public AbstractACLPageElementCachePolicy()
-
-
Method Detail
-
_supports
protected boolean _supports(Event event, String workspace)
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
-
-