コード例 #1
0
 public void reIndex(long companyId, ContactBook contactBook) throws SearchException {
   try {
     ContactBookIndexer.updateContactBook(companyId, contactBook);
   } catch (UnsupportedEncodingException e) {
     throw new SearchException(e);
   }
 }
コード例 #2
0
 public void deleteContactBook(long companyId, ContactBook contactBook)
     throws SystemException, SearchException {
   contactBookPersistence.remove(contactBook);
   try {
     ContactBookIndexer.deleteContactBook(companyId, contactBook);
   } catch (UnsupportedEncodingException e) {
     e.printStackTrace();
   }
 }
コード例 #3
0
  protected void reIndexContactBook(long companyId, int start, int end) throws SystemException {

    List<ContactBook> contactBooks = contactBookPersistence.findByCompanyid(companyId, start, end);
    for (ContactBook contactBook : contactBooks) {
      try {
        ContactBookIndexer.updateContactBook(companyId, contactBook);
      } catch (SearchException e) {
        e.printStackTrace();
      } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
      }
    }
  }