using System.ComponentModel; namespace Umbraco.Cms.Core.Configuration.Models { /// /// Model representing the global content version cleanup policy /// public class ContentVersionCleanupPolicySettings { private const bool StaticEnableCleanup = false; private const int StaticKeepAllVersionsNewerThanDays = 7; private const int StaticKeepLatestVersionPerDayForDays = 90; /// /// Gets or sets a value indicating whether or not the cleanup job should be executed. /// [DefaultValue(StaticEnableCleanup)] public bool EnableCleanup { get; set; } = StaticEnableCleanup; /// /// Gets or sets the number of days where all historical content versions are kept. /// [DefaultValue(StaticKeepAllVersionsNewerThanDays)] public int KeepAllVersionsNewerThanDays { get; set; } = StaticKeepAllVersionsNewerThanDays; /// /// Gets or sets the number of days where the latest historical content version for that day are kept. /// [DefaultValue(StaticKeepLatestVersionPerDayForDays)] public int KeepLatestVersionPerDayForDays { get; set; } = StaticKeepLatestVersionPerDayForDays; } }