diff options
author | Adam Frisby | 2007-05-20 14:38:25 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-20 14:38:25 +0000 |
commit | 60639337bd92fbcd38c42088febc9832e57d19e3 (patch) | |
tree | a6ac3fec3a8b0830c65aaeca60579777db41e858 /OpenGridServices.UserServer/UserManager.cs | |
parent | Small fix (2/2) (diff) | |
download | opensim-SC-60639337bd92fbcd38c42088febc9832e57d19e3.zip opensim-SC-60639337bd92fbcd38c42088febc9832e57d19e3.tar.gz opensim-SC-60639337bd92fbcd38c42088febc9832e57d19e3.tar.bz2 opensim-SC-60639337bd92fbcd38c42088febc9832e57d19e3.tar.xz |
* Fixed depreciated warning in MSSQL Manager
* Added support for user agents in the Userserver UserManager
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.UserServer/UserManager.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/OpenGridServices.UserServer/UserManager.cs b/OpenGridServices.UserServer/UserManager.cs index 7473685..057fb79 100644 --- a/OpenGridServices.UserServer/UserManager.cs +++ b/OpenGridServices.UserServer/UserManager.cs | |||
@@ -98,5 +98,56 @@ namespace OpenGridServices.UserServer | |||
98 | 98 | ||
99 | return null; | 99 | return null; |
100 | } | 100 | } |
101 | |||
102 | public UserAgentData getUserAgent(LLUUID uuid) | ||
103 | { | ||
104 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | ||
105 | { | ||
106 | try | ||
107 | { | ||
108 | return plugin.Value.getAgentByUUID(uuid); | ||
109 | } | ||
110 | catch (Exception e) | ||
111 | { | ||
112 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); | ||
113 | } | ||
114 | } | ||
115 | |||
116 | return null; | ||
117 | } | ||
118 | |||
119 | public UserAgentData getUserAgent(string name) | ||
120 | { | ||
121 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | ||
122 | { | ||
123 | try | ||
124 | { | ||
125 | return plugin.Value.getAgentByName(name); | ||
126 | } | ||
127 | catch (Exception e) | ||
128 | { | ||
129 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); | ||
130 | } | ||
131 | } | ||
132 | |||
133 | return null; | ||
134 | } | ||
135 | |||
136 | public UserAgentData getUserAgent(string fname, string lname) | ||
137 | { | ||
138 | foreach (KeyValuePair<string, IUserData> plugin in _plugins) | ||
139 | { | ||
140 | try | ||
141 | { | ||
142 | return plugin.Value.getAgentByName(fname,lname); | ||
143 | } | ||
144 | catch (Exception e) | ||
145 | { | ||
146 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "Unable to find user via " + plugin.Key + "(" + e.ToString() + ")"); | ||
147 | } | ||
148 | } | ||
149 | |||
150 | return null; | ||
151 | } | ||
101 | } | 152 | } |
102 | } | 153 | } |