Commit Graph
79 Commits
Author SHA1 Message Date
Jacques Le Roux a2dac5482c Improved: Default ordering of webapps titles in main menu (OFBIZ-12166)
[...] having more important apps in 1st places would be better [...]
the feature should be easily changed by custom projects [...]
documentation for that would be enough.

This 1st step sorts the applications and webtools. I believe webtools should not
be secondary but that needs to be discussed with other options.
2021-02-14 21:11:58 +01:00
Nicolas Malin 7165768251 Implemented: Add a framework method to get main webapp menu with the webapp name
(OFBIZ-10601)

To improve theme management and provide better tools for new themes, we implement a method to obtain the main menu of a webapp.
Instead of just managing a menu, we extend the functionality by offering a method to expose a summary of the webapp, to simplify the navigation.

For this we add a new attribute on webapp definition app-shortcut-screen :

    <webapp name="mywebapp"
            ...
            app-shortcut-screen="component://mycomponent/widget/CommonScreens.xml#ShortcutApp"
            ...
    />

The idea is to define a new purpose screen *Shortcut* that contains what defines a webapp when an action or navigation has been requested. With this screen you can load a menu, a search, a complex description and use all screen powerfulness to resolve what displaying and support by theming

    <screen name="ShortcutApp">
        <section>
            <actions>
                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
            </actions>
            <widgets>
                <decorator-screen name="ShortcutDecorator" location="component://common/widget/CommonScreens.xml">
                    <decorator-section name="body">
                        <include-menu name="MyShortcutAppBar" location="component://mycomponent/widget/CommonMenus.xml"/>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>

Each component are self-sufficient to define what shortcuts to display without framework change or knowledge about other component.
Each theme can implement and customize the display rendering at will.

To illustrate an example of implementation we set sub menu for each webapp defined on applications and exploit it on bluelight theme.

Thanks for Dennis Balkir, Jacques Leroux, Leila Mekika and Julien Nicolas for their involvement
2021-01-15 08:56:23 +01:00
holivier 4a41f0fde5 Documented: migration to help system using asciidoc files (OFBIZ-11587)
commit correction for <Remove all related help docbook files>
* reAdd a contentDocData for main contentId and portletCategory
* remove from ofbiz-component of each application line about helpData which are removed
2020-10-27 11:20:09 +01:00
Mathieu Lirzin aae1c8a8f5 Reverted: "Improved: Use ‘depends-on’ attribute instead of “component-load.xml”"
(OFBIZ-11296)

This reverts commit eeabe69813.
2019-12-18 12:09:20 +01:00
Mathieu Lirzin eeabe69813 Improved: Use ‘depends-on’ attribute instead of “component-load.xml” (OFBIZ-11296)
We currently have two ways to define component loading order. Either
by using ‘depends-on’ attribute in “component-config.xml” or by adding
a “component-load.xml” file at the root of a component directory.

“depends-on” is more flexible because it handles partial ordering when
“component-load.xml” defines a total order which is not necessarily
meaningful, so it is better to rely only “depends-on”.

This removes the usage of “component-load.xml” to use ‘depends-on’
instead. The dependency declarations correspond to the total ordering
previously defined but will need to be refined in the future to relax
unnecessary dependency declarations.

Only “framework/base/config/component-load.xml” which defines the
top-level directories order (framework, applications, themes and
plugins) is kept.
2019-11-25 15:28:54 +01:00
Mathieu Lirzin cf79277608 Improved: Remove redundant "dtd" directory from classpath
(OFBIZ-11161)

the "dtd" directories are already present as resources distributed
inside OFBiz jar, so there is no need to augment the classpath to find
the XML schema inside those directories.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865796 13f79535-47bb-0310-9956-ffa450edef68
2019-08-24 00:29:41 +00:00
Suraj Khurana 922ca2d1a6 Added: Unit test case for service - getDataResource.
(OFBIZ-8423)
Thanks Tanmay Muley for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856597 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:43:33 +00:00
Gil Portenseigne 9fbb3765e4 Implemented : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

This commit introduce a new way to manage file transfer in OFBiz.
Inspired by mailing communication event management, a new communicationEventTypeId is created ('FILE_TRANSFER_COMM').

Such commEvent with classics : partyIdFrom/partyIdTo/contactMechIdTo/entryDate etc. are analysed by a job (like sendEmailDated), to send associated contents to a configured FTP/SFTP/FTPS server. If failure happens, it is catched and stored in communicationEvent, waiting for a new try.

For this purpose :

