Exemplo n.º 1
0
        protected override void SetPropsOnDeviceRule(DeviceRuleBase pdeviceRule)
        {
            DeviceTenantRule deviceTenantRule = (DeviceTenantRule)pdeviceRule;

            deviceTenantRule.ApplyPolicyTo           = this.ApplyPolicyTo;
            deviceTenantRule.BlockUnsupportedDevices = this.BlockUnsupportedDevices;
        }
Exemplo n.º 2
0
        protected override void WriteResult(IConfigurable dataObject)
        {
            DeviceRuleBase deviceRuleBase = this.CreateDeviceRuleObject(dataObject as RuleStorage);

            deviceRuleBase.PopulateTaskProperties(this, base.DataSession as IConfigurationSession);
            base.WriteResult(deviceRuleBase);
        }
Exemplo n.º 3
0
        protected override void SetPropsOnDeviceRule(DeviceRuleBase pdeviceRule)
        {
            DeviceConditionalAccessRule deviceConditionalAccessRule = (DeviceConditionalAccessRule)pdeviceRule;

            deviceConditionalAccessRule.AllowJailbroken               = this.AllowJailbroken;
            deviceConditionalAccessRule.PasswordRequired              = this.PasswordRequired;
            deviceConditionalAccessRule.PhoneMemoryEncrypted          = this.PhoneMemoryEncrypted;
            deviceConditionalAccessRule.PasswordTimeout               = this.PasswordTimeout;
            deviceConditionalAccessRule.PasswordMinimumLength         = this.PasswordMinimumLength;
            deviceConditionalAccessRule.PasswordHistoryCount          = this.PasswordHistoryCount;
            deviceConditionalAccessRule.PasswordExpirationDays        = this.PasswordExpirationDays;
            deviceConditionalAccessRule.PasswordMinComplexChars       = this.PasswordMinComplexChars;
            deviceConditionalAccessRule.AllowSimplePassword           = this.AllowSimplePassword;
            deviceConditionalAccessRule.PasswordQuality               = this.PasswordQuality;
            deviceConditionalAccessRule.MaxPasswordAttemptsBeforeWipe = this.MaxPasswordAttemptsBeforeWipe;
            deviceConditionalAccessRule.EnableRemovableStorage        = this.EnableRemovableStorage;
            deviceConditionalAccessRule.CameraEnabled             = this.CameraEnabled;
            deviceConditionalAccessRule.BluetoothEnabled          = this.BluetoothEnabled;
            deviceConditionalAccessRule.ForceEncryptedBackup      = this.ForceEncryptedBackup;
            deviceConditionalAccessRule.AllowiCloudDocSync        = this.AllowiCloudDocSync;
            deviceConditionalAccessRule.AllowiCloudPhotoSync      = this.AllowiCloudPhotoSync;
            deviceConditionalAccessRule.AllowiCloudBackup         = this.AllowiCloudBackup;
            deviceConditionalAccessRule.RegionRatings             = this.RegionRatings;
            deviceConditionalAccessRule.MoviesRating              = this.MoviesRating;
            deviceConditionalAccessRule.TVShowsRating             = this.TVShowsRating;
            deviceConditionalAccessRule.AppsRating                = this.AppsRating;
            deviceConditionalAccessRule.AllowVoiceDialing         = this.AllowVoiceDialing;
            deviceConditionalAccessRule.AllowVoiceAssistant       = this.AllowVoiceAssistant;
            deviceConditionalAccessRule.AllowAssistantWhileLocked = this.AllowAssistantWhileLocked;
            deviceConditionalAccessRule.AllowScreenshot           = this.AllowScreenshot;
            deviceConditionalAccessRule.AllowVideoConferencing    = this.AllowVideoConferencing;
            deviceConditionalAccessRule.AllowPassbookWhileLocked  = this.AllowPassbookWhileLocked;
            deviceConditionalAccessRule.AllowDiagnosticSubmission = this.AllowDiagnosticSubmission;
            deviceConditionalAccessRule.AllowConvenienceLogon     = this.AllowConvenienceLogon;
            deviceConditionalAccessRule.MaxPasswordGracePeriod    = this.MaxPasswordGracePeriod;
            deviceConditionalAccessRule.AllowAppStore             = this.AllowAppStore;
            deviceConditionalAccessRule.ForceAppStorePassword     = this.ForceAppStorePassword;
            deviceConditionalAccessRule.SystemSecurityTLS         = this.SystemSecurityTLS;
            deviceConditionalAccessRule.UserAccountControlStatus  = this.UserAccountControlStatus;
            deviceConditionalAccessRule.FirewallStatus            = this.FirewallStatus;
            deviceConditionalAccessRule.AutoUpdateStatus          = this.AutoUpdateStatus;
            deviceConditionalAccessRule.AntiVirusStatus           = this.AntiVirusStatus;
            deviceConditionalAccessRule.AntiVirusSignatureStatus  = this.AntiVirusSignatureStatus;
            deviceConditionalAccessRule.SmartScreenEnabled        = this.SmartScreenEnabled;
            deviceConditionalAccessRule.WorkFoldersSyncUrl        = this.WorkFoldersSyncUrl;
            deviceConditionalAccessRule.PasswordComplexity        = this.PasswordComplexity;
            deviceConditionalAccessRule.WLANEnabled               = this.WLANEnabled;
            deviceConditionalAccessRule.AccountName               = this.AccountName;
            deviceConditionalAccessRule.AccountUserName           = this.AccountUserName;
            deviceConditionalAccessRule.ExchangeActiveSyncHost    = this.ExchangeActiveSyncHost;
            deviceConditionalAccessRule.EmailAddress              = this.EmailAddress;
            deviceConditionalAccessRule.UseSSL    = this.UseSSL;
            deviceConditionalAccessRule.AllowMove = this.AllowMove;
            deviceConditionalAccessRule.AllowRecentAddressSyncing = this.AllowRecentAddressSyncing;
            deviceConditionalAccessRule.DaysToSync     = this.DaysToSync;
            deviceConditionalAccessRule.ContentType    = this.ContentType;
            deviceConditionalAccessRule.UseSMIME       = this.UseSMIME;
            deviceConditionalAccessRule.SyncSchedule   = this.SyncSchedule;
            deviceConditionalAccessRule.UseOnlyInEmail = this.UseOnlyInEmail;
        }
