Hello Wouter,

I suppose you are implementing this in the repository, isn't? I have
never fetched another repository resource from within an extractor, and
IMHO, this is a bad idea. First of all, your extracted values depend on
another resource: what if this resource changes? Secondly, how can you
be certain the current user actually has read rights on another resource
from within an extractor. I strongly advice you to reconsider your way
to implement this feature (or explain what you would like to achieve). 

Regards Ard


> Hi everyone,
> 
> I'm trying to create an extractor that will get a value from 
> the XML and then do a translation before putting the value in 
> a property. The challenging part is that the translation 
> document is stored in the repository and will need to be 
> retrieved. I think I need a ServiceManager so I can get a 
> SourceResolver from it (which I can use to retrieve the 
> translation document). I've implemented the Serviceable interface:
> 
> public void service(ServiceManager serviceManager) throws 
> ServiceException;
> 
> I don't know how/where to configure the repository so the 
> ServiceManager will actually be injected into the extractor.
> 
> Can anyone help me with this?
> 
> Wouter Zelle
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to