A new contactMechTypeId is introduced (FtpAddress), with its corresponding table. This contactMech store needed information for basic user/password authentication (server url and protocol, port, username, password, etc.)
A new service sendFileTransferDated that will look for pending file transfer and call following service.
A new service sendCommEventAsFtp that take a selected commEvent, check its structure and manage its status after trying the associated content file transfers.
A new service sendContentToFtp, that take a content and transfer it to a given FtpAddress.
A seca createCommEventFromFtpTransfer on sendContentToFtp to manage plural content file transfer, creating children communicationEvent to follow each content transfer separately (only for several content transfers).
A new Interface FtpClientInterface, with the 3 implementations of FTP, FTPS (To Implement), SFTP clients to manage Ftp connection and transfer.
A new property file to enable and manage redirection for testing purpose.

With this implementation, creating a communicationEvent, with a FtpAddress contactMechIdTo, and sendFileTransferDated job planned, the file is transfered to the ftp : communication event status set to COM_COMPLETE, if error occured the communication event status is set to COM_BOUNCED with error message on communicationEvent note.

Thanks Rishi for your feedbacks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831867 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 15:53:35 +00:00
Rishi Solanki ced30c8dc3 Improved: Move all data in applications to the datamodel component. Move the PortalPortlet, PortletPortletCategory and PortletCategory data to party, workeffort and content components from datamodel.
(OFBIZ-9501)
Thanks to Taher for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1828817 13f79535-47bb-0310-9956-ffa450edef68
2018-04-10 13:36:51 +00:00
Rishi Solanki 5a49b98d3a Improved: Move all data in applications to the datamodel component. Moved demo data from accounting, commonext, content, humanres, manufacturing, marketing, order, party, product, workeffort components to datamodel component. Done changes in related data files and do entries accordingly.
(OFBIZ-9501)
Thanks to Sourabh Jain for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823177 13f79535-47bb-0310-9956-ffa450edef68
2018-02-05 14:13:04 +00:00
Deepak Dixit 521ea1b1f3 Fixed: Corrected file name in content ofbiz-component.xml file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818912 13f79535-47bb-0310-9956-ffa450edef68
2017-12-21 11:06:14 +00:00
Rishi Solanki e83ab9ee03 Improved: Move all data in applications to the datamodel component. Move the help data back to the origin component from where moved to datamodel as discussed on ticket.
(OFBIZ-9501)
Thanks to Taher and Jacques for finalizing the direction.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817151 13f79535-47bb-0310-9956-ffa450edef68
2017-12-05 04:14:38 +00:00
Rishi Solanki 42cc28f78e Improved: Move all data in applications to the datamodel component. Moved seed and seed-initial data from party, content, security ext and work effort component. Left with few data changes which can be moved to some plugins or confusing. Will share the data over community and proceed accordingly once base effort is complete. Thanks Sourabh Jain, Saurabh Dixit and Prakhar Kumar for your contribution.
(OFBIZ-9501)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813724 13f79535-47bb-0310-9956-ffa450edef68
2017-10-30 05:33:32 +00:00
Michael Brohl 8b3b0ecf41 Improved: Several file names do not adhere to conventions applied to same files
in other components.
(OFBIZ-9338)

