Package org.ametys.web.synchronization
Class SynchronizePageChangeObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.synchronization.AbstractSynchronizeObserver
org.ametys.web.synchronization.AbstractSynchronizePageObserver
org.ametys.web.synchronization.SynchronizePageChangeObserver
- All Implemented Interfaces:
 Observer,LogEnabled,Prioritizable,Supporter<Event>,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.AbstractSynchronizePageObserver
_skinsManagerFields inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
_liveAccessManager, _repository, _synchronizeComponentFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected void_internalObservePage(Event event, Page target, Skin skin, javax.jcr.Session liveSession) Observes the page event with access to the workspace live.protected boolean_internalSupport(Event event, Page target) Checks if the page event is supported.Methods inherited from class org.ametys.web.synchronization.AbstractSynchronizePageObserver
_internalObserve, service, supportsMethods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Constructor Details
- 
SynchronizePageChangeObserver
public SynchronizePageChangeObserver() 
 - 
 - 
Method Details
- 
_internalSupport
Description copied from class:AbstractSynchronizePageObserverChecks if the page event is supported.- Specified by:
 _internalSupportin classAbstractSynchronizePageObserver- Parameters:
 event- the event.target- the page target.- Returns:
 truefor observing this event,falseotherwise.
 - 
_internalObservePage
protected void _internalObservePage(Event event, Page target, Skin skin, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException Description copied from class:AbstractSynchronizePageObserverObserves the page event with access to the workspace live.- Specified by:
 _internalObservePagein classAbstractSynchronizePageObserver- Parameters:
 event- the event.target- the page target.skin- the skin of the page's site.liveSession- the session to the workspace live.- Throws:
 javax.jcr.RepositoryException- if an error occurs.
 
 -