Codota Logo
CmsSearchIndexSource.getResourcesNames
Code IndexAdd Codota to your IDE (free)

How to use
getResourcesNames
method
in
org.opencms.search.CmsSearchIndexSource

Best Java code snippets using org.opencms.search.CmsSearchIndexSource.getResourcesNames (Showing top 17 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Fills details about resource paths of the index source into the given item. <p>
 *
 * @param item the list item to fill
 * @param detailId the id for the detail to fill
 *
 */
private void fillDetailResources(CmsListItem item, String detailId) {
  CmsSearchManager searchManager = OpenCms.getSearchManager();
  StringBuffer html = new StringBuffer();
  // search for the corresponding CmsSearchIndexSource:
  String idxSourceName = (String)item.get(LIST_COLUMN_NAME);
  CmsSearchIndexSource idxSource = searchManager.getIndexSource(idxSourceName);
  // get the index sources resource strings
  List<String> resources = idxSource.getResourcesNames();
  // output of found index sources
  Iterator<String> itResources = resources.iterator();
  html.append("<ul>\n");
  while (itResources.hasNext()) {
    html.append("  <li>\n").append("  ").append(itResources.next()).append("\n");
    html.append("  </li>");
  }
  html.append("</ul>\n");
  item.set(detailId, html.toString());
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Fills details about resource paths of the index source into the given item. <p>
 *
 * @param item the list item to fill
 * @param detailId the id for the detail to fill
 *
 */
private void fillDetailResources(CmsListItem item, String detailId) {
  CmsSearchManager searchManager = OpenCms.getSearchManager();
  StringBuffer html = new StringBuffer();
  // search for the corresponding CmsSearchIndexSource:
  String idxSourceName = (String)item.get(LIST_COLUMN_NAME);
  CmsSearchIndexSource idxSource = searchManager.getIndexSource(idxSourceName);
  // get the index sources resource strings
  List<String> resources = idxSource.getResourcesNames();
  // output of found index sources
  Iterator<String> itResources = resources.iterator();
  html.append("<ul>\n");
  while (itResources.hasNext()) {
    html.append("  <li>\n").append("  ").append(itResources.next()).append("\n");
    html.append("  </li>");
  }
  html.append("</ul>\n");
  item.set(detailId, html.toString());
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Fills details about resource paths of the index source into the given item. <p>
 *
 * @param item the list item to fill
 * @param detailId the id for the detail to fill
 *
 */
private void fillDetailResources(CmsListItem item, String detailId) {
  CmsSearchManager searchManager = OpenCms.getSearchManager();
  StringBuffer html = new StringBuffer();
  // search for the corresponding CmsSearchIndexSource:
  String idxSourceName = (String)item.get(LIST_COLUMN_NAME);
  CmsSearchIndexSource idxSource = searchManager.getIndexSource(idxSourceName);
  // get the index sources resource strings
  List<String> resources = idxSource.getResourcesNames();
  // output of found index sources
  Iterator<String> itResources = resources.iterator();
  html.append("<ul>\n");
  while (itResources.hasNext()) {
    html.append("  <li>\n").append("  ").append(itResources.next()).append("\n");
    html.append("  </li>");
  }
  html.append("</ul>\n");
  item.set(detailId, html.toString());
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Fills details about resource paths of the index source into the given item. <p>
 *
 * @param item the list item to fill
 * @param detailId the id for the detail to fill
 *
 */
private void fillDetailResources(CmsListItem item, String detailId) {
  CmsSearchManager searchManager = OpenCms.getSearchManager();
  StringBuffer html = new StringBuffer();
  // search for the corresponding CmsSearchIndexSource:
  String idxSourceName = (String)item.get(LIST_COLUMN_NAME);
  CmsSearchIndexSource idxSource = searchManager.getIndexSource(idxSourceName);
  // get the index sources resource strings
  List<String> resources = idxSource.getResourcesNames();
  // output of found index sources
  Iterator<String> itResources = resources.iterator();
  html.append("<ul>\n");
  while (itResources.hasNext()) {
    html.append("  <li>\n").append("  ").append(itResources.next()).append("\n");
    html.append("  </li>");
  }
  html.append("</ul>\n");
  item.set(detailId, html.toString());
}
origin: org.opencms/org.opencms.workplace.tools.searchindex

List<String> resources = idxSource.getResourcesNames();
Iterator<String> itResources = resources.iterator();
while (itResources.hasNext()) {
origin: org.opencms/org.opencms.workplace.tools.searchindex

/**
 * Returns the configured resources of the current indexsource.
 *
 * @return the configured resources of the current indexsource
 */
private List<String> resources() {
  return OpenCms.getSearchManager().getIndexSource(getParamIndexsource()).getResourcesNames();
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.search.I_CmsIndexer#getUpdateData(org.opencms.search.CmsSearchIndexSource, java.util.List)
 */
public CmsSearchIndexUpdateData getUpdateData(
  CmsSearchIndexSource source,
  List<CmsPublishedResource> publishedResources) {
  // create a new update collection from this indexer and the given index source
  CmsSearchIndexUpdateData result = new CmsSearchIndexUpdateData(source, this);
  Iterator<CmsPublishedResource> i = publishedResources.iterator();
  while (i.hasNext()) {
    // check all published resources if they match this indexer / source
    CmsPublishedResource pubRes = i.next();
    // VFS resources will always have a structure id
    if (!pubRes.getStructureId().isNullUUID()) {
      // use utility method from CmsProject to check if published resource is "inside" this index source
      if (CmsProject.isInsideProject(source.getResourcesNames(), pubRes.getRootPath())) {
        // the resource is "inside" this index source
        addResourceToUpdateData(pubRes, result);
      }
    }
  }
  return result;
}
origin: org.opencms/opencms-core

/**
 * @see org.opencms.search.I_CmsIndexer#getUpdateData(org.opencms.search.CmsSearchIndexSource, java.util.List)
 */
public CmsSearchIndexUpdateData getUpdateData(
  CmsSearchIndexSource source,
  List<CmsPublishedResource> publishedResources) {
  // create a new update collection from this indexer and the given index source
  CmsSearchIndexUpdateData result = new CmsSearchIndexUpdateData(source, this);
  Iterator<CmsPublishedResource> i = publishedResources.iterator();
  while (i.hasNext()) {
    // check all published resources if they match this indexer / source
    CmsPublishedResource pubRes = i.next();
    // VFS resources will always have a structure id
    if (!pubRes.getStructureId().isNullUUID()) {
      // use utility method from CmsProject to check if published resource is "inside" this index source
      if (CmsProject.isInsideProject(source.getResourcesNames(), pubRes.getRootPath())) {
        // the resource is "inside" this index source
        addResourceToUpdateData(pubRes, result);
      }
    }
  }
  return result;
}
origin: org.opencms/opencms-solr

throws CmsIndexException {
  List<String> resourceNames = source.getResourcesNames();
  Iterator<String> i = resourceNames.iterator();
  while (i.hasNext()) {
origin: org.opencms/opencms-core

CmsSearchIndexSource source) throws CmsIndexException {
List<String> resourceNames = source.getResourcesNames();
Iterator<String> i = resourceNames.iterator();
while (i.hasNext()) {
origin: org.opencms/opencms-core

if (CmsProject.isInsideProject(source.getResourcesNames(), pubRes.getRootPath())) {
origin: org.opencms/opencms-core

CmsSearchIndexSource source) throws CmsIndexException {
List<String> resourceNames = source.getResourcesNames();
Iterator<String> i = resourceNames.iterator();
while (i.hasNext()) {
origin: org.opencms/opencms-core

m_sources.add(indexSource);
resourceNames = indexSource.getResourcesNames();
searchIndexSourceDocumentTypes = indexSource.getDocumentTypes();
for (int j = 0, m = resourceNames.size(); j < m; j++) {
origin: org.opencms/opencms-solr

m_sources.add(indexSource);
resourceNames = indexSource.getResourcesNames();
searchIndexSourceDocumentTypes = indexSource.getDocumentTypes();
for (int j = 0, m = resourceNames.size(); j < m; j++) {
origin: org.opencms/opencms-solr

Iterator resourceIterator = searchIndexSource.getResourcesNames().iterator();
while (resourceIterator.hasNext()) {
origin: org.opencms/opencms-core

Iterator<String> resourceIterator = searchIndexSource.getResourcesNames().iterator();
while (resourceIterator.hasNext()) {
origin: org.opencms/org.opencms.workplace.tools.searchindex

  /**
   * Creates the list of widgets for this dialog.<p>
   */
  @Override
  protected void defineWidgets() {

    super.defineWidgets();

    // widgets to display
    // indexsource data (first block)
    addWidget(new CmsWidgetDialogParameter(m_indexsource, "name", PAGES[0], new CmsDisplayWidget()));
    addWidget(new CmsWidgetDialogParameter(m_indexsource, "indexerClassName", PAGES[0], new CmsDisplayWidget()));

    // resources block
    addWidget(
      new CmsWidgetDialogParameter(
        m_indexsource.getResourcesNames(),
        "resourcesNames",
        "/",
        PAGES[0],
        new CmsVfsFileWidget(false, ""),
        1,
        10));
  }
}
org.opencms.searchCmsSearchIndexSourcegetResourcesNames

Javadoc

Returns the list of VFS resources to be indexed.

Popular methods of CmsSearchIndexSource

  • getDocumentTypes
    Returns the list of names (Strings) of the document types to be indexed.
  • getIndexer
    Returns the indexer.
  • getIndexerClassName
    Returns the class name of the indexer.
  • getName
    Returns the logical key/name of this search index source.
  • getParams
    Returns the map of optional key/value parameters.
  • isContaining
    Returns true in case the given resource root path is contained in the list of configured resource na
  • isIndexing
    Returns true in case the given resource root path is contained in the list of configured resource na
  • <init>
    Creates a new CmsSearchIndexSource.
  • addDocumentType
    Adds the name of a document type.
  • removeDocumentType
    Removes the name of a document type from the list of configured types of this index source.
  • setIndexerClassName
    Sets the class name of the indexer. An Exception is thrown to allow GUI-display of wrong input.
  • setName
    Sets the logical key/name of this search index source.
  • setIndexerClassName,
  • setName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now