Commit Graph
98 Commits
Author SHA1 Message Date
Jacques Le Roux 70ff1c5006 Fixed: createPartyGroupRoleAndContactMechs service not working (OFBIZ-11986)
As Akash Jain reported:

<<While researched on ticket OFBIZ-11896 identified that groovy version of
createPartyGroupRoleAndContactMechs service (converted from mini lang at rev
8af7cf8775 ) is not working.
Identify these two reasons,
    resolvePartyGroupMap called incorrectly
    resolvePostalAddressMap and resolveTelecomNumberMap implemented incorrectly
as 'postalAddress' and 'telecomNumber' map processor
not available into PartyMapProcs.xml.

There may be more reasons along with these two reasons.>>

He was so true to say the later!

There are also some intentionally or automated formattings.

Thanks: Akash for report, Sourabh Jain for shy tentative :)
2020-09-30 14:28:31 +02:00
Sebastian Berg 95f0eda361 Improved: Convert LeadServices.xml mini lang to groovy
(OFBIZ-11572)
2020-05-15 14:41:54 +02:00
Wiebke Pätzold 8af7cf8775 Improved: Converted AccountServices from mini lang to groovy
(OFBIZ-11413)

Added ServiceDefs createPartyContactMechs and createPartyGroupRoleAndContactMechs.
Also converted createPartyGroupRoleAndContactMechs because it is used in AccountServies and needed more return values.
2020-05-15 14:41:54 +02:00
Suraj Khurana f36a15b5a0 Improved: Converted all TrackingCodeOrder related CRUD services from simple to entity-auto (#92)
* Improved: Converted all TrackingCodeOrder related CRUD services from simple to entity-auto
(OFBIZ-11625)
2020-05-02 14:21:10 +05:30
Suraj Khurana 8f77e45f15 Improved: Converted all TrackingCodeOrderReturn related CRUD services from simple to entity-auto (#89)
* Improved: Converted all TrackingCodeOrderReturn related CRUD services from simple to entity-auto
(OFBIZ-11623)
2020-05-01 14:31:03 +05:30
Suraj Khurana 4f90498f5d Improved: Converted all TrackingCodeType entities from simple to entity-auto (#87)
* Improved: Converted all TrackingCodeType entities from simple to entity-auto
(OFBIZ-11615)
2020-05-01 10:44:32 +05:30
Jacques Le Roux 2dadaacac8 Fixed: Services allow arbitrary HTML for parameters with allow-html set to "safe"
(OFBIZ-5254)

This was reopened after discussion at 
https://markmail.org/message/jnaitmwahjcjmdn5

This is a new solution which follows the work done with OFBIZ-6669 and OFBIZ-10187
Roughly said, it uses org.owasp.html.PolicyFactory and org.owasp.html.Sanitizers

Thanks: Christoph Neuroth for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859877 13f79535-47bb-0310-9956-ffa450edef68
2019-05-24 13:47:08 +00:00
Deepak Dixit a2bc33efe0 Improved: Added missing permission check for MarketingCampaignRole update/expire/delete service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857547 13f79535-47bb-0310-9956-ffa450edef68
2019-04-15 06:09:25 +00:00
Deepak Dixit bb7b88757e Improved: Convert createMarketingCampaignRole service to entity-auto service
(OFBIZ-9551)
Thanks Suraj Khurana and Nicolas Malin for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857546 13f79535-47bb-0310-9956-ffa450edef68
2019-04-15 06:00:27 +00:00
Nicolas Malin acbd42387c Fixed: Update and clean deprecated code after release 18.12 creation
(OFBIZ-10761)
et all deprecated since='Upcoming Release' to since='Release 18.12'

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1850177 13f79535-47bb-0310-9956-ffa450edef68
2019-01-02 16:48:18 +00:00
Nicolas Malin 9ea367ab4c Improved: Convert createContactList service from simple to entity-auto (OFBIZ-9585)
thanks to Suraj Khurana for this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825296 13f79535-47bb-0310-9956-ffa450edef68
2018-02-25 09:21:45 +00:00
Deepak Dixit b90e4cfa53 Fixed: Party Id field missing while creating contact list party in the marketing component (OFBIZ-9698)
Thanks Rubia Elza Joshep for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1814928 13f79535-47bb-0310-9956-ffa450edef68
2017-11-11 08:47:12 +00:00
Jacques Le Roux 2382cd9cbd No functional change, these files were missing the ASL2 header
I stop here, please help at https://ci.apache.org/projects/ofbiz/rat-output.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812225 13f79535-47bb-0310-9956-ffa450edef68
2017-10-15 17:40:59 +00:00
Nicolas Malin e1aa36e229 Improved: Manage life span of marketing related entites (OFBIZ-9550)
Add life span attributes (fromDate, thruDate) on entities :
1) MarketingCampaignPrice
2) MarketingCampaignPromo
3) MarketingCampaignRole
Complete related CRUD service with align service name on the best pratice for consistency.
The previous service name has been set as deprecated :
* addPromoToMarketingCampaign replace by createMarketingCampaignPromo
* removePromoFromMarketingCampaign replace by deleteMarketingCampaignPromo
* addPriceRuleToMarketingCampaign replace by createMarketingCampaignPrice
* removePriceRuleFromMarketingCampaign replace by deleteMarketingCampaignPrice
These service has been deprecated with release information Upcoming Release to align with Jira ofbiz version
Thanks to Suraj Khurana to suggest this improvement.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1805961 13f79535-47bb-0310-9956-ffa450edef68
2017-08-23 21:23:16 +00:00
Deepak Dixit f71ec58bfb Fixed: Set required parameter as option false at service definition level.
(OFBIZ-8358)

