aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/UserManagerBase.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-09-15 19:02:34 +0000
committerJustin Clarke Casey2008-09-15 19:02:34 +0000
commitddaa90d270c9bd10c74cf89b29b45963719f9b60 (patch)
tree638e92f3f5a079335901dc4011a1425f33ff2328 /OpenSim/Framework/Communications/UserManagerBase.cs
parent* oops! Add interface file I forgot in the last checkin (diff)
downloadopensim-SC-ddaa90d270c9bd10c74cf89b29b45963719f9b60.zip
opensim-SC-ddaa90d270c9bd10c74cf89b29b45963719f9b60.tar.gz
opensim-SC-ddaa90d270c9bd10c74cf89b29b45963719f9b60.tar.bz2
opensim-SC-ddaa90d270c9bd10c74cf89b29b45963719f9b60.tar.xz
* refactor: collapse UpdateUserProfileProperties() into existing UpdateUserProfile
* the methods were identical except that the Properties one did a check for the user profile beforehand. However, every caller was doing this already anyway.
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index f06a438..46a9b67 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -600,29 +600,6 @@ namespace OpenSim.Framework.Communications
600 return true; 600 return true;
601 } 601 }
602 602
603 public bool UpdateUserProfileProperties(UserProfileData UserProfile)
604 {
605 if (null == GetUserProfile(UserProfile.ID))
606 {
607 m_log.Info("[USERSTORAGE]: Failed to find User by UUID " + UserProfile.ID.ToString());
608 return false;
609 }
610 foreach (IUserDataPlugin plugin in _plugins)
611 {
612 try
613 {
614 plugin.UpdateUserProfile(UserProfile);
615 }
616 catch (Exception e)
617 {
618 m_log.Info("[USERSTORAGE]: Unable to update user " + UserProfile.ID.ToString()
619 + " via " + plugin.Name + "(" + e.ToString() + ")");
620 return false;
621 }
622 }
623 return true;
624 }
625
626 public abstract UserProfileData SetupMasterUser(string firstName, string lastName); 603 public abstract UserProfileData SetupMasterUser(string firstName, string lastName);
627 public abstract UserProfileData SetupMasterUser(string firstName, string lastName, string password); 604 public abstract UserProfileData SetupMasterUser(string firstName, string lastName, string password);
628 public abstract UserProfileData SetupMasterUser(UUID uuid); 605 public abstract UserProfileData SetupMasterUser(UUID uuid);