diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index dbbc58f727..0a877f6ee0 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs @@ -600,28 +600,79 @@ namespace OpenSim.Framework.Communications /// TODO: stubs for now to get us to a compiling state gently public UserAppearance GetUserAppearance(LLUUID user) { + foreach (KeyValuePair plugin in _plugins) + { + try + { + return plugin.Value.GetUserAppearance(user); + } + catch (Exception e) + { + m_log.InfoFormat("[USERSTORAGE]: Unable to find user appearance {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString()); + } + } return new UserAppearance(); } public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) { - return; + foreach (KeyValuePair plugin in _plugins) + { + try + { + plugin.Value.UpdateUserAppearance(user, appearance); + } + catch (Exception e) + { + m_log.InfoFormat("[USERSTORAGE]: Unable to update user appearance {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString()); + } + } } public void AddAttachment(LLUUID user, LLUUID item) { - return; + foreach (KeyValuePair plugin in _plugins) + { + try + { + plugin.Value.AddAttachment(user, item); + } + catch (Exception e) + { + m_log.InfoFormat("[USERSTORAGE]: Unable to attach {3} => {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString(), item.ToString()); + } + } } public void RemoveAttachment(LLUUID user, LLUUID item) { - return; + foreach (KeyValuePair plugin in _plugins) + { + try + { + plugin.Value.RemoveAttachment(user, item); + } + catch (Exception e) + { + m_log.InfoFormat("[USERSTORAGE]: Unable to remove attachment {3} => {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString(), item.ToString()); + } + } } public List GetAttachments(LLUUID user) { + foreach (KeyValuePair plugin in _plugins) + { + try + { + return plugin.Value.GetAttachments(user); + } + catch (Exception e) + { + m_log.InfoFormat("[USERSTORAGE]: Unable to get attachments for {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString()); + } + } return new List(); } - } } \ No newline at end of file