public class SynchronizeContentCommentedObserver extends AbstractSynchronizeObserver
| Modifier and Type | Field and Description |
|---|---|
protected AmetysObjectResolver |
_ametysObjectResolver
Ametys object resolver.
|
_liveAccessManager, _repository, _synchronizeComponentMAX_PRIORITY, MIN_PRIORITY| Constructor and Description |
|---|
SynchronizeContentCommentedObserver() |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
_getCommentNode(Node unversionnedMetadata,
String commentId)
Get the node of the comment id
|
protected void |
_internalObserve(Event event,
Session liveSession)
Observes the event with access to the live workspace.
|
protected void |
_synchronizeContentComment(Event event,
Session liveSession)
Synchronize content comment
|
protected void |
_synchronizeDeletedContentComment(Event event,
Session liveSession)
Synchronize deleted content comment
|
void |
service(ServiceManager manager) |
boolean |
supports(Event event)
Checks if the event is supported.
|
getPriority, observegetLogger, setLoggerprotected AmetysObjectResolver _ametysObjectResolver
public SynchronizeContentCommentedObserver()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSynchronizeObserverServiceExceptionpublic boolean supports(Event event)
Observerevent - the event.true for observing this event, false otherwise.protected void _internalObserve(Event event, Session liveSession) throws RepositoryException
AbstractSynchronizeObserver_internalObserve in class AbstractSynchronizeObserverevent - the event.liveSession - the session to the live workspace.RepositoryException - if an error occurs.protected void _synchronizeDeletedContentComment(Event event, Session liveSession) throws RepositoryException
event - the eventliveSession - the live sessionRepositoryException - if an error occurredprotected void _synchronizeContentComment(Event event, Session liveSession) throws RepositoryException
event - the eventliveSession - the live sessionRepositoryException - if an error occurredprotected Node _getCommentNode(Node unversionnedMetadata, String commentId) throws PathNotFoundException, RepositoryException
unversionnedMetadata - the unversionned metadatacommentId - the comment idPathNotFoundException - if an error occurredRepositoryException - if an error occurred