public abstract class AbstractSimplePageElementCachePolicy extends Object implements PageElementCachePolicy
PageElementCachePolicy only based on event ids.PageElementCachePolicy.PolicyResult| Constructor and Description |
|---|
AbstractSimplePageElementCachePolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<String> |
_getRemovingCacheEventIds(String workspace)
Returns all event ids for which the cache should be removed.
|
protected boolean |
_supports(Event event,
String workspace)
Checks if the event is supported.
|
PageElementCachePolicy.PolicyResult |
shouldClearCache(String workspace,
Site site,
String pageElementType,
Event event)
First pass of event processing, at the type level.
Returning NEED_MORE_INFORMATION eventually leads to the second pass, which is more precise, and also depends on a particular element, but is more costly to compute. Returning null means that this policy declares itself as not concerned by the current event. |
PageElementCachePolicy.PolicyResult |
shouldClearCache(String workspace,
Site site,
String pageElementType,
String elementId,
Event event)
Never called because the first-level method never returns NEED_INFORMATION.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPageElementTypespublic AbstractSimplePageElementCachePolicy()
public final PageElementCachePolicy.PolicyResult shouldClearCache(String workspace, Site site, String pageElementType, Event event)
PageElementCachePolicyshouldClearCache in interface PageElementCachePolicyworkspace - the current JCR workspace.site - the current site.pageElementType - the page element type.event - the current event.protected boolean _supports(Event event, String workspace)
event - The eventworkspace - The JCR workspace.protected abstract List<String> _getRemovingCacheEventIds(String workspace)
workspace - the current JCR workspace.public final PageElementCachePolicy.PolicyResult shouldClearCache(String workspace, Site site, String pageElementType, String elementId, Event event)
shouldClearCache in interface PageElementCachePolicyworkspace - the current JCR workspace.site - the current site.pageElementType - the page element type.elementId - the current element id.event - the current event.