Commit Graph
84 Commits
Author SHA1 Message Date
Hans Bakker 7c79a878a6 allow html in header and messageId of commevent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766617 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 08:36:50 +00:00
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.

If anyone has a better solution, please feel free to revert this commit and change it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:33:43 +00:00
Andrew Zeneski abe1040134 a few updates to improve managing communication events with contact lists; added new status for bounced messages, invalidate subscribers from the list(only works if the SMTP server does not accept the address); started working on communication preview (very early ALPHA)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765477 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 05:59:33 +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
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
David E. Jones 3eee2073cc Moved some party dependent services out of the framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757644 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 03:44:59 +00:00
Jacques Le Roux 302c97e4cb Following Ashish's commit at r755572:
Followed best practice.
Changed location="org/ofbiz/......... to location="component://party/script/org/ofbiz......

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755658 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 17:21:14 +00:00
Ashish Vijaywargiya e20914f899 Followed best practice.
Changed location="org/ofbiz/......... to location="component://party/script/org/ofbiz......

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755572 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 12:04:59 +00:00
David E. Jones d5516d28b2 Adjusted the cleanup from Jacques to not include the mode and optional attributes in the override elements since they are the same as in the auto-attributes element and so don't need to be overridden, just the allow-html does
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745947 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 17:54:01 +00:00
Jacques Le Roux 3a6a544d2a Per David's advice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745787 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 09:28:41 +00:00
Jacques Le Roux d99c0283a3 We need this in order to https://issues.apache.org/jira/browse/OFBIZ-2000 to work (and some others I guess)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745614 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 19:10:47 +00:00
David E. Jones f27b4eeaaa No functional changes, just reorganizing code: moved email services from content to the framework/common component except the CommunicationEvent related ones which are now in the party component along with other CommunicationEvent resources; changed framework components so that webapp no longer depends on common and common is higher level than the various tool components which was an odd dependency before; one new thing is in here and that is an entity called EmailTemplateSetting which is meant to be a generic version of the ProductStoreEmailSetting entity so we can have configurable email templates without depending on ProductStore, still need to write the service to send email from this (sendMailFromTemplateSetting)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744727 13f79535-47bb-0310-9956-ffa450edef68
2009-02-15 19:34:49 +00:00
Vikas Mayur 8476344988 Applied slightly modified patch from Santosh Malviya, Rahul Satalkar.
"Send email notification when a new user is created" OFBIZ-2123(https://issues.apache.org/jira/browse/OFBIZ-2123)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739813 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 18:47:27 +00:00
Scott Gray 89a2de8d5d Reverting some stuff that I accidentally committed to the type cleanup branch which then made it's way into the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@734023 13f79535-47bb-0310-9956-ffa450edef68
2009-01-13 04:28:01 +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
Si Chen a3348f496e Allow email matching to be non case sensitive, so SiChen@opentaps.org would map to sichen@opentaps.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@720570 13f79535-47bb-0310-9956-ffa450edef68
2008-11-25 19:40:33 +00:00
Jacques Le Roux db2fd711a4 Fix "Can't create a customer, nor a prospect and I suppose an employee" (https://issues.apache.org/jira/browse/OFBIZ-2058) - OFBIZ-2058
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@719926 13f79535-47bb-0310-9956-ffa450edef68
2008-11-22 21:50:16 +00:00
Vikas Mayur a3134d6a5d Fix:Inplace editor on new profile pages was not working.
Applied a slightly modified patch from Jira Issue OFBIZ-2004 (https://issues.apache.org/jira/browse/OFBIZ-2004)
Thanks to Kirti Dhakad and Rishi Solanki.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@705879 13f79535-47bb-0310-9956-ffa450edef68
2008-10-18 12:45:22 +00:00
Hans Bakker 84a801bb02 show partystatus and externalId on partyscreens, and popups only show parties which have the status party_enabled
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701341 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 10:16:58 +00:00
Jacques Le Roux e828b11da4 Solves CommunicationEventRole issues in eCommerce
1) Contact us (request contactsubmit)  
2) Send  email (request sendmessage)
Should not affect other createCommunicationEvent or createCommunicationEventRole calls

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@699636 13f79535-47bb-0310-9956-ffa450edef68
2008-09-27 13:18:56 +00:00
Jacques Le Roux 619716e726 Seems logical than CREATE, UPDATE and DELETE permissions are used when you respectively create, update and remove
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@699608 13f79535-47bb-0310-9956-ffa450edef68
2008-09-27 09:02:43 +00:00
Vikas Mayur 95f49da9af Done following changes:
1) Converted all of these events to services "createUpdatePerson, createUpdateEmailAddress, createUpdateTelecomNumber, createUpdateUserLogin, 
   createUpdateShippingAddress, createUpdateBillingAddress, createUpdateCreditCard"
