private void updateBagInfoFieldMapFromBilBag(BagInfoTxt bagInfoTxt) { if (fieldMap != null) { for(Entry<String, BagInfoField> entry : fieldMap.entrySet()){ String value = bagInfoTxt.get(entry.getKey()); entry.getValue().setValue(value); } } }
/** * @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); } }
/** * @param bagInfoTxt BagInfoTxt */ private void updateBagInfoFieldMapFromBilBag(final BagInfoTxt bagInfoTxt) { if (fieldMap != null) { for (final Entry<String, BagInfoField> entry : fieldMap.entrySet()) { final String value = bagInfoTxt.get(entry.getKey()); entry.getValue().setValue(value); } } }
toContact = new Contact(true); if (bagInfoTxt.containsKey(Contact.FIELD_TO_CONTACT_NAME)) { toContact.setContactName(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_NAME, bagInfoTxt.get(Contact.FIELD_TO_CONTACT_NAME))); toContact.setTelephone(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_PHONE, bagInfoTxt.get(Contact.FIELD_TO_CONTACT_PHONE))); toContact.setEmail(ProfileField.createProfileField(Contact.FIELD_TO_CONTACT_EMAIL, bagInfoTxt.get(Contact.FIELD_TO_CONTACT_EMAIL))); infoField.setLabel(key); infoField.setName(key); infoField.setValue(bagInfoTxt.get(key)); infoField.isEditable(true); infoField.isEnabled(true);
String lcProject = bilBag.getBagInfoTxt().get(DefaultBagInfo.FIELD_LC_PROJECT); if (lcProject != null && !lcProject.isEmpty()) { log.debug("Getting [{}] profile", lcProject);
final String lcProject = bilBag.getBagInfoTxt().get(DefaultBagInfo.FIELD_LC_PROJECT); if (lcProject != null && !lcProject.isEmpty()) { log.debug("Getting [{}] profile", lcProject);