@Override @NotifyChange("#indexList") protected void onYes() throws SearchLibException { try { ClientCatalog.eraseIndex(getLoggedUser(), indexName); setClient(null); } catch (NamingException e) { throw new SearchLibException(e); } catch (IOException e) { throw new SearchLibException(e); } }
/** * Delete an index. * * @param indexName The name of the index * @throws SearchLibException inherited error * @throws NamingException inherited error * @throws IOException inherited error */ public static void eraseIndex(String indexName) throws SearchLibException, NamingException, IOException { eraseIndex(null, indexName); }