Exemple #1
0
        public static void SetObjectPreAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
        {
            DataRow       dataRow = dataTable.Rows[0];
            List <string> list    = new List <string>();

            MailboxPropertiesHelper.SaveQuotaProperty(dataRow, null, "IssueWarningQuota", list);
            MailboxPropertiesHelper.SaveQuotaProperty(dataRow, null, "ProhibitSendQuota", list);
            MailboxPropertiesHelper.SaveQuotaProperty(dataRow, null, "ProhibitSendReceiveQuota", list);
            if (DBNull.Value != dataRow["DeletedItemRetention"])
            {
                dataRow["DeletedItemRetention"] = EnhancedTimeSpan.Parse((string)dataRow["DeletedItemRetention"]);
                list.Add("DeletedItemRetention");
            }
            if (DBNull.Value != dataRow["MailboxRetention"])
            {
                dataRow["MailboxRetention"] = EnhancedTimeSpan.Parse((string)dataRow["MailboxRetention"]);
                list.Add("MailboxRetention");
            }
            DatabasePropertiesHelper.SetScheduleProperty(dataRow, "MaintenanceSchedule", list);
            DatabasePropertiesHelper.SetScheduleProperty(dataRow, "QuotaNotificationSchedule", list);
            if (list.Count != 0)
            {
                store.SetModifiedColumns(list);
            }
        }
Exemple #2
0
        public static void GetMailboxDatabasePostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
        {
            DatabasePropertiesHelper.FilterRecoveryDatabase(dataTable);
            int    currentExchangeMajorVersion = Server.CurrentExchangeMajorVersion;
            string text = inputRow["Version"] as string;

            if (text == "*")
            {
                return;
            }
            if (!string.IsNullOrEmpty(text))
            {
                int.TryParse(text, out currentExchangeMajorVersion);
            }
            DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, currentExchangeMajorVersion, null);
        }
Exemple #3
0
        public static void GetMailboxServerPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
        {
            int    majorVersion = 0;
            string text         = inputRow["Version"] as string;

            if (text == "current")
            {
                majorVersion = Server.CurrentExchangeMajorVersion;
            }
            else
            {
                int.TryParse(text, out majorVersion);
            }
            DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, majorVersion, null);
            foreach (object obj in dataTable.Rows)
            {
                DataRow dataRow = (DataRow)obj;
                if (DBNull.Value != dataRow["DataPath"])
                {
                    LocalLongFullPath localLongFullPath = (LocalLongFullPath)dataRow["DataPath"];
                    dataRow["DataPath"] = localLongFullPath.PathName;
                }
            }
        }
Exemple #4
0
 private static void FilterMailboxServerRows(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, Server.CurrentExchangeMajorVersion, null);
 }
Exemple #5
0
 public static void GetMailboxDatabasePostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRecoveryDatabase(dataTable);
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, 0, new Func <DataRow, DataRow, DataObjectStore, bool>(DatabasePropertiesHelper.IsAdminDisplayVersionE14OrAfter));
 }
Exemple #6
0
 public static void GetServersForSwitchOver(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, Server.CurrentExchangeMajorVersion, new Func <DataRow, DataRow, DataObjectStore, bool>(DatabasePropertiesHelper.FindServerToSwichover));
 }
Exemple #7
0
 public static void GetServerToManageDAGMember(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, Server.CurrentExchangeMajorVersion, new Func <DataRow, DataRow, DataObjectStore, bool>(DatabasePropertiesHelper.FindServerInSameDagOrNotAnyDag));
 }
Exemple #8
0
 public static void GetServerForSeedingPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, Server.CurrentExchangeMajorVersion, new Func <DataRow, DataRow, DataObjectStore, bool>(DatabasePropertiesHelper.FindServerInSameDatabaseButNotCurrentServer));
 }
Exemple #9
0
 public static void GetServerToAddCopyPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     DatabasePropertiesHelper.FilterRowsByAdminDisplayVersion(inputRow, dataTable, store, Server.CurrentExchangeMajorVersion, new Func <DataRow, DataRow, DataObjectStore, bool>(DatabasePropertiesHelper.FindServerInSameDagButDontHaveTheDatabase));
 }