Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCloudConfigObjectFromPath deprecated in 6.4x #4

Open
florianmesserli opened this issue Jan 25, 2019 · 4 comments
Open

getCloudConfigObjectFromPath deprecated in 6.4x #4

florianmesserli opened this issue Jan 25, 2019 · 4 comments

Comments

@florianmesserli
Copy link

Hi,
In 6.4x, the method getCloudConfigObjectFromPath(Class,String) is deprecated, replaced by
Object getCloudConfigObjectFromPath(Resource, Class, String)

If we use uber-jar 6.4.x, the framework will not work.
How can we add the "resource" here?

https://github.com/Adobe-Marketing-Cloud/aem-translation-framework-bootstrap-connector/blob/aem640-crosslang/core/src/main/java/com/adobe/granite/translation/connector/bootstrap/core/impl/BootstrapTranslationServiceFactoryImpl.java
(line 87)

@Override
	public TranslationService createTranslationService(TranslationMethod translationMethod, String cloudConfigPath)
			throws TranslationException {
		log.trace("BootstrapTranslationServiceFactoryImpl.createTranslationService");

		BootstrapTranslationCloudConfig bootstrapCloudConfg = (BootstrapTranslationCloudConfig) cloudConfigUtil
				.getCloudConfigObjectFromPath(BootstrapTranslationCloudConfig.class, cloudConfigPath);

		String dummyConfigId = "";
		String dummyServerUrl = "";
		String previewPath = "";

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/diff-previous/changes/com.adobe.granite.translation.core.TranslationCloudConfigUtil.html
https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/com/adobe/granite/translation/core/TranslationCloudConfigUtil.html#getCloudConfigObjectFromPath-org.apache.sling.api.resource.Resource-java.lang.Class-java.lang.String-

@snowakXtm
Copy link

bump

@SKumarKola
Copy link

Hi, Any update on this- please.?

@ankursial
Copy link

Hi,

We have not adapted our SPIs and bootstrap connector w.r.t this change. I have added an issue in our backlog for the same.

@NSzolnoki
Copy link

Hi, is there any update, can I ask for the working code snippet for getting the cloud config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants