aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut
diff options
context:
space:
mode:
authorMelanie2011-10-11 21:28:23 +0100
committerMelanie2011-10-11 21:28:23 +0100
commit8fac7c065088d9861ba2ff772fde7f2e9c8d1003 (patch)
tree715c078c3a0ad1298b6b560cf31c2d445c22700a /OpenSim/Region/CoreModules/ServiceConnectorsOut
parentMerge commit 'c4efb97d49dec736151dfa3fa102efe6a5f6fbab' into bigmerge (diff)
parentCorrectly create a freshly created estate owner's default items and avatar en... (diff)
downloadopensim-SC_OLD-8fac7c065088d9861ba2ff772fde7f2e9c8d1003.zip
opensim-SC_OLD-8fac7c065088d9861ba2ff772fde7f2e9c8d1003.tar.gz
opensim-SC_OLD-8fac7c065088d9861ba2ff772fde7f2e9c8d1003.tar.bz2
opensim-SC_OLD-8fac7c065088d9861ba2ff772fde7f2e9c8d1003.tar.xz
Merge commit '522d6261f11ffaf8320c3f0775beb5d0608ce226' into bigmerge
Conflicts: OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs24
1 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
index 535a637..df31089 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
@@ -45,7 +45,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
45 LogManager.GetLogger( 45 LogManager.GetLogger(
46 MethodBase.GetCurrentMethod().DeclaringType); 46 MethodBase.GetCurrentMethod().DeclaringType);
47 47
48 private IUserAccountService m_UserService; 48 /// <summary>
49 /// This is not on the IUserAccountService. It's only being used so that standalone scenes can punch through
50 /// to a local UserAccountService when setting up an estate manager.
51 /// </summary>
52 public IUserAccountService UserAccountService { get; private set; }
53
49 private UserAccountCache m_Cache; 54 private UserAccountCache m_Cache;
50 55
51 private bool m_Enabled = false; 56 private bool m_Enabled = false;
@@ -86,9 +91,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
86 } 91 }
87 92
88 Object[] args = new Object[] { source }; 93 Object[] args = new Object[] { source };
89 m_UserService = ServerUtils.LoadPlugin<IUserAccountService>(serviceDll, args); 94 UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(serviceDll, args);
90 95
91 if (m_UserService == null) 96 if (UserAccountService == null)
92 { 97 {
93 m_log.ErrorFormat( 98 m_log.ErrorFormat(
94 "[LOCAL USER ACCOUNT SERVICE CONNECTOR]: Cannot load user account service specified as {0}", serviceDll); 99 "[LOCAL USER ACCOUNT SERVICE CONNECTOR]: Cannot load user account service specified as {0}", serviceDll);
@@ -119,7 +124,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
119 if (!m_Enabled) 124 if (!m_Enabled)
120 return; 125 return;
121 126
122 scene.RegisterModuleInterface<IUserAccountService>(m_UserService); 127 scene.RegisterModuleInterface<IUserAccountService>(UserAccountService);
123 scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache); 128 scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
124 } 129 }
125 130
@@ -148,7 +153,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
148 if (inCache) 153 if (inCache)
149 return account; 154 return account;
150 155
151 account = m_UserService.GetUserAccount(scopeID, userID); 156 account = UserAccountService.GetUserAccount(scopeID, userID);
152 m_Cache.Cache(userID, account); 157 m_Cache.Cache(userID, account);
153 158
154 return account; 159 return account;
@@ -161,7 +166,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
161 if (inCache) 166 if (inCache)
162 return account; 167 return account;
163 168
164 account = m_UserService.GetUserAccount(scopeID, firstName, lastName); 169 account = UserAccountService.GetUserAccount(scopeID, firstName, lastName);
165 if (account != null) 170 if (account != null)
166 m_Cache.Cache(account.PrincipalID, account); 171 m_Cache.Cache(account.PrincipalID, account);
167 172
@@ -170,7 +175,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
170 175
171 public UserAccount GetUserAccount(UUID scopeID, string Email) 176 public UserAccount GetUserAccount(UUID scopeID, string Email)
172 { 177 {
173 return m_UserService.GetUserAccount(scopeID, Email); 178 return UserAccountService.GetUserAccount(scopeID, Email);
174 } 179 }
175 180
176 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query) 181 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query)
@@ -180,17 +185,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
180 185
181 public List<UserAccount> GetUserAccounts(UUID scopeID, string query) 186 public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
182 { 187 {
183 return m_UserService.GetUserAccounts(scopeID, query); 188 return UserAccountService.GetUserAccounts(scopeID, query);
184 } 189 }
185 190
186 // Update all updatable fields 191 // Update all updatable fields
187 // 192 //
188 public bool StoreUserAccount(UserAccount data) 193 public bool StoreUserAccount(UserAccount data)
189 { 194 {
190 return m_UserService.StoreUserAccount(data); 195 return UserAccountService.StoreUserAccount(data);
191 } 196 }
192 197
193 #endregion 198 #endregion
194
195 } 199 }
196} 200}