Package de.xima.fc.exporter
Class AEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
- java.lang.Object
-
- de.xima.fc.exporter.AEntityExporter<T>
-
- All Implemented Interfaces:
IEntityExporter<T>,Serializable
- Direct Known Subclasses:
ProjectExporter,TemplateExporter
public abstract class AEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>> extends Object implements IEntityExporter<T>
Abstract base class for entity exporters- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_EXPORT_FILE_EXTENSIONprotected static StringDEFAULT_EXPORT_PROJECT_EXTENSIONprotected Map<de.xima.cmn.dao.interfaces.IEntity<Long>,Boolean>dependenciesprotected Tentitystatic StringEXPORT_PROCESSING_VERSIONstatic StringFC_EXPORT_METADATAprotected static org.slf4j.LoggerLOGprotected static StringLOG_PREFIXprotected IUseruserDeprecated.
-
Constructor Summary
Constructors Constructor Description AEntityExporter(IEntityContext ec, T entity)AEntityExporter(IEntityContext ec, T... entities)Deprecated.AEntityExporter(IEntityContext ec, T entity, boolean withoutDependencies)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<DeserializedEntity>doExport(IEntityContext ec)Deprecated.FiledoExport(IEntityContext ec, File outDir, Benutzer user)Deprecated.FiledoExport(IEntityContext ec, File outDir, IUser user)Exports the set entities to the given directoryFiledoExport(IEntityContext ec, File outDir, String outName, Benutzer user)Deprecated.FiledoExport(IEntityContext ec, File outDir, String outName, IUser user)Map<de.xima.cmn.dao.interfaces.IEntity<Long>,Boolean>getDependencies()List<T>getEntities()Deprecated.TgetEntity()Deprecated.protected voidinitDependencies(IEntityContext ec)protected voidinitInternalDependenciesOnly(IEntityContext ec)IEntityExporter<T>withCompatitbiltyMode(boolean compatitbiltyMode)Deprecated.
-
-
-
Field Detail
-
EXPORT_PROCESSING_VERSION
public static final String EXPORT_PROCESSING_VERSION
- See Also:
- Constant Field Values
-
FC_EXPORT_METADATA
public static final String FC_EXPORT_METADATA
- See Also:
- Constant Field Values
-
LOG
protected static final org.slf4j.Logger LOG
-
LOG_PREFIX
protected static final String LOG_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_EXPORT_FILE_EXTENSION
protected static final String DEFAULT_EXPORT_FILE_EXTENSION
- See Also:
- Constant Field Values
-
DEFAULT_EXPORT_PROJECT_EXTENSION
protected static final String DEFAULT_EXPORT_PROJECT_EXTENSION
- See Also:
- Constant Field Values
-
user
@Deprecated protected IUser user
Deprecated.
-
-
Constructor Detail
-
AEntityExporter
public AEntityExporter(IEntityContext ec, T entity)
-
AEntityExporter
public AEntityExporter(IEntityContext ec, T entity, boolean withoutDependencies)
-
AEntityExporter
@Deprecated public AEntityExporter(IEntityContext ec, T... entities)
Deprecated.useAEntityExporter(IEntityContext, IEntity)instead
-
-
Method Detail
-
getEntity
@Deprecated public T getEntity()
Deprecated.- Specified by:
getEntityin interfaceIEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
-
getEntities
@Deprecated public List<T> getEntities()
Deprecated.- Specified by:
getEntitiesin interfaceIEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>
-
withCompatitbiltyMode
@Deprecated public IEntityExporter<T> withCompatitbiltyMode(boolean compatitbiltyMode)
Deprecated.Compatibility mode not supported anymore in FC 7- Specified by:
withCompatitbiltyModein interfaceIEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
compatitbiltyMode-Booleanwhether or not entities should be exportedt in compatibility mode- Returns:
IEntityExporterthe exporter
-
doExport
@Deprecated public List<DeserializedEntity> doExport(IEntityContext ec) throws Exception
Deprecated.- Throws:
Exception
-
doExport
@Deprecated public File doExport(IEntityContext ec, File outDir, Benutzer user) throws Exception
Deprecated.Description copied from interface:IEntityExporterExports the set entities to the given directory- Specified by:
doExportin interfaceIEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
ec- Entity context for accessing the database.outDir-Fileto export files touser-Benutzerto export the entities for- Returns:
Fileexport file- Throws:
Exception- When the export could not be created.
-
doExport
public File doExport(IEntityContext ec, File outDir, IUser user) throws Exception
Description copied from interface:IEntityExporterExports the set entities to the given directory- Specified by:
doExportin interfaceIEntityExporter<T extends de.xima.cmn.dao.interfaces.IEntity<Long>>- Parameters:
ec- Entity context for accessing the database.outDir-Fileto export files touser-Benutzerto export the entities for- Returns:
Fileexport file- Throws:
Exception- When the export could not be created.
-
doExport
@Deprecated public File doExport(IEntityContext ec, File outDir, String outName, Benutzer user) throws Exception
Deprecated.- Throws:
Exception
-
doExport
public File doExport(IEntityContext ec, File outDir, String outName, IUser user) throws Exception
- Throws:
Exception
-
initDependencies
protected void initDependencies(IEntityContext ec)
-
initInternalDependenciesOnly
protected void initInternalDependenciesOnly(IEntityContext ec)
-
-