public class ShowcaseContentImporter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME
When computing event name for the "defaut" contribution; it uses the old global event name in case the showcase
content was already imported.
|
static String |
INITIALIZED_EVENT
Deprecated.
|
static String |
INITIALIZED_EVENT_FORMAT |
protected String |
name |
protected CoreSession |
session |
Modifier | Constructor and Description |
---|---|
protected |
ShowcaseContentImporter(CoreSession session,
String name) |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
create(Blob blob) |
protected DocumentModel |
create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite) |
protected String |
getEventName() |
protected String |
getImportPathRoot() |
protected boolean |
isImported() |
protected void |
markImportDone() |
static void |
run(CoreSession session,
String name,
Blob blob) |
public static final String INITIALIZED_EVENT
public static final String DEFAULT_NAME
public static final String INITIALIZED_EVENT_FORMAT
protected CoreSession session
protected ShowcaseContentImporter(CoreSession session, String name)
public static void run(CoreSession session, String name, Blob blob) throws IOException
IOException
public DocumentModel create(Blob blob) throws IOException
IOException
protected DocumentModel create(CoreSession documentManager, Blob content, String path, boolean overwrite) throws IOException
IOException
protected boolean isImported()
protected void markImportDone()
protected String getEventName()
protected String getImportPathRoot()
Copyright © 2018 Nuxeo. All rights reserved.