private void initializeBilBag() { BagInfoTxt bagInfoTxt = bilBag.getBagInfoTxt(); if (bagInfoTxt == null) { bagInfoTxt = bilBag.getBagPartFactory().createBagInfoTxt(); /* */ Set<String> keys = bagInfoTxt.keySet(); for (Iterator<String> iter = keys.iterator(); iter.hasNext();) { String key = iter.next(); bagInfoTxt.remove(key); } /* */ bilBag.putBagFile(bagInfoTxt); } BagItTxt bagIt = bilBag.getBagItTxt(); if (bagIt == null) { bagIt = bilBag.getBagPartFactory().createBagItTxt(); bilBag.putBagFile(bagIt); } }
/** * */ private void initializeBilBag() { BagInfoTxt bagInfoTxt = bilBag.getBagInfoTxt(); if (bagInfoTxt == null) { bagInfoTxt = bilBag.getBagPartFactory().createBagInfoTxt(); /* */ final Set<String> keys = bagInfoTxt.keySet(); for (final String key : keys) { bagInfoTxt.remove(key); } /* */ bilBag.putBagFile(bagInfoTxt); } BagItTxt bagIt = bilBag.getBagItTxt(); if (bagIt == null) { bagIt = bilBag.getBagPartFactory().createBagItTxt(); bilBag.putBagFile(bagIt); } }
/** * @param bagInfoTxt BagInfoTxt */ public void update(final BagInfoTxt bagInfoTxt) { updateBagInfoFieldMapFromBilBag(bagInfoTxt); sourceOrganization = new BaggerSourceOrganization(bagInfoTxt); toContact = new Contact(true); toContact.setContactName(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_NAME, bagInfoTxt.getOrDefault(Contact.FIELD_TO_CONTACT_NAME, ""))); toContact.setTelephone(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_PHONE, bagInfoTxt.getOrDefault(Contact.FIELD_TO_CONTACT_PHONE, ""))); toContact.setEmail(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_EMAIL, bagInfoTxt.getOrDefault(Contact.FIELD_TO_CONTACT_EMAIL, ""))); for (final String key : bagInfoTxt.keySet()) { final BagInfoField infoField = new BagInfoField(); infoField.setLabel(key); infoField.setName(key); infoField.setValue(bagInfoTxt.get(key)); infoField.isEditable(true); infoField.isEnabled(true); fieldMap.put(key, infoField); } }
for (String key : bagInfoTxt.keySet()) { BagInfoField infoField = new BagInfoField(); infoField.setLabel(key);