Enum 3900 Retention Period Enum, source in 25

Source242526272829metadata in 25

src/System Application/App/Retention Policy/src/Retention Period/RetentionPeriodEnum.Enum.al96 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace System.DataAdministration;

/// <Summary>
/// Enum that defines standard retention periods.
/// </Summary>
enum 3900 "Retention Period Enum" implements "Retention Period"
{
    Extensible = true;

    /// <Summary>
    /// The "Never Delete" value results in a retention period where records are never removed.
    /// </Summary>
    value(0; "Never Delete")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = 'Never Delete';
    }
    /// <Summary>
    /// The Custom value can be used to create user defined retention periods.
    /// </Summary>
    value(1; Custom)
    {
        Implementation = "Retention Period" = "Retention Period Custom Impl.";
        Caption = 'Custom';
    }
    /// <Summary>
    /// The "1 Week" value results in a retention period where records that are older than seven days are deleted.
    /// </Summary>
    value(2; "1 Week")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '1 Week';
    }
    /// <Summary>
    /// The "28 Days" value results in a retention period where records that are older than twenty-eight days are deleted.
    /// </Summary>
    value(8; "28 Days")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '28 Days';
    }
    /// <Summary>
    /// The "1 Month" value results in a retention period where records that are older than one month are deleted.
    /// </Summary>
    value(3; "1 Month")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '1 Month';
    }
    /// <Summary>
    /// The "3 Months" value results in a retention period where records that are older than three months are deleted.
    /// </Summary>
    value(4; "3 Months")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '3 Months';
    }
    /// <Summary>
    /// The "6 Months" value results in a retention period where records that are older than six months are deleted.
    /// </Summary>
    value(5; "6 Months")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '6 Months';
    }
    /// <Summary>
    /// The "1 Year" value results in a retention period where records that are older than one year are deleted.
    /// </Summary>
    value(6; "1 Year")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '1 Year';
    }
    /// <Summary>
    /// The "3 Years" value results in a retention period where records that are older than three years are deleted.
    /// </Summary>
    value(9; "3 Years")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '3 Years';
    }
    /// <Summary>
    /// The "5 Years" value results in a retention period where records that are older than five years are deleted.
    /// </Summary>
    value(7; "5 Years")
    {
        Implementation = "Retention Period" = "Retention Period Impl.";
        Caption = '5 Years';
    }
}