/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content List<CmsSearchIndexSource> sources = searchIndexSources(); Iterator<CmsSearchIndexSource> itSources = sources.iterator(); CmsSearchIndexSource source; while (itSources.hasNext()) { source = itSources.next(); CmsListItem item = getList().newItem(source.getName()); item.set(LIST_COLUMN_NAME, source.getName()); item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass().getName()); result.add(item); } return result; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content // cannot use the returned map: unmodifyable List<CmsSearchIndexSource> allSources = new LinkedList<CmsSearchIndexSource>( OpenCms.getSearchManager().getSearchIndexSources().values()); allSources.removeAll(searchIndexSources()); Iterator<CmsSearchIndexSource> itSources = allSources.iterator(); CmsSearchIndexSource source; while (itSources.hasNext()) { source = itSources.next(); CmsListItem item = getList().newItem(source.getName()); item.set(LIST_COLUMN_NAME, source.getName()); item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass().getName()); result.add(item); } return result; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#getListItems() */ @Override protected List<CmsListItem> getListItems() { List<CmsListItem> result = new ArrayList<CmsListItem>(); // get content List<CmsSearchIndexSource> sources = searchIndexSources(); Iterator<CmsSearchIndexSource> itSources = sources.iterator(); CmsSearchIndexSource source; while (itSources.hasNext()) { source = itSources.next(); CmsListItem item = getList().newItem(source.getName()); // use "null" String to avoid exception if name is empty item.set(LIST_COLUMN_NAME, String.valueOf(source.getName())); item.set(LIST_COLUMN_INDEXER, source.getIndexer().getClass()); result.add(item); } return result; }
/** * Returns <code>true</code> if at least one of the index sources uses a VFS indexer that is able * to index locale dependent resources.<p> * * TODO This should be improved somehow * * @return <code>true</code> if this field configuration should resolve locale dependencies */ private boolean hasLocaleDependencies() { for (CmsSearchIndexSource source : getIndex().getSources()) { if (source.getIndexer().isLocaleDependenciesEnable()) { return true; } } return false; } }
item.set(LIST_COLUMN_NAME, source.getName()); try { value = source.getIndexer().getClass().getName(); } catch (Throwable f) { value = "null";
I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);
I_CmsIndexer indexer = source.getIndexer().newInstance(cms, report, index);