removed unused code

This commit is contained in:
Francesco Mangiacrapa 2021-12-07 17:14:03 +01:00
parent 4120928540
commit ca09e9ef94
2 changed files with 2 additions and 57 deletions

View File

@ -38,51 +38,4 @@ public class ConstantsGeoPortalDataEntryApp {
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;
// }
// }
}

View File

@ -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<List<ItemField>>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
Window.alert(caught.getMessage());
}