}
public List<DocumentInfo> search()
{
documents = new ArrayList<DocumentInfo>();
DataKeeperService service = DataKeeperUtils.getService();
switch (SearchType.getSearchType(searchBy))
{
case ID:
documents = service.findDocumentByEmployeeId(getSearchText());
break;
case NAME:
documents = service.findDocumentByEmployeeName(getSearchText());
break;
}
return documents;
}