Commit Graph
22 Commits
Author SHA1 Message Date
Suraj Khurana 757551a8fd Improved: All the service level error messages for missing required field for catalog component.
(OFBIZ-7739)
Thanks Ratnesh Upadhyay for reporting, reviewing the updated patch and Sega for initial patch.
2020-04-25 17:52:53 +05:30
Nicolas Malin 92963609da Improved: Convert ProductFeatureServices.xml mini lang to groovy
(OFBIZ-11439)

Thanks to Sebastian Berg for providing the patch
2020-03-06 11:36:32 +01:00
Nicolas Malin 80026c76c0 Improved: Convert ProductServices.xml mini lang to groovy
(OFBIZ-10231)

After groovy conversion the method checkProductRelatedPermission
has been broken for other minilang method that didn't converted.

To solve this problem, I created new permission service checkProductRelatedPermission
and convert all previous minilang method call by a permission service on the related service call
2020-03-04 21:44:11 +01:00
Swapnil Mane 5c008f5cc9 Fixed: createProductFeature service ignoring passed productFeatureId parameter
(OFBIZ-10958)

In the change, used override tag instead of attribute.
And set the optional true in INOUT mode for productFeatureId.
But since we are using entity-auto productFeatureId will be always available (either user provide it and if not passed by the user,  system will autogenerate it), thus it will be always OUT.

Additional Notes:

Here we can't make a changes mentioned below, because, for *optional* field's value, invokeCreate method (internally calling isIn and IsOut methods of ModelParam) of EntityAutoEngine.java consider the attribute (override) defined at last for parameters with the same name.

i.e. for below example,  optional value for productFeatureId for mode IN  will be false (but it is defined true)

{code}
<override name=productFeatureId type=String mode=IN optional=true/>
<override name=productFeatureId type=String mode=OUT optional=false/>
{code}

Due to this, isSinglePkIn (in invokeCreate method) field got false value, and the system will auto-generate the productFeatureId and ignore the user's input.

Similarly, we can't write in this way
{code}
<override name=productFeatureId type=String mode=OUT optional=false/>
<override name=productFeatureId type=String mode=IN optional=true/>
{code}

Because in this case, isSinglePkOut (in invokeCreate method) field got false value, and again the system will auto-generate the productFeatureId and ignore the user's input. 

Thanks:  Ulrich Heidfeld for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858319 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 11:54:42 +00:00
Jacques Le Roux c5e9931cfa Improved: Use auto-attributes in ProductFeatureCategory CRUD services
(OFBIZ-9608)

ProductFeatureCategory CRUD services have explicitly mentioned IN/OUT parameters
 in their service definition, like
<attribute name="description" type="string" mode="IN" optional="false"/>

Rather, the IN/OUT parameters for this crud services should have been written 
using auto-attribute, like
<auto-attributes include="nonpk" mode="IN" optional="true"/>

Thanks: Rohit Rai

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1805867 13f79535-47bb-0310-9956-ffa450edef68
2017-08-23 08:26:52 +00:00
Arun Patidar 91a7f26b7b Implemented: Added CRUD services for ProductAverageCostType, ProductCategoryContentType, ProductCategoryType, ProductCategoryTypeAttr, ProductContentType, ProductFeatureApplType, ProductFeatureIactnType, ProductMaintType, ProductMeterType, ProductOrderItem, ProductPriceActionType, ProductPriceAutoNotice, ProductStoreGroupType, ProductType, ProductTypeAttr and StatusType entities. Also converted services of ContactMechLink to entity-auto.
(OFBIZ-8731)(OFBIZ-8732)(OFBIZ-8733)(OFBIZ-8734)(OFBIZ-8735)(OFBIZ-8736)(OFBIZ-8737)(OFBIZ-8762)(OFBIZ-8763)(OFBIZ-8764)(OFBIZ-8765)(OFBIZ-8766)(OFBIZ-8771)(OFBIZ-8772)(OFBIZ-8773)(OFBIZ-8774)(OFBIZ-8807)

Thanks: Rahul Singh, Chinmay Patidar, Rohit Koushal and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768080 13f79535-47bb-0310-9956-ffa450edef68
2016-11-04 19:04:55 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Arun Patidar 6214091000 [OFBIZ-6910] Set productFeatureTypeId as INOUT in service defination so that calling service can use it for further processing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1731359 13f79535-47bb-0310-9956-ffa450edef68
2016-02-20 10:06:07 +00:00
Nicolas Malin 7f403dd028 I converted CRUD service to entity-auto for :
ProductFeatureCategory
    ProductFeature
    ProductFeatureAppl
    ProductFeatureCategoryAppl
    ProductFeatureCatGrpAppl
    ProductFeatureGroup
    ProductFeatureType
    ProductFeatureApplAttr
    ProductFeaturePrice


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628100 13f79535-47bb-0310-9956-ffa450edef68
2014-09-28 20:45:08 +00:00
Jacques Le Roux 1f76198b62 A patch from Sascha Rodekamp "Get new sequence number for product feature type if empty" (https://issues.apache.org/jira/browse/OFBIZ-4063) - OFBIZ-4063
When creating a new product feature type with no id entered the service will create a feature type id automatically.
This improves the usability because the user does not have the responsibility to choose valid/unique feature type id.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050190 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 22:12:37 +00:00
Adam Heath a372e64111 Add a missing attribute, recurringAmount, for service
updateFeatureToProductApplication.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995199 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:02 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Ashish Vijaywargiya 482a84b1a5 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755831 13f79535-47bb-0310-9956-ffa450edef68 2009-03-19 04:27:30 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Vikas Mayur 7bcc504101 Added productFeatureId as an optional attribute to createProductFeature service to facilitate user entered features
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683894 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 07:46:20 +00:00
Hans Bakker 15ee8dc9b4 rename FeaturePrice entity to ProductFeaturePrice and move the the related screens in the feature detailed info.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643847 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 11:10:32 +00:00
Hans Bakker 1e4afedbe0 add featurePrice and related screens and services for the upcoming feature selection on a product
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@643357 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 10:53:09 +00:00
Hans Bakker 3871290d4a add the feature interaction screen in the catalog, and cleanup the supplierfeature screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@642900 13f79535-47bb-0310-9956-ffa450edef68
2008-03-31 06:30:54 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato 0f3d92aafc Conversion from MIT to ASL2.0 for all the files of the product component.
Many thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422391 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 07:11:40 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00