mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Renaming UserManagerBase.SetUserProfile(UserProfileData) to
UserManager.UpdateUserProfile(UserProfileData). Adding UpdateUserProfile(UserProfileData) to IUserService interface. Adding RemoteAdminPlugin.XmlRpcUpdateUserAccountMethod(...) to provide a remote update capability.
This commit is contained in:
@@ -64,6 +64,13 @@ namespace OpenSim.Framework.Communications
|
||||
/// <param name="user"></param>
|
||||
LLUUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY);
|
||||
|
||||
/// <summary>
|
||||
/// Update the user's profile.
|
||||
/// </summary>
|
||||
/// <param name="data">UserProfileData object with updated data. Should be obtained
|
||||
/// via a call to GetUserProfile().</param>
|
||||
/// <returns>true if the update could be applied, false if it could not be applied.</returns>
|
||||
bool UpdateUserProfile(UserProfileData data);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a new friend to the database for XUser
|
||||
|
||||
@@ -153,11 +153,11 @@ namespace OpenSim.Framework.Communications
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set's user profile from data object
|
||||
/// Updates a user profile from data object
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public bool SetUserProfile(UserProfileData data)
|
||||
public bool UpdateUserProfile(UserProfileData data)
|
||||
{
|
||||
foreach (KeyValuePair<string, IUserData> plugin in _plugins)
|
||||
{
|
||||
@@ -168,7 +168,8 @@ namespace OpenSim.Framework.Communications
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Info("[USERSTORAGE]: Unable to set user via " + plugin.Key + "(" + e.ToString() + ")");
|
||||
m_log.InfoFormat("[USERSTORAGE]: Unable to set user {0} {1} via {2}: {3}", data.FirstName, data.SurName,
|
||||
plugin.Key, e.ToString());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -352,7 +353,7 @@ namespace OpenSim.Framework.Communications
|
||||
UserProfileData profile = GetUserProfile(agentID);
|
||||
profile.CurrentAgent = null;
|
||||
|
||||
SetUserProfile(profile);
|
||||
UpdateUserProfile(profile);
|
||||
}
|
||||
|
||||
|
||||
@@ -539,7 +540,7 @@ namespace OpenSim.Framework.Communications
|
||||
// TODO: what is the logic should be?
|
||||
bool ret = false;
|
||||
ret = AddUserAgent(profile.CurrentAgent);
|
||||
ret = ret & SetUserProfile(profile);
|
||||
ret = ret & UpdateUserProfile(profile);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user