Thanks Avnindra Sharma and Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768253 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 17:25:25 +00:00
Deepak Dixit 8ffec06b64 Fixed: Update Services that sets non-pk fields to null if not passed, if non-pks not passed than it should remain unupaded.
(OFBIZ-8722)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768239 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 16:28:57 +00:00
Divesh Dutta 5e92410b8f Improvement: Minilang code readability and consistency improvements.
(OFBIZ-9109)

Thanks: Ankush Upadhyay for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768237 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 16:18:54 +00:00
Deepak Dixit b9efe841ce Improved: Removed duplicate permission serivice for marketing, also renamed facilityManagerPermission service to more generic name facilityPermissionCheck
(OFBIZ-8013)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768190 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:24:54 +00:00
Deepak Dixit 3eca8d6aad Improved: Added generic permission service for following
- facility
- marketting
- return
- entitysync
Also moved  the permission check from implementation level to service defination level

(OFBIZ-8673)(OFBIZ-8673)(OFBIZ-8674)(OFBIZ-8739)(OFBIZ-8823)(OFBIZ-8825)(OFBIZ-8827)(OFBIZ-8850)(OFBIZ-8876)(OFBIZ-8875)(OFBIZ-8824)(OFBIZ-8826)(OFBIZ-8851)

Thanks Nameet Jain for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768188 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:10:57 +00:00
Arun Patidar 462e91ffb6 Implemented: Added CRUD services for CountryAddressFormat, ExampleFeatureApplType, GoodIdentificationType, InventoryItemType, InventoryItemTypeAttr, InvoiceContentType, InvoiceItemTypeAttr, InvoiceItemTypeMap, InvoiceType, NeedType, OrderAdjustmentTypeAttr, SalesOrderItemFact, SegmentGroupType, ShipmentGatewayConfigType, ShipmentGatewayDhl, ShipmentGatewayFedex, ShipmentType, ShippingDocument and ShoppingListType entities.
(OFBIZ-8087) (OFBIZ-8204) (OFBIZ-8245) (OFBIZ-8248) (OFBIZ-8249) (OFBIZ-8257) (OFBIZ-8261) (OFBIZ-8267) (OFBIZ-8270) (OFBIZ-8279) (OFBIZ-8284) (OFBIZ-8437) (OFBIZ-8439) (OFBIZ-8455) (OFBIZ-8460) (OFBIZ-8461)
(OFBIZ-8470) (OFBIZ-8473) (OFBIZ-8478)

Thanks: Rohit Koushal, Aman Mishra, Chinmay Patidar and Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767101 13f79535-47bb-0310-9956-ffa450edef68
2016-10-29 09:01:09 +00:00
Arun Patidar ad2ca7999c Implemented: Added CRUD services for ShipmentGatewayUps and SalesOpportunityQuote entities.
(OFBIZ-8463) (OFBIZ-8432)

