public class SimpleTemplateBasedRootFactory extends SimpleTemplateBasedFactory
RepositoryInitializationListener
have run before, root won't be
empty but we may still have to run this initializer.acl, template
session
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, setProperties
initSession
public SimpleTemplateBasedRootFactory()
public void createContentStructure(DocumentModel eventDoc)
createContentStructure
in interface ContentFactory
createContentStructure
in class SimpleTemplateBasedFactory
protected boolean shouldCreateContent(DocumentModel eventDoc)
false
if the type of one of the children documents matches a template item type, true
otherwise.Copyright © 2015 Nuxeo SA. All rights reserved.