public class TemplateImportStager extends Object
Textbausteins| Modifier and Type | Field and Description |
|---|---|
protected T |
entity |
protected static org.slf4j.Logger |
LOG |
protected static String |
LOG_PREFIX |
protected boolean |
override |
protected T |
persisted |
| Constructor and Description |
|---|
TemplateImportStager(IEntityContext ec,
Textbaustein entity,
Mandant client) |
| Modifier and Type | Method and Description |
|---|---|
de.xima.cmn.dao.interfaces.IEntity<Long> |
getEntity() |
boolean |
isEntityExists() |
protected void |
makeEntityUnique(IEntityContext ec) |
IEntityImportStager |
override(boolean override)
Sets whether or not already existing entities should be overridden
|
protected void |
postImport() |
protected void |
preCreate(IEntityContext ec) |
protected void |
preUpdate(IEntityContext ec) |
void |
stage(IEntityContext ec)
Stages the import for execution based on the given configuration
|
IEntityImportStager |
withCategory(ETextbausteinKategorie category) |
IEntityImportStager |
withDescription(String desc) |
IEntityImportStager |
withIsSystem(boolean isSystem) |
IEntityImportStager |
withName(String name) |
IEntityImportStager |
withTextValue(String textValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPersistedprotected static final org.slf4j.Logger LOG
protected static final String LOG_PREFIX
protected T extends de.xima.cmn.dao.interfaces.IEntity<Long> entity
protected T extends de.xima.cmn.dao.interfaces.IEntity<Long> persisted
protected boolean override
public TemplateImportStager(IEntityContext ec, Textbaustein entity, Mandant client)
public IEntityImportStager withName(String name)
public IEntityImportStager withDescription(String desc)
public IEntityImportStager withTextValue(String textValue)
public IEntityImportStager withIsSystem(boolean isSystem)
public IEntityImportStager withCategory(ETextbausteinKategorie category)
protected void makeEntityUnique(IEntityContext ec)
protected void preCreate(IEntityContext ec)
public IEntityImportStager override(boolean override)
IEntityImportStageroverride in interface IEntityImportStageroverride - Boolean override entityIEntityImportStager for fluent builder use of importerpublic void stage(IEntityContext ec) throws Exception
IEntityImportStagerstage in interface IEntityImportStagerec - IEntityContext to be usedExceptionpublic de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
getEntity in interface IEntityImportStagerIEntity that shall be importedpublic boolean isEntityExists()
isEntityExists in interface IEntityImportStagerprotected void preUpdate(IEntityContext ec)
protected void postImport()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.