Package io.jmix.datatools.impl
Class EntityRestoreImpl
java.lang.Object
io.jmix.datatools.impl.EntityRestoreImpl
- All Implemented Interfaces:
EntityRestore
@Component("datatl_EntityRestore")
public class EntityRestoreImpl
extends Object
implements EntityRestore
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuditConversionService
protected Metadata
protected MetadataTools
protected static int
protected static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
addOffsetToDateMs
(Object dateObject, int offset) protected void
fillProperties
(MetaClass metaClass, List<MetaProperty> properties, String annotationName) protected Class<?>
getDeletedDatePropertyClassNN
(MetaClass metaClass) protected void
restoreDetails
(io.jmix.datatools.impl.EntityRestoreImpl.RestorationContext restorationContext) int
restoreEntities
(Collection<Object> entities) Restore provided entitiesprotected void
restoreEntity
(Object entity, SaveContext saveContext)
-
Field Details
-
RELATED_ENTITY_DELETED_DATE_START_OFFSET_MS
protected static int RELATED_ENTITY_DELETED_DATE_START_OFFSET_MS -
RELATED_ENTITY_DELETED_DATE_END_OFFSET_MS
protected static int RELATED_ENTITY_DELETED_DATE_END_OFFSET_MS -
metadata
-
metadataTools
-
auditConversionService
-
-
Constructor Details
-
EntityRestoreImpl
public EntityRestoreImpl()
-
-
Method Details
-
restoreEntities
Description copied from interface:EntityRestore
Restore provided entities- Specified by:
restoreEntities
in interfaceEntityRestore
- Parameters:
entities
- entities to restore- Returns:
- Amount of restored entities (initially selected + dependent)
-
restoreEntity
-
restoreDetails
protected void restoreDetails(io.jmix.datatools.impl.EntityRestoreImpl.RestorationContext restorationContext) -
getDeletedDatePropertyClassNN
-
addOffsetToDateMs
-
fillProperties
protected void fillProperties(MetaClass metaClass, List<MetaProperty> properties, String annotationName)
-