Quota Editor control update to support min and max values.

Exchange controller updated to not accept recoverable item space of smaller than
6144MB
This commit is contained in:
robvde 2014-07-20 11:23:52 +08:00
parent 7de55cfd78
commit 03dd3cfad9
7 changed files with 112 additions and 43 deletions

View file

@ -1728,6 +1728,9 @@ namespace WebsitePanel.EnterpriseServer
if (plan.RecoverableItemsSpace == -1)
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
if (plan.RecoverableItemsSpace < 6144)
return BusinessErrorCodes.ERROR_EXCHANGE_INVALID_RECOVERABLEITEMS_QUOTA;
if ((quotaRecoverableItemsUsed + plan.RecoverableItemsSpace) > (maxRecoverableItemsSpace))
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
}
@ -2702,6 +2705,9 @@ namespace WebsitePanel.EnterpriseServer
if (plan.RecoverableItemsSpace == -1)
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
if (plan.RecoverableItemsSpace < 6144)
return BusinessErrorCodes.ERROR_EXCHANGE_INVALID_RECOVERABLEITEMS_QUOTA;
if ((quotaRecoverableItemsUsed + plan.RecoverableItemsSpace) > (maxRecoverableItemsSpace))
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
}