Package org.ametys.web.synchronization
Class SynchronizeContentUnpublishObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.synchronization.AbstractSynchronizeObserver
org.ametys.web.synchronization.SynchronizeContentUnpublishObserver
- All Implemented Interfaces:
Observer
,LogEnabled
,Contextualizable
,Serviceable
public class SynchronizeContentUnpublishObserver
extends AbstractSynchronizeObserver
implements Contextualizable
Observer
for observing content deletion in order to synchronize live workspace.-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The context.protected AmetysObjectResolver
Ametys 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_internalObserve
(Event event, javax.jcr.Session liveSession) Observes the event with access to the live workspace.void
contextualize
(Context context) void
service
(ServiceManager manager) boolean
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 Details
-
_resolver
Ametys object resolver. -
_context
The context.
-
-
Constructor Details
-
SynchronizeContentUnpublishObserver
public SynchronizeContentUnpublishObserver()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSynchronizeObserver
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
supports
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called. -
_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.
-