Class OnlyOfficeDocumentUpdateActivityHandler

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler

    public class OnlyOfficeDocumentUpdateActivityHandler
    extends org.exoplatform.wcm.ext.component.activity.listener.FileUpdateActivityListener
    implements org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler
    The listener interface for receiving documentUpdateActivity events. The class that is interested in processing a documentUpdateActivity event implements this interface, and the object created with that class is registered with a component using the component's addDocumentUpdateActivityListener method. When the documentUpdateActivity event occurs, that object's appropriate method is invoked.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static long EVENT_DELAY
      The Constant EVENT_DELAY in min.
      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Field Detail

      • EVENT_DELAY

        protected static final long EVENT_DELAY
        The Constant EVENT_DELAY in min.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OnlyOfficeDocumentUpdateActivityHandler

        public OnlyOfficeDocumentUpdateActivityHandler()
        Instantiates a new document update activity listener.
    • Method Detail

      • handleDocumentUpdateEvent

        public boolean handleDocumentUpdateEvent​(org.exoplatform.services.listener.Event<org.apache.commons.chain.Context,​String> event)
                                          throws Exception
        Specified by:
        handleDocumentUpdateEvent in interface org.exoplatform.services.cms.documents.DocumentUpdateActivityHandler
        Throws:
        Exception
      • isCommentedNode

        protected boolean isCommentedNode​(javax.jcr.Node node)
                                   throws javax.jcr.RepositoryException
        Checks if a node has comment.
        Parameters:
        node - the node
        Returns:
        true if the node is commented
        Throws:
        javax.jcr.RepositoryException - the repository exception