Thanks Pierre Smits for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800303 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:39:27 +00:00
Arun Patidar 411fbfb43c Implemented: Added CRUD services for DocumentAttribute, Document and DesiredFeature entity.
(OFBIZ-8161) (OFBIZ-8162) (OFBIZ-8163)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761193 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 11:03:20 +00:00
Jacques Le Roux 607f817c8a Forgot this one at r1755306 for OFBIZ-7776 because I hesitated removing the README
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755401 13f79535-47bb-0310-9956-ffa450edef68
2016-08-06 14:11:35 +00:00
Jacques Le Roux ef7996c983 Fixes "Remove warnings regarding missing component lib folders" - https://issues.apache.org/jira/browse/OFBIZ-7776 - by cleaning/clearing the references to non existent/empty dirs.
Notes: 
* Also removes empty framework/base/lib/scripting and useless applications\content\lib\uno\README (miss doc in wiki)
* When jpim-0.1.jar will be (hopefully) replaced we can drop lib ref in framework/base/ofbiz-component.xml
* I wonder if we should let the geronimo component alone with only 2 classes, could we not put that in entity or entityext?
 
    



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755306 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 12:27:21 +00:00
Jacopo Cappellato 85b2008053 OFBIZ-6760: Moved all entity definitions from the applications components into a new component named "datamodel".
This is a first step to refactor application components into independent parts that can be deployed when needed.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720413 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 18:37:22 +00:00
Adrian Crum e55e71edcc Fix OFBiz looking for web.xml in wrong place - https://issues.apache.org/jira/browse/OFBIZ-6259.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674451 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 07:33:29 +00:00
Jacques Le Roux 4879e9c470 This reapplies r1519245: The path /content/images/ was used in some places (only for contentForum.css it seems) but no mount point was associated, here is a fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1658621 13f79535-47bb-0310-9956-ffa450edef68
2015-02-10 06:04:39 +00:00
Jacopo Cappellato e0f2b79d38 Added missing OFBTOOLS base-permission; thanks to Darrell (darrell73s <darrellofbiz@gmail.com>) for the bug report in the users mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576757 13f79535-47bb-0310-9956-ffa450edef68
2014-03-12 14:44:29 +00:00
Jacques Le Roux 513d684918 Closes https://issues.apache.org/jira/browse/OFBIZ-5521 as not a problem
It was my bad, I was simply stupid on this, reverts r1519245


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1562767 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 10:33:26 +00:00
Jacques Le Roux 06e7d2a646 The path /content/images/ was used in some places (only for contentForum.css it seems) but no mount point was associated, here is a fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519245 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 08:18:47 +00:00
Jacopo Cappellato 6071e8d8e0 Extracted from the OFBiz content component the dependencies on Lucene and created a new specialpurpose/lucene component in order to simplify the integration of components based on Lucene/Solr and to simplify the management of conflicts caused by different versions of Solr/Lucene jars.
In this way it will be easier to compare the ootb Lucene integration with custom ones (based on Lucene/Solr/etc...) and to switch between them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518925 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 09:45:33 +00:00
Jacques Le Roux bbf2e95162 This is not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517132 13f79535-47bb-0310-9956-ffa450edef68
2013-08-24 14:29:51 +00:00
Adrian Crum 877c21d864 Comment out non-existent web application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400385 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 08:05:13 +00:00
Jacques Le Roux a21d16e369 A patch from Tom Burns "BIRT interferes with Context Help" https://issues.apache.org/jira/browse/OFBIZ-5033
To reproduce:
In the Accounting,Facility, or Order component.
Click the Help icon
Expected:
Help window opens for the active component
Actual:
Help window opens for BIRT

The following, added in Rev. 1361130 to BIRT ofbiz-component.xml, appears to be causing the problem. The problem goes away if BIRT is not loaded.

<webapp name="accounting"
title="Accounting"
server="default-server"
location="webapp/accounting"
base-permission="OFBTOOLS,ACCOUNTING"
mount-point="/accounting"/>
<webapp name="facility"
title="Facility"
description="FacilityComponentDescription"
server="default-server"
location="webapp/facility"
base-permission="OFBTOOLS,FACILITY"
mount-point="/facility"/>
<webapp name="order"
title="Order"
description="OrderComponentDescription"
server="default-server"
location="webapp/ordermgr"
base-permission="OFBTOOLS,ORDERMGR"
mount-point="/ordermgr"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1396105 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 16:53:07 +00:00
Jacopo Cappellato 3aa85842f2 Moved the "birt" component out of framework to specialpurpose; moved all the birt reports from the applications to the birt component itself, where the application webapps are overriden to inject the reports; the end result is the same but since all these birt reports are simply a proof of concepts that cannot be used in production (for example they use hardcoded userlogin for authentication) the birt component should be probably disabled by default (but this will be discussed in the dev list).
Now it will be very easy to extract the birt component (for OFBiz Extras) or to disable it when deploying to production or when interested in sparing some hardware resources. I did some cursory tests but since the work has been challenging and rather complex I would appreciate testing help and also reviews to finds chunks of code that I could have missed and that could be moved out as well.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1361130 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 09:48:32 +00:00
Jacques Le Roux 5cabbee270 A patch from Olivier Heintz "Example Help data files has not been moved to example" https://issues.apache.org/jira/browse/OFBIZ-4935
Example component has been moved from framework to specialpurpose.
When example was in framework content data for help was loaded in content component because example was loaded before content.
Now it's possible (and more logical) to load content help for example in example.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355807 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 20:30:16 +00:00
Hans Bakker bd16dfb598 split up securitypermissions as seed data and securitygroups as demo data with a single exception: the creation of a super security group which has general access to the system and which is used with the 'ant create-admin-user-login' command.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1352431 13f79535-47bb-0310-9956-ffa450edef68
2012-06-21 07:21:49 +00:00
Hans Bakker 14f4e5a292 reverted recent security file changes revisions: 1350847,1350843,1350840,1348534,1347908,1347213,1346264, need more investigation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1351206 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 04:36:20 +00:00
Hans Bakker fff7f99081 introduced a new data-reader : 'security'
Security is now by default not loaded because not part of seed anymore this will make all component hidden and not accessible .
It is still loaded as part of the reader 'demo'

