Add "friends show cache <first-name> <last-name>" command for debugging purposes.

This adds a reverse lookup (name -> ID) to IUserManagement instead of hitting the UserAccountService directly.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-03-28 02:51:34 +01:00
parent 445e8bc560
commit 12d3ea3029
3 changed files with 120 additions and 2 deletions

View File

@@ -15,6 +15,21 @@ namespace OpenSim.Region.Framework.Interfaces
string GetUserUUI(UUID uuid);
string GetUserServerURL(UUID uuid, string serverType);
/// <summary>
/// Get user ID by the given name.
/// </summary>
/// <param name="name"></param>
/// <returns>UUID.Zero if no user with that name is found or if the name is "Unknown User"</returns>
UUID GetUserIdByName(string name);
/// <summary>
/// Get user ID by the given name.
/// </summary>
/// <param name="firstName"></param>
/// <param name="lastName"></param>
/// <returns>UUID.Zero if no user with that name is found or if the name is "Unknown User"</returns>
UUID GetUserIdByName(string firstName, string lastName);
/// <summary>
/// Add a user.
/// </summary>