From: Kieran K. <kel...@gm...> - 2011-01-14 12:31:10
|
Oops, sorry. That was the "standard answer" for EO post-save events hooks. ;-) For the specific case of ERAttachment, you can probably tackle this with a IERAttachmentProcessorDelegate implementation for S3 storage type. public class JesseS3Delegate implements IERAttachmentProcessorDelegate And them implement it in your startup logic with code that looks something like this: ERS3AttachmentProcessor myS3Processor = new ERS3AttachmentProcessor(); myS3Processor.setDelegate(new JesseS3Delegate()); ERAttachmentProcessor.addAttachmentProcessorForType(myS3Processor, ERS3Attachment.STORAGE_TYPE); HTH, Kieran On Jan 13, 2011, at 10:58 PM, Jesse Tayler wrote: > should I be using my own subclass of ERAttachment in order to hear didInsert after the attachment gets saved? > > > On Jan 13, 2011, at 10:48 PM, Kieran Kelleher wrote: > >> Overide ERXGenericRecord.didInsert and didUpdate in your EOs. >> >> Regards, Kieran. >> (Sent from my iPhone) >> >> >> On Jan 13, 2011, at 10:36 PM, Jesse Tayler <jt...@oe...> wrote: >> >>> >>> I'd like to trigger some events post-save, and I'd typically do this by listening to EOEditingContext didSave notification and look through the objects for any I'm interested in. >>> >>> I wonder if there's a WOnder methodology I should check out? >>> >>> I need to trigger a thumbnail generating unix script after an attachments saves to S3, this requires the final primaryKey. >>> >>> Any advice for what simplest/most WOnder'ish ? >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Protect Your Site and Customers from Malware Attacks >>> Learn about various malware tactics and how to avoid them. Understand >>> malware threats, the impact they can have on your business, and how you >>> can protect your company and customers by using code signing. >>> http://p.sf.net/sfu/oracle-sfdevnl >>> _______________________________________________ >>> Wonder-disc mailing list >>> Won...@li... >>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >> > |