public ListGroupsResponseDocument listGroups(ListGroupsDocument input)
throws XregistryException {
log.info("Request Received " + input.xmlText());
String[] groups = registryImpl.listGroups(findUserDN());
ListGroupsResponseDocument responseDocument = ListGroupsResponseDocument.Factory
.newInstance();
ListGroupsResponse listGroupsResponse = responseDocument.addNewListGroupsResponse();
if (groups != null) {
for (String group : groups) {
listGroupsResponse.addNewGroup().setStringValue(group);
}
}
log.info("Response Sent " + responseDocument.xmlText());
return responseDocument;
}