This section have all the documentation for the new DBPrism CMS 2.1
If you are trying to see documentation for CMS 2.0 look at this section .
Some internal stuff of DBPrism CMS 2.1 which is completely rewrited of 2.0 version will be covered into a case study of the book ORACLE DATABASE PROGRAMMING USING JAVA AND WEB SERVICES .
The core of the CMS is new but the example application are similar to the previous version. Look at this section to see how to implement dynamic services into DBPrism CMS 2.1 architecture.
We are working in another extension system which use XQuery and XForms, it means that you can write dynamics services for DBPrism CMS using regular XQuery pages which outputs document-v20.xsd document and XForms tags. An XQuery services for DBPrism CMS will look like this:
declare namespace ora = "http://xmlns.oracle.com/xdb";
declare namespace xdb = "http://xmlns.oracle.com/xdb";
declare namespace xform = "http://www.w3.org/2002/xforms";
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.dbprism.com.ar/xsd/document-v20.xsd" xmlns:i18n="http://apache.org/cocoon/i18n/2.0" xmlns:xforms="http://www.w3.org/2002/xforms">
<header>
<title>Query</title>
<subtitle>Query Data Form</subtitle>
<authors>
<person name="Marcelo F. Ochoa" email="mochoa@exa.unicen.edu.ar"/>
</authors>
</header>
<body>
<xform:model>
<xforms:instance>
<ora:xmlbeans-show value="queryDoc"/>
</xforms:instance>
<xforms:bind ref="query/technologies"/>
<xforms:bind ref="query/lastmodif"/>
<xforms:bind ref="query/techoperator"/>
<xforms:bind ref="query/graduados"/>
<xforms:bind ref="query/ciudad"/>
<xforms:bind ref="query/techlist"/>
<xforms:bind ref="query/empresa"/>
<xforms:bind ref="query/puesto"/>
<xforms:bind ref="query/area"/>
<xforms:bind ref="query/formacion"/>
<xforms:submitInfo action="javascript:techQueryResults('s00')" method="post" id="s00" />
</xform:model>
<section>
<title>Búsquedas</title>
<xforms:form>
<xforms:group class="search" id="search">
<xforms:caption>Buscar</xforms:caption>
<xforms:input ref="query/techlist" class="hidden" />
<xforms:singleSelect ref="query/technologies" selectUI="listbox" selection="closed" class="techlist">
<xforms:caption>Seleccionar Tecnologías</xforms:caption>
<xforms:hint>Selecciona las tecnologías que desee, use CTRL para multiple selección</xforms:hint>
{
for $i in ora:view("TECHNOLOGIES")/ROW
order by $i/TECHNOLOGY
return
<xforms:item id="$i/ID">
<xforms:caption>{$i/TECH}</xforms:caption>
<xforms:value>{$i/ID}</xforms:value>
</xforms:item>
}
</xforms:singleSelect>
<xforms:input ref="query/empresa">
<xforms:caption>Empresa</xforms:caption>
<xforms:hint>Texto a buscar en empresa.</xforms:hint>
</xforms:input>
<!-- OTROS INPUTS ACA-->
<xforms:submit submitInfo="s00" class="button">
<xforms:caption>
<i18n:text xmlns:i18n="http://apache.org/cocoon/i18n/2.0">Buscar</i18n:text>
</xforms:caption>
</xforms:submit>
<xforms:trigger id="Notificar">
<xforms:caption>Notificar</xforms:caption>
<event:listener event="DOMActivate" handler="javascript:addNotifications('s00')" xmlns:event="http://www.w3.org/2001/xml-events"/>
</xforms:trigger>
</xforms:group>
</xforms:form>
</section>
</body>
</document>
Some extensions library will be implemented for XQuery, also an Struts like front controller will be added to simplify the development process of Web application on top of DBPrism CMS. As you can see in the above example the extension library function ora:xmlbeans-show will populate in XML format a DTO objects of the form, other planned extensions functions will be ora:resource-view to provide access to the resource_view information for a given XMLDB resource, ora:request and ora:response for accessing to request and response information in a Form, and so on.
XQuery XForm support will simplify a lot the development process of dynamic application, you only need to write your .xq file with your favorite XML Editor upload it to the XMLDB repository using WebDAV or Ftp, and write your Struts like action form in pure Java Stored Procedure. The Flow controller and the transformation to/from XML to pure Java Beans will be automatic made by DBPrism CMS.




