Vikas Mayur
3e40bf98c2
In the service def. replaced <check-permission> with <permission-service> tag such that a permission checking is done using a permission
...
service. Also moved the permission checking logic to service definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930551 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 17:58:06 +00:00
Scott Gray
25c3f11822
Improved the content rendering so that multiple levels of decoration are supported, previously you could have only one content and it's decorator, anything above that and the contents being decorated would get lost in the rendering logic.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930544 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 17:11:34 +00:00
Vikas Mayur
82c5c4efc7
Moved permission checking logic to service definition. This commit also fix a bad security permission check on updateQuantityBreak and
...
deleteQuantityBreak services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930543 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 17:01:29 +00:00
Vikas Mayur
2482bd5ade
Moved permission checking logic to service definition. Applied applications only part of my patch
...
from jira issue OFBIZ-3632 (https://issues.apache.org/jira/browse/OFBIZ-3632 )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930537 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 16:11:53 +00:00
Vikas Mayur
ff81b42928
Extending the <required-permissions> tag in service model such that it can contain one or more occurrence of <permission-service> tag.
...
This is helpful when there is a need to check more then one permission using a permission service.
Applied framework only part from my patch from jira issue OFBIZ-3632 (https://issues.apache.org/jira/browse/OFBIZ-3632 )
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930536 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 16:07:18 +00:00
Jacques Le Roux
964c4c302d
A modified patch (indentation done mostly) from Blas Rodriguez Somoza "XHTML validation errors (framework/widget) Tree widget and Date time field rendering issues" https://issues.apache.org/jira/browse/OFBIZ-3628 - OFBIZ-3628
...
htmlTreeMacroLibrary.ftl
Tree widget renders unclosed <li> tags.
Example from Accounting -> Global GL settings -> Navigate accounts
<ul class="basic-tree">
<li><ul class="basic-tree">
<li>
<li><a class="collapsed" href="/accounting/control/GlAccountNavigate?trail=null|100000"> </a><a href="/accounting/control/GlAccountNavigate?glAccountId=100000&trail=null">100000
htmlFormMacroLibrary (macro renderDateTimeField)
selected attribute without value
<option value="AM" selected>
input inside ul
<ul>
......
<input type="hidden" name="${compositeType}" value="Timestamp"/>
</ul>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930516 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 12:42:36 +00:00
Vikas Mayur
81c73e21de
Fixed a potential NPE since ProductStore.storeName is an optional field.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930507 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 11:54:40 +00:00
Jacques Le Roux
51220b3101
Add a caution note to the run-install-multitenant target
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930492 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 08:18:49 +00:00
Vikas Mayur
a069c8d0b5
Specifying the decorator screen location. By defining a location param in your own web.xml the OOTB decorator in the screens can easily be overridden by a custom decorator.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930486 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 07:23:53 +00:00
Scott Gray
2e84dbca9d
Following on from r930477, removed another reference to currency for EditProduct's quantityUomId field. Thanks for the report Jacopo.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930481 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 06:11:54 +00:00
Scott Gray
9cb19dd0c4
EditProduct's quantityUomId drop down should display all UomTypes except CURRENCY_MEASURE, bug reported by Len Shein on the user list
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930477 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 05:20:58 +00:00
Adrian Crum
38727d0730
Added run-install-multitenant ant target to make it easier to set up the multi-tenancy demo.
...
Caution: this creates three databases, with each one loaded with all demo data. Be aware of disk space use and the time required to run the task.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930471 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 04:44:13 +00:00
Adrian Crum
f152bcfdf9
Changed a demo data comment to help clear up some confusion.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930470 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 04:41:21 +00:00
Adam Heath
e251479be7
Improve getAttribute() method on ShoppingCart and CartShipInfo, so that
...
calling code doesn't have to cast.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930407 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 21:58:05 +00:00
Adam Heath
89cbb1d721
Switch the attributes instance variable to FastMap.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930406 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 21:57:31 +00:00
Adam Heath
56be2e582d
Add generics markup to orderAttributes. Baby steps.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930404 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 21:55:58 +00:00
Jacques Le Roux
4ec0311df1
A patch from Bob Morley "Resolve java warnings exposed in Eclipse (POS part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3600 - OFBIZ-3600
...
Changes across quite a few classes in the Pos area. Also minor changes to the CheckoutHelper - validatePaymentMethods and processPayment methods which were returning non-generic Maps.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930373 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 20:31:12 +00:00
Adam Heath
5ec1f9cda5
Fix bad transaction pattern introduced with 927256.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930332 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 17:22:24 +00:00
Adam Heath
c0e592dc23
Add support to loadCartFromOrder for reading of the OrderItemShipGroup
...
information from the database.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930325 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:50:32 +00:00
Adam Heath
c5c0fe29ce
Add a feature to loadCartFromOrder to allow it to include promo items
...
into the cart, as they are read from the database. This is useful when
the cart will eventually be used in a read-only type fashion, as the
cart will look identical to what it was before the order was created.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930324 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:49:41 +00:00
Adam Heath
7e3ee50e31
Don't constantly convert the internal ShoppingCartItemGroup.groupNumber
...
from an int to a String; instead, do the conversion once inside the
constructor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930322 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:48:48 +00:00
Adam Heath
e71909c3aa
Add OrderItem relation on OrderItemGroup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930321 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:47:22 +00:00
Adam Heath
d6c2eb3e58
In createOrderNote, set the allow-html attribute on the note parameter
...
to be the same as createNote.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930319 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:46:25 +00:00
Vikas Mayur
c1a6159f64
Removed unnecessary occurrences of <or> tag enclosure in a singleton condition expression. in all of the lookup screens. Also removed few empty new lines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930252 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 12:05:17 +00:00
Vikas Mayur
e133473892
Replaced
...
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
with
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930250 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:48:54 +00:00
Vikas Mayur
a2added370
Replaced
...
<if-has-permission permission="PARTYMGR" action="_VIEW"/>
with
<if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930248 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:45:14 +00:00
Vikas Mayur
41b9e5f0fe
Replaced
...
<if-has-permission permission="ACCOUNTING" action="_VIEW"/>
with
<if-service-permission service-name="acctgBasePermissionCheck" main-action="VIEW"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930247 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:36:59 +00:00
Vikas Mayur
2e460a2be6
Added a new base permission in accounting component. Used the new permission service for permission checking in the lookup screens.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930243 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:22:44 +00:00
Vikas Mayur
df81456da6
Removed trailing spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930241 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:17:37 +00:00
Vikas Mayur
f09a021b40
A singleton expression does not need to be surrouded by an <or> tag and hence removing it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930238 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 11:15:52 +00:00
Vikas Mayur
d20b0eb9b7
Moved the accounting permission services to a separate file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:52:06 +00:00
Ashish Vijaywargiya
c27b5933ae
Added allow-html="safe" for description fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930225 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:10:07 +00:00
Jacques Le Roux
46a74ff4c5
Remove trailing white spaces (I got a conflict)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930223 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:05:39 +00:00
Erwan de Ferrieres
567e2c62ec
Adding French uiLabels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930220 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:55:33 +00:00
Erwan de Ferrieres
bf0d08ad2d
Adding entityLabels for WebSiteContentType
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930205 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:35:49 +00:00
Erwan de Ferrieres
fb5493bbaf
Badly formed from-field values (mis-matched curly braces) OFBIZ-3631 ( https://issues.apache.org/jira/browse/OFBIZ-3631 )
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930202 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 09:21:53 +00:00
Vikas Mayur
473653ff01
Removed an unnecessary assignment in the template and moved it to the script.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930188 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 08:52:52 +00:00
Jacopo Cappellato
dacb719611
Implemented upgrade script for deprecated field Facility.squareFootage
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930182 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 08:22:17 +00:00
Scott Gray
195c3dbb10
Log an error and ignore decoratorContentId if it is the same as the contentId being rendered. Prevents a stack overflow.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930156 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 03:37:33 +00:00
Erwan de Ferrieres
142d926fd0
Closing XML tags, no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929989 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 14:26:11 +00:00
Bilgin Ismet Ibryam
cb82865b56
Added createUpdateFacilityGeoPoint service for creating or updating geo points assigned to a facility.
...
Added facility geo point screen for editing and visualizing facility geo point.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929946 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 12:44:37 +00:00
Hans Bakker
f642affa29
Resolve java warnings a contribution of Bob Morley
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929916 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:50:39 +00:00
Jacques Le Roux
1a033fa8f7
Deprecate Facility.squareFootage the right way.
...
The right associated script is
update FACILITY set facility_size=square_footage;
update FACILITY set facility_size_uom_id='AREA_ft2';
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929912 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:41:14 +00:00
Hans Bakker
b2eec1b8a0
Add ebayStoreCategory list (Categories from ebayStore seller ) in 'exportProduct to ebay' screen, The seller can export products from ofbiz to ebay category and to their ebay store on ebay site.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929906 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:13:01 +00:00
Hans Bakker
45eaddfad7
renamed 'message' field name because reserved word in ebaystore
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929897 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 09:51:41 +00:00
Adam Heath
94604a3923
Last commit fixed the compile error, and allowed the test cases to pass.
...
However, there are no tests against the webtools webapp, and this change
finishes the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929849 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 05:42:11 +00:00
Adam Heath
6094c94ba2
Fix for buildbot failure, due to committing untested rebased code;
...
mea-culpa.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929847 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 05:21:21 +00:00
Adam Heath
a147d7863e
Add a new method, erase(), which just clears out the stored entries,
...
without clearing any counters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929846 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:52:39 +00:00
Adam Heath
1bc6324970
Remove SoftReferences automatically in the background. This is the
...
final step in removing all polling code patterns from UtilCache.
Because of this, all helper methods that were used to clear elements
programmatically are now officially deprecated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929845 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:51:14 +00:00
Adam Heath
b6948771f4
Helper class to poll a ReferenceQueue with a background thread.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929844 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 04:50:21 +00:00