public class NewDocumentService extends Object implements org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
static class |
NewDocumentService.NewDocumentTypesConfig
NewDocumentTypesConfig.
|
| Modifier and Type | Field and Description |
|---|---|
protected NewDocumentTypePlugin |
documentTypePlugin
The document type plugin.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
static String |
MIX_VERSIONABLE
The Constant MIX_VERSIONABLE
|
| Constructor and Description |
|---|
NewDocumentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTypePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the type plugin.
|
javax.jcr.Node |
createDocument(javax.jcr.Node currentNode,
String title,
String label)
Creates the document.
|
NewDocumentType |
getDocumentTypeByLabel(String label)
Gets the document type by label.
|
String |
getFileName(String title,
String label)
Gets the file name.
|
List<NewDocumentType> |
getTypes()
Gets the types.
|
void |
start() |
void |
stop() |
protected static final org.exoplatform.services.log.Log LOG
public static final String MIX_VERSIONABLE
protected NewDocumentTypePlugin documentTypePlugin
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic List<NewDocumentType> getTypes()
public void addTypePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - the pluginpublic javax.jcr.Node createDocument(javax.jcr.Node currentNode,
String title,
String label)
throws Exception
currentNode - the current nodetitle - the titlelabel - the labelException - the exceptionpublic String getFileName(String title, String label)
title - the titlelabel - the labelpublic NewDocumentType getDocumentTypeByLabel(String label)
label - the labelCopyright © 2003–2019 eXo Platform SAS. All rights reserved.