diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs | 237 |
1 files changed, 144 insertions, 93 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs index 590753e..4867c01 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/SimianGroupsServicesConnectorModule.cs | |||
@@ -55,6 +55,9 @@ using OpenSim.Services.Interfaces; | |||
55 | * UserID -> Group -> ActiveGroup | 55 | * UserID -> Group -> ActiveGroup |
56 | * + GroupID | 56 | * + GroupID |
57 | * | 57 | * |
58 | * UserID -> GroupSessionDropped -> GroupID | ||
59 | * UserID -> GroupSessionInvited -> GroupID | ||
60 | * | ||
58 | * UserID -> GroupMember -> GroupID | 61 | * UserID -> GroupMember -> GroupID |
59 | * + SelectedRoleID [UUID] | 62 | * + SelectedRoleID [UUID] |
60 | * + AcceptNotices [bool] | 63 | * + AcceptNotices [bool] |
@@ -63,6 +66,7 @@ using OpenSim.Services.Interfaces; | |||
63 | * | 66 | * |
64 | * UserID -> GroupRole[GroupID] -> RoleID | 67 | * UserID -> GroupRole[GroupID] -> RoleID |
65 | * | 68 | * |
69 | * | ||
66 | * GroupID -> Group -> GroupName | 70 | * GroupID -> Group -> GroupName |
67 | * + Charter | 71 | * + Charter |
68 | * + ShowInList | 72 | * + ShowInList |
@@ -159,7 +163,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
159 | 163 | ||
160 | private bool m_connectorEnabled = false; | 164 | private bool m_connectorEnabled = false; |
161 | 165 | ||
162 | private string m_serviceURL = string.Empty; | 166 | private string m_groupsServerURI = string.Empty; |
163 | 167 | ||
164 | private bool m_debugEnabled = false; | 168 | private bool m_debugEnabled = false; |
165 | 169 | ||
@@ -199,13 +203,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
199 | return; | 203 | return; |
200 | } | 204 | } |
201 | 205 | ||
202 | m_log.InfoFormat("[GROUPS-CONNECTOR]: Initializing {0}", this.Name); | 206 | m_log.InfoFormat("[GROUPS-CONNECTOR]: Initializing {0}", this.Name); |
203 | 207 | ||
204 | m_serviceURL = groupsConfig.GetString("XmlRpcServiceURL", string.Empty); | 208 | m_groupsServerURI = groupsConfig.GetString("GroupsServerURI", string.Empty); |
205 | if ((m_serviceURL == null) || | 209 | if ((m_groupsServerURI == null) || |
206 | (m_serviceURL == string.Empty)) | 210 | (m_groupsServerURI == string.Empty)) |
207 | { | 211 | { |
208 | m_log.ErrorFormat("Please specify a valid Simian Server URL for XmlRpcServiceURL in OpenSim.ini, [Groups]"); | 212 | m_log.ErrorFormat("Please specify a valid Simian Server for GroupsServerURI in OpenSim.ini, [Groups]"); |
209 | m_connectorEnabled = false; | 213 | m_connectorEnabled = false; |
210 | return; | 214 | return; |
211 | } | 215 | } |
@@ -288,8 +292,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
288 | 292 | ||
289 | if(SimianAddGeneric(GroupID, "Group", name, GroupInfoMap)) | 293 | if(SimianAddGeneric(GroupID, "Group", name, GroupInfoMap)) |
290 | { | 294 | { |
291 | AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers); | 295 | AddGroupRole(requestingAgentID, GroupID, UUID.Zero, "Everyone", "Members of " + name, "Member of " + name, (ulong)m_DefaultEveryonePowers); |
292 | AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers); | 296 | AddGroupRole(requestingAgentID, GroupID, OwnerRoleID, "Owners", "Owners of " + name, "Owner of " + name, (ulong)m_DefaultOwnerPowers); |
293 | 297 | ||
294 | AddAgentToGroup(requestingAgentID, requestingAgentID, GroupID, OwnerRoleID); | 298 | AddAgentToGroup(requestingAgentID, requestingAgentID, GroupID, OwnerRoleID); |
295 | 299 | ||
@@ -413,7 +417,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
413 | } | 417 | } |
414 | } | 418 | } |
415 | else if ((groupName != null) && (groupName != string.Empty)) | 419 | else if ((groupName != null) && (groupName != string.Empty)) |
416 | { | 420 | { |
417 | if (!SimianGetFirstGenericEntry("Group", groupName, out groupID, out GroupInfoMap)) | 421 | if (!SimianGetFirstGenericEntry("Group", groupName, out groupID, out GroupInfoMap)) |
418 | { | 422 | { |
419 | return null; | 423 | return null; |
@@ -422,7 +426,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
422 | 426 | ||
423 | GroupRecord GroupInfo = new GroupRecord(); | 427 | GroupRecord GroupInfo = new GroupRecord(); |
424 | 428 | ||
425 | GroupInfo.GroupID = groupID; | 429 | GroupInfo.GroupID = groupID; |
426 | GroupInfo.GroupName = groupName; | 430 | GroupInfo.GroupName = groupName; |
427 | GroupInfo.Charter = GroupInfoMap["Charter"].AsString(); | 431 | GroupInfo.Charter = GroupInfoMap["Charter"].AsString(); |
428 | GroupInfo.ShowInList = GroupInfoMap["ShowInList"].AsBoolean(); | 432 | GroupInfo.ShowInList = GroupInfoMap["ShowInList"].AsBoolean(); |
@@ -653,7 +657,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
653 | }; | 657 | }; |
654 | 658 | ||
655 | 659 | ||
656 | OSDMap response = WebUtil.PostToService(m_serviceURL, requestArgs); | 660 | OSDMap response = WebUtil.PostToService(m_groupsServerURI, requestArgs); |
657 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) | 661 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) |
658 | { | 662 | { |
659 | OSDArray entryArray = (OSDArray)response["Entries"]; | 663 | OSDArray entryArray = (OSDArray)response["Entries"]; |
@@ -751,9 +755,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
751 | if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup)) | 755 | if (SimianGetGenericEntry(agentID, "Group", "ActiveGroup", out UserActiveGroup)) |
752 | { | 756 | { |
753 | GroupID = UserActiveGroup["GroupID"].AsUUID(); | 757 | GroupID = UserActiveGroup["GroupID"].AsUUID(); |
754 | } | 758 | } |
755 | 759 | ||
756 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Active GroupID : {0}", GroupID.ToString()); | 760 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Active GroupID : {0}", GroupID.ToString()); |
757 | return GetAgentGroupMembership(requestingAgentID, agentID, GroupID); | 761 | return GetAgentGroupMembership(requestingAgentID, agentID, GroupID); |
758 | } | 762 | } |
759 | 763 | ||
@@ -781,24 +785,24 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
781 | 785 | ||
782 | List<GroupRolesData> Roles = new List<GroupRolesData>(); | 786 | List<GroupRolesData> Roles = new List<GroupRolesData>(); |
783 | 787 | ||
784 | Dictionary<string, OSDMap> GroupRoles; | 788 | Dictionary<string, OSDMap> GroupRoles; |
785 | if (SimianGetGenericEntries(groupID, "GroupRole", out GroupRoles)) | 789 | if (SimianGetGenericEntries(groupID, "GroupRole", out GroupRoles)) |
786 | { | 790 | { |
787 | Dictionary<string, OSDMap> MemberRoles; | 791 | Dictionary<string, OSDMap> MemberRoles; |
788 | if (SimianGetGenericEntries(agentID, "GroupRole" + groupID.ToString(), out MemberRoles)) | 792 | if (SimianGetGenericEntries(agentID, "GroupRole" + groupID.ToString(), out MemberRoles)) |
789 | { | 793 | { |
790 | foreach (KeyValuePair<string, OSDMap> kvp in MemberRoles) | 794 | foreach (KeyValuePair<string, OSDMap> kvp in MemberRoles) |
791 | { | 795 | { |
792 | GroupRolesData data = new GroupRolesData(); | 796 | GroupRolesData data = new GroupRolesData(); |
793 | data.RoleID = UUID.Parse(kvp.Key); | 797 | data.RoleID = UUID.Parse(kvp.Key); |
794 | data.Name = GroupRoles[kvp.Key]["Name"].AsString(); | 798 | data.Name = GroupRoles[kvp.Key]["Name"].AsString(); |
795 | data.Description = GroupRoles[kvp.Key]["Description"].AsString(); | 799 | data.Description = GroupRoles[kvp.Key]["Description"].AsString(); |
796 | data.Title = GroupRoles[kvp.Key]["Title"].AsString(); | 800 | data.Title = GroupRoles[kvp.Key]["Title"].AsString(); |
797 | data.Powers = GroupRoles[kvp.Key]["Powers"].AsULong(); | 801 | data.Powers = GroupRoles[kvp.Key]["Powers"].AsULong(); |
798 | 802 | ||
799 | Roles.Add(data); | 803 | Roles.Add(data); |
800 | } | 804 | } |
801 | } | 805 | } |
802 | } | 806 | } |
803 | return Roles; | 807 | return Roles; |
804 | } | 808 | } |
@@ -912,8 +916,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
912 | { | 916 | { |
913 | foreach( KeyValuePair<UUID, OSDMap> GroupRoleMember in GroupRoleMembers ) | 917 | foreach( KeyValuePair<UUID, OSDMap> GroupRoleMember in GroupRoleMembers ) |
914 | { | 918 | { |
915 | GroupRoleMembersData data = new GroupRoleMembersData(); | 919 | GroupRoleMembersData data = new GroupRoleMembersData(); |
916 | 920 | ||
917 | data.MemberID = GroupRoleMember.Key; | 921 | data.MemberID = GroupRoleMember.Key; |
918 | data.RoleID = UUID.Parse(Role.Key); | 922 | data.RoleID = UUID.Parse(Role.Key); |
919 | 923 | ||
@@ -996,9 +1000,55 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
996 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); | 1000 | SimianAddGeneric(groupID, "GroupNotice", noticeID.ToString(), Notice); |
997 | 1001 | ||
998 | } | 1002 | } |
1003 | #endregion | ||
1004 | |||
1005 | #region GroupSessionTracking | ||
1006 | |||
1007 | public void ResetAgentGroupChatSessions(UUID agentID) | ||
1008 | { | ||
1009 | Dictionary<string, OSDMap> agentSessions; | ||
1010 | |||
1011 | if (SimianGetGenericEntries(agentID, "GroupSessionDropped", out agentSessions)) | ||
1012 | { | ||
1013 | foreach (string GroupID in agentSessions.Keys) | ||
1014 | { | ||
1015 | SimianRemoveGenericEntry(agentID, "GroupSessionDropped", GroupID); | ||
1016 | } | ||
1017 | } | ||
1018 | |||
1019 | if (SimianGetGenericEntries(agentID, "GroupSessionInvited", out agentSessions)) | ||
1020 | { | ||
1021 | foreach (string GroupID in agentSessions.Keys) | ||
1022 | { | ||
1023 | SimianRemoveGenericEntry(agentID, "GroupSessionInvited", GroupID); | ||
1024 | } | ||
1025 | } | ||
1026 | } | ||
1027 | |||
1028 | public bool hasAgentDroppedGroupChatSession(UUID agentID, UUID groupID) | ||
1029 | { | ||
1030 | OSDMap session; | ||
1031 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); | ||
1032 | } | ||
1033 | |||
1034 | public void AgentDroppedFromGroupChatSession(UUID agentID, UUID groupID) | ||
1035 | { | ||
1036 | SimianAddGeneric(agentID, "GroupSessionDropped", groupID.ToString(), new OSDMap()); | ||
1037 | } | ||
1038 | |||
1039 | public void AgentInvitedToGroupChatSession(UUID agentID, UUID groupID) | ||
1040 | { | ||
1041 | SimianAddGeneric(agentID, "GroupSessionInvited", groupID.ToString(), new OSDMap()); | ||
1042 | } | ||
1043 | |||
1044 | public bool hasAgentBeenInvitedToGroupChatSession(UUID agentID, UUID groupID) | ||
1045 | { | ||
1046 | OSDMap session; | ||
1047 | return SimianGetGenericEntry(agentID, "GroupSessionDropped", groupID.ToString(), out session); | ||
1048 | } | ||
1049 | |||
999 | #endregion | 1050 | #endregion |
1000 | 1051 | ||
1001 | |||
1002 | private void EnsureRoleNotSelectedByMember(UUID groupID, UUID roleID, UUID userID) | 1052 | private void EnsureRoleNotSelectedByMember(UUID groupID, UUID roleID, UUID userID) |
1003 | { | 1053 | { |
1004 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | 1054 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); |
@@ -1036,7 +1086,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1036 | }; | 1086 | }; |
1037 | 1087 | ||
1038 | 1088 | ||
1039 | OSDMap Response = WebUtil.PostToService(m_serviceURL, RequestArgs); | 1089 | OSDMap Response = WebUtil.PostToService(m_groupsServerURI, RequestArgs); |
1040 | if (Response["Success"].AsBoolean()) | 1090 | if (Response["Success"].AsBoolean()) |
1041 | { | 1091 | { |
1042 | return true; | 1092 | return true; |
@@ -1063,23 +1113,23 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1063 | }; | 1113 | }; |
1064 | 1114 | ||
1065 | 1115 | ||
1066 | OSDMap Response = WebUtil.PostToService(m_serviceURL, RequestArgs); | 1116 | OSDMap Response = WebUtil.PostToService(m_groupsServerURI, RequestArgs); |
1067 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) | 1117 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) |
1068 | { | 1118 | { |
1069 | OSDArray entryArray = (OSDArray)Response["Entries"]; | 1119 | OSDArray entryArray = (OSDArray)Response["Entries"]; |
1070 | if (entryArray.Count >= 1) | 1120 | if (entryArray.Count >= 1) |
1071 | { | 1121 | { |
1072 | OSDMap entryMap = entryArray[0] as OSDMap; | 1122 | OSDMap entryMap = entryArray[0] as OSDMap; |
1073 | key = entryMap["Key"].AsString(); | 1123 | key = entryMap["Key"].AsString(); |
1074 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); | 1124 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); |
1075 | 1125 | ||
1076 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); | 1126 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); |
1077 | 1127 | ||
1078 | return true; | 1128 | return true; |
1079 | } | 1129 | } |
1080 | else | 1130 | else |
1081 | { | 1131 | { |
1082 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); | 1132 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); |
1083 | } | 1133 | } |
1084 | } | 1134 | } |
1085 | else | 1135 | else |
@@ -1103,23 +1153,23 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1103 | }; | 1153 | }; |
1104 | 1154 | ||
1105 | 1155 | ||
1106 | OSDMap Response = WebUtil.PostToService(m_serviceURL, RequestArgs); | 1156 | OSDMap Response = WebUtil.PostToService(m_groupsServerURI, RequestArgs); |
1107 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) | 1157 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) |
1108 | { | 1158 | { |
1109 | OSDArray entryArray = (OSDArray)Response["Entries"]; | 1159 | OSDArray entryArray = (OSDArray)Response["Entries"]; |
1110 | if (entryArray.Count >= 1) | 1160 | if (entryArray.Count >= 1) |
1111 | { | 1161 | { |
1112 | OSDMap entryMap = entryArray[0] as OSDMap; | 1162 | OSDMap entryMap = entryArray[0] as OSDMap; |
1113 | ownerID = entryMap["OwnerID"].AsUUID(); | 1163 | ownerID = entryMap["OwnerID"].AsUUID(); |
1114 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); | 1164 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); |
1115 | 1165 | ||
1116 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); | 1166 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); |
1117 | 1167 | ||
1118 | return true; | 1168 | return true; |
1119 | } | 1169 | } |
1120 | else | 1170 | else |
1121 | { | 1171 | { |
1122 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); | 1172 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); |
1123 | } | 1173 | } |
1124 | } | 1174 | } |
1125 | else | 1175 | else |
@@ -1144,7 +1194,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1144 | }; | 1194 | }; |
1145 | 1195 | ||
1146 | 1196 | ||
1147 | OSDMap Response = WebUtil.PostToService(m_serviceURL, RequestArgs); | 1197 | OSDMap Response = WebUtil.PostToService(m_groupsServerURI, RequestArgs); |
1148 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) | 1198 | if (Response["Success"].AsBoolean() && Response["Entries"] is OSDArray) |
1149 | { | 1199 | { |
1150 | OSDArray entryArray = (OSDArray)Response["Entries"]; | 1200 | OSDArray entryArray = (OSDArray)Response["Entries"]; |
@@ -1152,16 +1202,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1152 | { | 1202 | { |
1153 | OSDMap entryMap = entryArray[0] as OSDMap; | 1203 | OSDMap entryMap = entryArray[0] as OSDMap; |
1154 | key = entryMap["Key"].AsString(); | 1204 | key = entryMap["Key"].AsString(); |
1155 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); | 1205 | map = (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString()); |
1156 | 1206 | ||
1157 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); | 1207 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); |
1158 | 1208 | ||
1159 | return true; | 1209 | return true; |
1160 | } | 1210 | } |
1161 | else | 1211 | else |
1162 | { | 1212 | { |
1163 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); | 1213 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); |
1164 | } | 1214 | } |
1165 | } | 1215 | } |
1166 | else | 1216 | else |
1167 | { | 1217 | { |
@@ -1184,20 +1234,20 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1184 | 1234 | ||
1185 | 1235 | ||
1186 | 1236 | ||
1187 | OSDMap response = WebUtil.PostToService(m_serviceURL, requestArgs); | 1237 | OSDMap response = WebUtil.PostToService(m_groupsServerURI, requestArgs); |
1188 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) | 1238 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) |
1189 | { | 1239 | { |
1190 | maps = new Dictionary<string, OSDMap>(); | 1240 | maps = new Dictionary<string, OSDMap>(); |
1191 | 1241 | ||
1192 | OSDArray entryArray = (OSDArray)response["Entries"]; | 1242 | OSDArray entryArray = (OSDArray)response["Entries"]; |
1193 | foreach (OSDMap entryMap in entryArray) | 1243 | foreach (OSDMap entryMap in entryArray) |
1194 | { | 1244 | { |
1195 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); | 1245 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); |
1196 | maps.Add(entryMap["Key"].AsString(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString())); | 1246 | maps.Add(entryMap["Key"].AsString(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString())); |
1197 | } | 1247 | } |
1198 | if(maps.Count == 0) | 1248 | if(maps.Count == 0) |
1199 | { | 1249 | { |
1200 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); | 1250 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); |
1201 | } | 1251 | } |
1202 | 1252 | ||
1203 | return true; | 1253 | return true; |
@@ -1222,21 +1272,21 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1222 | 1272 | ||
1223 | 1273 | ||
1224 | 1274 | ||
1225 | OSDMap response = WebUtil.PostToService(m_serviceURL, requestArgs); | 1275 | OSDMap response = WebUtil.PostToService(m_groupsServerURI, requestArgs); |
1226 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) | 1276 | if (response["Success"].AsBoolean() && response["Entries"] is OSDArray) |
1227 | { | 1277 | { |
1228 | maps = new Dictionary<UUID, OSDMap>(); | 1278 | maps = new Dictionary<UUID, OSDMap>(); |
1229 | 1279 | ||
1230 | OSDArray entryArray = (OSDArray)response["Entries"]; | 1280 | OSDArray entryArray = (OSDArray)response["Entries"]; |
1231 | foreach (OSDMap entryMap in entryArray) | 1281 | foreach (OSDMap entryMap in entryArray) |
1232 | { | 1282 | { |
1233 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); | 1283 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] Generics Result {0}", entryMap["Value"].AsString()); |
1234 | maps.Add(entryMap["OwnerID"].AsUUID(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString())); | 1284 | maps.Add(entryMap["OwnerID"].AsUUID(), (OSDMap)OSDParser.DeserializeJson(entryMap["Value"].AsString())); |
1235 | } | 1285 | } |
1236 | if (maps.Count == 0) | 1286 | if (maps.Count == 0) |
1237 | { | 1287 | { |
1238 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); | 1288 | if (m_debugEnabled) m_log.InfoFormat("[SIMIAN-GROUPS-CONNECTOR] No Generics Results"); |
1239 | } | 1289 | } |
1240 | return true; | 1290 | return true; |
1241 | } | 1291 | } |
1242 | else | 1292 | else |
@@ -1260,7 +1310,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1260 | }; | 1310 | }; |
1261 | 1311 | ||
1262 | 1312 | ||
1263 | OSDMap response = WebUtil.PostToService(m_serviceURL, requestArgs); | 1313 | OSDMap response = WebUtil.PostToService(m_groupsServerURI, requestArgs); |
1264 | if (response["Success"].AsBoolean()) | 1314 | if (response["Success"].AsBoolean()) |
1265 | { | 1315 | { |
1266 | return true; | 1316 | return true; |
@@ -1271,7 +1321,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1271 | return false; | 1321 | return false; |
1272 | } | 1322 | } |
1273 | } | 1323 | } |
1274 | #endregion | 1324 | #endregion |
1325 | |||
1275 | } | 1326 | } |
1276 | 1327 | ||
1277 | } | 1328 | } |