aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/UserManagerBase.cs
diff options
context:
space:
mode:
authorSean Dague2008-05-01 20:36:43 +0000
committerSean Dague2008-05-01 20:36:43 +0000
commite41232bac56eb095ba9690aa47259642db94ae50 (patch)
treea5d34b027631b373a80e720e6aa28d1024bbf55c /OpenSim/Framework/Communications/UserManagerBase.cs
parentremoved last db4o ref (diff)
downloadopensim-SC-e41232bac56eb095ba9690aa47259642db94ae50.zip
opensim-SC-e41232bac56eb095ba9690aa47259642db94ae50.tar.gz
opensim-SC-e41232bac56eb095ba9690aa47259642db94ae50.tar.bz2
opensim-SC-e41232bac56eb095ba9690aa47259642db94ae50.tar.xz
create pass through of UserManagerBase to plugin calls
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs59
1 files changed, 55 insertions, 4 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs
index dbbc58f..0a877f6 100644
--- a/OpenSim/Framework/Communications/UserManagerBase.cs
+++ b/OpenSim/Framework/Communications/UserManagerBase.cs
@@ -600,28 +600,79 @@ namespace OpenSim.Framework.Communications
600 /// TODO: stubs for now to get us to a compiling state gently 600 /// TODO: stubs for now to get us to a compiling state gently
601 public UserAppearance GetUserAppearance(LLUUID user) 601 public UserAppearance GetUserAppearance(LLUUID user)
602 { 602 {
603 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
604 {
605 try
606 {
607 return plugin.Value.GetUserAppearance(user);
608 }
609 catch (Exception e)
610 {
611 m_log.InfoFormat("[USERSTORAGE]: Unable to find user appearance {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString());
612 }
613 }
603 return new UserAppearance(); 614 return new UserAppearance();
604 } 615 }
605 616
606 public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) 617 public void UpdateUserAppearance(LLUUID user, UserAppearance appearance)
607 { 618 {
608 return; 619 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
620 {
621 try
622 {
623 plugin.Value.UpdateUserAppearance(user, appearance);
624 }
625 catch (Exception e)
626 {
627 m_log.InfoFormat("[USERSTORAGE]: Unable to update user appearance {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString());
628 }
629 }
609 } 630 }
610 631
611 public void AddAttachment(LLUUID user, LLUUID item) 632 public void AddAttachment(LLUUID user, LLUUID item)
612 { 633 {
613 return; 634 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
635 {
636 try
637 {
638 plugin.Value.AddAttachment(user, item);
639 }
640 catch (Exception e)
641 {
642 m_log.InfoFormat("[USERSTORAGE]: Unable to attach {3} => {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString(), item.ToString());
643 }
644 }
614 } 645 }
615 646
616 public void RemoveAttachment(LLUUID user, LLUUID item) 647 public void RemoveAttachment(LLUUID user, LLUUID item)
617 { 648 {
618 return; 649 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
650 {
651 try
652 {
653 plugin.Value.RemoveAttachment(user, item);
654 }
655 catch (Exception e)
656 {
657 m_log.InfoFormat("[USERSTORAGE]: Unable to remove attachment {3} => {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString(), item.ToString());
658 }
659 }
619 } 660 }
620 661
621 public List<LLUUID> GetAttachments(LLUUID user) 662 public List<LLUUID> GetAttachments(LLUUID user)
622 { 663 {
664 foreach (KeyValuePair<string, IUserData> plugin in _plugins)
665 {
666 try
667 {
668 return plugin.Value.GetAttachments(user);
669 }
670 catch (Exception e)
671 {
672 m_log.InfoFormat("[USERSTORAGE]: Unable to get attachments for {0} via {1} ({2})", user.ToString(), plugin.Key, e.ToString());
673 }
674 }
623 return new List<LLUUID>(); 675 return new List<LLUUID>();
624 } 676 }
625
626 } 677 }
627} \ No newline at end of file 678} \ No newline at end of file