Thanks: Rahul Singh Kushwah and Rishi Solanki for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766109 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 19:01:59 +00:00
Arun Patidar 08c804c4cb Implemented: Added CRUD services for SalesOpportunityRole, SalesOpportunityStage, SalesOpportunityTrckCode, SalesOpportunityWorkEffort, SecurityGroup, SettlementTerm, ShipmentGatewayUsps, and ShipmentItemFeature entities.
(OFBIZ-8433) (OFBIZ-8434) (OFBIZ-8435) (OFBIZ-8436) (OFBIZ-8438) (OFBIZ-8441) (OFBIZ-8464) (OFBIZ-8466)

Thanks: Rahul Singh Kushwah, Rishi Solanki for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766092 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 18:22:00 +00:00
Arun Patidar df0b68f720 Implemented: Added CRUD services for GlFiscalType, GlResourceType, GlXbrlClass, GlResourceType, InvoiceAttribute, InvoiceItemAssocType, InvoiceNote, MarketingCampaignNote, OrderContent, SalesOpportunityCompetitor
(OFBIZ-8237) (OFBIZ-8238) (OFBIZ-8239) (OFBIZ-8240) (OFBIZ-8256) (OFBIZ-8258) (OFBIZ-8268) (OFBIZ-8274) (OFBIZ-8288) (OFBIZ-8431)

Thanks: Rahul Singh Kushwah, Rishi Solanki and Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766083 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 17:39:47 +00:00
Pranay Pandey 682a14a7ad Fix for: Profile of contact person not shown on quick add of contact in SFA.
(OFBIZ-7816)

Here 'createContact' service was not returning 'roleTypeId' and it is required to fetch the record from 'RoleTypeAndParty' entity.

Thanks: Aditi for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761118 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 05:42:51 +00:00
Arun Patidar 5d0d509131 Applied patch from jira issue - OFBIZ-8059 - Added CRUD services for ContactListType entity . Thanks Amit Gadaley and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759098 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 16:02:06 +00:00
Deepak Dixit 4d38999495 (OFBIZ-7620) Applied patch from jira issue
================================
Add "changeByUserLoginId" field for ContactListCommStatus
================================
Thanks Nameet for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1758033 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 13:53:17 +00:00
Jacques Le Roux 8862bd2bd4 Reverts r1757130, done for "remove build dependency of Order on Marketing" https://issues.apache.org/jira/browse/OFBIZ-7966
Jacopo has some other objections

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757220 13f79535-47bb-0310-9956-ffa450edef68
2016-08-22 16:11:56 +00:00
Jacques Le Roux a6a7f9818c A modified patch from Pierre Smits for "remove build dependency of Order on Marketing" https://issues.apache.org/jira/browse/OFBIZ-7966
Currently there is a build dependency from order - CheckOutEvents.java on marketing - TrackingCodeEvents.java
The createOrder function (in CheckOutEvents.java) calls the makeTrackingCodeOrders function in TrackingCodeEvents.java

jleroux: I merged parts of the 2 patches, the 2nd was good but missing the makeTrackingCodeOrders service definition. I also fixed the warning about trackingCodeOrdersList creation not being generic


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757130 13f79535-47bb-0310-9956-ffa450edef68
2016-08-22 09:58:35 +00:00
Nicolas Malin 747234bda3 With the suppression of all jar to download them form jcenter, the jpim.jar isn't present.
To resolve this issue we can convert the current use for import/export vcard by an other api ez-vcard (https://github.com/mangstadt/ez-vcard) under bsd licence and present on jcenter.

The refactoring raise some problem on existant code, we will try with Gil to improve the import/export to grow data conversion to functional framework.
Some improve on import :
 * check if more than one email is present before check the prefered else take the one
 * check if more than one phone is present before check the prefered else take the one
 * check if more than one address is present before check the prefered else take the one
 * When you load a party by vcard, initialize a reference by fn attribute on PartyIndentification to escape the second loading
Will need continue improve the import like correct Organization loading, update process, add service to detect already party present
I also improve the screen result to display all parties loaded by the import and all already present.
The solution isn't perfect but it's work and compile, first purpose to delete jpim.jar is done :)
Related issue OFBIZ-7961


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1756949 13f79535-47bb-0310-9956-ffa450edef68
2016-08-19 17:33:15 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Pranay Pandey e314e8a5ee [OFBIZ-7519] Updated optionality to required for attributes in entity auto services where pk fields were mentioned optional. It helps service engine to validate IN attributes and return error for missing ones.
Cases considered for this update are:
 1. One PK: Takes new sequence if PK not passed.
 2. Two PK: Both PK should be mandatory except the case of secondary primary key (like agreementItemSeqId) where next subsequence is generated.
 3. More than two PK's, all PK's should be mandatory except the fromDate.
 Thanks Amardeep Singh Jhajj for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749532 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 14:37:30 +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
