several changes to usermanagement and profiles

This commit is contained in:
UbitUmarov
2020-08-27 18:31:28 +01:00
parent 8b63182170
commit 5ef66d68a0
8 changed files with 645 additions and 589 deletions

View File

@@ -30,19 +30,26 @@ using System.Collections.Generic;
using OpenMetaverse;
namespace OpenSim.Services.Interfaces
//namespace OpenSim.Services.Interfaces
namespace OpenSim.Framework
{
/// <summary>
/// This maintains the relationship between a UUID and a user name.
/// </summary>
public interface IUserManagement
{
UserData GetUserData(UUID id);
string GetUserName(UUID uuid);
string GetUserHomeURL(UUID uuid);
string GetUserHomeURL(UUID uuid, out bool failedWeb);
string GetUserUUI(UUID uuid);
bool GetUserUUI(UUID userID, out string uui);
string GetUserServerURL(UUID uuid, string serverType);
string GetUserServerURL(UUID uuid, string serverType, out bool failedWeb);
Dictionary<UUID,string> GetUsersNames(string[] ids, UUID scopeID);
void UserWebFailed(UUID id);
/// <summary>
/// Get user ID by the given name.
@@ -79,7 +86,7 @@ namespace OpenSim.Services.Interfaces
/// <param name="uuid"></param>
/// <param name="firstName"></param>
/// <param name="lastName"></param>
void AddUser(UUID uuid, string first, string last, bool isNPC = false);
void AddUser(UUID uuid, string first, string last, bool isNPC = false, int expire = 1800000);
/// <summary>
/// Add a user.