public class SynchronizeContentReactionObserver extends AbstractSynchronizeObserver
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysObjectResolver
Ametys object resolver.
|
_liveAccessManager, _repository, _synchronizeComponent
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
SynchronizeContentReactionObserver() |
Modifier and Type | Method and Description |
---|---|
private Node |
_getReactionNode(Node unversionnedMetadata,
ReactionableObject.ReactionType reactionType) |
protected void |
_internalObserve(Event event,
Session liveSession)
Observes the event with access to the live workspace.
|
protected void |
_synchronizeContentReaction(Event event,
Session liveSession)
Synchronize content comment
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
getPriority, observe
getLogger, setLogger
protected AmetysObjectResolver _ametysObjectResolver
public SynchronizeContentReactionObserver()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSynchronizeObserver
ServiceException
public boolean supports(Event event)
Observer
event
- the event.true
for observing this event, false
otherwise.protected void _internalObserve(Event event, Session liveSession) throws RepositoryException
AbstractSynchronizeObserver
_internalObserve
in class AbstractSynchronizeObserver
event
- the event.liveSession
- the session to the live workspace.RepositoryException
- if an error occurs.protected void _synchronizeContentReaction(Event event, Session liveSession) throws RepositoryException
event
- the eventliveSession
- the live sessionRepositoryException
- if an error occurredprivate Node _getReactionNode(Node unversionnedMetadata, ReactionableObject.ReactionType reactionType) throws PathNotFoundException, RepositoryException