easysoa / EasySOA

A light, collaborative platform to make Service Oriented Architecture simple.
http://www.easysoa.org
35 stars 8 forks source link

Does Nuxeo provide templatized properties? #75

Open mkalam-alami opened 12 years ago

mkalam-alami commented 12 years ago

Would be especially useful to build URLs depending on the context (= environment)

mdutoo commented 12 years ago

In other words :

Is there a TemplatedModelService.getEvaluatedModelProperty(doc, propname[, evaluationContext]) that will return "http://localhost/myservice" given a model property of "${host}/myservice" ? And possibly even on the opposite with a setModelPropertyUsingMapper(doc, propname, propvalue, mapper) which transforms the first in the second and stores it according to the given mapper ?

For now, this is done using custom code for #95 discovery mappers. Thierry, would it be useful LATER to make it more generic and contribute it to nuxeo ?