protected void addSubAwdAttachments ( BudgetSubAwardsContract budgetSubAwards ) { List < ? extends BudgetSubAwardAttachmentContract > subAwardAttachments = budgetSubAwards . getBudgetSubAwardAttachments ( ) ; for ( BudgetSubAwardAttachmentContract budgetSubAwardAttachment : subAwardAttachments ) { AttachmentData attachmentData = new AttachmentData ( ) ; attachmentData . setContent ( budgetSubAwardAttachment . getData ( ) ) ; attachmentData . setContentId ( budgetSubAwardAttachment . getName ( ) ) ; attachmentData . setContentType ( budgetSubAwardAttachment . getType ( ) ) ; attachmentData . setFileName ( budgetSubAwardAttachment . getName ( ) ) ; addAttachment ( attachmentData ) ; } }
Adding attachments to subaward