mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
Polished the IUserService interface.
This commit is contained in:
@@ -168,6 +168,11 @@ namespace OpenSim.Data.MSSQL
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool Store(UserAccountData data, UUID principalID, string token)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool SetDataItem(UUID principalID, string item, string value)
|
||||
{
|
||||
string sql = string.Format("update {0} set {1} = @{1} where UUID = @UUID", m_Realm, item);
|
||||
|
||||
@@ -40,10 +40,10 @@ namespace OpenSim.Data.MySQL
|
||||
public MySqlUserAccountData(string connectionString, string realm)
|
||||
: base(connectionString, realm, "UserAccount")
|
||||
{
|
||||
public bool Store(UserAccountData data, UUID principalID, string token)
|
||||
{
|
||||
Store(data);
|
||||
}
|
||||
}
|
||||
public bool Store(UserAccountData data, UUID principalID, string token)
|
||||
{
|
||||
return Store(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,14 +86,14 @@ namespace OpenSim.Services.Connectors
|
||||
return null;
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
public UserAccount GetUserAccount(UUID scopeID, string email)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool SetHomePosition(UserAccount data, UUID regionID, UUID regionSecret)
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
{
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool SetUserAccount(UserAccount data, UUID principalID, string token)
|
||||
@@ -106,7 +106,7 @@ namespace OpenSim.Services.Connectors
|
||||
return false;
|
||||
}
|
||||
|
||||
public List<UserAccount> GetUserAccount(UUID scopeID, string query)
|
||||
public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -89,10 +89,11 @@ namespace OpenSim.Services.Interfaces
|
||||
{
|
||||
UserAccount GetUserAccount(UUID scopeID, UUID userID);
|
||||
UserAccount GetUserAccount(UUID scopeID, string FirstName, string LastName);
|
||||
UserAccount GetUserAccount(UUID scopeID, string Email);
|
||||
// Returns the list of avatars that matches both the search
|
||||
// criterion and the scope ID passed
|
||||
//
|
||||
List<UserAccount> GetUserAccount(UUID scopeID, string query);
|
||||
List<UserAccount> GetUserAccounts(UUID scopeID, string query);
|
||||
|
||||
// Update all updatable fields
|
||||
//
|
||||
|
||||
@@ -47,14 +47,14 @@ namespace OpenSim.Services.UserAccountService
|
||||
return null;
|
||||
}
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
public UserAccount GetUserAccount(UUID scopeID, string email)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool SetHomePosition(UserAccount data, UUID regionID, UUID regionSecret)
|
||||
|
||||
public UserAccount GetUserAccount(UUID scopeID, UUID userID)
|
||||
{
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
public bool SetUserAccount(UserAccount data, UUID principalID, string token)
|
||||
@@ -67,7 +67,7 @@ namespace OpenSim.Services.UserAccountService
|
||||
return false;
|
||||
}
|
||||
|
||||
public List<UserAccount> GetUserAccount(UUID scopeID,
|
||||
public List<UserAccount> GetUserAccounts(UUID scopeID,
|
||||
string query)
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user