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 Details

    • metadata

      @Autowired protected Metadata metadata
    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • auditConversionService

      @Autowired protected AuditConversionService auditConversionService
  • Constructor Details

    • EntityRestoreImpl

      public EntityRestoreImpl()
  • Method Details

    • restoreEntities

      public int restoreEntities(Collection<Object> entities)
      Description copied from interface: EntityRestore
      Restore provided entities
      Specified by:
      restoreEntities in interface EntityRestore
      Parameters:
      entities - entities to restore
      Returns:
      Amount of restored entities (initially selected + dependent)
    • restoreEntity

      protected void restoreEntity(Object entity, SaveContext saveContext)
    • restoreDetails

      protected void restoreDetails(io.jmix.datatools.impl.EntityRestoreImpl.RestorationContext restorationContext)
    • getDeletedDatePropertyClassNN

      protected Class<?> getDeletedDatePropertyClassNN(MetaClass metaClass)
    • addOffsetToDateMs

      protected Object addOffsetToDateMs(Object dateObject, int offset)
    • fillProperties

      protected void fillProperties(MetaClass metaClass, List<MetaProperty> properties, String annotationName)