diff options
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index ba9cf27..7189eee 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -35,6 +35,7 @@ using OpenMetaverse; | |||
35 | using OpenMetaverse.StructuredData; | 35 | using OpenMetaverse.StructuredData; |
36 | using log4net; | 36 | using log4net; |
37 | using Nwc.XmlRpc; | 37 | using Nwc.XmlRpc; |
38 | using OpenSim.Framework; | ||
38 | using OpenSim.Framework.Statistics; | 39 | using OpenSim.Framework.Statistics; |
39 | 40 | ||
40 | namespace OpenSim.Framework.Communications | 41 | namespace OpenSim.Framework.Communications |
@@ -42,7 +43,7 @@ namespace OpenSim.Framework.Communications | |||
42 | /// <summary> | 43 | /// <summary> |
43 | /// Base class for user management (create, read, etc) | 44 | /// Base class for user management (create, read, etc) |
44 | /// </summary> | 45 | /// </summary> |
45 | public abstract class UserManagerBase : IUserService, IUserServiceAdmin, IAvatarService | 46 | public abstract class UserManagerBase : IUserService, IUserServiceAdmin, IAvatarService, IMessagingService |
46 | { | 47 | { |
47 | private static readonly ILog m_log | 48 | private static readonly ILog m_log |
48 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 49 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
@@ -285,6 +286,27 @@ namespace OpenSim.Framework.Communications | |||
285 | return null; | 286 | return null; |
286 | } | 287 | } |
287 | 288 | ||
289 | public Dictionary<UUID, FriendRegionInfo> GetFriendRegionInfos (List<UUID> uuids) | ||
290 | { | ||
291 | foreach (IUserDataPlugin plugin in _plugins) | ||
292 | { | ||
293 | try | ||
294 | { | ||
295 | Dictionary<UUID, FriendRegionInfo> result = plugin.GetFriendRegionInfos(uuids); | ||
296 | |||
297 | if (result != null) | ||
298 | { | ||
299 | return result; | ||
300 | } | ||
301 | } | ||
302 | catch (Exception e) | ||
303 | { | ||
304 | m_log.Info("[USERSTORAGE]: Unable to GetFriendRegionInfos via " + plugin.Name + "(" + e.ToString() + ")"); | ||
305 | } | ||
306 | } | ||
307 | return null; | ||
308 | } | ||
309 | |||
288 | public void StoreWebLoginKey(UUID agentID, UUID webLoginKey) | 310 | public void StoreWebLoginKey(UUID agentID, UUID webLoginKey) |
289 | { | 311 | { |
290 | foreach (IUserDataPlugin plugin in _plugins) | 312 | foreach (IUserDataPlugin plugin in _plugins) |