diff options
Diffstat (limited to 'OpenSim/Services/Interfaces/IUserAccountService.cs')
-rw-r--r-- | OpenSim/Services/Interfaces/IUserAccountService.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs index cadf297..d0fddee 100644 --- a/OpenSim/Services/Interfaces/IUserAccountService.cs +++ b/OpenSim/Services/Interfaces/IUserAccountService.cs | |||
@@ -44,6 +44,23 @@ namespace OpenSim.Services.Interfaces | |||
44 | PrincipalID = principalID; | 44 | PrincipalID = principalID; |
45 | } | 45 | } |
46 | 46 | ||
47 | /// <summary> | ||
48 | /// Initializes a new instance of the <see cref="OpenSim.Services.Interfaces.UserAccount"/> class. | ||
49 | /// This method is used by externasl/3rd party management applications that need us to create a | ||
50 | /// random UUID for the new user. | ||
51 | /// </summary> | ||
52 | /// <param name='scopeID'> | ||
53 | /// Scope I. | ||
54 | /// </param> | ||
55 | /// <param name='firstName'> | ||
56 | /// First name. | ||
57 | /// </param> | ||
58 | /// <param name='lastName'> | ||
59 | /// Last name. | ||
60 | /// </param> | ||
61 | /// <param name='email'> | ||
62 | /// Email. | ||
63 | /// </param> | ||
47 | public UserAccount(UUID scopeID, string firstName, string lastName, string email) | 64 | public UserAccount(UUID scopeID, string firstName, string lastName, string email) |
48 | { | 65 | { |
49 | PrincipalID = UUID.Random(); | 66 | PrincipalID = UUID.Random(); |
@@ -74,6 +91,7 @@ namespace OpenSim.Services.Interfaces | |||
74 | public int UserLevel; | 91 | public int UserLevel; |
75 | public int UserFlags; | 92 | public int UserFlags; |
76 | public string UserTitle; | 93 | public string UserTitle; |
94 | public string UserCountry; | ||
77 | 95 | ||
78 | public Dictionary<string, object> ServiceURLs; | 96 | public Dictionary<string, object> ServiceURLs; |
79 | 97 | ||
@@ -102,6 +120,8 @@ namespace OpenSim.Services.Interfaces | |||
102 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); | 120 | UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); |
103 | if (kvp.ContainsKey("UserTitle")) | 121 | if (kvp.ContainsKey("UserTitle")) |
104 | UserTitle = kvp["UserTitle"].ToString(); | 122 | UserTitle = kvp["UserTitle"].ToString(); |
123 | if (kvp.ContainsKey("UserCountry")) | ||
124 | UserCountry = kvp["UserCountry"].ToString(); | ||
105 | 125 | ||
106 | if (kvp.ContainsKey("Created")) | 126 | if (kvp.ContainsKey("Created")) |
107 | Created = Convert.ToInt32(kvp["Created"].ToString()); | 127 | Created = Convert.ToInt32(kvp["Created"].ToString()); |
@@ -135,6 +155,7 @@ namespace OpenSim.Services.Interfaces | |||
135 | result["UserLevel"] = UserLevel.ToString(); | 155 | result["UserLevel"] = UserLevel.ToString(); |
136 | result["UserFlags"] = UserFlags.ToString(); | 156 | result["UserFlags"] = UserFlags.ToString(); |
137 | result["UserTitle"] = UserTitle; | 157 | result["UserTitle"] = UserTitle; |
158 | result["UserCountry"] = UserCountry; | ||
138 | 159 | ||
139 | string str = string.Empty; | 160 | string str = string.Empty; |
140 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) | 161 | foreach (KeyValuePair<string, object> kvp in ServiceURLs) |
@@ -161,6 +182,7 @@ namespace OpenSim.Services.Interfaces | |||
161 | /// <param name="query"></param> | 182 | /// <param name="query"></param> |
162 | /// <returns></returns> | 183 | /// <returns></returns> |
163 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); | 184 | List<UserAccount> GetUserAccounts(UUID scopeID, string query); |
185 | List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where); | ||
164 | 186 | ||
165 | /// <summary> | 187 | /// <summary> |
166 | /// Store the data given, wich replaces the stored data, therefore must be complete. | 188 | /// Store the data given, wich replaces the stored data, therefore must be complete. |