Schemas in Freemarker & querying on unset property

9 views
Skip to first unread message

Marc Dutoo

unread,
Sep 21, 2012, 12:09:45 PM9/21/12
to Thierry Delprat, Florent Guillaume, easysoa-dev
Hi Thierry, Guillaume

Quick questions pretty please :

* how to list all properties of a schema or facet in freemarker ? I can
list only default ones, see macros at the bottom of
https://github.com/easysoa/EasySOA-Incubation/blob/master/easysoa-registry-v1/easysoa-registry-rest-server/src/main/resources/skin/views/EasySOA/servicedoc.ftl

* how to (NXQL) query on unset properties ? on set properties = <> !=
all work, but on unset properties (of my custom schema)
see in
https://github.com/easysoa/EasySOA-Incubation/blob/master/easysoa-registry-v1/easysoa-registry-rest-server/src/main/java/org/easysoa/registry/documentation/rest/ServiceDocumentationController.java

(besides, I've opened a few non-urgent jira items)

Regards,
Marc

Thierry Delprat

unread,
Sep 24, 2012, 6:46:31 AM9/24/12
to Marc Dutoo, Florent Guillaume, easysoa-dev
On 21 September 2012 18:09, Marc Dutoo <marc....@openwide.fr> wrote:
Hi Thierry, Guillaume

Quick questions pretty please :

* how to list all properties of a schema or facet in freemarker ? I can list only default ones, see macros at the bottom of https://github.com/easysoa/EasySOA-Incubation/blob/master/easysoa-registry-v1/easysoa-registry-rest-server/src/main/resources/skin/views/EasySOA/servicedoc.ftl

Le DocumentTemplate expose les schemas, mais le wrapper SchemaTemplate n'a pas d'itérateur.
Je peux en ajouter un si tu me fais un ticket.
 
* how to (NXQL) query on unset properties ? on set properties = <> != all work, but on unset properties (of my custom schema)
see in https://github.com/easysoa/EasySOA-Incubation/blob/master/easysoa-registry-v1/easysoa-registry-rest-server/src/main/java/org/easysoa/registry/documentation/rest/ServiceDocumentationController.java

You should be able to use IS NULL since 5.4.1

You can also define a default value in your XSD.
 


(besides, I've opened a few non-urgent jira items)
Please send the link on this ML cause there are a lot of open tickets in the public Jira. 

Regards,
Marc

Marc Dutoo

unread,
Sep 24, 2012, 12:53:14 PM9/24/12
to Thierry Delprat, Florent Guillaume, easysoa-dev
Hi Thierry

Here is the list of JIRAs for EasySOA. I'll forward any new ones.

* NXP-10168 Expose schema / facet properties in Freemarker
* NXP-10097 Allow to query on a proxy's proxied document id (proxyTargetId)
* NXP-10101 Nuxeo list all props bug
* NXP-10167 Can't enable debug on Windows Vista

And thanks : indeed, IS NULL allows to query on unset properties - my bad, I thought I had tried it. The "default value" solution may also come in handy.

Regards,
Marc
Reply all
Reply to author
Forward
0 new messages