use of org.mifos.customers.group.struts.action.GroupSearchResultsDto in project head by mifos.
the class CustomerServiceFacadeWebTier method searchGroups.
@Override
public GroupSearchResultsDto searchGroups(boolean searchForAddingClientsToGroup, String normalizedSearchString, Short loggedInUserId) {
try {
// FIXME - #000001 - keithw - move search logic off group business service over to customerDAO
QueryResult searchResults = new GroupBusinessService().search(normalizedSearchString, loggedInUserId);
QueryResult searchForAddingClientToGroupResults = null;
if (searchForAddingClientsToGroup) {
searchForAddingClientToGroupResults = new GroupBusinessService().searchForAddingClientToGroup(normalizedSearchString, loggedInUserId);
}
return new GroupSearchResultsDto(searchResults, searchForAddingClientToGroupResults);
} catch (ServiceException e) {
throw new MifosRuntimeException(e);
}
}
Aggregations