Package org.ametys.web.synchronization
Class SynchronizeContentDeletionObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.synchronization.AbstractSynchronizeObserver
-
- org.ametys.web.synchronization.SynchronizeContentDeletionObserver
-
- All Implemented Interfaces:
Observer,LogEnabled,Contextualizable,Serviceable
public class SynchronizeContentDeletionObserver extends AbstractSynchronizeObserver implements Contextualizable
Observerfor observing content deletion in order to synchronize live workspace.
-
-
Field Summary
Fields Modifier and Type Field Description protected Context_contextThe context.protected AmetysObjectResolver_resolverAmetys object resolver.-
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 SynchronizeContentDeletionObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_internalObserve(Event event, Session liveSession)Observes the event with access to the live workspace.voidcontextualize(Context context)voidservice(ServiceManager manager)booleansupports(Event event)Checks if the event is supported.-
Methods inherited from class org.ametys.web.synchronization.AbstractSynchronizeObserver
getPriority, observe
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
Ametys object resolver.
-
-
Constructor Detail
-
SynchronizeContentDeletionObserver
public SynchronizeContentDeletionObserver()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractSynchronizeObserver- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
supports
public boolean supports(Event event)
Description copied from interface:ObserverChecks if the event is supported. If true, the observe(Event) method will be called.
-
_internalObserve
protected void _internalObserve(Event event, Session liveSession) throws 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:
RepositoryException- if an error occurs.
-
-