diff options
author | Melanie | 2013-07-29 02:08:05 +0100 |
---|---|---|
committer | Melanie | 2013-07-29 02:08:05 +0100 |
commit | bf283208df4a6936de85b2746112bb568d9c9d25 (patch) | |
tree | dafe50ad8e55ac30c41f5e7ebd11992f2772c294 /OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Same issue. (diff) | |
download | opensim-SC-bf283208df4a6936de85b2746112bb568d9c9d25.zip opensim-SC-bf283208df4a6936de85b2746112bb568d9c9d25.tar.gz opensim-SC-bf283208df4a6936de85b2746112bb568d9c9d25.tar.bz2 opensim-SC-bf283208df4a6936de85b2746112bb568d9c9d25.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs
OpenSim/Region/Framework/Scenes/Scene.cs
Diffstat (limited to 'OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs')
-rw-r--r-- | OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs b/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs index 04328c9..9a3e125 100644 --- a/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs +++ b/OpenSim/Addons/Groups/Remote/GroupsServiceRemoteConnector.cs | |||
@@ -133,6 +133,36 @@ namespace OpenSim.Groups | |||
133 | return GroupsDataUtils.GroupRecord((Dictionary<string, object>)ret["RESULT"]); | 133 | return GroupsDataUtils.GroupRecord((Dictionary<string, object>)ret["RESULT"]); |
134 | } | 134 | } |
135 | 135 | ||
136 | public List<DirGroupsReplyData> FindGroups(string RequestingAgentID, string query) | ||
137 | { | ||
138 | List<DirGroupsReplyData> hits = new List<DirGroupsReplyData>(); | ||
139 | if (string.IsNullOrEmpty(query)) | ||
140 | return hits; | ||
141 | |||
142 | Dictionary<string, object> sendData = new Dictionary<string, object>(); | ||
143 | sendData["Query"] = query; | ||
144 | sendData["RequestingAgentID"] = RequestingAgentID; | ||
145 | |||
146 | Dictionary<string, object> ret = MakeRequest("FINDGROUPS", sendData); | ||
147 | |||
148 | if (ret == null) | ||
149 | return hits; | ||
150 | |||
151 | if (!ret.ContainsKey("RESULT")) | ||
152 | return hits; | ||
153 | |||
154 | if (ret["RESULT"].ToString() == "NULL") | ||
155 | return hits; | ||
156 | |||
157 | foreach (object v in ((Dictionary<string, object>)ret["RESULT"]).Values) | ||
158 | { | ||
159 | DirGroupsReplyData m = GroupsDataUtils.DirGroupsReplyData((Dictionary<string, object>)v); | ||
160 | hits.Add(m); | ||
161 | } | ||
162 | |||
163 | return hits; | ||
164 | } | ||
165 | |||
136 | public GroupMembershipData AddAgentToGroup(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID, string token, out string reason) | 166 | public GroupMembershipData AddAgentToGroup(string RequestingAgentID, string AgentID, UUID GroupID, UUID RoleID, string token, out string reason) |
137 | { | 167 | { |
138 | reason = string.Empty; | 168 | reason = string.Empty; |