aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/UserManagerBase.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index f913d2c..5d62e5e 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -197,6 +197,80 @@ namespace OpenSim.Framework.UserManagement
197 } 197 }
198 198
199 /// <summary> 199 /// <summary>
200 /// Loads a user's friend list
201 /// </summary>
202 /// <param name="name">the UUID of the friend list owner</param>
203 /// <returns>A List of FriendListItems that contains info about the user's friends</returns>
204 public List<FriendListItem> GetUserFriendList(LLUUID ownerID)
205 {
206
207 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
208 {
209 try
210 {
211 return plugin.Value.GetUserFriendList(ownerID);
212 }
213 catch (Exception e)
214 {
215 MainLog.Instance.Verbose("USERSTORAGE",
216 "Unable to GetUserFriendList via " + plugin.Key + "(" + e.ToString() + ")");
217 }
218 }
219
220 return null;
221
222 }
223
224 public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms)
225 {
226 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
227 {
228 try
229 {
230 plugin.Value.AddNewUserFriend(friendlistowner,friend,perms);
231 }
232 catch (Exception e)
233 {
234 MainLog.Instance.Verbose("USERSTORAGE",
235 "Unable to AddNewUserFriend via " + plugin.Key + "(" + e.ToString() + ")");
236 }
237 }
238
239 }
240
241
242 public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
243 {
244 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
245 {
246 try
247 {
248 plugin.Value.RemoveUserFriend(friendlistowner, friend);
249 }
250 catch (Exception e)
251 {
252 MainLog.Instance.Verbose("USERSTORAGE",
253 "Unable to RemoveUserFriend via " + plugin.Key + "(" + e.ToString() + ")");
254 }
255 }
256 }
257
258 public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
259 {
260 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
261 {
262 try
263 {
264 plugin.Value.UpdateUserFriendPerms(friendlistowner, friend, perms);
265 }
266 catch (Exception e)
267 {
268 MainLog.Instance.Verbose("USERSTORAGE",
269 "Unable to UpdateUserFriendPerms via " + plugin.Key + "(" + e.ToString() + ")");
270 }
271 }
272 }
273 /// <summary>
200 /// Loads a user agent by name (not called directly) 274 /// Loads a user agent by name (not called directly)
201 /// </summary> 275 /// </summary>
202 /// <param name="name">The agent's name</param> 276 /// <param name="name">The agent's name</param>