public static void GetListForPickerPostAction(DataRow inputrow, DataTable dataTable, DataObjectStore store)
        {
            List <DataRow> list = new List <DataRow>();

            dataTable.BeginLoadData();
            foreach (object obj in dataTable.Rows)
            {
                DataRow       dataRow       = (DataRow)obj;
                ElcFolderType elcFolderType = (ElcFolderType)dataRow["Type"];
                if (elcFolderType == ElcFolderType.ManagedCustomFolder)
                {
                    list.Add(dataRow);
                }
                else
                {
                    EnhancedTimeSpan?ageLimitForRetention = dataRow["AgeLimitForRetention"].IsNullValue() ? null : ((EnhancedTimeSpan?)dataRow["AgeLimitForRetention"]);
                    dataRow["FolderType"]                = RetentionUtils.GetLocalizedType((ElcFolderType)dataRow["Type"]);
                    dataRow["RetentionDays"]             = RetentionPolicyTagPropertiesHelper.GetRetentionDays(ageLimitForRetention, (bool)dataRow["RetentionEnabled"]);
                    dataRow["RetentionPeriodDays"]       = RetentionPolicyTagPropertiesHelper.GetRetentionPeriodDays(ageLimitForRetention, (bool)dataRow["RetentionEnabled"]);
                    dataRow["RetentionPolicyActionType"] = RetentionUtils.GetLocalizedRetentionActionType((RetentionActionType)dataRow["RetentionAction"]);
                }
            }
            foreach (DataRow row in list)
            {
                dataTable.Rows.Remove(row);
            }
            dataTable.EndLoadData();
        }
        public static void GetForSDOPostAction(DataRow inputrow, DataTable dataTable, DataObjectStore store)
        {
            if (dataTable.Rows.Count == 0)
            {
                return;
            }
            DataRow          dataRow = dataTable.Rows[0];
            EnhancedTimeSpan?ageLimitForRetention = dataRow["AgeLimitForRetention"].IsNullValue() ? null : ((EnhancedTimeSpan?)dataRow["AgeLimitForRetention"]);

            dataRow["FolderType"]                 = RetentionUtils.GetLocalizedType((ElcFolderType)dataRow["Type"]);
            dataRow["RetentionPeriodDetail"]      = RetentionPolicyTagPropertiesHelper.GetRetentionPeriodDetail(ageLimitForRetention, (bool)dataRow["RetentionEnabled"]);
            dataRow["RetentionActionDescription"] = RetentionPolicyTagPropertiesHelper.GetLocalizedRetentionAction((bool)dataRow["RetentionEnabled"], (RetentionActionType)dataRow["RetentionAction"]);
        }
        public static void GetObjectPostAction(DataRow inputrow, DataTable dataTable, DataObjectStore store)
        {
            if (dataTable.Rows.Count == 0)
            {
                return;
            }
            DataRow          dataRow = dataTable.Rows[0];
            EnhancedTimeSpan?ageLimitForRetention = dataRow["AgeLimitForRetention"].IsNullValue() ? null : ((EnhancedTimeSpan?)dataRow["AgeLimitForRetention"]);

            dataRow["TypeGroup"]                 = RetentionPolicyTagPropertiesHelper.GetLocalizedType((ElcFolderType)dataRow["Type"]);
            dataRow["AgeLimitForRetention"]      = ((ageLimitForRetention != null) ? ageLimitForRetention.Value.Days.ToString() : null);
            dataRow["FolderType"]                = RetentionUtils.GetLocalizedType((ElcFolderType)dataRow["Type"]);
            dataRow["RetentionDays"]             = RetentionPolicyTagPropertiesHelper.GetRetentionDays(ageLimitForRetention, (bool)dataRow["RetentionEnabled"]);
            dataRow["RetentionPeriodDays"]       = RetentionPolicyTagPropertiesHelper.GetRetentionPeriodDays(ageLimitForRetention, (bool)dataRow["RetentionEnabled"]);
            dataRow["RetentionPolicyActionType"] = RetentionUtils.GetLocalizedRetentionActionType((RetentionActionType)dataRow["RetentionAction"]);
        }