public class ClearLevelCacheObserver extends AbstractLogEnabled implements Observer, Serviceable
OrgUnit
values or Content
s which are part of reference table
when an OrgUnit
or reference table content is added, modified, moved or deleted.Modifier and Type | Field and Description |
---|---|
private ContentHelper |
_contentHelper |
private ContentTypeExtensionPoint |
_cTypeEP |
private ContentTypesHelper |
_cTypesHelper |
private OdfClassificationHandler |
_odfClassificationHandler |
private OdfPageHandler |
_odfPageHandler |
private AmetysObjectResolver |
_resolver |
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
ClearLevelCacheObserver() |
Modifier and Type | Method and Description |
---|---|
protected AmetysObjectIterable<Page> |
_getODFRootPages()
Get the ODF root pages
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private ContentHelper _contentHelper
private OdfClassificationHandler _odfClassificationHandler
private AmetysObjectResolver _resolver
private OdfPageHandler _odfPageHandler
private ContentTypeExtensionPoint _cTypeEP
private ContentTypesHelper _cTypesHelper
public ClearLevelCacheObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean supports(Event event)
Observer
public int getPriority(Event event)
Observer
getPriority
in interface Observer
event
- the event.public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
observe
in interface Observer
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception
- if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.protected AmetysObjectIterable<Page> _getODFRootPages()