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

com.adobe.granite.translation.core.TranslationCloudConfigUtil Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
/*************************************************************************
 * ADOBE CONFIDENTIAL
 * __________________
 *
 * Copyright 2011 Adobe
 * All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe and its suppliers, if any. The intellectual
 * and technical concepts contained herein are proprietary to Adobe
 * and its suppliers and are protected by all applicable intellectual
 * property laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe.
 **************************************************************************/
package com.adobe.granite.translation.core;

import org.apache.sling.api.resource.Resource;

public interface TranslationCloudConfigUtil {

    public String getCloudConfigPathAppliedOnResource(Resource resource, Class cloudConfigClass);

    public String getCloudConfigPathAppliedOnResource(Resource resource, String strCloudConfigResourceType);

    /**
     * @deprecated since 6.4, use {@link #getCloudConfigObjectFromPath(Resource, Class, String)} instead
     */
    @Deprecated
    public Object getCloudConfigObjectFromPath(Class cloudConfigClass, String cloudConfigPath);

    /**
     * Retrieve the context aware cloud configuration at {@code cloudConfigPath} that has been applied on the {@code resource}
     * @param resource the resource on which the cloud config is applied
     * @param cloudConfigClass the type of the cloud config
     * @param cloudConfigPath path of the cloud config
     * @return
     */
    public Object getCloudConfigObjectFromPath(Resource resource, Class cloudConfigClass, String cloudConfigPath);

    public boolean isCloudConfigAppliedOnImmediateResource(Resource translationConfigResource, String resourceType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy