2 * Firebird ADO.NET Data provider for .NET and Mono
4 * The contents of this file are subject to the Initial
5 * Developer's Public License Version 1.0 (the "License");
6 * you may not use this file except in compliance with the
7 * License. You may obtain a copy of the License at
8 * http://www.firebirdsql.org/index.php?op=doc&id=idpl
10 * Software distributed under the License is distributed on
11 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
12 * express or implied. See the License for the specific
13 * language governing rights and limitations under the License.
15 * Copyright (c) 2002, 2005 Carlos Guzman Alvarez
16 * All Rights Reserved.
21 namespace FirebirdSql.Data.Firebird.Services
23 /// <include file='Doc/en_EN/FbService.xml' path='doc/class[@name="FbUserData"]/overview/*'/>
24 public sealed class FbUserData
28 private string userName;
29 private string firstName;
30 private string lastName;
31 private string middleName;
32 private string userPassword;
33 private string groupName;
34 private string roleName;
42 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="UserName"]/*'/>
43 public string UserName
45 get { return this.userName; }
50 throw new InvalidOperationException("The user name cannot be null.");
52 if (value.Length > 31)
54 throw new InvalidOperationException("The user name cannot have more than 31 characters.");
57 this.userName = value;
61 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="UserPassword"]/*'/>
62 public string UserPassword
64 get { return this.userPassword; }
69 throw new InvalidOperationException("The user password cannot be null.");
71 if (value.Length > 31)
73 throw new InvalidOperationException("The user password cannot have more than 31 characters.");
76 this.userPassword = value;
80 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="FirstName"]/*'/>
81 public string FirstName
83 get { return this.firstName; }
84 set { this.firstName = value; }
87 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="LastName"]/*'/>
88 public string LastName
90 get { return this.lastName; }
91 set { this.lastName = value; }
94 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="MiddleName"]/*'/>
95 public string MiddleName
97 get { return this.middleName; }
98 set { this.middleName = value; }
101 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="UserID"]/*'/>
104 get { return this.userID; }
105 set { this.userID = value; }
108 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="GroupID"]/*'/>
111 get { return this.groupID; }
112 set { this.groupID = value; }
115 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="GroupName"]/*'/>
116 public string GroupName
118 get { return this.groupName; }
119 set { this.groupName = value; }
122 /// <include file='Doc/en_EN/FbService.xml' path='doc/struct[@name="FbUserData"]/property[@name="RoleName"]/*'/>
123 public string RoleName
125 get { return this.roleName; }
126 set { this.roleName = value; }
133 /// <include file='Doc/en_EN/FbService.xml' path='doc/class[@name="FbUserData"]/constructor[@name="FbUserData"]/*'/>
136 this.userName = String.Empty;
137 this.firstName = String.Empty;
138 this.lastName = String.Empty;
139 this.middleName = String.Empty;
140 this.userPassword = String.Empty;
141 this.roleName = String.Empty;