diff options
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 53 |
1 files changed, 7 insertions, 46 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index feeb666..ef900ea 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -83,6 +83,13 @@ namespace OpenSim.Framework.Communications | |||
83 | 83 | ||
84 | return null; | 84 | return null; |
85 | } | 85 | } |
86 | public void ResetAttachments(LLUUID userID) | ||
87 | { | ||
88 | foreach (IUserDataPlugin plugin in _plugins) | ||
89 | { | ||
90 | plugin.ResetAttachments(userID); | ||
91 | } | ||
92 | } | ||
86 | public UserAgentData GetAgentByUUID(LLUUID userId) | 93 | public UserAgentData GetAgentByUUID(LLUUID userId) |
87 | { | 94 | { |
88 | foreach (IUserDataPlugin plugin in _plugins) | 95 | foreach (IUserDataPlugin plugin in _plugins) |
@@ -639,51 +646,5 @@ namespace OpenSim.Framework.Communications | |||
639 | } | 646 | } |
640 | } | 647 | } |
641 | } | 648 | } |
642 | |||
643 | public void AddAttachment(LLUUID user, LLUUID item) | ||
644 | { | ||
645 | foreach (IUserDataPlugin plugin in _plugins) | ||
646 | { | ||
647 | try | ||
648 | { | ||
649 | plugin.AddAttachment(user, item); | ||
650 | } | ||
651 | catch (Exception e) | ||
652 | { | ||
653 | m_log.InfoFormat("[USERSTORAGE]: Unable to attach {3} => {0} via {1} ({2})", user.ToString(), plugin.Name, e.ToString(), item.ToString()); | ||
654 | } | ||
655 | } | ||
656 | } | ||
657 | |||
658 | public void RemoveAttachment(LLUUID user, LLUUID item) | ||
659 | { | ||
660 | foreach (IUserDataPlugin plugin in _plugins) | ||
661 | { | ||
662 | try | ||
663 | { | ||
664 | plugin.RemoveAttachment(user, item); | ||
665 | } | ||
666 | catch (Exception e) | ||
667 | { | ||
668 | m_log.InfoFormat("[USERSTORAGE]: Unable to remove attachment {3} => {0} via {1} ({2})", user.ToString(), plugin.Name, e.ToString(), item.ToString()); | ||
669 | } | ||
670 | } | ||
671 | } | ||
672 | |||
673 | public List<LLUUID> GetAttachments(LLUUID user) | ||
674 | { | ||
675 | foreach (IUserDataPlugin plugin in _plugins) | ||
676 | { | ||
677 | try | ||
678 | { | ||
679 | return plugin.GetAttachments(user); | ||
680 | } | ||
681 | catch (Exception e) | ||
682 | { | ||
683 | m_log.InfoFormat("[USERSTORAGE]: Unable to get attachments for {0} via {1} ({2})", user.ToString(), plugin.Name, e.ToString()); | ||
684 | } | ||
685 | } | ||
686 | return new List<LLUUID>(); | ||
687 | } | ||
688 | } | 649 | } |
689 | } | 650 | } |