Thanks a lot Fabio. Regards, Ernst

2013/2/19 Fabio Martelli <[email protected]>

>
> Il giorno 19/feb/2013, alle ore 11.25, ernst Developer ha scritto:
>
> > Hi,
> >
> > When installing a Syncope instance, I always use the restful services
> for Schema loading and Connector/Resource loading.
> >
> > With the Resource loading I have a problem. Syncope is complaining about
> the fact that a value is missing for the AbstractMappingItem.purpose field.
> I have looked into the source code and was not able to find the place where
> the purpose field is initialized in the Resource service, based upon the
> provided resource data.
> >
> > With my IDE, I performed a search on the usage of the
> AbstractMappingItem.setPurpose(). This did not give any results, except for
> some test cases.
> >
> > Is my observation correct? Is the setter call for the purpose missing?
>
> Hi Ernst,
> this information is provided by the ResourceDataBinder.getMappingItem
> method: 'purpose' is copied from the TO by using BeanUtils.copyProperties.
>
> At MappingItem creation time you have to simply set MappingItemTO
> 'purpose' attribute.
>
> Best regards,
> F.

Reply via email to