All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.day.cq.wcm.core.contentfinder.NodeNameIndexer Maven / Gradle / Ivy

/*
 * Copyright 1997-2012 Day Management AG
 * Barfuesserplatz 6, 4001 Basel, Switzerland
 * All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * Day Management AG, ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Day.
 */
package com.day.cq.wcm.core.contentfinder;

import java.util.List;
import java.util.Locale;
import java.util.Map;

/**
 * This index is offering a free text search on node properties.
 * @deprecated Use oak's lucene suggestions instead.
 */
public interface NodeNameIndexer {

    /**
     * @param substring filters out a property map if none of its property contains it
     * @param rootLocation filters out a property map if the indexed node is not a child of it
     * @param nodeTypes filters out a property map if the indexed node is not of any type contained in it
     * @return the list of properties map matching the substring, rootLocation and
     *         nodeTypes
     * @deprecated Use oak's lucene suggestions instead.
     */
    List> search(String substring, String rootLocation, String nodeTypes[]);

    /**
     * @param substring filters out a property map if none of its property contains it
     * @param rootLocation filters out a property map if the indexed node is not a child of it
     * @param nodeTypes filters out a property map if the indexed node is not of any type contained in it
     * @param locale filters out a property map if the indexed node locale does not matches it.
     *               if no property map matches the given locale, then the one with the default locale is selected.
     * @return the list of properties map matching the substring, rootLocation,
     *         nodeTypes and locale
     * @deprecated Use oak's lucene suggestions instead.
     */
    List> search(String substring, String rootLocation, String nodeTypes[], Locale locale);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy