<%@ page import="org.opencms.main.*, org.opencms.search.*, org.opencms.file.*, org.opencms.jsp.*, org.opencms.workplace.*, org.opencms.workplace.administration.*, org.opencms.workplace.tools.content.*, java.util.*" %> <% // initialize the workplace class CmsDialog wp = new CmsPropertyChange(pageContext, request, response); // Create a JSP action element CmsJspActionElement cms = wp.getJsp(); // Get the search manager CmsSearchManager searchManager = OpenCms.getSearchManager(); %> <%= wp.htmlStart(null) %> <%= wp.bodyStart("dialog") %> <%= wp.dialogStart() %> <%= wp.dialogContentStart(wp.key("icon.updateindex")) %> <% List indexNames = searchManager.getIndexNames(); for (int i = 0, n = indexNames.size(); i < n; i++) { String indexName = (String)indexNames.get(i); CmsSearchIndex index = searchManager.getIndex(indexName); %>
NameRebuild ModeProjectLocale
<%=index.getName()%> <%=index.getRebuildMode()%> <%=index.getProject()%> <%=index.getLocale()%>
  <% List sourceNames = index.getSourceNames(); for (int j = 0, m = sourceNames.size(); j < m; j++) { String sourceName = (String)sourceNames.get(j); CmsSearchIndexSource indexSource = searchManager.getIndexSource(sourceName); List resourceNames = indexSource.getResourcesNames(); for (int k = 0, l = resourceNames.size(); k < l; k++) { String resourceName = (String)resourceNames.get(k); out.println(resourceName); if (k < (l-1)) { out.println("
"); } } } } %>

<%= wp.dialogContentEnd() %> <%= wp.dialogEnd() %> <%= wp.bodyEnd() %> <%= wp.htmlEnd() %>