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

com.hp.autonomy.searchcomponents.idol.configuration.AciServiceRetriever Maven / Gradle / Ivy

/*
 * Copyright 2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.searchcomponents.idol.configuration;

import com.autonomy.aci.client.services.AciService;
import com.hp.autonomy.searchcomponents.core.search.SearchRequest;

/**
 * Retrieves {@link AciService} object for connecting to either QMS or Content,
 * depending upon which is configured/required
 */
public interface AciServiceRetriever {
    /**
     * Whether or not a qms server is configured
     *
     * @return Whether or not a qms server is configured
     */
    boolean qmsEnabled();

    /**
     * Retrieves object for connecting to either QMS or Content
     *
     * @param queryType if raw, will retrieve Content AciService regardless; otherwise will retrieve QMS AciService if available
     * @return the QMS AciService if required and configured, otherwise the Content AciService
     */
    AciService getAciService(final SearchRequest.QueryType queryType);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy