Class OnlyofficeNewDocumentTemplatePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.onlyoffice.documents.OnlyofficeNewDocumentTemplatePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
public class OnlyofficeNewDocumentTemplatePlugin
extends org.exoplatform.container.component.BaseComponentPlugin
implements org.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
The Class OnlyofficeNewDocumentTemplatePlugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.exoplatform.services.cms.documents.DocumentServiceThe document service.protected static final org.exoplatform.services.log.LogThe Constant LOG.protected List<org.exoplatform.services.cms.documents.NewDocumentTemplate>The document types.Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionOnlyofficeNewDocumentTemplatePlugin(org.exoplatform.services.cms.documents.DocumentService documentService, org.exoplatform.container.xml.InitParams initParams) Instantiates a new Onlyoffice new document template plugin. -
Method Summary
Modifier and TypeMethodDescriptionjavax.jcr.NodecreateDocument(javax.jcr.Node parent, String title, org.exoplatform.services.cms.documents.NewDocumentTemplate template) Creates the document.Class<? extends org.exoplatform.services.cms.documents.DocumentEditor>org.exoplatform.services.cms.documents.NewDocumentTemplategetTemplate(String name) List<org.exoplatform.services.cms.documents.NewDocumentTemplate>Gets the templates.Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOGThe Constant LOG. -
templates
The document types. -
documentService
protected final org.exoplatform.services.cms.documents.DocumentService documentServiceThe document service.
-
-
Constructor Details
-
OnlyofficeNewDocumentTemplatePlugin
public OnlyofficeNewDocumentTemplatePlugin(org.exoplatform.services.cms.documents.DocumentService documentService, org.exoplatform.container.xml.InitParams initParams) Instantiates a new Onlyoffice new document template plugin.- Parameters:
documentService- the new document serviceinitParams- the init params
-
-
Method Details
-
getTemplates
Gets the templates.- Specified by:
getTemplatesin interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin- Returns:
- the templates
-
createDocument
public javax.jcr.Node createDocument(javax.jcr.Node parent, String title, org.exoplatform.services.cms.documents.NewDocumentTemplate template) throws Exception Creates the document.- Specified by:
createDocumentin interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin- Parameters:
parent- the parenttitle- the titletemplate- the template- Returns:
- the node
- Throws:
Exception- the exception
-
getTemplate
- Specified by:
getTemplatein interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
-
getEditorClass
- Specified by:
getEditorClassin interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
-