Add where(EntityCondition...) to EntityQuery

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630978 13f79535-47bb-0310-9956-ffa450edef68
Make use of EntityQuery.where(EntityCondition...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630979 13f79535-47bb-0310-9956-ffa450edef68
Complete conversion of accounting java files from delegator to EntityQuery

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630980 13f79535-47bb-0310-9956-ffa450edef68
Parameter name correction

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1630983 13f79535-47bb-0310-9956-ffa450edef68
Fix dead code warning by moving null check to the correct spot

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631018 13f79535-47bb-0310-9956-ffa450edef68
Remove dead code

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631019 13f79535-47bb-0310-9956-ffa450edef68
An enhanced patch from Josip Almasi for "Can't mount root web app" https://issues.apache.org/jira/browse/OFBIZ-5799

After mounting ecommerce as root web app, I got ScreenRenderException, caused by StringIndexOutOfBoundsException: String index out of range: -1 
at  org.ofbiz.product.category.CatalogUrlServlet.makeCatalogUrl(CatalogUrlServlet.java:186)

Categories and products cannot be rendered.

jleroux: I added 2 other cases to Josip's patch.
Note: you could mount the ecommerce as root web app between R9.04 and R11.04 (included)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631203 13f79535-47bb-0310-9956-ffa450edef68
Upgraded to the latest, now official, release of Freemarker 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631299 13f79535-47bb-0310-9956-ffa450edef68
Forgot to include the jars in my previous commit. Upgraded to the latest, now official, release of Freemarker: 2.3.21 Freemarker is now released under the Apache License 2.0


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631300 13f79535-47bb-0310-9956-ffa450edef68
Add missing generics markup and remove suppress warnings annotation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631962 13f79535-47bb-0310-9956-ffa450edef68
Improve filterByDate(Timestamp) to not filter by date when the passed in Timestamp is null.  Better mimics the behavior of EntityUtil.filterByDate(Timestamp)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631963 13f79535-47bb-0310-9956-ffa450edef68
Check trunk for updates finally no longer done, restart all demos each morning at 3

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631989 13f79535-47bb-0310-9956-ffa450edef68
Remove duplicate PortalPagePortlet record

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632201 13f79535-47bb-0310-9956-ffa450edef68
Remove duplicated or unused content seed data

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632202 13f79535-47bb-0310-9956-ffa450edef68
Fixes a missing import java.sql.Timestamp;
This does not appear in R13.07 => no needs for a Jira

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632235 13f79535-47bb-0310-9956-ffa450edef68
Implements https://issues.apache.org/jira/browse/OFBIZ-5819 "Improve the build-dev ant target"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632421 13f79535-47bb-0310-9956-ffa450edef68
Applied bug fix from jira issue - OFBIZ-5632 - Changing Visual theme in Order manager results in error message. 
===========================================================
The reported issue has been observed in the order manager application. It happens when there's no shopping cart in the session.

Steps to test -
1. Try changing visual theme in the order manager application.

Observations -
1. Returns ERROR MESSAGE - org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://order/widget/ordermgr/OrderEntryOrderScreens.xml#quickFinalizeOrder: java.lang.IllegalArgumentException: Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]: java.lang.NullPointerException: Cannot invoke method getRelated() on null object (Error running script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/CheckoutPayment.groovy]: java.lang.NullPointerException: Cannot invoke method getRelated() on null object)

Thanks.
===========================================================

Thanks Vyom for reporting the issue and Thanks Pranay for providing the patch for the same. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632733 13f79535-47bb-0310-9956-ffa450edef68
Applied patch from jira issue - OFBIZ-5824 - Error in communication screen while perfom sorting.
=========================================================================
In partymgr contrller.xml, we have view request named "ViewCommunicationEvent", and this request call an service event, due to this when we try to perform sorting on Child Communication Events, Customer Request List or any other screen over Communication screen then it will thorw following exception:

org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [communicationEventId] passed to secure (https) request-map with uri [ViewCommunicationEvent] with an event that calls service [setCommEventRoleToRead]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
 

Also due to this service event call on view request entry we can't open the communication events in new tab. Ideally this service should be call in screen context instead view request.

=====================================

Thanks Deepak for reporting the issue and providing the patch for the same. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632745 13f79535-47bb-0310-9956-ffa450edef68
I forgot to commit a file in one of my recent commit r1626425. Committing it now. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632747 13f79535-47bb-0310-9956-ffa450edef68
Applied patch from jira issue - OFBIZ-4528 - Out of stock products screw up the pagination during category browsing.
===================================================================
Pagination is handled in getProductCategoryAndLimitedMembers
Then the out of stock filtering is done in CategoryDetail.groovy.
Hence the pagination is screwed up. Certain pages might show less records or no records based upon data condition.
===================================================================
Thanks Arun for the contribution and Thanks Kiran for creating the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632750 13f79535-47bb-0310-9956-ffa450edef68