Esempio n. 1
0
        private void FillTaskPopulatedFields(ADOrganizationConfig organization)
        {
            RbacContainer rbacContainer = null;

            if (OrganizationId.ForestWideOrgId.Equals(organization.OrganizationId))
            {
                rbacContainer = this.ConfigurationSession.GetRbacContainer();
            }
            else
            {
                ExchangeConfigurationUnit exchangeConfigurationUnit = this.ConfigurationSession.GetOrgContainer() as ExchangeConfigurationUnit;
                if (exchangeConfigurationUnit != null)
                {
                    organization.ServicePlan       = exchangeConfigurationUnit.ServicePlan;
                    organization.TargetServicePlan = exchangeConfigurationUnit.TargetServicePlan;
                    if (exchangeConfigurationUnit.IsStaticConfigurationShared)
                    {
                        SharedConfiguration sharedConfiguration = SharedConfiguration.GetSharedConfiguration(organization.OrganizationId);
                        rbacContainer = sharedConfiguration.GetRbacContainer();
                    }
                    else
                    {
                        rbacContainer = this.ConfigurationSession.GetRbacContainer();
                    }
                }
            }
            if (rbacContainer != null)
            {
                organization.RBACConfigurationVersion = rbacContainer.ExchangeVersion;
            }
        }