Regards Scott
On 19/09/2009, at 12:57 AM, Abdullah Shaikh wrote:
Yes, initially I thought of that, i.e. to wrap the worker method by service,but both the methods expects ServletRequest object as the parameter. Regarding moving the code to the service, there is another issue, the getPartyPostalAddresses returns contactMech, partyContactMech &partyContactMechPurposes objects in the result and retrieved by the groovyfile where this method is called, same is the issue with getCurrentPostalAddres. I guess we can commit the patch for getPartyPostalAddress, as it just returns the postaladdress of the specified party and the specified contactMechPurposeTypeId which is optional. Any other thoughts ?On Fri, Sep 18, 2009 at 6:00 PM, Scott Gray <[email protected] >wrote:I wouldn't attempt to call the service from the worker method, doing sowould require that the be signature changed which means you have todeprecate the existing method and create a new one (which is a bit pointless because callers might as well call the service themselves). I would either use the service to wrap the worker method or otherwise move the code toservice and deprecate the worker. Regards Scott HotWax Media http://www.hotwaxmedia.com On 18/09/2009, at 9:23 PM, Abdullah Shaikh wrote: cool I will do that .... it's more clear nowOn Fri, Sep 18, 2009 at 2:41 PM, Jacques Le Roux < [email protected]> wrote: From: "Abdullah Shaikh" <[email protected]>I got confused. You meant that you will commit the already providedpatch ?.It was really a cursory review and I must I did not thought about generalising. I was having ContactMechWorker.getCurrentPostalAddress &ContactMechWorker.getPartyPostalAddresses, in my mind, what I was thinkingwas that to make the getPartyPostalAddress service in java by taking the code out of the ContactMechWorker methods, and calling this service fromtheContactMechWorker class, or should we let ContactMechWorker methods asit is? and the getPartyPostalAddress service in simple-method as alreadyprovided ? Let me know.Yes you are right, but be sure to mimic exactly current behaviours. Thanks Jacques On Fri, Sep 18, 2009 at 1:06 PM, Abdullah Shaikh <[email protected]> wrote: Hi Jacques,I will provide the patch as discussed. Just to be sure, what I need to do is :1) Create a service to get party postaladdress (getPartyPostalAddress) 2) Call this service from the ContactMechWorker.getCurrentPostalAddress& ContactMechWorker.getPartyPostalAddresses The patch that I already submitted, won't suffice, for theContactMechWorker methods, I guess. I will need to change it to make itworkas per ContactMechWorker methods, so as to get it called from thesemethods. Thanks, Abdullah On Fri, Sep 18, 2009 at 12:49 PM, Jacques Le Roux < [email protected]> wrote: Hi Abdullah,I had a quick look and it seems good. I will commit I guess. Thanks (and thank you to Sumit for the link and 1st review) Jacques From: "Abdullah Shaikh" <[email protected]> I feel that we should have this service,1) To get party's data, either we should have all the code in a classor allshould be exposed as a service, to avoid confusion. Right now, it's partially from the service (i.e. email & telephone) and partiallyfrom the ContactMechWorker class. All should be exposed as a service. 2) Also, as in the case of email & telephone, we can export the service, no service for postal address to export.Does this makes sense ?, if yes, then I thought of making a servicewrapper for ContactMechWorker.getCurrentPostalAddress &ContactMechWorker.getPartyPostalAddresses, but then I noticed thatone ofthe parameter for these methods is ServletRequest object. In thiscase whatcan be done is create a service and can it from the methods above,instead of they hitting the delegator.Please let me know your thoughts ? or am I missing something else ?On Fri, Sep 18, 2009 at 2:54 AM, Jacques Le Roux < [email protected]> wrote: There are ContactMechWorker.getCurrentPostalAddress ContactMechWorker.getPartyPostalAddressesBut yes no services, maybe because it's not needed ? Jacques From: "Abdullah Shaikh" <[email protected]> There are services to get the party telephone & email, getPartyTelephone &getPartyEmail respectively, but no service to get the party postaladdress.I can submit a patch for getPartyPostalAddress service, to get theparty's postal address. What do you think ?
smime.p7s
Description: S/MIME cryptographic signature