to load the security files:
./ant load-readers -Ddata-readers=security

Now it is possible to load only a selection of the security files in your hot-deploy component as follows:

<entity-resource type=data reader-name=seed loader=main location=../../framework/security/data/SecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../framework/webtools/data/WebtoolsSecurityData.xml/>
<entity-resource type=data reader-name=seed loader=main location=../../applications/party/data/PartySecurityData.xml/>

This will enable only standard groups, the party and the webtools application.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1346255 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 06:37:06 +00:00
Hans Bakker 0e4c316ef7 remove reference to a deleted file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1142970 13f79535-47bb-0310-9956-ffa450edef68
2011-07-05 10:31:08 +00:00
Hans Bakker 1749a6989f Add seo friendly url's for showing content. reorganize the same program snippets with seo friendly url for products. These content url's are demonstrated at the ecommerce frontend in the left bottom corner: Content Information
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1141878 13f79535-47bb-0310-9956-ffa450edef68
2011-07-01 09:03:32 +00:00
Erwan de Ferrieres 660aeb051d Adding test and test data for lucene search
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050883 13f79535-47bb-0310-9956-ffa450edef68
2010-12-19 15:57:13 +00:00
Hans Bakker ca1c8d4e40 enable blog demo data again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004149 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 08:57:05 +00:00
Hans Bakker 5e2b246042 corrected error in blogseed data as reported by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002900 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 00:04:03 +00:00
Jacques Le Roux 82c88d191a Temporary workaround to allow ant run-install to run correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002825 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:42:22 +00:00
Jacques Le Roux 7ab7d8e9b1 Temporary workaround to allow ant run-install-seed to run correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1002822 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29 19:33:55 +00:00
Hans Bakker 6ba5f17fae change one file from blog function from demo to seed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001748 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 14:04:45 +00:00
Jacques Le Roux e57c2599a9 A patch from Sumit Pandit "Issue in rendering Freemarker Template from String." (https://issues.apache.org/jira/browse/OFBIZ-3782) - OFBIZ-3782
With the help of Bob Morley (it was more a cache issue than what Sumit thought)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950866 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 04:11:32 +00:00
Bruno Busco b0069a29ab Added a new "Show Content" Portlet.
This allows to show a content element in a portalPage.
A further improvement of this portlet will be to allow a content element list to be shown given the element's father.
Having the application's main page replaced with a portalPage will allow the user to edit this page using the CMS.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926340 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 21:16:45 +00:00
Hans Bakker f9e1b11bde Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00
Jacques Le Roux 6e61b5e801 A patch from Erwan de FERRIERES "help link in example is not working" (https://issues.apache.org/jira/browse/OFBIZ-3097) - OFBIZ-3097
when clicking the help link in the example app, the showHelp request is not recognised.
-> added a request in the example controller
-> created the ExampleHelpData file
-> added the needed line to load the data in the Example ofbiz-component file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832368 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 09:58:06 +00:00
Bruno Busco 40a72014a1 A patch from Patrick Antivackis "Addind Error Pages (404 - 410) possibilities for the Content app" (https://issues.apache.org/jira/browse/OFBIZ-3022) - OFBIZ-3022
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@826205 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 09:12:39 +00:00
Hans Bakker 512f29383d removed entries to non existing files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821710 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 07:56:50 +00:00
Hans Bakker 0fdf9568c8 added webtools/selenium to the help and corrected some problems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818733 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25 06:31:20 +00:00
Hans Bakker dd9ae86426 added another level in the accounting help data, added info and reorganized a bit, also fixed the problem with the selenium info which did not load
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817524 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 07:39:53 +00:00
Hans Bakker 7c99297356 moved temporary the party helpfile to the content component until solution is found because the party component is loaded first and need the content component (as reported on the mailing list)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@814546 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 09:52:24 +00:00
Hans Bakker d34ad96ab6 extended the help template, moved help xmlfiles for easy editing into the file system, started to look at docbook for ofbiz documents
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@805338 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 10:01:45 +00:00