else {
results = GroupService.searchForEntities(query, methodInt, type);
}
}
Document model = getXmlDoc(sessionData);
IEntityGroup sr = new SearchResultsGroupImpl(type);
sr.setName("Search Results");
sr.setDescription("Search for a " + label + " whose name" + methods[methodInt] + "'" + query + "'");
sr.setCreatorID("CGroupsManager");
for (int sub = 0; sub < results.length; sub++) {
EntityIdentifier entID = results[sub];
IGroupMember resultGroup = GroupService.getGroupMember(entID);
sr.addMember(resultGroup);
}
Element searchElem = GroupsManagerXML.getGroupMemberXml(sr, true, null, sessionData.getUnrestrictedData());
searchElem.setAttribute("searchResults", "true");
model.getDocumentElement().appendChild(searchElem);
this.setCommandArg(sessionData.runtimeData, searchElem.getAttribute("id"));