Package org.ametys.web.attachments
Class SynchronizePageAttachmentsObserver
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.synchronization.AbstractSynchronizeObserver
-
- org.ametys.web.attachments.SynchronizePageAttachmentsObserver
-
- All Implemented Interfaces:
Observer
,LogEnabled
,Serviceable
public class SynchronizePageAttachmentsObserver extends AbstractSynchronizeObserver
Listener on page attachments events
-
-
Field Summary
Fields Modifier and Type Field Description private AmetysObjectResolver
_resolver
private SkinsManager
_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 SynchronizePageAttachmentsObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Page
_getPage(Event event)
protected void
_internalObserve(Event event, Session liveSession)
Observes the event with access to the live workspace.void
service(ServiceManager serviceManager)
boolean
supports(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
private AmetysObjectResolver _resolver
-
_skinsManager
private SkinsManager _skinsManager
-
-
Constructor Detail
-
SynchronizePageAttachmentsObserver
public SynchronizePageAttachmentsObserver()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractSynchronizeObserver
- Throws:
ServiceException
-
supports
public boolean supports(Event event)
Description copied from interface:Observer
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
_internalObserve
protected void _internalObserve(Event event, Session liveSession) throws 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:
RepositoryException
- if an error occurs.
-
-