Author: jleroux
Date: Mon Dec 23 12:04:41 2013 New Revision: 1553099 URL: http://svn.apache.org/r1553099 Log: Makes it load-demo & start removes securityext/da&test fixes jcr/build.xml (jetty is now in specialpurpose) Adds lost example which was in jackrabbit20100709 (not sure it's a good idea to keep it there) Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl (with props) ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl (with props) ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl (with props) ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml (with props) ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml (with props) Removed: ofbiz/branches/jackrabbit20120501/applications/securityext/src/org/ofbiz/securityext/da/ ofbiz/branches/jackrabbit20120501/applications/securityext/src/org/ofbiz/securityext/test/ Modified: ofbiz/branches/jackrabbit20120501/NOTICE ofbiz/branches/jackrabbit20120501/framework/jcr/build.xml ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/CommonScreens.xml ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleMenus.xml ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml Modified: ofbiz/branches/jackrabbit20120501/NOTICE URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/NOTICE?rev=1553099&r1=1553098&r2=1553099&view=diff ============================================================================== --- ofbiz/branches/jackrabbit20120501/NOTICE (original) +++ ofbiz/branches/jackrabbit20120501/NOTICE Mon Dec 23 12:04:41 2013 @@ -95,6 +95,19 @@ and are placed here unaltered. (C) Copyright 2004, 2005 International Business Machines Corporation. All rights reserved. ========================================================================= +== Apache Jackrabbit Notice == +========================================================================= + +Apache Jackrabbit +Copyright 2010 The Apache Software Foundation + +This product includes software developed at +The Apache Software Foundation (http://www.apache.org/). + +Based on source code originally developed by +Day Software (http://www.day.com/). + +========================================================================= == Apache Log4J Notice == ========================================================================= Modified: ofbiz/branches/jackrabbit20120501/framework/jcr/build.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/framework/jcr/build.xml?rev=1553099&r1=1553098&r2=1553099&view=diff ============================================================================== --- ofbiz/branches/jackrabbit20120501/framework/jcr/build.xml (original) +++ ofbiz/branches/jackrabbit20120501/framework/jcr/build.xml Mon Dec 23 12:04:41 2013 @@ -39,7 +39,7 @@ under the License. <fileset dir="../../framework/entity/build/lib" includes="*.jar"/> <fileset dir="../../framework/service/build/lib" includes="*.jar"/> <fileset dir="../../framework/security/build/lib" includes="*.jar"/> - <fileset dir="../../framework/jetty/lib" includes="*.jar"/> + <fileset dir="../../specialpurpose/jetty/lib" includes="*.jar"/> </path> <target name="jar" depends="classes"> Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl?rev=1553099&view=auto ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl (added) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl Mon Dec 23 12:04:41 2013 @@ -0,0 +1,52 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +${uiLabelMap.ExampleJackrabbitQuickContentSelect} +<form id="selectNode" action="EditRepositoryContent" type="post"> + <select name="path" id="nodePath"> + <option value="" selected></option> + <#list parameters.contentList as content> + <option value="${content}">${content}</option> + </#list> + </select> + <select name="language" id="nodeLanguage"> + <option value="" selected></option> + </select> + <input type="submit" /> +</form> + +<script type="text/javascript"> + var languageList = ${parameters.languageList} + + jQuery("#nodePath").change(function() { + var newOptions = languageList[jQuery(this).val()]; + + var options = ""; + for (option in newOptions) { + options = options + "<option value='" + newOptions[option] + "'>" + newOptions[option] + "</option>"; + + } + options = options + "<option value='' ></option>" + + jQuery("#nodeLanguage").children().remove(); + jQuery("#nodeLanguage").append(options); + + }); +</script> + +<br /> \ No newline at end of file Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/ContentChooser.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl?rev=1553099&view=auto ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl (added) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl Mon Dec 23 12:04:41 2013 @@ -0,0 +1,94 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script> + +<div id="jackrabbitDataTree">${parameters.dataTree!""}</div> + +<script type="text/javascript"> + var rawdata = ${parameters.dataTree!}; + + jQuery(function () { + jQuery("#jackrabbitDataTree").jstree({ + "plugins" : [ "themes", "json_data", "ui", "contextmenu"], + "json_data" : { + "data" : rawdata + }, + 'contextmenu': { + 'items': { + 'ccp' : false, + 'create' : false, + 'rename' : false, + 'open' : { + 'label' : "${uiLabelMap.ExampelsJackrabbitOpenData}", + 'action' : function(obj) { + openDataFromRepository(obj.attr('nodepath'), obj.attr('nodetype')); + } + }, + 'remove' : { + 'label' : "${uiLabelMap.ExampelsJackrabbitRemoveData}", + 'action' : function(obj) { + removeDataFromRepository(obj.attr('nodepath'), obj.attr('nodetype')); + } + } + } + } + }); + }); + + function removeDataFromRepository(nodepath, nodetype) { + var parameters = {"path" : nodepath}; + var url = "RemoveRepositoryNode"; + + runPostRequest(url, parameters) + } + + function openDataFromRepository(nodepath, nodetype) { + + var parameters = {"path" : nodepath}; + var url = "EditRepositoryContent"; + + runPostRequest(url, parameters) + } + + function runPostRequest(url, parameters) { + // create a hidden form + var form = jQuery('<form></form>'); + + form.attr("method", "POST"); + form.attr("action", url); + + jQuery.each(parameters, function(key, value) { + var field = jQuery('<input></input>'); + + field.attr("type", "hidden"); + field.attr("name", key); + field.attr("value", value); + + form.append(field); + }); + + // The form needs to be apart of the document in + // order for us to be able to submit it. + jQuery(document.body).append(form); + form.submit(); + form.remove(); + } + + +</script> \ No newline at end of file Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitDataTree.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl?rev=1553099&view=auto ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl (added) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl Mon Dec 23 12:04:41 2013 @@ -0,0 +1,110 @@ +<#-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<script language="javascript" type="text/javascript" src="<@ofbizContentUrl>/images/jquery/plugins/jsTree/jquery.jstree.js</@ofbizContentUrl>"></script> + +<div id="jackrabbitFileTree">${parameters.fileTree!""}</div> + +<script type="text/javascript"> + var rawdata = ${parameters.fileTree!}; + + jQuery(function () { + jQuery("#jackrabbitFileTree").jstree({ + "plugins" : [ "themes", "json_data", "ui", "contextmenu"], + "json_data" : { + "data" : rawdata + }, + 'contextmenu': { + 'items': { + 'ccp' : false, + 'create' : false, + 'rename' : false, + 'open' : { + 'label' : "${uiLabelMap.ExampelsJackrabbitOpenFile}", + 'action' : function(obj) { + openFileFromRepository(obj.attr('nodepath'), obj.attr('nodetype')); + } + }, + 'remove' : { + 'label' : "${uiLabelMap.ExampelsJackrabbitRemoveFile}", + 'action' : function(obj) { + removeFileFromRepository(obj.attr('nodepath'), obj.attr('nodetype')); + } + }, + 'download' : { + 'label' : "${uiLabelMap.ExampelsJackrabbitDownloadFile}", + 'action' : function(obj) { + downloadFileFromRepository(obj.attr('nodepath'), obj.attr('nodetype')); + } + } + } + } + }); + }); + + function openFileFromRepository(nodepath, nodetype) { + var parameters = {"path" : nodepath}; + var url = "OpenFileInformation"; + + runPostRequest(url, parameters) + } + + function removeFileFromRepository(nodepath, nodetype) { + var parameters = {"path" : nodepath}; + var url = "RemoveRepositoryFile"; + + runPostRequest(url, parameters) + } + + function downloadFileFromRepository(nodepath, nodetype) { + if ("nt:folder" == nodetype) { // the open function for foldes is not supported yet. + return; + } + + var parameters = {"path" : nodepath}; + var url = "GetFileFromRepository"; + + runPostRequest(url, parameters) + } + + function runPostRequest(url, parameters) { + // create a hidden form + var form = jQuery('<form></form>'); + + form.attr("method", "POST"); + form.attr("action", url); + + jQuery.each(parameters, function(key, value) { + var field = jQuery('<input></input>'); + + field.attr("type", "hidden"); + field.attr("name", key); + field.attr("value", value); + + form.append(field); + }); + + // The form needs to be apart of the document in + // order for us to be able to submit it. + jQuery(document.body).append(form); + form.submit(); + form.remove(); + } + + +</script> \ No newline at end of file Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/webapp/example/jackrabbit/JackrabbitFileTree.ftl ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/CommonScreens.xml?rev=1553099&r1=1553098&r2=1553099&view=diff ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/CommonScreens.xml (original) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/CommonScreens.xml Mon Dec 23 12:04:41 2013 @@ -256,6 +256,32 @@ under the License. </section> </screen> + <screen name="CommonExampleJackrabbitDecorator"> + <section> + <actions> + <set field="headerItem" value="ExampleJackrabbit" /> + <set field="labelFieldName" value="exampleTypeId" /> + <set field="dataFieldName" value="total" /> + </actions> + <widgets> + <decorator-screen name="main-decorator" + location="${parameters.mainDecoratorLocation}"> + <decorator-section name="pre-body"> + <include-menu name="ExampleJackrabbit" location="component://example/widget/example/ExampleMenus.xml"/> + </decorator-section> + <decorator-section name="body"> + <container style="clear" /> + <section> + <widgets> + <decorator-section-include name="body" /> + </widgets> + </section> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="main"> <!-- This is the screen for the Main page in the Example component. A common pattern in OFBiz is to have each component include a Main page as a starting point for Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml?rev=1553099&view=auto ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml (added) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml Mon Dec 23 12:04:41 2013 @@ -0,0 +1,167 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd"> + + <form name="ListRepositoryData" type="list" list-name="repositoryContent" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <field name="path"> + <hyperlink target="EditRepositoryContent" description="${path}"> + <parameter param-name="contentId" from-field="contentId" /> + <parameter param-name="path" from-field="path" /> + </hyperlink> + </field> + <field name="contentId"> + <hyperlink target="EditRepositoryContent" description="${contentId}"> + <parameter param-name="contentId" from-field="contentId" /> + <parameter param-name="path" from-field="path" /> + </hyperlink> + </field> + <field name="contentTypeId"> + <display /> + </field> + <field name="statusId"> + <display /> + </field> + <field name="statusId"> + <display /> + </field> + </form> + + <form name="SelectContentObject" type="single" target=""> + <field name="contentDropDown" position="1"> + <drop-down ><list-options key-name="contentList" description="${contentList}" list-name="parameters.contentList" list-entry-name="contentList"/></drop-down> + </field> + + <!-- + <field name="languageDropDown" position="2" title=""> + <drop-down><list-options key-name="languageList" list-name="parameters.languageList"/></drop-down> + </field> + --> + <field name="submit" position="2"><submit/></field> + </form> + + <form name="AddRepositoryData" type="single" target="StoreNewRepositoryData"> + <field name="path" title="${uiLabelMap.ExampleRepositoryNode}" tooltip="${uiLabelMap.ExampleAddNewNodePath}"> + <text /> + </field> + <field name="msgLocale" title="${uiLabelMap.CommonChooseLanguage}" > + <drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down> + </field> + <field name="title"> + <text /> + </field> + <field name="message" title="${uiLabelMap.ExampleRepositoryMessage}"> + <textarea visual-editor-enable="true" /> + </field> + <field name="submit"> + <submit /> + </field> + </form> + + <form name="UploadRepositoryFileData" type="upload" target="StoreNewRepositoryFileData"> + <field name="path" title="${uiLabelMap.ExampleRepositoryFolder}" tooltip="${uiLabelMap.ExampleAddNewNodePath}"> + <text></text> + </field> + <field name="fileData" title="${uiLabelMap.ExampleRepositoryFile}"> + <file size="28"></file> + </field> + <field name="fileLocale" title="${uiLabelMap.CommonChooseLanguage}" > + <drop-down allow-empty="true" ><list-options key-name="localeId" list-name="parameters.localeList" description="${localeId}"/></drop-down> + </field> + <field name="description"><textarea cols="30"/></field> + <field name="submit"> + <submit /> + </field> + </form> + + <form name="EditRepositoryDataChangeLanguage" type="single" target="EditRepositoryContent" default-entity-name="Content"> + <field name="path" title="${uiLabelMap.ExampleRepositoryNode}" map-name="content"> + <hidden /> + </field> + <field name="language" title="${uiLabelMap.CommonChooseLanguage}" > + <drop-down allow-empty="false" current="first-in-list" current-description="${parameters.selectedLanguage}"><list-options key-name="languageList" description="${languageList}" list-name="parameters.languageList" list-entry-name="languageList"/></drop-down> + </field> + <field name="versions" > + <drop-down allow-empty="true" current="selected" no-current-selected-key="${parameters.version}"><list-options key-name="versionList" description="${versionList}" list-name="parameters.versionList" list-entry-name="versionList"/></drop-down> + </field> + <field name="submit" ><submit/></field> + </form> + + <form name="EditRepositoryData" type="single" target="UpdateRepositoryData" > + <field name="title"> + <display /> + </field> + <field name="path" title="${uiLabelMap.ExampleRepositoryNode}" > + <display /> + </field> + <field name="language" title="${uiLabelMap.CommonLanguageTitle}"> + <display /> + </field> + <field name="pubDate" > + <display /> + </field> + <field name="createDate" > + <display /> + </field> + <field name="version" > + <display /> + </field> + <field name="content" title="${uiLabelMap.ExampleRepositoryMessage}" > + <textarea visual-editor-enable="true" default-value="${parameters.message}"/> + </field> + <field name="submit"> + <submit /> + </field> + </form> + + <form name="ScanRepositoryStructure" type="list" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <field name="path"> + <display /> + </field> + <field name="primaryNodeType"> + <display /> + </field> + </form> + + <form name="ExampleJackrabbitShowFileInformation" type="single" list-name="listIt" default-entity-name="Content" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <field name="fileName"> + <display /> + </field> + <field name="fileMimeType" use-when="parameters.get("fileMimeType")!=null"> + <display /> + </field> + <field name="fileLastModified" use-when="parameters.get("fileLastModified")!=null"> + <display /> + </field> + <field name="fileCreationDate"> + <display /> + </field> + </form> + + <form name="QueryRepositoryDataForm" type="single" target="QueryRepositoryData"> + <field name="queryData" ><text /></field> + <field name="submit"><submit/></field> + </form> + + <form name="ExampleJackrabbitShowQueryResults" type="list" target="EditRepositoryContent" list-name="queryResult" separate-columns="true" odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar"> + <field name="path" title="${uiLabelMap.ExampleRepositoryNode}" ><hyperlink target="EditRepositoryContent" description="${path}"><parameter param-name="path"/></hyperlink></field> + <field name="score" ><display /></field> + </form> +</forms> \ No newline at end of file Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitForms.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml?rev=1553099&view=auto ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml (added) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml Mon Dec 23 12:04:41 2013 @@ -0,0 +1,213 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> + + <screen name="ListRepositoryData"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitListNodes" /> + <entity-condition list="repositoryContent" entity-name="Content"> + <condition-expr field-name="contentTypeId" operator="equals" value="REPOSITORY"/> + </entity-condition> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ListRepositoryData" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitShowContentData"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitShowContentData" /> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <platform-specific> + <html><html-template location="component://example/webapp/example/jackrabbit/ContentChooser.ftl"/></html> + </platform-specific> + </container> + <container> + <label>${uiLabelMap.ExampleJackrabbitQueryForContent}</label> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="QueryRepositoryDataForm" /> + </container> + <container> + <label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label> + <platform-specific> + <html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitDataTree.ftl"/></html> + </platform-specific> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitAddData"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitAddData" /> + <script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="AddRepositoryData" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitUploadFileData"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitUploadFileData" /> + <script location="component://example/webapp/example/WEB-INF/actions/includes/PrepareLocalesForDropDown.groovy"/> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="UploadRepositoryFileData" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitScanRepositoryStructure"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitScanRepositoryStrukture" /> + <set field="listIt" from-field="parameters.listIt"/> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ScanRepositoryStructure" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitEditRepositoryContent"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitMainPage" /> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryDataChangeLanguage" /> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="EditRepositoryData" /> + <link target="RemoveRepositoryNode" text="remove" style="buttontext"> + <parameter param-name="repositoryNode" from-field="content.repositoryNode" /> + <parameter param-name="contentId" from-field="content.contentId"/> + </link> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitShowUploadedFiles"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" /> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <label>${uiLabelMap.ExampleJackrabbitTryRightClick}</label> + <platform-specific> + <html><html-template location="component://example/webapp/example/jackrabbit/JackrabbitFileTree.ftl"/></html> + </platform-specific> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitShowFileInformation"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitShowUploadedFiles" /> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowFileInformation" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + + <screen name="ExampleJackrabbitShowQueryResult"> + <section> + <actions> + <set field="titleProperty" value="PageTitleExampleJackrabbit" /> + <set field="tabButtonItem" value="ExampleJackrabbitShowContentData" /> + <set field="queryResult" from-field="parameters.queryResult"/> + </actions> + <widgets> + <decorator-screen name="CommonExampleJackrabbitDecorator" location="${parameters.mainDecoratorLocation}"> + <decorator-section name="body"> + <container> + <include-form location="component://example/widget/example/ExampleJackrabbitForms.xml" name="ExampleJackrabbitShowQueryResults" /> + </container> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + +</screens> \ No newline at end of file Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleJackrabbitScreens.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleMenus.xml?rev=1553099&r1=1553098&r2=1553099&view=diff ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleMenus.xml (original) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/ExampleMenus.xml Mon Dec 23 12:04:41 2013 @@ -88,4 +88,12 @@ under the License. <menu-item name="ExampleBarChart" title="Bar chart"><link target="ExampleBarChart"/></menu-item> <menu-item name="ExamplePieChart" title="Pie chart"><link target="ExamplePieChart"/></menu-item> </menu> + + <menu name="ExampleJackrabbit" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"> + <menu-item name="ExampleJackrabbitShowContentData" title="${uiLabelMap.ExampleJackrabbitShowContentData}"><link target="ExampleJackrabbitShowContentData"/></menu-item> + <menu-item name="ExampleJackrabbitAddData" title="${uiLabelMap.ExampleAddNewContentEntry}"><link target="ExampleJackrabbitAddData"/></menu-item> + <menu-item name="ExampleJackrabbitUploadFileData" title="${uiLabelMap.ExampleJackrabbitUploadFileData}"><link target="ExampleJackrabbitUploadFileData"/></menu-item> + <menu-item name="ExampleJackrabbitShowUploadedFiles" title="${uiLabelMap.ExampleJackrabbitShowUploadedFiles}"><link target="ExampleJackrabbitShowUploadedFiles"/></menu-item> + <menu-item name="ExampleJackrabbitScanRepositoryStrukture" title="${uiLabelMap.ExampleScanRepositoryStrukture}"><link target="ExampleJackrabbitScanRepositoryStructure"/></menu-item> + </menu> </menus> Modified: ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml?rev=1553099&r1=1553098&r2=1553099&view=diff ============================================================================== --- ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml (original) +++ ofbiz/branches/jackrabbit20120501/specialpurpose/example/widget/example/FormWidgetExampleScreens.xml Mon Dec 23 12:04:41 2013 @@ -82,7 +82,7 @@ under the License. </widgets> </section> </container> - <container style="screenlet-body"> + <container style="screenlet-body"> <container style="button-bar"><label style="h2">${uiLabelMap.ExampleLookupFieldsTitle}</label></container> <container style="screenlet-body"> <label style="h3">${uiLabelMap.ExampleSourceCode}</label> |
Free forum by Nabble | Edit this page |