use of com.zimbra.client.ZSearchParams in project zm-mailbox by Zimbra.
the class TestUtil method search.
public static List<String> search(ZMailbox mbox, String query, String type) throws ServiceException {
List<String> ids = new ArrayList<String>();
ZSearchParams params = new ZSearchParams(query);
params.setTypes(type);
for (ZSearchHit hit : mbox.search(params).getHits()) {
ids.add(hit.getId());
}
return ids;
}
Aggregations