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.NewDocumentTemplatePluginThe Class OnlyofficeNewDocumentTemplatePlugin.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.exoplatform.services.cms.documents.DocumentServicedocumentServiceThe document service.protected static org.exoplatform.services.log.LogLOGThe Constant LOG.protected List<org.exoplatform.services.cms.documents.NewDocumentTemplate>templatesThe document types.
-
Constructor Summary
Constructors Constructor Description OnlyofficeNewDocumentTemplatePlugin(org.exoplatform.services.cms.documents.DocumentService documentService, org.exoplatform.container.xml.InitParams initParams)Instantiates a new Onlyoffice new document template plugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.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>getEditorClass()org.exoplatform.services.cms.documents.NewDocumentTemplategetTemplate(String name)List<org.exoplatform.services.cms.documents.NewDocumentTemplate>getTemplates()Gets the templates.
-
-
-
Field Detail
-
LOG
protected static final org.exoplatform.services.log.Log LOG
The Constant LOG.
-
templates
protected List<org.exoplatform.services.cms.documents.NewDocumentTemplate> templates
The document types.
-
documentService
protected final org.exoplatform.services.cms.documents.DocumentService documentService
The document service.
-
-
Constructor Detail
-
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 Detail
-
getTemplates
public List<org.exoplatform.services.cms.documents.NewDocumentTemplate> 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 ExceptionCreates 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
public org.exoplatform.services.cms.documents.NewDocumentTemplate getTemplate(String name)
- Specified by:
getTemplatein interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
-
getEditorClass
public Class<? extends org.exoplatform.services.cms.documents.DocumentEditor> getEditorClass()
- Specified by:
getEditorClassin interfaceorg.exoplatform.services.cms.documents.NewDocumentTemplatePlugin
-
-