fields mapping fixed
This commit is contained in:
parent
9375b517a0
commit
38da57c9b0
|
@ -88,13 +88,11 @@ public class ConvertToServiceModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> editors = mapFields.get("Editore");
|
List<String> editors = mapFields.get("Editore");
|
||||||
if(editors!=null) {
|
if(editors!=null && editors.size()>0) {
|
||||||
for (String editor : editors) {
|
concessione.setEditore(editors.get(0));
|
||||||
concessione.setEditore(editor);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> fontiFinanziamento = mapFields.get("Fonti del finanziamento");
|
List<String> fontiFinanziamento = mapFields.get("Fonte del finanziamento");
|
||||||
if(fontiFinanziamento!=null) {
|
if(fontiFinanziamento!=null) {
|
||||||
concessione.setFontiFinanziamento(fontiFinanziamento);
|
concessione.setFontiFinanziamento(fontiFinanziamento);
|
||||||
}
|
}
|
||||||
|
@ -109,10 +107,6 @@ public class ConvertToServiceModel {
|
||||||
concessione.setIntroduzione(introduzioneLst.get(0));
|
concessione.setIntroduzione(introduzioneLst.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
|
||||||
// concessione.setLastUpdateTime(lastUpdateTime);
|
|
||||||
// concessione.setLastUpdateUser(lastUpdateUser);
|
|
||||||
|
|
||||||
List<String> nomeLst = mapFields.get("Nome del progetto");
|
List<String> nomeLst = mapFields.get("Nome del progetto");
|
||||||
if(nomeLst!=null && nomeLst.size()>0) {
|
if(nomeLst!=null && nomeLst.size()>0) {
|
||||||
concessione.setNome(nomeLst.get(0));
|
concessione.setNome(nomeLst.get(0));
|
||||||
|
@ -206,19 +200,16 @@ public class ConvertToServiceModel {
|
||||||
relazioneScavo.setResponsabili(responsabiliLst);
|
relazioneScavo.setResponsabili(responsabiliLst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<String> autoreList = mapFields.get("Autore del documento");
|
||||||
|
if(autoreList!=null) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
||||||
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
||||||
relazioneScavo.setLicenseID(licenzaIdList.get(0));
|
relazioneScavo.setLicenseID(licenzaIdList.get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
|
||||||
//relazioneScavo.setCreationTime(creationTime);
|
|
||||||
//TODO
|
|
||||||
//relazioneScavo.setPolicy(policy);
|
|
||||||
//TODO
|
|
||||||
//Auto by library
|
|
||||||
//relazioneScavo.setTitolo(titolo);
|
|
||||||
|
|
||||||
return relazioneScavo;
|
return relazioneScavo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,6 +241,11 @@ public class ConvertToServiceModel {
|
||||||
uplaodedImage.setResponsabili(responsabileLst);
|
uplaodedImage.setResponsabili(responsabileLst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<String> autoreList = mapFields.get("Autore");
|
||||||
|
if(autoreList!=null) {
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
||||||
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
||||||
uplaodedImage.setLicenseID(licenzaIdList.get(0));
|
uplaodedImage.setLicenseID(licenzaIdList.get(0));
|
||||||
|
|
Loading…
Reference in New Issue