Exemplo n.º 4
0
        protected override void StampChangesOn(IConfigurable dataObject)
        {
            base.StampChangesOn(dataObject);
            DeviceRuleBase deviceRuleBase = this.CreateDeviceRule(dataObject as RuleStorage);

            deviceRuleBase.PopulateTaskProperties(this, base.DataSession as IConfigurationSession);
            deviceRuleBase.CopyChangesFrom(base.DynamicParametersInstance);
            deviceRuleBase.TargetGroups = this.TargetGroups;
            this.SetPropsOnDeviceRule(deviceRuleBase);
            deviceRuleBase.UpdateStorageProperties(this, base.DataSession as IConfigurationSession, false);
        }
Exemplo n.º 5
0
        protected override IConfigurable PrepareDataObject()
        {
            RuleStorage ruleStorage = (RuleStorage)base.PrepareDataObject();

            ruleStorage.Name = this.ruleName;
            ruleStorage.SetId(((ADObjectId)this.policyStorage.Identity).GetChildId(this.ruleName));
            DeviceRuleBase deviceRuleBase = this.CreateDeviceRule(ruleStorage);

            deviceRuleBase.Policy       = Utils.GetUniversalIdentity(this.policyStorage);
            deviceRuleBase.Workload     = this.policyStorage.Workload;
            deviceRuleBase.TargetGroups = this.TargetGroups;
            this.SetPropsOnDeviceRule(deviceRuleBase);
            deviceRuleBase.UpdateStorageProperties(this, base.DataSession as IConfigurationSession, true);
            return(ruleStorage);
        }
Exemplo n.º 6
0
 protected abstract void SetPropsOnDeviceRule(DeviceRuleBase deviceRule);