Class SynchronizeContentCommentedObserver

All Implemented Interfaces:
Observer, LogEnabled, Serviceable

When a comment (validated) is modifier, synchronize it
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class AbstractSynchronizeObserver
      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, 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 class AbstractSynchronizeObserver
      Parameters:
      event - the event.
      liveSession - the session to the live workspace.
      Throws:
      javax.jcr.RepositoryException - if an error occurs.
    • _synchronizeDeletedContentComment

      protected void _synchronizeDeletedContentComment(Event event, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException
      Synchronize deleted content comment
      Parameters:
      event - the event
      liveSession - the live session
      Throws:
      javax.jcr.RepositoryException - if an error occurred
    • _synchronizeContentComment

      protected void _synchronizeContentComment(Event event, javax.jcr.Session liveSession) throws javax.jcr.RepositoryException
      Synchronize content comment
      Parameters:
      event - the event
      liveSession - the live session
      Throws:
      javax.jcr.RepositoryException - if an error occurred
    • _getCommentNode

      protected javax.jcr.Node _getCommentNode(javax.jcr.Node unversionedMetadata, String commentId) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
      Get the node of the comment id
      Parameters:
      unversionedMetadata - the unversioned metadata
      commentId - the comment id
      Returns:
      the node of the comment id
      Throws:
      javax.jcr.PathNotFoundException - if an error occurred
      javax.jcr.RepositoryException - if an error occurred