public class OnlyofficeNewDocumentTemplatePlugin
extends org.exoplatform.container.component.BaseComponentPlugin
implements org.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.services.cms.documents.DocumentService |
documentService
The document service.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected List<org.exoplatform.services.cms.documents.NewDocumentTemplate> |
templates
The document types.
|
| Constructor and Description |
|---|
OnlyofficeNewDocumentTemplatePlugin(org.exoplatform.services.cms.documents.DocumentService documentService,
org.exoplatform.container.xml.InitParams initParams)
Instantiates a new Onlyoffice new document template plugin.
|
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Node |
createDocument(javax.jcr.Node parent,
String title,
org.exoplatform.services.cms.documents.NewDocumentTemplate template)
Creates the document.
|
Class<? extends org.exoplatform.services.cms.documents.DocumentEditor> |
getEditorClass() |
org.exoplatform.services.cms.documents.NewDocumentTemplate |
getTemplate(String name) |
List<org.exoplatform.services.cms.documents.NewDocumentTemplate> |
getTemplates()
Gets the templates.
|
protected static final org.exoplatform.services.log.Log LOG
protected List<org.exoplatform.services.cms.documents.NewDocumentTemplate> templates
protected final org.exoplatform.services.cms.documents.DocumentService documentService
public OnlyofficeNewDocumentTemplatePlugin(org.exoplatform.services.cms.documents.DocumentService documentService,
org.exoplatform.container.xml.InitParams initParams)
documentService - the new document serviceinitParams - the init paramspublic List<org.exoplatform.services.cms.documents.NewDocumentTemplate> getTemplates()
getTemplates in interface org.exoplatform.services.cms.documents.NewDocumentTemplatePluginpublic javax.jcr.Node createDocument(javax.jcr.Node parent,
String title,
org.exoplatform.services.cms.documents.NewDocumentTemplate template)
throws Exception
createDocument in interface org.exoplatform.services.cms.documents.NewDocumentTemplatePluginparent - the parenttitle - the titletemplate - the templateException - the exceptionpublic org.exoplatform.services.cms.documents.NewDocumentTemplate getTemplate(String name)
getTemplate in interface org.exoplatform.services.cms.documents.NewDocumentTemplatePluginpublic Class<? extends org.exoplatform.services.cms.documents.DocumentEditor> getEditorClass()
getEditorClass in interface org.exoplatform.services.cms.documents.NewDocumentTemplatePluginCopyright © 2003–2021 eXo Platform SAS. All rights reserved.