Beispiel #1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GovernancePolicyCreateDetails"
        /// /> class.</para>
        /// </summary>
        /// <param name="governancePolicyId">Policy ID.</param>
        /// <param name="name">Policy name.</param>
        /// <param name="duration">Duration in days.</param>
        /// <param name="policyType">Policy type.</param>
        /// <param name="folders">Folders.</param>
        public GovernancePolicyCreateDetails(string governancePolicyId,
                                             string name,
                                             DurationLogInfo duration,
                                             PolicyType policyType            = null,
                                             col.IEnumerable <string> folders = null)
        {
            if (governancePolicyId == null)
            {
                throw new sys.ArgumentNullException("governancePolicyId");
            }

            if (name == null)
            {
                throw new sys.ArgumentNullException("name");
            }

            if (duration == null)
            {
                throw new sys.ArgumentNullException("duration");
            }

            var foldersList = enc.Util.ToList(folders);

            this.GovernancePolicyId = governancePolicyId;
            this.Name       = name;
            this.Duration   = duration;
            this.PolicyType = policyType;
            this.Folders    = foldersList;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="GovernancePolicyEditDurationDetails" /> class.</para>
        /// </summary>
        /// <param name="governancePolicyId">Policy ID.</param>
        /// <param name="name">Policy name.</param>
        /// <param name="previousValue">From.</param>
        /// <param name="newValue">To.</param>
        /// <param name="policyType">Policy type.</param>
        public GovernancePolicyEditDurationDetails(string governancePolicyId,
                                                   string name,
                                                   DurationLogInfo previousValue,
                                                   DurationLogInfo newValue,
                                                   PolicyType policyType = null)
        {
            if (governancePolicyId == null)
            {
                throw new sys.ArgumentNullException("governancePolicyId");
            }

            if (name == null)
            {
                throw new sys.ArgumentNullException("name");
            }

            if (previousValue == null)
            {
                throw new sys.ArgumentNullException("previousValue");
            }

            if (newValue == null)
            {
                throw new sys.ArgumentNullException("newValue");
            }

            this.GovernancePolicyId = governancePolicyId;
            this.Name          = name;
            this.PreviousValue = previousValue;
            this.NewValue      = newValue;
            this.PolicyType    = policyType;
        }
Beispiel #3
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GovernancePolicyDeleteDetails"
        /// /> class.</para>
        /// </summary>
        /// <param name="governancePolicyId">Policy ID.</param>
        /// <param name="name">Policy name.</param>
        /// <param name="policyType">Policy type.</param>
        public GovernancePolicyDeleteDetails(string governancePolicyId,
                                             string name,
                                             PolicyType policyType = null)
        {
            if (governancePolicyId == null)
            {
                throw new sys.ArgumentNullException("governancePolicyId");
            }

            if (name == null)
            {
                throw new sys.ArgumentNullException("name");
            }

            this.GovernancePolicyId = governancePolicyId;
            this.Name       = name;
            this.PolicyType = policyType;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="GovernancePolicyEditDetailsDetails" /> class.</para>
        /// </summary>
        /// <param name="governancePolicyId">Policy ID.</param>
        /// <param name="name">Policy name.</param>
        /// <param name="attribute">Attribute.</param>
        /// <param name="previousValue">From.</param>
        /// <param name="newValue">To.</param>
        /// <param name="policyType">Policy type.</param>
        public GovernancePolicyEditDetailsDetails(string governancePolicyId,
                                                  string name,
                                                  string attribute,
                                                  string previousValue,
                                                  string newValue,
                                                  PolicyType policyType = null)
        {
            if (governancePolicyId == null)
            {
                throw new sys.ArgumentNullException("governancePolicyId");
            }

            if (name == null)
            {
                throw new sys.ArgumentNullException("name");
            }

            if (attribute == null)
            {
                throw new sys.ArgumentNullException("attribute");
            }

            if (previousValue == null)
            {
                throw new sys.ArgumentNullException("previousValue");
            }

            if (newValue == null)
            {
                throw new sys.ArgumentNullException("newValue");
            }

            this.GovernancePolicyId = governancePolicyId;
            this.Name          = name;
            this.Attribute     = attribute;
            this.PreviousValue = previousValue;
            this.NewValue      = newValue;
            this.PolicyType    = policyType;
        }