1
0

IUserManagement.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using OpenMetaverse;
  4. namespace OpenSim.Region.Framework.Interfaces
  5. {
  6. /// <summary>
  7. /// This maintains the relationship between a UUID and a user name.
  8. /// </summary>
  9. public interface IUserManagement
  10. {
  11. string GetUserName(UUID uuid);
  12. string GetUserHomeURL(UUID uuid);
  13. string GetUserUUI(UUID uuid);
  14. string GetUserServerURL(UUID uuid, string serverType);
  15. /// <summary>
  16. /// Add a user.
  17. /// </summary>
  18. /// <remarks>
  19. /// If an account is found for the UUID, then the names in this will be used rather than any information
  20. /// extracted from creatorData.
  21. /// </remarks>
  22. /// <param name="uuid"></param>
  23. /// <param name="creatorData">The creator data for this user.</param>
  24. void AddUser(UUID uuid, string creatorData);
  25. /// <summary>
  26. /// Add a user.
  27. /// </summary>
  28. /// <remarks>
  29. /// The UUID is related to the name without any other checks being performed, such as user account presence.
  30. /// </remarks>
  31. /// <param name="uuid"></param>
  32. /// <param name="firstName"></param>
  33. /// <param name="lastName"></param>
  34. void AddUser(UUID uuid, string firstName, string lastName);
  35. /// <summary>
  36. /// Add a user.
  37. /// </summary>
  38. /// <remarks>
  39. /// The arguments apart from uuid are formed into a creatorData string and processing proceeds as for the
  40. /// AddUser(UUID uuid, string creatorData) method.
  41. /// </remarks>
  42. /// <param name="uuid"></param>
  43. /// <param name="firstName"></param>
  44. /// <param name="profileURL"></param>
  45. void AddUser(UUID uuid, string firstName, string lastName, string profileURL);
  46. }
  47. }