Package org.ametys.web.synchronization
Class AbstractSynchronizePageObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.synchronization.AbstractSynchronizeObserver
org.ametys.web.synchronization.AbstractSynchronizePageObserver
- All Implemented Interfaces:
 Observer,LogEnabled,Serviceable
- Direct Known Subclasses:
 SynchronizePageChangeObserver,SynchronizePageDataUpdateObserver,SynchronizePageRenameObserver,SynchronizeServiceModificationObserver
AbstractSynchronizeObserver for observing a page event.- 
Field Summary
FieldsFields 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_internalObserve(Event event, javax.jcr.Session liveSession) Observes the event with access to the live workspace.protected abstract void_internalObservePage(Event event, Page target, Skin skin, javax.jcr.Session liveSession) Observes the page event with access to the workspace live.protected abstract boolean_internalSupport(Event event, Page target) Checks if the page event is supported.voidservice(ServiceManager manager) booleanChecks if the event is supported.Methods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
_skinsManager
theSkinsManager 
 - 
 - 
Constructor Details
- 
AbstractSynchronizePageObserver
public AbstractSynchronizePageObserver() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classAbstractSynchronizeObserver- Throws:
 ServiceException
 - 
supports
Description copied from interface:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
 event- the event.- Returns:
 truefor observing this event,falseotherwise.
 - 
_internalSupport
Checks if the page event is supported.- Parameters:
 event- the event.target- the page target.- Returns:
 truefor observing this event,falseotherwise.
 - 
_internalObserve
protected void _internalObserve(Event event, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException Description copied from class:AbstractSynchronizeObserverObserves the event with access to the live workspace.- Specified by:
 _internalObservein classAbstractSynchronizeObserver- Parameters:
 event- the event.liveSession- the session to the live workspace.- Throws:
 javax.jcr.RepositoryException- if an error occurs.
 - 
_internalObservePage
protected abstract void _internalObservePage(Event event, Page target, Skin skin, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException Observes the page event with access to the workspace live.- 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.
 
 -