Nicolas Malin 74da8e5999 I converted crud services from simple to entity-auto for entities SalesOpportunity and SalesForecastDetail, related issue OFBIZ-6853
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726338 13f79535-47bb-0310-9956-ffa450edef68
2016-01-22 23:01:08 +00:00
Jacques Le Roux 8a110baf4a A slightly modified patch from Chula Lathong for <<Bug on SFA vcard import.>> https://issues.apache.org/jira/browse/OFBIZ-6795
Error occur when create Lead/Contact from Vcard.
This patch will improve importVcard service to able to create Lead/Contact from Vcard and display error messages when Vcard has invalid values.

jleroux: I simply changed the importVCard service transaction-timeout from 72000 (20 hours!) to 7200. Also added corresponding French labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724763 13f79535-47bb-0310-9956-ffa450edef68
2016-01-15 10:18:00 +00:00
Jacopo Cappellato 3b55a49974 OFBIZ-5012: converted some of the marketing simple services to entity-auto services. Based on a patch contributed by Nicolas Malin, but manually applied and modified in several places because the original patch had some issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606097 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:48:15 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Adrian Crum e99f864f55 A bunch of work in Marketing Campaign: fixed UI layout, removed redundant and unused services, fixed services that didn't work.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292343 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 15:26:39 +00:00
Adrian Crum d586fc7d9e Removed empty (and apparently unused) Marketing Segment find services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162498 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 11:29:18 +00:00
Adrian Crum 4d93f89f5a Converted Marketing Segment CRUD services to entity-auto.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162496 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 11:12:57 +00:00
Hans Bakker 4102bee329 update websiteContactlist entity according Jacopo's comments, added services and screens to website and contactlist to maintain the data, a contribution of 'M', an employee of antwebsystems.com
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1159508 13f79535-47bb-0310-9956-ffa450edef68
2011-08-19 05:57:25 +00:00
Hans Bakker 90f0ed36bd (un)subscribe contactlist did not select active records only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1152073 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 02:00:19 +00:00
Hans Bakker da2464dea3 change baselocation to baseLocation, a suggestion from Nicolas
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148680 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 10:11:20 +00:00
Hans Bakker 5c79a496d9 correction on commit 1147733 to have the baseurl available in the contactlist email content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148648 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 08:22:07 +00:00
Hans Bakker a31572006b several improvements and completion of the email contactlist subscribe and unsubscribe functions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052447 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 04:37:20 +00:00
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Ashish Vijaywargiya a220091a5c Applied patch from jira issue - OFBIZ-3635 - Contact list unsubscription email notification.
Thanks Chandan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930842 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 11:25:08 +00:00
Jacques Le Roux 6d8d5a0fcd Another step in enhancing the importVCard service.
Now it differentiates between a PartyGroup and a Person. 
This enables to load a PostalAddress and a PartyGroup.groupName for now.
Also now the personalTitle may be loaded for a Person.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898473 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 19:19:22 +00:00
Jacques Le Roux b2a7c760e4 Fix VCard Import
I always think that enhanced loops are treating null as empty collection (and I agree with http://www.efsavage.com/blog/posts/java-goofs-enhanced-for-loop/)
Anyway I also put serviceContext as mandatory which was an error

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898266 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 09:16:06 +00:00
Jacques Le Roux 5119c6e181 Enhance the importVCard service to allow to use other services than the one used OOTB.
I have simply added a serviceContext map which may receive the extra parameters needed by other services. These services still need to create a Party.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898030 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 19:49:20 +00:00
Hans Bakker 364d0505aa added html=safe to opportunity services text fields and move the servicedef from order to marketing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820898 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 06:38:05 +00:00