public class TagAutopostingSiteParameterObserverPart2 extends AbstractLogEnabled implements Observer, Contextualizable, Serviceable
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
protected PageElementCache |
_inputDataCache
The input data cache
|
protected SiteIndexer |
_siteIndexer
The site indexer
|
protected PageElementCache |
_zoneItemCache
The zone item cache
|
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
TagAutopostingSiteParameterObserverPart2() |
Modifier and Type | Method and Description |
---|---|
protected void |
_reindexAndClearCache(Site site)
Reindex and clear the caches for a given site
|
void |
contextualize(Context context) |
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.
|
getLogger, setLogger
protected SiteIndexer _siteIndexer
protected PageElementCache _inputDataCache
protected PageElementCache _zoneItemCache
public TagAutopostingSiteParameterObserverPart2()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
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 void _reindexAndClearCache(Site site)
site
- the site