Commit Graph
25 Commits
Author SHA1 Message Date
Gil Portenseigne 9fbb3765e4 Implemented : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

This commit introduce a new way to manage file transfer in OFBiz.
Inspired by mailing communication event management, a new communicationEventTypeId is created ('FILE_TRANSFER_COMM').

Such commEvent with classics : partyIdFrom/partyIdTo/contactMechIdTo/entryDate etc. are analysed by a job (like sendEmailDated), to send associated contents to a configured FTP/SFTP/FTPS server. If failure happens, it is catched and stored in communicationEvent, waiting for a new try.

For this purpose :

A new contactMechTypeId is introduced (FtpAddress), with its corresponding table. This contactMech store needed information for basic user/password authentication (server url and protocol, port, username, password, etc.)
A new service sendFileTransferDated that will look for pending file transfer and call following service.
A new service sendCommEventAsFtp that take a selected commEvent, check its structure and manage its status after trying the associated content file transfers.
A new service sendContentToFtp, that take a content and transfer it to a given FtpAddress.
A seca createCommEventFromFtpTransfer on sendContentToFtp to manage plural content file transfer, creating children communicationEvent to follow each content transfer separately (only for several content transfers).
A new Interface FtpClientInterface, with the 3 implementations of FTP, FTPS (To Implement), SFTP clients to manage Ftp connection and transfer.
A new property file to enable and manage redirection for testing purpose.

With this implementation, creating a communicationEvent, with a FtpAddress contactMechIdTo, and sendFileTransferDated job planned, the file is transfered to the ftp : communication event status set to COM_COMPLETE, if error occured the communication event status is set to COM_BOUNCED with error message on communicationEvent note.

Thanks Rishi for your feedbacks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831867 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 15:53:35 +00:00
Divesh Dutta 600ebbf15d [OFBIZ-7518] Fixed: Unable to create Product Store Roles from Party manager. Thanks Ankush Upadhyay for your patch and Nicolas Malin for your suggestion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751357 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 17:56:45 +00:00
Pranay Pandey df478974a1 [OFBIZ-6089] - Fixed error in locating service ensureNaPartyRoleTo by removing it and using ensurePartyRoleTo and ensurePartyRoleFrom services instead.
Thanks Deepak Dixit for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661334 13f79535-47bb-0310-9956-ffa450edef68
2015-02-21 12:12:31 +00:00
Hans Bakker 573ffea86c remove all component dependent stamements out of commonext and make the systeminfo service more generic and not only serving portlets. Comment by Adrian in the userlist. No conversion program provided because this data is only temporary can can be deleted from a menu
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292180 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 08:35:59 +00:00
Hans Bakker f97b2fe488 create commevent from email did not render the subject causing display giving an error, removed a not required seca
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788589 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 05:48:26 +00:00
Andrew Zeneski abcbdc4504 added eca for sendMailFromScreen; also now updating the subject and sent dates after mail is sent
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774216 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 05:50:29 +00:00
Andrew Zeneski c6e2d87f49 refactored the way communication events are created from emails; there are two services (instead of 1) which run now:
1) in-validate -- creates the communication event so the communication event ID can be used by the send mail service
2) commit -- stores the message content, addresses and now also stores all attachments


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774198 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 05:01:13 +00:00
Andrew Zeneski 9fc7f85487 moved eca to call storeEmailAsCommunication to the party component where the service actually resides
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772971 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 13:20:12 +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
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 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
Andrew Zeneski 08362be9c0 implemented code to support pre-account email verification (verify email before account is created)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582705 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 03:48:24 +00:00
Andrew Zeneski d7136c6c80 now the AUTO_EMAIL_COMM type is treated just like standard EMAIL, not really sure why there are two, but not dealing with that right now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@571302 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:41:42 +00:00
Timothy Ruppert 11d4d3ae0d Removed default action of sending the user an email every time updatePerson is called
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@567372 13f79535-47bb-0310-9956-ffa450edef68
2007-08-19 08:38:15 +00:00
David E. Jones 2525b841c3 Changed these email notification ECAs to have async persisted actions to improve performance and better handle email system and setup errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556807 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 04:12:20 +00:00
Anil Patel 55e2a13518 Email notifications added for New Account creation and Account Information Updated. Sumit, Ashish, Thanks for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556116 13f79535-47bb-0310-9956-ffa450edef68
2007-07-13 19:32:04 +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
Si Chen cf68d65c11 One more change to contact list emails: the status remains in PENDING until the async send email service complets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@495066 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 00:44:55 +00:00
Andrew Zeneski a766bf43c9 uploadPartyContentFile now calls into the new content services, then calls the createPartyContent service. One step to upload a file attached to a user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@493123 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 18:31:21 +00:00
Andrew Zeneski a0bc39d451 refactored content implementations; added ability to upload documents to a user's profile
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492853 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 02:20:15 +00:00
David E. Jones cfe6dff777 Some more cleanups of the PartyContactMech related services; also removed ECAs that are redundant once this is done in a cleaner and more correct way; note that there is a lot of crap in there with weird dependencies and some other errors may be found (some changes here are based on that happening before), so there may be other changes needed in this area
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@464599 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 18:07:58 +00:00
Jacopo Cappellato eb26804ec7 License change from MIT to ASL2.0 for many of the files of the party components.
Thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422144 13f79535-47bb-0310-9956-ffa450edef68
2006-07-15 05:36:35 +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