on 07-19-2016 3:58 PM
ImpExImportCronJob's 'locale' value in platform extension is 'Locale.GERMAN'. I want to change it to Locale.ENGLISH.
Hi John,
ImpExImportCronJob is a type, its model has the following method: de.hybris.platform.impex.model.cronjob.ImpExImportCronJobModel.setLocale(String)
Here is an example:
protected void configureCronJob(final ImpExImportCronJobModel cronJob, final ImportConfig config)
{
if (config.getScript() == null)
{
throw new IllegalArgumentException("You have to provide an import script");
}
cronJob.setJobMedia(config.getScript().getMedia());
if (config.getLocale() != null)
{
cronJob.setLocale(String.valueOf(config.getLocale()));
}
Regards,
Luis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.