2) Added Demo data for telecom number for DemoCustomer so that this party can do checkout on One page checkout.
3) Modified behaviour of billing and shipping telecom number field on new customer page with respect to check box "Billing is the same as the shipping address" and 
   corresponding changes to createCustomerProfile event. Now billing and shipping phone numbers are handled separtely from billing and shipping addresses resp.
4) Misc. changes to profile Java Script and one page template.

Thanks to Rishi Solanki, Santosh Malviya, Brajesh Patel and Sumit Pandit (for review) for this contribution.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@692448 13f79535-47bb-0310-9956-ffa450edef68
2008-09-05 14:08:18 +00:00
Vikas Mayur c0dd3d7099 More improvements to new profile and customer pages ..
1) Display client side error message for email in EditProfile.ftl from uilabel.
2) Remove unused code from ViewProfile.ftl.
3) Formated PartyContactMechServices.xml  file.
4) Proper comment for service definition  updatePostalAddressAndPurposes  and updateContactMechAndPurposes.

Thanks to Sumit Pandit, Brajesh Patel and Rishi Solanki for this contribution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@690150 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 08:35:50 +00:00
Vikas Mayur 3ab0dcb930 Adding completely new screens for customer and profile pages which are more compliant to industry standards.
To use these screens comment existing newcustomer and viewprofile screen and uncomment the new ones which has same names.

Entity Change: A new field is added to check default billing address in PartyProfileDefaults.
As this new stuff becomes matured and community accept this as default then we can remove older stuff.

