Polished the IUserService interface.

slimupdates
Diva Canto 2009-12-29 13:27:21 -08:00
parent 8631cea215
commit 6eb5754f5a
5 changed files with 21 additions and 15 deletions

View File

@ -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);

View File

@ -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);
}
}
}

View File

@ -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;
}

View File

@ -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
//

View File

@ -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;