public abstract class AbstractDocumentModelFactory extends Object implements ImporterDocumentModelFactory
ImporterDocumentModelFactory
. Contains common methods.Constructor and Description |
---|
AbstractDocumentModelFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTargetDocumentModelFolderish(SourceNode node) |
boolean |
processFolderishNodeCreationError(CoreSession session,
DocumentModel parent,
SourceNode node)
By default there is no process bound to a folderish node creation error, and the global import task will
continue.
|
boolean |
processLeafNodeCreationError(CoreSession session,
DocumentModel parent,
SourceNode node)
By default there is no process bound to a leaf node creation error, and the global import task will continue.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFolderishNode, createLeafNode
public boolean processFolderishNodeCreationError(CoreSession session, DocumentModel parent, SourceNode node)
You should override this method if you want a specific process to be executed after such an error and/or if you want the global import task to stop immediately after the error occurs, in which case the method should return false.
processFolderishNodeCreationError
in interface ImporterDocumentModelFactory
public boolean processLeafNodeCreationError(CoreSession session, DocumentModel parent, SourceNode node)
You should override this method if you want a specific process to be executed after such an error and/or if you want the global import task to stop immediately after the error occurs, in which case the method should return false.
processLeafNodeCreationError
in interface ImporterDocumentModelFactory
public boolean isTargetDocumentModelFolderish(SourceNode node)
isTargetDocumentModelFolderish
in interface ImporterDocumentModelFactory
Copyright © 2015 Nuxeo SA. All rights reserved.