From ca09e9ef94519baa5099f9a7962cd1ce4e91ef0c Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 7 Dec 2021 17:14:03 +0100 Subject: [PATCH] removed unused code --- .../ConstantsGeoPortalDataEntryApp.java | 49 +------------------ .../client/GeoPortalDataEntryApp.java | 10 +--- 2 files changed, 2 insertions(+), 57 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/ConstantsGeoPortalDataEntryApp.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/ConstantsGeoPortalDataEntryApp.java index b64d7a8..4475190 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/ConstantsGeoPortalDataEntryApp.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/ConstantsGeoPortalDataEntryApp.java @@ -33,56 +33,9 @@ public class ConstantsGeoPortalDataEntryApp { * * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it * - * Nov 25, 2021 + * Nov 25, 2021 */ public enum ACTION_PERFORMED_ON_ITEM { UPDATED_PROJECT } - -// /** -// * The Enum RECORD_FIELD. -// * -// * @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it -// * -// * Sep 2, 2021 -// */ -// public static enum RECORD_FIELD { -// NAME("nome", "Name"), INTRODUCTION("introduction", "Introduction"), AUTHOR("authors", "Author/s"), -// PROJECT_START_END_DATE("", "Project Start/End Date"), RECORD_STATUS("recordStatus", "Published with"), CREATED("creationTime", "Created"), -// CREATED_BY("creationUser", "Created by"); -// -// String jsonFieldName; -// String displayName; -// -// /** -// * Instantiates a new record field. -// * -// * @param jsonFieldName the json field name -// * @param displayName the display name -// */ -// RECORD_FIELD(String jsonFieldName, String displayName) { -// this.jsonFieldName = jsonFieldName; -// this.displayName = displayName; -// } -// -// /** -// * Gets the json field name. -// * -// * @return the json field name -// */ -// public String getJsonFieldName() { -// return jsonFieldName; -// } -// -// /** -// * Gets the display name. -// * -// * @return the display name -// */ -// public String getDisplayName() { -// return displayName; -// } -// } - - } diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java index e63be5e..d6b3d04 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataentry/client/GeoPortalDataEntryApp.java @@ -117,21 +117,13 @@ public class GeoPortalDataEntryApp implements EntryPoint { */ public void onModuleLoad() { -// RECORD_FIELD[] sortByOptions = new RECORD_FIELD[] { RECORD_FIELD.NAME, RECORD_FIELD.PROJECT_START_END_DATE, -// RECORD_FIELD.CREATED, RECORD_FIELD.CREATED_BY, RECORD_FIELD.RECORD_STATUS }; -// -// SearchingFilter initialSortFilter = new SearchingFilter(RECORD_FIELD.NAME, ORDER.ASC); -// -// RECORD_FIELD[] searchForFields = new RECORD_FIELD[] { RECORD_FIELD.NAME, RECORD_FIELD.AUTHOR}; - RootPanel.get(DIV_PORTLET_ID).add(loader); - GeoportalDataEntryServiceAsync.Util.getInstance().listDisplayFields(new AsyncCallback>() { @Override public void onFailure(Throwable caught) { - // TODO Auto-generated method stub + Window.alert(caught.getMessage()); }