public abstract class AEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Object implements IEntityExporter<T>
Modifier and Type | Field and Description |
---|---|
protected Map<de.xima.cmn.dao.interfaces.IEntity<Long>,Boolean> |
dependencies |
protected List<T> |
entities |
static String |
EXPORT_PROCESSING_VERSION |
static String |
FC_EXPORT_METADATA |
protected static org.slf4j.Logger |
LOG |
protected static String |
LOG_PREFIX |
protected Benutzer |
user |
Constructor and Description |
---|
AEntityExporter(IEntityContext ec,
T... entities) |
Modifier and Type | Method and Description |
---|---|
File |
doExport(IEntityContext ec,
File outDir,
Benutzer user)
Exports the set entities to the given directory
|
Map<de.xima.cmn.dao.interfaces.IEntity<Long>,Boolean> |
getDependencies() |
List<T> |
getEntities() |
protected void |
initDependencies(IEntityContext ec) |
IEntityExporter<T> |
withCompatitbiltyMode(boolean compatitbiltyMode) |
protected static final org.slf4j.Logger LOG
protected static final String LOG_PREFIX
public static final String EXPORT_PROCESSING_VERSION
public static final String FC_EXPORT_METADATA
protected Benutzer user
public AEntityExporter(IEntityContext ec, T... entities)
public IEntityExporter<T> withCompatitbiltyMode(boolean compatitbiltyMode)
withCompatitbiltyMode
in interface IEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
compatitbiltyMode
- Boolean
whether or not entities should be exportedt in compatibility modeIEntityExporter
the exporterpublic File doExport(IEntityContext ec, File outDir, Benutzer user) throws Exception
IEntityExporter
public List<T> getEntities()
getEntities
in interface IEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
List
of entities that should be exportedprotected void initDependencies(IEntityContext ec)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.