AnsweredAssumed Answered

MultilingualContentService initialization

Question asked by andrea.girardi on Feb 16, 2012
Latest reply on Feb 18, 2012 by openpj
Hi all,

I'm trying to add multilinguage aspect to a node for a massive upload. This is the code I'm trying to use:

AuthenticationUtils.startSession(userName, password);
ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
MultilingualContentService multilingualContentService = (MultilingualContentService) ctx.getBean("MultilingualContentService");
NodeRef nodeRef = new NodeRef("workspace://SpacesStore/" + contentNodeRef.getUuid());
multilingualContentService.makeTranslation(nodeRef, locale);

this code, obviusly returns this:
parsing XML document from class path resource [alfresco/application-context.xml]; nested exception is class path resource [alfresco/application-context.xml] cannot be opened because it does not exist

it's not clear how can I reach the spring configuration xml file that are stored on remote server. How can I initialize the MultilingualContentService? Is there another way to change make a translation of a node?