/// <summary>
 /// Initializes a new instance of the <see cref="ComponentRestrictionPermissionDTO" /> class.
 /// </summary>
 /// <param name="requiredPermission">The required permission necessary for this restriction..</param>
 /// <param name="permissions">The permissions for this component restriction. Note: the read permission are not used and will always be false..</param>
 public ComponentRestrictionPermissionDTO(RequiredPermissionDTO requiredPermission = default(RequiredPermissionDTO), PermissionsDTO permissions = default(PermissionsDTO))
 {
     this.RequiredPermission = requiredPermission;
     this.Permissions        = permissions;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExplicitRestrictionDTO" /> class.
 /// </summary>
 /// <param name="requiredPermission">The required permission necessary for this restriction..</param>
 /// <param name="explanation">The description of why the usage of this component is restricted for this required permission..</param>
 public ExplicitRestrictionDTO(RequiredPermissionDTO requiredPermission = default(RequiredPermissionDTO), string explanation = default(string))
 {
     this.RequiredPermission = requiredPermission;
     this.Explanation        = explanation;
 }