public static final void openAll() { try { synchronized (ClientCatalog.class) { for (ClientCatalogItem catalogItem : getClientCatalog(null)) { Logging.info("OSS loads index " + catalogItem.getIndexName()); getClient(catalogItem.getIndexName()); } } } catch (SearchLibException e) { Logging.error(e); } }
public void setClientName(ClientCatalogItem item) throws SearchLibException, NamingException { if (item == null) return; Client client = ClientCatalog.getClient(item.getIndexName()); if (client == null) return; setClient(client); selectedClientCatalogItem = item; }
@Command @NotifyChange("clientCatalog") public void computeInfos(@BindingParam("catalogitem") ClientCatalogItem catalogItem) throws SearchLibException { if (catalogItem == null) return; catalogItem.computeInfos(); }
public ClientCatalogItem getClientName() throws SearchLibException { Client client = getClient(); if (client == null) return null; if (selectedClientCatalogItem == null) return null; if (!selectedClientCatalogItem.getIndexName().equals(client.getIndexName())) return null; return selectedClientCatalogItem; }
@Command public void eraseIndex(@BindingParam("catalogitem") ClientCatalogItem catalogItem) throws SearchLibException, InterruptedException { if (catalogItem == null) return; new EraseIndexAlert(catalogItem.getIndexName()); }