public class SimpleTemplateBasedRootFactory extends SimpleTemplateBasedFactory
RepositoryInitializationListener have run before, root won't be
empty but we may still have to run this initializer.acl, templatesession| Constructor and Description |
|---|
SimpleTemplateBasedRootFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
createContentStructure(DocumentModel eventDoc) |
protected boolean |
shouldCreateContent(DocumentModel eventDoc)
Returns
false if the type of one of the children documents matches a template item type, true
otherwise. |
initFactory, isTargetEmpty, setAcl, setPropertiesinitSessionpublic SimpleTemplateBasedRootFactory()
public void createContentStructure(DocumentModel eventDoc)
createContentStructure in interface ContentFactorycreateContentStructure in class SimpleTemplateBasedFactoryprotected boolean shouldCreateContent(DocumentModel eventDoc)
false if the type of one of the children documents matches a template item type, true
otherwise.Copyright © 2018 Nuxeo. All rights reserved.