java.lang.Object
org.qubership.integration.platform.runtime.catalog.service.exportimport.ImportSessionService

@Service public class ImportSessionService extends Object
  • Field Details

    • COMMON_VARIABLES_IMPORT_PERCENTAGE_THRESHOLD

      public static final short COMMON_VARIABLES_IMPORT_PERCENTAGE_THRESHOLD
      See Also:
    • SERVICE_IMPORT_PERCENTAGE_THRESHOLD

      public static final short SERVICE_IMPORT_PERCENTAGE_THRESHOLD
      See Also:
    • CHAIN_IMPORT_PERCENTAGE_THRESHOLD

      public static final short CHAIN_IMPORT_PERCENTAGE_THRESHOLD
      See Also:
    • SNAPSHOT_BUILD_PERCENTAGE_THRESHOLD

      public static final short SNAPSHOT_BUILD_PERCENTAGE_THRESHOLD
      See Also:
  • Constructor Details

    • ImportSessionService

      @Autowired public ImportSessionService(@Value("${qip.import.session-lifetime-minutes:300}") Integer importSessionLifetimeMinutes, ImportSessionRepository importSessionRepository)
  • Method Details

    • getImportSession

      @Nullable public ImportSession getImportSession(String importId)
    • saveImportSession

      public void saveImportSession(ImportSession importSession)
    • deleteObsoleteImportSessionStatuses

      @Transactional public void deleteObsoleteImportSessionStatuses()
    • setImportProgressPercentage

      public void setImportProgressPercentage(String importId, int percentage)
    • calculateImportStatus

      public void calculateImportStatus(String importId, int total, int counter, int fromPercentage, int toPercentage)