Package org.ametys.web.synchronization
Class SynchronizeRobotsChangeObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.synchronization.AbstractSynchronizeObserver
org.ametys.web.synchronization.SynchronizeRobotsChangeObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
Observer
for observing structural page changes (page added, page type changed) in order to synchronize live workspace.-
Field Summary
Fields inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
_liveAccessManager, _repository, _synchronizeComponent
Fields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_internalObserve
(Event event, javax.jcr.Session liveSession) Observes the event with access to the live workspace.boolean
Checks if the event is supported.Methods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observe, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SynchronizeRobotsChangeObserver
public SynchronizeRobotsChangeObserver()
-
-
Method Details
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
_internalObserve
protected void _internalObserve(Event event, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException Description copied from class:AbstractSynchronizeObserver
Observes the event with access to the live workspace.- Specified by:
_internalObserve
in classAbstractSynchronizeObserver
- Parameters:
event
- the event.liveSession
- the session to the live workspace.- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-