public interface PageElementCachePolicy
Modifier and Type | Interface and Description |
---|---|
static class |
PageElementCachePolicy.PolicyResult
Processing result.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getPageElementTypes()
Returns the types of the associated page elements.
|
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)
Second pass of event processing, at the Page level.
This method is only called if the first pass resulted with NEED_MORE_INFORMATION. |
Set<String> getPageElementTypes()
PageElementCachePolicy.PolicyResult shouldClearCache(String workspace, Site site, String pageElementType, Event event)
workspace
- the current JCR workspace.site
- the current site.pageElementType
- the page element type.event
- the current event.PageElementCachePolicy.PolicyResult shouldClearCache(String workspace, Site site, String pageElementType, String elementId, Event event)
workspace
- the current JCR workspace.site
- the current site.pageElementType
- the page element type.elementId
- the current element id.event
- the current event.