* Add user data plugin to store temporary profiles (which are distinct from cached)

* Plugin not yet used
* Existing functionality should not be affected in any way
This commit is contained in:
Justin Clarke Casey
2009-04-23 18:24:39 +00:00
parent ae30776003
commit ef9d140022
10 changed files with 130 additions and 34 deletions

View File

@@ -69,15 +69,13 @@ namespace OpenSim.Region.Communications.Hypergrid
m_log.Info("[HG]: Non-secureInventoryService.");
HGUserServices userServices = new HGUserServices(this);
// This plugin arrangement could eventually be configurable rather than hardcoded here.
OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(this);
userServices.AddPlugin(userDataPlugin);
// This plugin arrangement could eventually be configurable rather than hardcoded here.
userServices.AddPlugin(new TemporaryUserProfilePlugin());
userServices.AddPlugin(new OGS1UserDataPlugin(this));
m_userService = userServices;
m_messageService = userServices;
m_avatarService = (IAvatarService)m_userService;
m_avatarService = userServices;
}
}
}

View File

@@ -62,7 +62,8 @@ namespace OpenSim.Region.Communications.Hypergrid
m_inventoryServices = null;
HGUserServices hgUserService = new HGUserServices(this, localUserService);
// This plugin arrangement could eventually be configurable rather than hardcoded here.
// This plugin arrangement could eventually be configurable rather than hardcoded here.
hgUserService.AddPlugin(new TemporaryUserProfilePlugin());
hgUserService.AddPlugin(new OGS1UserDataPlugin(this));
m_userService = hgUserService;

View File

@@ -52,6 +52,7 @@ namespace OpenSim.Region.Communications.Local
LocalUserServices lus
= new LocalUserServices(
serversInfo.DefaultHomeLocX, serversInfo.DefaultHomeLocY, this);
lus.AddPlugin(new TemporaryUserProfilePlugin());
lus.AddPlugin(configSettings.StandaloneUserPlugin, configSettings.StandaloneUserSource);
m_userService = lus;
m_userAdminService = lus;

View File

@@ -57,8 +57,8 @@ namespace OpenSim.Region.Communications.OGS1
// This plugin arrangement could eventually be configurable rather than hardcoded here.
OGS1UserServices userServices = new OGS1UserServices(this);
OGS1UserDataPlugin userDataPlugin = new OGS1UserDataPlugin(this);
userServices.AddPlugin(userDataPlugin);
userServices.AddPlugin(new TemporaryUserProfilePlugin());
userServices.AddPlugin(new OGS1UserDataPlugin(this));
m_userService = userServices;
m_messageService = userServices;