Package org.exoplatform.onlyoffice
Class OnlyOfficeDocumentUpdateActivityHandler
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.services.listener.Listener<org.apache.commons.chain.Context,String>
-
- org.exoplatform.wcm.ext.component.activity.listener.FileUpdateActivityListener
-
- org.exoplatform.onlyoffice.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.DocumentUpdateActivityHandlerThe 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 longEVENT_DELAYThe Constant EVENT_DELAY in min.
-
Constructor Summary
Constructors Constructor Description OnlyOfficeDocumentUpdateActivityHandler()Instantiates a new document update activity listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandleDocumentUpdateEvent(org.exoplatform.services.listener.Event<org.apache.commons.chain.Context,String> event)protected booleanisCommentedNode(javax.jcr.Node node)Checks if a node has comment.-
Methods inherited from class org.exoplatform.wcm.ext.component.activity.listener.FileUpdateActivityListener
onEvent
-
-
-
-
Field Detail
-
EVENT_DELAY
protected static final long EVENT_DELAY
The Constant EVENT_DELAY in min.- See Also:
- Constant Field Values
-
-
Method Detail
-
handleDocumentUpdateEvent
public boolean handleDocumentUpdateEvent(org.exoplatform.services.listener.Event<org.apache.commons.chain.Context,String> event) throws Exception
- Specified by:
handleDocumentUpdateEventin interfaceorg.exoplatform.services.cms.documents.DocumentUpdateActivityHandler- Throws:
Exception
-
isCommentedNode
protected boolean isCommentedNode(javax.jcr.Node node) throws javax.jcr.RepositoryExceptionChecks if a node has comment.- Parameters:
node- the node- Returns:
- true if the node is commented
- Throws:
javax.jcr.RepositoryException- the repository exception
-
-