aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.MySQL/MySQLUserData.cs')
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLUserData.cs42
1 files changed, 21 insertions, 21 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
index 010e911..fd640ec 100644
--- a/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
+++ b/OpenSim/Framework/Data.MySQL/MySQLUserData.cs
@@ -37,7 +37,7 @@ namespace OpenSim.Framework.Data.MySQL
37 /// <summary> 37 /// <summary>
38 /// A database interface class to a user profile storage system 38 /// A database interface class to a user profile storage system
39 /// </summary> 39 /// </summary>
40 internal class MySQLUserData : IUserData 40 internal class MySQLUserData : UserDataBase
41 { 41 {
42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
43 43
@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Data.MySQL
53 /// <summary> 53 /// <summary>
54 /// Loads and initialises the MySQL storage plugin 54 /// Loads and initialises the MySQL storage plugin
55 /// </summary> 55 /// </summary>
56 public void Initialise() 56 override public void Initialise()
57 { 57 {
58 // Load from an INI file connection details 58 // Load from an INI file connection details
59 // TODO: move this to XML? Yes, PLEASE! 59 // TODO: move this to XML? Yes, PLEASE!
@@ -164,7 +164,7 @@ namespace OpenSim.Framework.Data.MySQL
164 #endregion 164 #endregion
165 165
166 // see IUserData 166 // see IUserData
167 public UserProfileData GetUserByName(string user, string last) 167 override public UserProfileData GetUserByName(string user, string last)
168 { 168 {
169 try 169 try
170 { 170 {
@@ -195,7 +195,7 @@ namespace OpenSim.Framework.Data.MySQL
195 195
196 #region User Friends List Data 196 #region User Friends List Data
197 197
198 public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms) 198 override public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms)
199 { 199 {
200 int dtvalue = Util.UnixTimeSinceEpoch(); 200 int dtvalue = Util.UnixTimeSinceEpoch();
201 201
@@ -236,7 +236,7 @@ namespace OpenSim.Framework.Data.MySQL
236 } 236 }
237 } 237 }
238 238
239 public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend) 239 override public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
240 { 240 {
241 Dictionary<string, string> param = new Dictionary<string, string>(); 241 Dictionary<string, string> param = new Dictionary<string, string>();
242 param["?ownerID"] = friendlistowner.UUID.ToString(); 242 param["?ownerID"] = friendlistowner.UUID.ToString();
@@ -267,7 +267,7 @@ namespace OpenSim.Framework.Data.MySQL
267 } 267 }
268 } 268 }
269 269
270 public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms) 270 override public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
271 { 271 {
272 Dictionary<string, string> param = new Dictionary<string, string>(); 272 Dictionary<string, string> param = new Dictionary<string, string>();
273 param["?ownerID"] = friendlistowner.UUID.ToString(); 273 param["?ownerID"] = friendlistowner.UUID.ToString();
@@ -295,7 +295,7 @@ namespace OpenSim.Framework.Data.MySQL
295 } 295 }
296 } 296 }
297 297
298 public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner) 298 override public List<FriendListItem> GetUserFriendList(LLUUID friendlistowner)
299 { 299 {
300 List<FriendListItem> Lfli = new List<FriendListItem>(); 300 List<FriendListItem> Lfli = new List<FriendListItem>();
301 301
@@ -342,12 +342,12 @@ namespace OpenSim.Framework.Data.MySQL
342 342
343 #endregion 343 #endregion
344 344
345 public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid) 345 override public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid)
346 { 346 {
347 m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called"); 347 m_log.Info("[USER]: Stub UpdateUserCUrrentRegion called");
348 } 348 }
349 349
350 public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query) 350 override public List<Framework.AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query)
351 { 351 {
352 List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>(); 352 List<Framework.AvatarPickerAvatar> returnlist = new List<Framework.AvatarPickerAvatar>();
353 353
@@ -427,7 +427,7 @@ namespace OpenSim.Framework.Data.MySQL
427 } 427 }
428 428
429 // see IUserData 429 // see IUserData
430 public UserProfileData GetUserByUUID(LLUUID uuid) 430 override public UserProfileData GetUserByUUID(LLUUID uuid)
431 { 431 {
432 try 432 try
433 { 433 {
@@ -460,7 +460,7 @@ namespace OpenSim.Framework.Data.MySQL
460 /// </summary> 460 /// </summary>
461 /// <param name="name">The account name</param> 461 /// <param name="name">The account name</param>
462 /// <returns>The users session</returns> 462 /// <returns>The users session</returns>
463 public UserAgentData GetAgentByName(string name) 463 override public UserAgentData GetAgentByName(string name)
464 { 464 {
465 return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]); 465 return GetAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
466 } 466 }
@@ -471,13 +471,13 @@ namespace OpenSim.Framework.Data.MySQL
471 /// <param name="user">First part of the users account name</param> 471 /// <param name="user">First part of the users account name</param>
472 /// <param name="last">Second part of the users account name</param> 472 /// <param name="last">Second part of the users account name</param>
473 /// <returns>The users session</returns> 473 /// <returns>The users session</returns>
474 public UserAgentData GetAgentByName(string user, string last) 474 override public UserAgentData GetAgentByName(string user, string last)
475 { 475 {
476 UserProfileData profile = GetUserByName(user, last); 476 UserProfileData profile = GetUserByName(user, last);
477 return GetAgentByUUID(profile.UUID); 477 return GetAgentByUUID(profile.UUID);
478 } 478 }
479 479
480 public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey) 480 override public void StoreWebLoginKey(LLUUID AgentID, LLUUID WebLoginKey)
481 { 481 {
482 Dictionary<string, string> param = new Dictionary<string, string>(); 482 Dictionary<string, string> param = new Dictionary<string, string>();
483 param["?UUID"] = AgentID.UUID.ToString(); 483 param["?UUID"] = AgentID.UUID.ToString();
@@ -508,7 +508,7 @@ namespace OpenSim.Framework.Data.MySQL
508 /// </summary> 508 /// </summary>
509 /// <param name="uuid">The accounts UUID</param> 509 /// <param name="uuid">The accounts UUID</param>
510 /// <returns>The users session</returns> 510 /// <returns>The users session</returns>
511 public UserAgentData GetAgentByUUID(LLUUID uuid) 511 override public UserAgentData GetAgentByUUID(LLUUID uuid)
512 { 512 {
513 try 513 try
514 { 514 {
@@ -540,7 +540,7 @@ namespace OpenSim.Framework.Data.MySQL
540 /// Creates a new users profile 540 /// Creates a new users profile
541 /// </summary> 541 /// </summary>
542 /// <param name="user">The user profile to create</param> 542 /// <param name="user">The user profile to create</param>
543 public void AddNewUserProfile(UserProfileData user) 543 override public void AddNewUserProfile(UserProfileData user)
544 { 544 {
545 try 545 try
546 { 546 {
@@ -567,7 +567,7 @@ namespace OpenSim.Framework.Data.MySQL
567 /// Creates a new agent 567 /// Creates a new agent
568 /// </summary> 568 /// </summary>
569 /// <param name="agent">The agent to create</param> 569 /// <param name="agent">The agent to create</param>
570 public void AddNewUserAgent(UserAgentData agent) 570 override public void AddNewUserAgent(UserAgentData agent)
571 { 571 {
572 try 572 try
573 { 573 {
@@ -587,7 +587,7 @@ namespace OpenSim.Framework.Data.MySQL
587 /// Updates a user profile stored in the DB 587 /// Updates a user profile stored in the DB
588 /// </summary> 588 /// </summary>
589 /// <param name="user">The profile data to use to update the DB</param> 589 /// <param name="user">The profile data to use to update the DB</param>
590 public bool UpdateUserProfile(UserProfileData user) 590 override public bool UpdateUserProfile(UserProfileData user)
591 { 591 {
592 database.updateUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt, 592 database.updateUserRow(user.UUID, user.username, user.surname, user.passwordHash, user.passwordSalt,
593 user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z, user.homeLookAt.X, 593 user.homeRegion, user.homeLocation.X, user.homeLocation.Y, user.homeLocation.Z, user.homeLookAt.X,
@@ -604,7 +604,7 @@ namespace OpenSim.Framework.Data.MySQL
604 /// <param name="to">The receivers account ID</param> 604 /// <param name="to">The receivers account ID</param>
605 /// <param name="amount">The amount to transfer</param> 605 /// <param name="amount">The amount to transfer</param>
606 /// <returns>Success?</returns> 606 /// <returns>Success?</returns>
607 public bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) 607 override public bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount)
608 { 608 {
609 return false; 609 return false;
610 } 610 }
@@ -617,7 +617,7 @@ namespace OpenSim.Framework.Data.MySQL
617 /// <param name="to">The receivers account ID</param> 617 /// <param name="to">The receivers account ID</param>
618 /// <param name="item">The item to transfer</param> 618 /// <param name="item">The item to transfer</param>
619 /// <returns>Success?</returns> 619 /// <returns>Success?</returns>
620 public bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item) 620 override public bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item)
621 { 621 {
622 return false; 622 return false;
623 } 623 }
@@ -626,7 +626,7 @@ namespace OpenSim.Framework.Data.MySQL
626 /// Database provider name 626 /// Database provider name
627 /// </summary> 627 /// </summary>
628 /// <returns>Provider name</returns> 628 /// <returns>Provider name</returns>
629 public string getName() 629 override public string getName()
630 { 630 {
631 return "MySQL Userdata Interface"; 631 return "MySQL Userdata Interface";
632 } 632 }
@@ -635,7 +635,7 @@ namespace OpenSim.Framework.Data.MySQL
635 /// Database provider version 635 /// Database provider version
636 /// </summary> 636 /// </summary>
637 /// <returns>provider version</returns> 637 /// <returns>provider version</returns>
638 public string GetVersion() 638 override public string GetVersion()
639 { 639 {
640 return "0.1"; 640 return "0.1";
641 } 641 }