Finish the renaming and mae things compile again

arthursv
Melanie 2009-08-09 22:25:15 +01:00
parent 6ba89bef61
commit 474f58faf5
6 changed files with 42 additions and 42 deletions

View File

@ -42,7 +42,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
LogManager.GetLogger( LogManager.GetLogger(
MethodBase.GetCurrentMethod().DeclaringType); MethodBase.GetCurrentMethod().DeclaringType);
private IUserDataService m_UserService; private IUserAccountDataService m_UserService;
private bool m_Enabled = false; private bool m_Enabled = false;
@ -82,7 +82,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
Object[] args = new Object[] { source }; Object[] args = new Object[] { source };
m_UserService = m_UserService =
ServerUtils.LoadPlugin<IUserDataService>(serviceDll, ServerUtils.LoadPlugin<IUserAccountDataService>(serviceDll,
args); args);
if (m_UserService == null) if (m_UserService == null)
@ -113,7 +113,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
if (!m_Enabled) if (!m_Enabled)
return; return;
scene.RegisterModuleInterface<IUserDataService>(m_UserService); scene.RegisterModuleInterface<IUserAccountDataService>(m_UserService);
} }
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)

View File

@ -37,7 +37,7 @@ using OpenSim.Services.Connectors;
namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
{ {
public class RemoteUserServicesConnector : UserServicesConnector, public class RemoteUserServicesConnector : UserServicesConnector,
ISharedRegionModule, IUserDataService ISharedRegionModule, IUserAccountDataService
{ {
private static readonly ILog m_log = private static readonly ILog m_log =
LogManager.GetLogger( LogManager.GetLogger(
@ -96,7 +96,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
if (!m_Enabled) if (!m_Enabled)
return; return;
scene.RegisterModuleInterface<IUserDataService>(this); scene.RegisterModuleInterface<IUserAccountDataService>(this);
} }
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)

View File

@ -39,7 +39,7 @@ using OpenMetaverse;
namespace OpenSim.Services.Connectors namespace OpenSim.Services.Connectors
{ {
public class UserServicesConnector : IUserDataService public class UserServicesConnector : IUserAccountDataService
{ {
private static readonly ILog m_log = private static readonly ILog m_log =
LogManager.GetLogger( LogManager.GetLogger(
@ -81,10 +81,10 @@ namespace OpenSim.Services.Connectors
m_ServerURI = serviceURI; m_ServerURI = serviceURI;
} }
public UserData GetUserData(UUID scopeID, string firstName, string lastName) public UserAccountData GetUserAccountData(UUID scopeID, string firstName, string lastName)
{ {
string uri = m_ServerURI + "/users/"; string uri = m_ServerURI + "/users/";
UserData data = new UserData(); UserAccountData data = new UserAccountData();
data.FirstName = firstName; data.FirstName = firstName;
data.LastName = lastName; data.LastName = lastName;
data.ScopeID = scopeID; data.ScopeID = scopeID;
@ -93,7 +93,7 @@ namespace OpenSim.Services.Connectors
try try
{ {
data = SynchronousRestObjectRequester. data = SynchronousRestObjectRequester.
MakeRequest<UserData, UserData>("POST", uri, data); MakeRequest<UserAccountData, UserAccountData>("POST", uri, data);
} }
catch (Exception e) catch (Exception e)
{ {
@ -107,10 +107,10 @@ namespace OpenSim.Services.Connectors
return data; return data;
} }
public UserData GetUserData(UUID scopeID, UUID userID) public UserAccountData GetUserAccountData(UUID scopeID, UUID userID)
{ {
string uri = m_ServerURI + "/users/"; string uri = m_ServerURI + "/users/";
UserData data = new UserData(); UserAccountData data = new UserAccountData();
data.FirstName = String.Empty; data.FirstName = String.Empty;
data.LastName = String.Empty; data.LastName = String.Empty;
data.ScopeID = scopeID; data.ScopeID = scopeID;
@ -119,7 +119,7 @@ namespace OpenSim.Services.Connectors
try try
{ {
data = SynchronousRestObjectRequester. data = SynchronousRestObjectRequester.
MakeRequest<UserData, UserData>("POST", uri, data); MakeRequest<UserAccountData, UserAccountData>("POST", uri, data);
} }
catch (Exception e) catch (Exception e)
{ {
@ -133,12 +133,12 @@ namespace OpenSim.Services.Connectors
return data; return data;
} }
public bool SetHomePosition(UserData data, UUID regionID, UUID regionSecret) public bool SetHomePosition(UserAccountData data, UUID regionID, UUID regionSecret)
{ {
string uri = m_ServerURI + "/user/"; string uri = m_ServerURI + "/user/";
bool result = false; bool result = false;
UserDataMessage msg = new UserDataMessage(); UserAccountDataMessage msg = new UserAccountDataMessage();
msg.Data = data; msg.Data = data;
msg.RegionID = regionID; msg.RegionID = regionID;
@ -147,7 +147,7 @@ namespace OpenSim.Services.Connectors
try try
{ {
result = SynchronousRestObjectRequester. result = SynchronousRestObjectRequester.
MakeRequest<UserDataMessage, bool>("POST", uri, msg); MakeRequest<UserAccountDataMessage, bool>("POST", uri, msg);
} }
catch (Exception e) catch (Exception e)
{ {
@ -158,12 +158,12 @@ namespace OpenSim.Services.Connectors
return result; return result;
} }
public bool SetUserData(UserData data, UUID principalID, UUID sessionID) public bool SetUserAccountData(UserAccountData data, UUID principalID, UUID sessionID)
{ {
string uri = m_ServerURI + "/user/"; string uri = m_ServerURI + "/user/";
bool result = false; bool result = false;
UserDataMessage msg = new UserDataMessage(); UserAccountDataMessage msg = new UserAccountDataMessage();
msg.Data = data; msg.Data = data;
msg.PrincipalID = principalID; msg.PrincipalID = principalID;
@ -172,7 +172,7 @@ namespace OpenSim.Services.Connectors
try try
{ {
result = SynchronousRestObjectRequester. result = SynchronousRestObjectRequester.
MakeRequest<UserDataMessage, bool>("POST", uri, msg); MakeRequest<UserAccountDataMessage, bool>("POST", uri, msg);
} }
catch (Exception e) catch (Exception e)
{ {
@ -183,12 +183,12 @@ namespace OpenSim.Services.Connectors
return result; return result;
} }
public bool CreateUserData(UserData data, UUID principalID, UUID sessionID) public bool CreateUserAccountData(UserAccountData data, UUID principalID, UUID sessionID)
{ {
string uri = m_ServerURI + "/newuser/"; string uri = m_ServerURI + "/newuser/";
bool result = false; bool result = false;
UserDataMessage msg = new UserDataMessage(); UserAccountDataMessage msg = new UserAccountDataMessage();
msg.Data = data; msg.Data = data;
msg.PrincipalID = principalID; msg.PrincipalID = principalID;
@ -197,7 +197,7 @@ namespace OpenSim.Services.Connectors
try try
{ {
result = SynchronousRestObjectRequester. result = SynchronousRestObjectRequester.
MakeRequest<UserDataMessage, bool>("POST", uri, msg); MakeRequest<UserAccountDataMessage, bool>("POST", uri, msg);
} }
catch (Exception e) catch (Exception e)
{ {
@ -208,18 +208,18 @@ namespace OpenSim.Services.Connectors
return result; return result;
} }
public List<UserData> GetAvatarPickerData(UUID scopeID, string query) public List<UserAccountData> GetUserAccountData(UUID scopeID, string query)
{ {
string uri = m_ServerURI + "/userlist/"; string uri = m_ServerURI + "/userlist/";
UserData data = new UserData(); UserAccountData data = new UserAccountData();
data.FirstName = query; data.FirstName = query;
data.ScopeID = scopeID; data.ScopeID = scopeID;
List<UserData> result; List<UserAccountData> result;
try try
{ {
result = SynchronousRestObjectRequester. result = SynchronousRestObjectRequester.
MakeRequest<UserData, List<UserData>>("POST", uri, data); MakeRequest<UserAccountData, List<UserAccountData>>("POST", uri, data);
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -32,11 +32,11 @@ namespace OpenSim.Services.Interfaces
{ {
public class UserAccountData public class UserAccountData
{ {
public UserData() public UserAccountData()
{ {
} }
public UserData(UUID userID, UUID homeRegionID, float homePositionX, public UserAccountData(UUID userID, UUID homeRegionID, float homePositionX,
float homePositionY, float homePositionZ, float homeLookAtX, float homePositionY, float homePositionZ, float homeLookAtX,
float homeLookAtY, float homeLookAtZ) float homeLookAtY, float homeLookAtZ)
{ {
@ -80,7 +80,7 @@ namespace OpenSim.Services.Interfaces
public class UserAccountDataMessage public class UserAccountDataMessage
{ {
public UserData Data; public UserAccountData Data;
// Set to the region's ID and secret when updating home location // Set to the region's ID and secret when updating home location
// //

View File

@ -33,41 +33,41 @@ using OpenSim.Services.Interfaces;
using System.Collections.Generic; using System.Collections.Generic;
using OpenMetaverse; using OpenMetaverse;
namespace OpenSim.Services.UserService namespace OpenSim.Services.UserAccountService
{ {
public class UserService : UserServiceBase, IUserDataService public class UserAccountService : UserAccountServiceBase, IUserAccountDataService
{ {
public UserService(IConfigSource config) : base(config) public UserAccountService(IConfigSource config) : base(config)
{ {
} }
public UserData GetUserData(UUID scopeID, string firstName, public UserAccountData GetUserAccountData(UUID scopeID, string firstName,
string lastName) string lastName)
{ {
return null; return null;
} }
public UserData GetUserData(UUID scopeID, UUID userID) public UserAccountData GetUserAccountData(UUID scopeID, UUID userID)
{ {
return null; return null;
} }
public bool SetHomePosition(UserData data, UUID regionID, UUID regionSecret) public bool SetHomePosition(UserAccountData data, UUID regionID, UUID regionSecret)
{ {
return false; return false;
} }
public bool SetUserData(UserData data, UUID principalID, UUID sessionID) public bool SetUserAccountData(UserAccountData data, UUID principalID, UUID sessionID)
{ {
return false; return false;
} }
public bool CreateUserData(UserData data, UUID principalID, UUID sessionID) public bool CreateUserAccountData(UserAccountData data, UUID principalID, UUID sessionID)
{ {
return false; return false;
} }
public List<UserData> GetAvatarPickerData(UUID scopeID, public List<UserAccountData> GetUserAccountData(UUID scopeID,
string query) string query)
{ {
return null; return null;

View File

@ -32,17 +32,17 @@ using OpenSim.Data;
using OpenSim.Services.Interfaces; using OpenSim.Services.Interfaces;
using OpenSim.Services.Base; using OpenSim.Services.Base;
namespace OpenSim.Services.UserService namespace OpenSim.Services.UserAccountService
{ {
public class UserServiceBase: ServiceBase public class UserAccountServiceBase: ServiceBase
{ {
protected IUserDataPlugin m_Database = null; protected IUserDataPlugin m_Database = null;
public UserServiceBase(IConfigSource config) : base(config) public UserAccountServiceBase(IConfigSource config) : base(config)
{ {
IConfig userConfig = config.Configs["UserService"]; IConfig userConfig = config.Configs["UserAccountService"];
if (userConfig == null) if (userConfig == null)
throw new Exception("No UserService configuration"); throw new Exception("No UserAccountService configuration");
string dllName = userConfig.GetString("StorageProvider", string dllName = userConfig.GetString("StorageProvider",
String.Empty); String.Empty);