diff options
author | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
commit | 7d89e122930be39e84a6d174548fa2d12ac0484a (patch) | |
tree | e5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Grid/UserServer | |
parent | * minor: speculatively try a change to bamboo.build to see if this generates ... (diff) | |
download | opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.zip opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2 opensim-SC_OLD-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz |
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle.
* This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big!
* Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 20 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/MessageServersConnector.cs | 12 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/UserLoginService.cs | 14 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer/UserManager.cs | 84 |
4 files changed, 65 insertions, 65 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index e487648..6441b7a 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -30,7 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using libsecondlife; | 33 | using OpenMetaverse; |
34 | using log4net; | 34 | using log4net; |
35 | using log4net.Config; | 35 | using log4net.Config; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
@@ -58,7 +58,7 @@ namespace OpenSim.Grid.UserServer | |||
58 | public MessageServersConnector m_messagesService; | 58 | public MessageServersConnector m_messagesService; |
59 | protected IInterServiceInventoryServices m_interServiceInventoryService; | 59 | protected IInterServiceInventoryServices m_interServiceInventoryService; |
60 | 60 | ||
61 | private LLUUID m_lastCreatedUser = LLUUID.Random(); | 61 | private UUID m_lastCreatedUser = UUID.Random(); |
62 | 62 | ||
63 | public static void Main(string[] args) | 63 | public static void Main(string[] args) |
64 | { | 64 | { |
@@ -92,7 +92,7 @@ namespace OpenSim.Grid.UserServer | |||
92 | { | 92 | { |
93 | base.Startup(); | 93 | base.Startup(); |
94 | 94 | ||
95 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); | 95 | Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.Xml"))); |
96 | 96 | ||
97 | m_stats = StatsManager.StartCollectingUserStats(); | 97 | m_stats = StatsManager.StartCollectingUserStats(); |
98 | 98 | ||
@@ -183,7 +183,7 @@ namespace OpenSim.Grid.UserServer | |||
183 | 183 | ||
184 | tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + String.Empty); | 184 | tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + String.Empty); |
185 | 185 | ||
186 | LLUUID userID = new LLUUID(); | 186 | UUID userID = new UUID(); |
187 | 187 | ||
188 | try | 188 | try |
189 | { | 189 | { |
@@ -209,7 +209,7 @@ namespace OpenSim.Grid.UserServer | |||
209 | { | 209 | { |
210 | m_log.ErrorFormat( | 210 | m_log.ErrorFormat( |
211 | "[USERS]: Could not contact the inventory service at {0} to create an inventory for {1}", | 211 | "[USERS]: Could not contact the inventory service at {0} to create an inventory for {1}", |
212 | Cfg.InventoryUrl + "CreateInventory/", userID.UUID); | 212 | Cfg.InventoryUrl + "CreateInventory/", userID); |
213 | } | 213 | } |
214 | catch (Exception e) | 214 | catch (Exception e) |
215 | { | 215 | { |
@@ -240,8 +240,8 @@ namespace OpenSim.Grid.UserServer | |||
240 | case "test-inventory": | 240 | case "test-inventory": |
241 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); | 241 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); |
242 | // requester.ReturnResponseVal = TestResponse; | 242 | // requester.ReturnResponseVal = TestResponse; |
243 | // requester.BeginPostObject<LLUUID>(m_userManager._config.InventoryUrl + "RootFolders/", m_lastCreatedUser); | 243 | // requester.BeginPostObject<UUID>(m_userManager._config.InventoryUrl + "RootFolders/", m_lastCreatedUser); |
244 | SynchronousRestObjectPoster.BeginPostObject<LLUUID, List<InventoryFolderBase>>( | 244 | SynchronousRestObjectPoster.BeginPostObject<UUID, List<InventoryFolderBase>>( |
245 | "POST", Cfg.InventoryUrl + "RootFolders/", m_lastCreatedUser); | 245 | "POST", Cfg.InventoryUrl + "RootFolders/", m_lastCreatedUser); |
246 | break; | 246 | break; |
247 | 247 | ||
@@ -322,12 +322,12 @@ namespace OpenSim.Grid.UserServer | |||
322 | m_console.Notice("response got"); | 322 | m_console.Notice("response got"); |
323 | } | 323 | } |
324 | 324 | ||
325 | public void NotifyMessageServersUserLoggOff(LLUUID agentID) | 325 | public void NotifyMessageServersUserLoggOff(UUID agentID) |
326 | { | 326 | { |
327 | m_messagesService.TellMessageServersAboutUserLogoff(agentID); | 327 | m_messagesService.TellMessageServersAboutUserLogoff(agentID); |
328 | } | 328 | } |
329 | 329 | ||
330 | public void NotifyMessageServersUserLoggedInToLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, | 330 | public void NotifyMessageServersUserLoggedInToLocation(UUID agentID, UUID sessionID, UUID RegionID, |
331 | ulong regionhandle, float positionX, float positionY, | 331 | ulong regionhandle, float positionX, float positionY, |
332 | float positionZ, string firstname, string lastname) | 332 | float positionZ, string firstname, string lastname) |
333 | { | 333 | { |
@@ -335,4 +335,4 @@ namespace OpenSim.Grid.UserServer | |||
335 | positionY, positionZ, firstname, lastname); | 335 | positionY, positionZ, firstname, lastname); |
336 | } | 336 | } |
337 | } | 337 | } |
338 | } \ No newline at end of file | 338 | } |
diff --git a/OpenSim/Grid/UserServer/MessageServersConnector.cs b/OpenSim/Grid/UserServer/MessageServersConnector.cs index b3f8b19..8fecd5b 100644 --- a/OpenSim/Grid/UserServer/MessageServersConnector.cs +++ b/OpenSim/Grid/UserServer/MessageServersConnector.cs | |||
@@ -29,7 +29,7 @@ using System.Collections; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using libsecondlife; | 32 | using OpenMetaverse; |
33 | using log4net; | 33 | using log4net; |
34 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
35 | using OpenSim.Framework.Servers; | 35 | using OpenSim.Framework.Servers; |
@@ -146,7 +146,7 @@ namespace OpenSim.Grid.UserServer | |||
146 | // string scurrentRegionID = (string)requestData["regionid"]; | 146 | // string scurrentRegionID = (string)requestData["regionid"]; |
147 | // string sregionhandle = (string)requestData["regionhandle"]; | 147 | // string sregionhandle = (string)requestData["regionhandle"]; |
148 | // string scurrentpos = (string)requestData["currentpos"]; | 148 | // string scurrentpos = (string)requestData["currentpos"]; |
149 | //LLVector3.TryParse((string)reader["currentPos"], out retval.currentPos); | 149 | //Vector3.TryParse((string)reader["currentPos"], out retval.currentPos); |
150 | // TODO: Okay now raise event so the user server can pass this data to the Usermanager | 150 | // TODO: Okay now raise event so the user server can pass this data to the Usermanager |
151 | 151 | ||
152 | responseData["responsestring"] = "TRUE"; | 152 | responseData["responsestring"] = "TRUE"; |
@@ -155,7 +155,7 @@ namespace OpenSim.Grid.UserServer | |||
155 | return response; | 155 | return response; |
156 | } | 156 | } |
157 | 157 | ||
158 | public void TellMessageServersAboutUser(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, | 158 | public void TellMessageServersAboutUser(UUID agentID, UUID sessionID, UUID RegionID, |
159 | ulong regionhandle, float positionX, float positionY, | 159 | ulong regionhandle, float positionX, float positionY, |
160 | float positionZ, string firstname, string lastname) | 160 | float positionZ, string firstname, string lastname) |
161 | { | 161 | { |
@@ -179,7 +179,7 @@ namespace OpenSim.Grid.UserServer | |||
179 | } | 179 | } |
180 | } | 180 | } |
181 | 181 | ||
182 | public void TellMessageServersAboutUserLogoff(LLUUID agentID) | 182 | public void TellMessageServersAboutUserLogoff(UUID agentID) |
183 | { | 183 | { |
184 | lock (MessageServers) | 184 | lock (MessageServers) |
185 | { | 185 | { |
@@ -198,7 +198,7 @@ namespace OpenSim.Grid.UserServer | |||
198 | } | 198 | } |
199 | } | 199 | } |
200 | 200 | ||
201 | private void NotifyMessageServerAboutUserLogoff(MessageServerInfo serv, LLUUID agentID) | 201 | private void NotifyMessageServerAboutUserLogoff(MessageServerInfo serv, UUID agentID) |
202 | { | 202 | { |
203 | Hashtable reqparams = new Hashtable(); | 203 | Hashtable reqparams = new Hashtable(); |
204 | reqparams["sendkey"] = serv.sendkey; | 204 | reqparams["sendkey"] = serv.sendkey; |
@@ -219,7 +219,7 @@ namespace OpenSim.Grid.UserServer | |||
219 | } | 219 | } |
220 | 220 | ||
221 | private void NotifyMessageServerAboutUser(MessageServerInfo serv, | 221 | private void NotifyMessageServerAboutUser(MessageServerInfo serv, |
222 | LLUUID agentID, LLUUID sessionID, LLUUID RegionID, | 222 | UUID agentID, UUID sessionID, UUID RegionID, |
223 | ulong regionhandle, float positionX, float positionY, float positionZ, | 223 | ulong regionhandle, float positionX, float positionY, float positionZ, |
224 | string firstname, string lastname) | 224 | string firstname, string lastname) |
225 | { | 225 | { |
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 1f84346..10490a6 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using libsecondlife; | 32 | using OpenMetaverse; |
33 | using log4net; | 33 | using log4net; |
34 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
35 | using OpenSim.Data; | 35 | using OpenSim.Data; |
@@ -39,7 +39,7 @@ using OpenSim.Framework.Communications.Cache; | |||
39 | 39 | ||
40 | namespace OpenSim.Grid.UserServer | 40 | namespace OpenSim.Grid.UserServer |
41 | { | 41 | { |
42 | public delegate void UserLoggedInAtLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, | 42 | public delegate void UserLoggedInAtLocation(UUID agentID, UUID sessionID, UUID RegionID, |
43 | ulong regionhandle, float positionX, float positionY, float positionZ, | 43 | ulong regionhandle, float positionX, float positionY, float positionZ, |
44 | string firstname, string lastname); | 44 | string firstname, string lastname); |
45 | 45 | ||
@@ -151,7 +151,7 @@ namespace OpenSim.Grid.UserServer | |||
151 | int start_z = -1; | 151 | int start_z = -1; |
152 | 152 | ||
153 | // use the homeRegionID if it is stored already. If not, use the regionHandle as before | 153 | // use the homeRegionID if it is stored already. If not, use the regionHandle as before |
154 | if (theUser.HomeRegionID != LLUUID.Zero) | 154 | if (theUser.HomeRegionID != UUID.Zero) |
155 | { | 155 | { |
156 | HomeInfo = | 156 | HomeInfo = |
157 | RegionProfileData.RequestSimProfileData( | 157 | RegionProfileData.RequestSimProfileData( |
@@ -271,7 +271,7 @@ namespace OpenSim.Grid.UserServer | |||
271 | theUser.CurrentAgent.Handle = SimInfo.regionHandle; | 271 | theUser.CurrentAgent.Handle = SimInfo.regionHandle; |
272 | if (start_x >= 0 && start_y >= 0 && start_z >= 0) | 272 | if (start_x >= 0 && start_y >= 0 && start_z >= 0) |
273 | { | 273 | { |
274 | LLVector3 tmp_v = new LLVector3(start_x, start_y, start_z); | 274 | Vector3 tmp_v = new Vector3(start_x, start_y, start_z); |
275 | theUser.CurrentAgent.Position = tmp_v; | 275 | theUser.CurrentAgent.Position = tmp_v; |
276 | } | 276 | } |
277 | // Prepare notification | 277 | // Prepare notification |
@@ -466,7 +466,7 @@ namespace OpenSim.Grid.UserServer | |||
466 | } | 466 | } |
467 | 467 | ||
468 | // See LoginService | 468 | // See LoginService |
469 | protected override InventoryData GetInventorySkeleton(LLUUID userID) | 469 | protected override InventoryData GetInventorySkeleton(UUID userID) |
470 | { | 470 | { |
471 | m_log.DebugFormat( | 471 | m_log.DebugFormat( |
472 | "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}", | 472 | "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}", |
@@ -498,7 +498,7 @@ namespace OpenSim.Grid.UserServer | |||
498 | 498 | ||
499 | if (folders != null && folders.Count > 0) | 499 | if (folders != null && folders.Count > 0) |
500 | { | 500 | { |
501 | LLUUID rootID = LLUUID.Zero; | 501 | UUID rootID = UUID.Zero; |
502 | ArrayList AgentInventoryArray = new ArrayList(); | 502 | ArrayList AgentInventoryArray = new ArrayList(); |
503 | Hashtable TempHash; | 503 | Hashtable TempHash; |
504 | 504 | ||
@@ -506,7 +506,7 @@ namespace OpenSim.Grid.UserServer | |||
506 | { | 506 | { |
507 | // m_log.DebugFormat("[LOGIN]: Received agent inventory folder {0}", InvFolder.name); | 507 | // m_log.DebugFormat("[LOGIN]: Received agent inventory folder {0}", InvFolder.name); |
508 | 508 | ||
509 | if (InvFolder.ParentID == LLUUID.Zero) | 509 | if (InvFolder.ParentID == UUID.Zero) |
510 | { | 510 | { |
511 | rootID = InvFolder.ID; | 511 | rootID = InvFolder.ID; |
512 | } | 512 | } |
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index 69c550a..4b5f5a0 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using libsecondlife; | 32 | using OpenMetaverse; |
33 | using log4net; | 33 | using log4net; |
34 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
35 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
@@ -38,7 +38,7 @@ using OpenSim.Framework.Servers; | |||
38 | 38 | ||
39 | namespace OpenSim.Grid.UserServer | 39 | namespace OpenSim.Grid.UserServer |
40 | { | 40 | { |
41 | public delegate void logOffUser(LLUUID AgentID); | 41 | public delegate void logOffUser(UUID AgentID); |
42 | 42 | ||
43 | public class UserManager : UserManagerBase | 43 | public class UserManager : UserManagerBase |
44 | { | 44 | { |
@@ -79,7 +79,7 @@ namespace OpenSim.Grid.UserServer | |||
79 | return response; | 79 | return response; |
80 | } | 80 | } |
81 | 81 | ||
82 | public XmlRpcResponse AvatarPickerListtoXmlRPCResponse(LLUUID queryID, List<AvatarPickerAvatar> returnUsers) | 82 | public XmlRpcResponse AvatarPickerListtoXmlRPCResponse(UUID queryID, List<AvatarPickerAvatar> returnUsers) |
83 | { | 83 | { |
84 | XmlRpcResponse response = new XmlRpcResponse(); | 84 | XmlRpcResponse response = new XmlRpcResponse(); |
85 | Hashtable responseData = new Hashtable(); | 85 | Hashtable responseData = new Hashtable(); |
@@ -108,8 +108,8 @@ namespace OpenSim.Grid.UserServer | |||
108 | 108 | ||
109 | for (int i = 0; i < returnUsers.Count; i++) | 109 | for (int i = 0; i < returnUsers.Count; i++) |
110 | { | 110 | { |
111 | responseData["ownerID" + i] = returnUsers[i].FriendListOwner.UUID.ToString(); | 111 | responseData["ownerID" + i] = returnUsers[i].FriendListOwner.ToString(); |
112 | responseData["friendID" + i] = returnUsers[i].Friend.UUID.ToString(); | 112 | responseData["friendID" + i] = returnUsers[i].Friend.ToString(); |
113 | responseData["ownerPerms" + i] = returnUsers[i].FriendListOwnerPerms.ToString(); | 113 | responseData["ownerPerms" + i] = returnUsers[i].FriendListOwnerPerms.ToString(); |
114 | responseData["friendPerms" + i] = returnUsers[i].FriendPerms.ToString(); | 114 | responseData["friendPerms" + i] = returnUsers[i].FriendPerms.ToString(); |
115 | } | 115 | } |
@@ -172,11 +172,11 @@ namespace OpenSim.Grid.UserServer | |||
172 | // XmlRpcResponse response = new XmlRpcResponse(); | 172 | // XmlRpcResponse response = new XmlRpcResponse(); |
173 | Hashtable requestData = (Hashtable) request.Params[0]; | 173 | Hashtable requestData = (Hashtable) request.Params[0]; |
174 | List<AvatarPickerAvatar> returnAvatar = new List<AvatarPickerAvatar>(); | 174 | List<AvatarPickerAvatar> returnAvatar = new List<AvatarPickerAvatar>(); |
175 | LLUUID queryID = new LLUUID(LLUUID.Zero.ToString()); | 175 | UUID queryID = new UUID(UUID.Zero.ToString()); |
176 | 176 | ||
177 | if (requestData.Contains("avquery") && requestData.Contains("queryid")) | 177 | if (requestData.Contains("avquery") && requestData.Contains("queryid")) |
178 | { | 178 | { |
179 | queryID = new LLUUID((string) requestData["queryid"]); | 179 | queryID = new UUID((string) requestData["queryid"]); |
180 | returnAvatar = GenerateAgentPickerRequestResponse(queryID, (string) requestData["avquery"]); | 180 | returnAvatar = GenerateAgentPickerRequestResponse(queryID, (string) requestData["avquery"]); |
181 | } | 181 | } |
182 | 182 | ||
@@ -195,13 +195,13 @@ namespace OpenSim.Grid.UserServer | |||
195 | requestData.Contains("region_uuid")) | 195 | requestData.Contains("region_uuid")) |
196 | { | 196 | { |
197 | // ulong cregionhandle = 0; | 197 | // ulong cregionhandle = 0; |
198 | LLUUID regionUUID; | 198 | UUID regionUUID; |
199 | LLUUID avatarUUID; | 199 | UUID avatarUUID; |
200 | 200 | ||
201 | Helpers.TryParse((string) requestData["avatar_id"], out avatarUUID); | 201 | UUID.TryParse((string) requestData["avatar_id"], out avatarUUID); |
202 | Helpers.TryParse((string) requestData["region_uuid"], out regionUUID); | 202 | UUID.TryParse((string) requestData["region_uuid"], out regionUUID); |
203 | 203 | ||
204 | if (avatarUUID != LLUUID.Zero) | 204 | if (avatarUUID != UUID.Zero) |
205 | { | 205 | { |
206 | UserProfileData userProfile = GetUserProfile(avatarUUID); | 206 | UserProfileData userProfile = GetUserProfile(avatarUUID); |
207 | userProfile.CurrentAgent.Region = regionUUID; | 207 | userProfile.CurrentAgent.Region = regionUUID; |
@@ -231,8 +231,8 @@ namespace OpenSim.Grid.UserServer | |||
231 | requestData.Contains("friendPerms")) | 231 | requestData.Contains("friendPerms")) |
232 | { | 232 | { |
233 | // UserManagerBase.AddNewuserFriend | 233 | // UserManagerBase.AddNewuserFriend |
234 | AddNewUserFriend(new LLUUID((string) requestData["ownerID"]), | 234 | AddNewUserFriend(new UUID((string) requestData["ownerID"]), |
235 | new LLUUID((string) requestData["friendID"]), | 235 | new UUID((string) requestData["friendID"]), |
236 | (uint) Convert.ToInt32((string) requestData["friendPerms"])); | 236 | (uint) Convert.ToInt32((string) requestData["friendPerms"])); |
237 | returnString = "TRUE"; | 237 | returnString = "TRUE"; |
238 | } | 238 | } |
@@ -252,8 +252,8 @@ namespace OpenSim.Grid.UserServer | |||
252 | if (requestData.Contains("ownerID") && requestData.Contains("friendID")) | 252 | if (requestData.Contains("ownerID") && requestData.Contains("friendID")) |
253 | { | 253 | { |
254 | // UserManagerBase.AddNewuserFriend | 254 | // UserManagerBase.AddNewuserFriend |
255 | RemoveUserFriend(new LLUUID((string) requestData["ownerID"]), | 255 | RemoveUserFriend(new UUID((string) requestData["ownerID"]), |
256 | new LLUUID((string) requestData["friendID"])); | 256 | new UUID((string) requestData["friendID"])); |
257 | returnString = "TRUE"; | 257 | returnString = "TRUE"; |
258 | } | 258 | } |
259 | responseData["returnString"] = returnString; | 259 | responseData["returnString"] = returnString; |
@@ -271,8 +271,8 @@ namespace OpenSim.Grid.UserServer | |||
271 | if (requestData.Contains("ownerID") && requestData.Contains("friendID") && | 271 | if (requestData.Contains("ownerID") && requestData.Contains("friendID") && |
272 | requestData.Contains("friendPerms")) | 272 | requestData.Contains("friendPerms")) |
273 | { | 273 | { |
274 | UpdateUserFriendPerms(new LLUUID((string) requestData["ownerID"]), | 274 | UpdateUserFriendPerms(new UUID((string) requestData["ownerID"]), |
275 | new LLUUID((string) requestData["friendID"]), | 275 | new UUID((string) requestData["friendID"]), |
276 | (uint) Convert.ToInt32((string) requestData["friendPerms"])); | 276 | (uint) Convert.ToInt32((string) requestData["friendPerms"])); |
277 | // UserManagerBase. | 277 | // UserManagerBase. |
278 | returnString = "TRUE"; | 278 | returnString = "TRUE"; |
@@ -292,7 +292,7 @@ namespace OpenSim.Grid.UserServer | |||
292 | 292 | ||
293 | if (requestData.Contains("ownerID")) | 293 | if (requestData.Contains("ownerID")) |
294 | { | 294 | { |
295 | returndata = GetUserFriendList(new LLUUID((string) requestData["ownerID"])); | 295 | returndata = GetUserFriendList(new UUID((string) requestData["ownerID"])); |
296 | } | 296 | } |
297 | 297 | ||
298 | return FriendListItemListtoXmlRPCResponse(returndata); | 298 | return FriendListItemListtoXmlRPCResponse(returndata); |
@@ -306,7 +306,7 @@ namespace OpenSim.Grid.UserServer | |||
306 | Hashtable responseData; | 306 | Hashtable responseData; |
307 | if (requestData.Contains("owner")) | 307 | if (requestData.Contains("owner")) |
308 | { | 308 | { |
309 | appearance = GetUserAppearance(new LLUUID((string) requestData["owner"])); | 309 | appearance = GetUserAppearance(new UUID((string) requestData["owner"])); |
310 | if (appearance == null) | 310 | if (appearance == null) |
311 | { | 311 | { |
312 | responseData = new Hashtable(); | 312 | responseData = new Hashtable(); |
@@ -337,7 +337,7 @@ namespace OpenSim.Grid.UserServer | |||
337 | if (requestData.Contains("owner")) | 337 | if (requestData.Contains("owner")) |
338 | { | 338 | { |
339 | AvatarAppearance appearance = new AvatarAppearance(requestData); | 339 | AvatarAppearance appearance = new AvatarAppearance(requestData); |
340 | UpdateUserAppearance(new LLUUID((string) requestData["owner"]), appearance); | 340 | UpdateUserAppearance(new UUID((string) requestData["owner"]), appearance); |
341 | responseData = new Hashtable(); | 341 | responseData = new Hashtable(); |
342 | responseData["returnString"] = "TRUE"; | 342 | responseData["returnString"] = "TRUE"; |
343 | } | 343 | } |
@@ -396,7 +396,7 @@ namespace OpenSim.Grid.UserServer | |||
396 | { | 396 | { |
397 | try | 397 | try |
398 | { | 398 | { |
399 | LLUUID guess = new LLUUID((string) requestData["avatar_uuid"]); | 399 | UUID guess = new UUID((string) requestData["avatar_uuid"]); |
400 | 400 | ||
401 | userProfile = GetUserProfile(guess); | 401 | userProfile = GetUserProfile(guess); |
402 | } | 402 | } |
@@ -427,11 +427,11 @@ namespace OpenSim.Grid.UserServer | |||
427 | //CFK: Console.WriteLine("METHOD BY UUID CALLED"); | 427 | //CFK: Console.WriteLine("METHOD BY UUID CALLED"); |
428 | if (requestData.Contains("avatar_uuid")) | 428 | if (requestData.Contains("avatar_uuid")) |
429 | { | 429 | { |
430 | LLUUID guess; | 430 | UUID guess; |
431 | 431 | ||
432 | Helpers.TryParse((string) requestData["avatar_uuid"], out guess); | 432 | UUID.TryParse((string) requestData["avatar_uuid"], out guess); |
433 | 433 | ||
434 | if (guess == LLUUID.Zero) | 434 | if (guess == UUID.Zero) |
435 | { | 435 | { |
436 | return CreateUnknownUserErrorResponse(); | 436 | return CreateUnknownUserErrorResponse(); |
437 | } | 437 | } |
@@ -476,16 +476,16 @@ namespace OpenSim.Grid.UserServer | |||
476 | string authed = "FALSE"; | 476 | string authed = "FALSE"; |
477 | if (requestData.Contains("avatar_uuid") && requestData.Contains("session_id")) | 477 | if (requestData.Contains("avatar_uuid") && requestData.Contains("session_id")) |
478 | { | 478 | { |
479 | LLUUID guess_aid; | 479 | UUID guess_aid; |
480 | LLUUID guess_sid; | 480 | UUID guess_sid; |
481 | 481 | ||
482 | Helpers.TryParse((string) requestData["avatar_uuid"], out guess_aid); | 482 | UUID.TryParse((string) requestData["avatar_uuid"], out guess_aid); |
483 | if (guess_aid == LLUUID.Zero) | 483 | if (guess_aid == UUID.Zero) |
484 | { | 484 | { |
485 | return CreateUnknownUserErrorResponse(); | 485 | return CreateUnknownUserErrorResponse(); |
486 | } | 486 | } |
487 | Helpers.TryParse((string) requestData["session_id"], out guess_sid); | 487 | UUID.TryParse((string) requestData["session_id"], out guess_sid); |
488 | if (guess_sid == LLUUID.Zero) | 488 | if (guess_sid == UUID.Zero) |
489 | { | 489 | { |
490 | return CreateUnknownUserErrorResponse(); | 490 | return CreateUnknownUserErrorResponse(); |
491 | } | 491 | } |
@@ -520,7 +520,7 @@ namespace OpenSim.Grid.UserServer | |||
520 | return CreateUnknownUserErrorResponse(); | 520 | return CreateUnknownUserErrorResponse(); |
521 | } | 521 | } |
522 | 522 | ||
523 | LLUUID UserUUID = new LLUUID((string) requestData["avatar_uuid"]); | 523 | UUID UserUUID = new UUID((string) requestData["avatar_uuid"]); |
524 | UserProfileData userProfile = GetUserProfile(UserUUID); | 524 | UserProfileData userProfile = GetUserProfile(UserUUID); |
525 | if (null == userProfile) | 525 | if (null == userProfile) |
526 | { | 526 | { |
@@ -532,11 +532,11 @@ namespace OpenSim.Grid.UserServer | |||
532 | } | 532 | } |
533 | if (requestData.Contains("FLImageID")) | 533 | if (requestData.Contains("FLImageID")) |
534 | { | 534 | { |
535 | userProfile.FirstLifeImage = new LLUUID((string) requestData["FLImageID"]); | 535 | userProfile.FirstLifeImage = new UUID((string) requestData["FLImageID"]); |
536 | } | 536 | } |
537 | if (requestData.Contains("ImageID")) | 537 | if (requestData.Contains("ImageID")) |
538 | { | 538 | { |
539 | userProfile.Image = new LLUUID((string) requestData["ImageID"]); | 539 | userProfile.Image = new UUID((string) requestData["ImageID"]); |
540 | } | 540 | } |
541 | // dont' know how yet | 541 | // dont' know how yet |
542 | if (requestData.Contains("MaturePublish")) | 542 | if (requestData.Contains("MaturePublish")) |
@@ -575,8 +575,8 @@ namespace OpenSim.Grid.UserServer | |||
575 | } | 575 | } |
576 | if (requestData.Contains("home_region_id")) | 576 | if (requestData.Contains("home_region_id")) |
577 | { | 577 | { |
578 | LLUUID regionID; | 578 | UUID regionID; |
579 | LLUUID.TryParse((string) requestData["home_region_id"], out regionID); | 579 | UUID.TryParse((string) requestData["home_region_id"], out regionID); |
580 | userProfile.HomeRegionID = regionID; | 580 | userProfile.HomeRegionID = regionID; |
581 | } | 581 | } |
582 | if (requestData.Contains("home_pos_x")) | 582 | if (requestData.Contains("home_pos_x")) |
@@ -682,7 +682,7 @@ namespace OpenSim.Grid.UserServer | |||
682 | { | 682 | { |
683 | try | 683 | try |
684 | { | 684 | { |
685 | userProfile.Partner = new LLUUID((string) requestData["partner"]); | 685 | userProfile.Partner = new UUID((string) requestData["partner"]); |
686 | } | 686 | } |
687 | catch (InvalidCastException) | 687 | catch (InvalidCastException) |
688 | { | 688 | { |
@@ -691,7 +691,7 @@ namespace OpenSim.Grid.UserServer | |||
691 | } | 691 | } |
692 | else | 692 | else |
693 | { | 693 | { |
694 | userProfile.Partner = LLUUID.Zero; | 694 | userProfile.Partner = UUID.Zero; |
695 | } | 695 | } |
696 | 696 | ||
697 | // call plugin! | 697 | // call plugin! |
@@ -710,8 +710,8 @@ namespace OpenSim.Grid.UserServer | |||
710 | { | 710 | { |
711 | try | 711 | try |
712 | { | 712 | { |
713 | LLUUID userUUID = new LLUUID((string) requestData["avatar_uuid"]); | 713 | UUID userUUID = new UUID((string) requestData["avatar_uuid"]); |
714 | LLUUID RegionID = new LLUUID((string) requestData["region_uuid"]); | 714 | UUID RegionID = new UUID((string) requestData["region_uuid"]); |
715 | ulong regionhandle = (ulong) Convert.ToInt64((string) requestData["region_handle"]); | 715 | ulong regionhandle = (ulong) Convert.ToInt64((string) requestData["region_handle"]); |
716 | float posx = (float) Convert.ToDecimal((string) requestData["region_pos_x"]); | 716 | float posx = (float) Convert.ToDecimal((string) requestData["region_pos_x"]); |
717 | float posy = (float) Convert.ToDecimal((string) requestData["region_pos_y"]); | 717 | float posy = (float) Convert.ToDecimal((string) requestData["region_pos_y"]); |
@@ -749,9 +749,9 @@ namespace OpenSim.Grid.UserServer | |||
749 | throw new Exception("The method or operation is not implemented."); | 749 | throw new Exception("The method or operation is not implemented."); |
750 | } | 750 | } |
751 | 751 | ||
752 | public override UserProfileData SetupMasterUser(LLUUID uuid) | 752 | public override UserProfileData SetupMasterUser(UUID uuid) |
753 | { | 753 | { |
754 | throw new Exception("The method or operation is not implemented."); | 754 | throw new Exception("The method or operation is not implemented."); |
755 | } | 755 | } |
756 | } | 756 | } |
757 | } \ No newline at end of file | 757 | } |