package com.iqser.red.service.persistence.management.v1.processor.settings;

import java.util.HashSet;
import java.util.Set;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

@Data
@ConfigurationProperties("persistence-service")
public class FileManagementServiceSettings {

    private FileUploadSettings fileUploadSettings = new FileUploadSettings();

    private int maxRetryInterval = 60000;
    private int maxRetryAttempts = 20;

    private int downloadCleanupFetchLimit = 200;
//    private int downloadCleanupDownloadFilesHours = 8;
//    private int downloadCleanupNotDownloadFilesHours = 72;
//
//    private int softDeleteCleanupTime = 96;

    private boolean imageServiceEnabled = true;
    private boolean nerServiceEnabled = true;

    private boolean storeImageFile = true;

    private boolean migrateOnly;

    private int maxErrorRetries = 1;

    private boolean cvTableParsingEnabled;

    private boolean figureDetectionEnabled;

    private boolean scmEnabled;

    private double compressionThresholdRatio = 10;

    private int tenantAccessTokenLifeSpan = 300;
    private int ssoSessionIdleTimeout = 1800;

    private String applicationName = "RedactManager";
    private Set<String> defaultFilterTypes = new HashSet<>();
    private Set<String> defaultFilterHintTypes = new HashSet<>();

}
