Package org.ametys.web.synchronization
Class SynchronizePageRenameObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.synchronization.AbstractSynchronizeObserver
-
- org.ametys.web.synchronization.AbstractSynchronizePageObserver
-
- org.ametys.web.synchronization.SynchronizePageRenameObserver
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
public class SynchronizePageRenameObserver extends AbstractSynchronizePageObserver
Observer
for observing page move in order to synchronize live workspace.
-
-
Field Summary
-
Fields inherited from class org.ametys.web.synchronization.AbstractSynchronizePageObserver
_skinsManager
-
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
Constructors Constructor Description SynchronizePageRenameObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_internalObservePage(Event event, Page target, Skin skin, 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, supports
-
Methods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observe
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SynchronizePageRenameObserver
public SynchronizePageRenameObserver()
-
-
Method Detail
-
_internalSupport
protected boolean _internalSupport(Event event, Page target)
Description copied from class:AbstractSynchronizePageObserver
Checks if the page event is supported.- Specified by:
_internalSupport
in classAbstractSynchronizePageObserver
- Parameters:
event
- the event.target
- the page target.- Returns:
true
for observing this event,false
otherwise.
-
_internalObservePage
protected void _internalObservePage(Event event, Page target, Skin skin, Session liveSession) throws RepositoryException
Description copied from class:AbstractSynchronizePageObserver
Observes the page event with access to the workspace live.- Specified by:
_internalObservePage
in 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:
RepositoryException
- if an error occurs.
-
-