aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-08-13 23:41:57 +0100
committerUbitUmarov2016-08-13 23:41:57 +0100
commit1337f5f26e628dc7c5d038ffee5e957d95a72566 (patch)
treee022d04db0e0174ade41f0c497651f5ff2115c03 /OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
parent add some wiring to have GetUserAccounts for multiple IDs on a single request... (diff)
downloadopensim-SC-1337f5f26e628dc7c5d038ffee5e957d95a72566.zip
opensim-SC-1337f5f26e628dc7c5d038ffee5e957d95a72566.tar.gz
opensim-SC-1337f5f26e628dc7c5d038ffee5e957d95a72566.tar.bz2
opensim-SC-1337f5f26e628dc7c5d038ffee5e957d95a72566.tar.xz
remove a parameter for detection of grid fail to suport getting multiple user accounts per call and handle it where needed.
Diffstat (limited to 'OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
index e625143..5bc7a1c 100644
--- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
+++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
@@ -191,7 +191,27 @@ namespace OpenSim.Services.Connectors
191 return accounts; 191 return accounts;
192 } 192 }
193 193
194 public virtual List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs, out bool suported) 194 public virtual List<UserAccount> GetUserAccounts(UUID scopeID, List<string> IDs)
195 {
196 List<UserAccount> accs = new List<UserAccount>();
197 bool multisuported = true;
198 accs = doGetMultiUserAccounts(scopeID, IDs, out multisuported);
199 if(multisuported)
200 return accs;
201
202 // service does not do multi accounts so need to do it one by one
203
204 UUID uuid = UUID.Zero;
205 foreach(string id in IDs)
206 {
207 if(UUID.TryParse(id, out uuid) && uuid != UUID.Zero)
208 accs.Add(GetUserAccount(scopeID,uuid));
209 }
210
211 return accs;
212 }
213
214 private List<UserAccount> doGetMultiUserAccounts(UUID scopeID, List<string> IDs, out bool suported)
195 { 215 {
196 suported = true; 216 suported = true;
197 Dictionary<string, object> sendData = new Dictionary<string, object>(); 217 Dictionary<string, object> sendData = new Dictionary<string, object>();