Moved to LinkedHashMap

This commit is contained in:
Francesco Mangiacrapa 2022-03-07 16:42:24 +01:00
parent f83312dbf3
commit 70b4d02a5d
2 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package org.gcube.portlets.widgets.mpformbuilder.client.form.generic;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -573,7 +574,7 @@ public class CreateMetadataForm extends Composite implements HasGenericFormListe
//Set<String> tags = new HashSet<String>(tagsPanel.getTags()); //Set<String> tags = new HashSet<String>(tagsPanel.getTags());
List<OrganizationBean> groups = new ArrayList<OrganizationBean>(); List<OrganizationBean> groups = new ArrayList<OrganizationBean>();
List<OrganizationBean> groupsToForceCreation = new ArrayList<OrganizationBean>(); List<OrganizationBean> groupsToForceCreation = new ArrayList<OrganizationBean>();
Map<String, List<String>> customFieldsMap = new HashMap<String, List<String>>(); LinkedHashMap<String, List<String>> customFieldsMap = new LinkedHashMap<String, List<String>>();
List<FileUploaded> listFilesUploaded = new ArrayList<FileUploaded>(); List<FileUploaded> listFilesUploaded = new ArrayList<FileUploaded>();
// prepare custom fields // prepare custom fields

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.widgets.mpformbuilder.shared; package org.gcube.portlets.widgets.mpformbuilder.shared;
import java.io.Serializable; import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -25,7 +26,7 @@ public class GenericDatasetBean implements Serializable {
private List<MetaDataProfileBean> metadataProfileList; private List<MetaDataProfileBean> metadataProfileList;
/** The form data entry fields. */ /** The form data entry fields. */
private Map<String, List<String>> formDataEntryFields; private LinkedHashMap<String, List<String>> formDataEntryFields;
/** The files uploaded. */ /** The files uploaded. */
private List<FileUploaded> filesUploaded; private List<FileUploaded> filesUploaded;
@ -44,7 +45,7 @@ public class GenericDatasetBean implements Serializable {
* @param formDataEntryFields the form data entry fields * @param formDataEntryFields the form data entry fields
* @param filesUploaded the files uploaded * @param filesUploaded the files uploaded
*/ */
public GenericDatasetBean(List<MetaDataProfileBean> metadataProfileList, Map<String, List<String>> formDataEntryFields, public GenericDatasetBean(List<MetaDataProfileBean> metadataProfileList, LinkedHashMap<String, List<String>> formDataEntryFields,
List<FileUploaded> filesUploaded) { List<FileUploaded> filesUploaded) {
super(); super();
this.metadataProfileList = metadataProfileList; this.metadataProfileList = metadataProfileList;
@ -88,7 +89,7 @@ public class GenericDatasetBean implements Serializable {
* *
* @param formDataEntryFields the form data entry fields * @param formDataEntryFields the form data entry fields
*/ */
public void setFormDataEntryFields(Map<String, List<String>> formDataEntryFields) { public void setFormDataEntryFields(LinkedHashMap<String, List<String>> formDataEntryFields) {
this.formDataEntryFields = formDataEntryFields; this.formDataEntryFields = formDataEntryFields;
} }