Thanks to Sumit Pandit, Rishi Solanki, Brajesh Patel and Santosh Malviya for there valuable contribution.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688081 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 13:40:31 +00:00
Hans Bakker 484567da28 move createCustRequest from the party to the order component, utilize the requestItem for creation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681372 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 13:55:11 +00:00
Hans Bakker 5cb0d70227 created a setCommunicationRoleStatus service with minor other changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680484 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 20:36:45 +00:00
Hans Bakker fa6b7cec12 check in create contactmech service if the contactmech infostring is already existing, if so do not create again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680157 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 17:37:46 +00:00
Hans Bakker 34a9d240b3 ad an optional parameter to the delete communication role service to delete the communication event if there are no roles left
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@679549 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 21:19:05 +00:00
Hans Bakker 8096e9634c first version of issue OFBIZ-1886: add statusId field to communicationrole, more testing and additions will follow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678605 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 00:52:16 +00:00
Hans Bakker 095807ff87 added a communication set status service, some cleanups and usage of the roles in comunication selections
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678342 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 04:22:19 +00:00
Hans Bakker b568d5118b create a customer request from (email) communicationEvent to be able to import email assignements via requests into the projectmanager
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677051 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15 21:33:06 +00:00
Vikas Mayur 98fdf1ddfd Applied patch (for Autocomplete feature on Country and State field on Step 2: Shipping Information of One Page Checkout) from Jira Issue OFBIZ-1871(https://issues.apache.org/jira/browse/OFBIZ-1871). Thanks to Rishi Solanki, Jyotsna Rathore, Sumit Pandit and 'Gurudev' aka Brajesh Patel :)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675934 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 12:26:40 +00:00
Vikas Mayur 3b570802c0 Fix grammatical mistake Sheduled --> Scheduled
Change comments with respect to changes in the status used in service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@673908 13f79535-47bb-0310-9956-ffa450edef68
2008-07-04 05:21:48 +00:00
Hans Bakker c91fd3011a introduction of a sheduled job which is executed every 5 minutes and which send entered emails. This job also allows to send emails in the future.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@673309 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 07:53:29 +00:00
Ashish Vijaywargiya 46fcf2a813 Applied patch from JIRA issue (Add partyType in the search criteria of findPaty service) :- https://issues.apache.org/jira/browse/OFBIZ-1793
Thanks to Jyotsna Rathore for working on this.
This changes will be used in the upcoming patch on SFA.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@656581 13f79535-47bb-0310-9956-ffa450edef68
2008-05-15 10:50:13 +00:00
Vikas Mayur 8c4c9de9e0 misc improvements in email notification on new account creation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654160 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 16:15:55 +00:00
Vikas Mayur b403199c46 Changed sendCreatePartyEmailNotification service attribute name to emailAddress, moved services from events to services file which is a more logical placeholder with little cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654074 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 11:35:51 +00:00
Scott Gray 3b9cedb7c9 Fixed a bunch of bugs (mostly typos) that show up while generating the artifact information
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653201 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 11:34:32 +00:00
Vikas Mayur 5844569dfb Improvement in findParty Service to show only the parties that have relationship with logged in user, it will be used in SFA webapp
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638371 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 14:10:15 +00:00
Ashish Vijaywargiya a23a9320c8 Applied patch from JIRA Issue # 1647
Logged in party is not able to update its own status (disable his profile)

Thanks Mridul for your patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628079 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 15:03:44 +00:00
Adrian Crum 26c5622251 Party communication event UI changes. Also fixed the related permission service. I changed the ListPartyCommEvents screen to list the most recently changed events first - in my experience, people prefer to have the most recent stuff on top. If there are any objections I'll put it back.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614065 13f79535-47bb-0310-9956-ffa450edef68
2008-01-22 00:12:45 +00:00
Jacques Le Roux 41781362d8 Finally complete commits 611236 and 611257 with Adrian's help : https://issues.apache.org/jira/browse/OFBIZ-1563?focusedCommentId=12558149#action_12558149
OFBIZ-1563


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611330 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 23:27:10 +00:00
Jacques Le Roux 513164a9af Revert a change from my previous commit 611236 <<A patch from Abhijit Meshram "Re-Factor Party CommunicationEvent permissions to follow new patterns." (https://issues.apache.org/jira/browse/OFBIZ-1563) - OFBIZ-1563>>
Since in this particular case creation is allowed for him/herself, see implementation.

I don't know if there is a better way (generalised) to deal with such cases so for now I simply revert. Please advice if a better solution exists, thanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611257 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 18:42:51 +00:00
Jacques Le Roux f1afe33432 A patch from Abhijit Meshram "Re-Factor Party CommunicationEvent permissions to follow new patterns." (https://issues.apache.org/jira/browse/OFBIZ-1563) - OFBIZ-1563
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611236 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 17:09:39 +00:00
Hans Bakker 29c00ca6a7 added a new service getPartyTelephone
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@603810 13f79535-47bb-0310-9956-ffa450edef68
2007-12-13 03:45:29 +00:00
Anil Patel e325ca9fb9 services to accept/decline/cancel party invitation and related security services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597310 13f79535-47bb-0310-9956-ffa450edef68
2007-11-22 06:32:16 +00:00
Anil Patel 67e362c40a CRUD services for PartyInvitation assocs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594790 13f79535-47bb-0310-9956-ffa450edef68
2007-11-14 07:29:27 +00:00
Adrian Crum cfb0bb8b4c Moved Party Manager embedded permission checking to new permission checking service.
Some important notes about this commit:

1. This commit changes some of the Party Manager permission checking behavior. The previous extended permission checks (PARTYMGR_CME, PARTYMGR_GRP, PARTYMGR_PCM, PARTYMGR_QAL, PARTYMGR_REL, PARTYMGR_ROLE, PARTYMGR_STS, PARTYMGR_SRC) only checked those permissions, and not the base (PARTYMGR) permission. This commit checks both sets of permissions - PARTYMGR and PARTYMGR_xxx. Example: to create a party relationship the following permissions would be checked - PARTYMGR_CREATE, PARTYMGR_ADMIN, PARTYMGR_REL_CREATE, PARTYMGR_REL_ADMIN.

This change was discussed on the dev ml - http://mail-archives.apache.org/mod_mbox/ofbiz-dev/200710.mbox/%3c47150A51.6080908@hlmksw.com%3e

2. There are a number of security holes in the Party Manager services - some services have no permission checking. I didn't attempt to fix those issues in this commit because I believe they should be discussed on the mailing list first.

3. This commit adds a new error message property (PartyPermissionErrorPartyId) to the PartyUiLabels.properties file. In the international copies of that file I copied an existing error message to the new property - international users should update their versions by replacing "this operation" with "${resourceDescription}".

4. Some of the Party Manager services have not been converted to the new permission checking service - communication events for example. I ran out of time.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589144 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 16:16:25 +00:00
Jacques Le Roux 675cb04884 A patch from Skip Dever "Entering a noteId in the AddPartyNote screen causes a foreign key error" (https://issues.apache.org/jira/browse/OFBIZ-1357) - OFBIZ-1357
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@589084 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 12:12:49 +00:00
David E. Jones 75c26763e5 Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00