Author: echatellier Date: 2014-07-18 11:52:54 +0200 (Fri, 18 Jul 2014) New Revision: 420 Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/420 Log: Change fixme Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java =================================================================== --- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java 2014-07-18 09:50:27 UTC (rev 419) +++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/DemandeUIModel.java 2014-07-18 09:52:54 UTC (rev 420) @@ -193,14 +193,13 @@ } /** - * Surcharge pour dupliquer correctement les pieces jointes. - * - * FIXME echatellier 20140520 c'est pas terrible, mais c'est comme ca :p + * Surcharge pour dupliquer correctement les pieces jointes sans charger le contenu binaire en mémoire. */ public void fromEntity(Email entity, boolean full) { //super.fromEntity(entity); fromBeanBinder.copyExcluding(entity, this, Email.PROPERTY_ATTACHMENT); - // specific attachment copy + + // On ne copie pas entierrement les attachments pour ne pas force le chargement du contenu binaire du fichier en mémoire. Collection<Attachment> attachmentCopy = new ArrayList<Attachment>(); if (entity.getAttachment() != null) { for (Attachment attachment : entity.getAttachment()) {
participants (1)
-
echatellier@users.forge.codelutin.com