public FileAccess(UserId userId, Permission[] permission) { if (userId == null) throw new ArgumentException("FileAccess must have a UserId node."); if ((permission == null) || (permission.Length == 0)) throw new ArgumentException("FileAccess must have at least one Permission node."); this.userId = userId; this.permission = permission; }
public FileAccess(UserId userId, Permission permission) { if (userId == null) throw new ArgumentException("FileAccess must have a UserId node."); this.userId = userId; this.permission = new[] {permission}; }
public User(UserId userId, string ident, UserCategoryEnum category) : this(new[] {userId}, ident, category) { }
public User(UserId[] userId, string ident, UserCategoryEnum category) : this(userId) { this.ident = string.IsNullOrEmpty(ident) ? "0" : ident; this.category = category; }
public User(UserId[] userId) { if ((userId == null) || (userId.Length == 0)) throw new ArgumentException("User must have at least one UserId node."); this.userId = userId; }
public User(UserId userId) { if (userId == null) throw new ArgumentException("User must have at least one UserId node."); this.userId = new[] {userId}; }