Hello!
I'm looking for a way requesting/ searching for form types in Orbeon through the persistence API. I had a look at http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API and figured out, that I have to call http://localhost:8080/orbeon/fr/service/exist/crud/[APPLICATION]/[FORM_TYPE]/form/form.xhtml to get a specific form type. But I couldn't get the correct persistence API URI for receiving a complete list of all forms which are in the system, as it is provided under http://localhost:8080/orbeon/fr/orbeon/builder/summary/. Can you help me? Are there any resources out there where I can look up the interface? Thx! |
Administrator
|
Form Builder uses the same persistence layer used by your forms. So
you can access the forms saved with Form Builder using the search "function" of the persistence API, with the app name "orbeon", and the form name "builder". However, this will only tell you the forms that have been saved. This is what the Form Builder summary shows. There is currently nothing in the persistence API to know what forms have been deployed. Alex On Sat, Mar 20, 2010 at 11:02 AM, lacco <[hidden email]> wrote: > > Hello! > > I'm looking for a way requesting/ searching for form types in Orbeon through > the persistence API. I had a look at > http://wiki.orbeon.com/forms/doc/contributor-guide/form-builder-integration-notes#TOC-Persistence-API > and figured out, that I have to call > http://localhost:8080/orbeon/fr/service/exist/crud/[APPLICATION]/[FORM_TYPE]/form/form.xhtml > to get a specific form type. > > But I couldn't get the correct persistence API URI for receiving a complete > list of all forms which are in the system, as it is provided under > http://localhost:8080/orbeon/fr/orbeon/builder/summary/. > > Can you help me? Are there any resources out there where I can look up the > interface? > > Thx! > -- > View this message in context: http://n4.nabble.com/Persistence-API-Listing-all-form-types-tp1676058p1676058.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi guys,
Looks like this is very old topic, but I still interested of it. Is there any API can be use to do that currently? Thanks, Robin |
Administrator
|
Hi Robin,
Since then, there is an API that gives you a list of the deployed forms. See: http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api#TOC-Deployed-forms Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Hi Alex,
Thank you help me on this. This give me helps a lot! I found that the orbeon have access control of those path (such as /fr/service/***). When I access to "http://localhost:8080/orbeon/fr/service/persistence/form", I get 403 error. For testing, I comment out the authorization logic in the PageFlowControllerProcessor, and always return the true in Authorization.authorize(), then I can access the API directly and get result of the deployed forms successful. My question is that, is there any configure can be set in some configuration file? so that I can access it directly without such changes? I know that the orbeon use the "token" to do the authorization internally, but I need access this API by external. How can I do that? Thanks, Robin |
Administrator
|
Hi Robin,
Yes, you need to setup an "authorization service"; a very simple one comes with Orbeon Forms, which you can configure through the web.xml and Tomcat's tomcat-users.xml (or equivalent). I recommend you go through this page to understand how this works: http://wiki.orbeon.com/forms/doc/developer-guide/page-flow-controller/authorization …and of course, just let us know if anything isn't quite clear. Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |