2020-10-19 17:53:16 +02:00
|
|
|
package org.gcube.portlets.user.geoportaldataentry.client;
|
|
|
|
|
|
|
|
import org.gcube.portlets.widgets.mpformbuilder.client.ConstantsMPFormBuilder;
|
|
|
|
|
2021-08-06 16:23:17 +02:00
|
|
|
/**
|
|
|
|
* The Class ConstantsGeoPortalDataEntryApp.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Aug 6, 2021
|
|
|
|
*/
|
2020-10-19 17:53:16 +02:00
|
|
|
public class ConstantsGeoPortalDataEntryApp {
|
|
|
|
|
|
|
|
public static final String DATE_FORMAT = ConstantsMPFormBuilder.DATE_FORMAT;
|
2021-08-05 11:21:39 +02:00
|
|
|
|
2020-10-19 17:53:16 +02:00
|
|
|
public static final String TIME_FORMAT = ConstantsMPFormBuilder.TIME_FORMAT;
|
2021-08-05 11:21:39 +02:00
|
|
|
|
2020-10-20 15:25:26 +02:00
|
|
|
public static final String HOURS_MINUTES_SEPARATOR = ConstantsMPFormBuilder.HOURS_MINUTES_SEPARATOR;
|
2021-08-05 11:21:39 +02:00
|
|
|
|
2021-08-06 16:23:17 +02:00
|
|
|
/**
|
|
|
|
* The Enum RECORD_TYPE.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
* Aug 6, 2021
|
|
|
|
*/
|
2021-08-04 17:11:46 +02:00
|
|
|
public enum RECORD_TYPE {
|
|
|
|
CONCESSIONE
|
|
|
|
}
|
|
|
|
|
2021-08-06 16:23:17 +02:00
|
|
|
/**
|
2021-11-26 16:05:05 +01:00
|
|
|
* The Enum ACTION_PERFORMED_ON_ITEM.
|
2021-08-06 16:23:17 +02:00
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
2021-11-26 16:05:05 +01:00
|
|
|
* Nov 25, 2021
|
2021-08-06 16:23:17 +02:00
|
|
|
*/
|
2021-11-26 16:05:05 +01:00
|
|
|
public enum ACTION_PERFORMED_ON_ITEM {
|
|
|
|
UPDATED_PROJECT
|
2021-08-05 11:21:39 +02:00
|
|
|
}
|
|
|
|
|
2021-08-06 16:23:17 +02:00
|
|
|
/**
|
|
|
|
* The Enum RECORD_FIELD.
|
|
|
|
*
|
|
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
2021-09-02 18:14:49 +02:00
|
|
|
* Sep 2, 2021
|
2021-08-06 16:23:17 +02:00
|
|
|
*/
|
|
|
|
public static enum RECORD_FIELD {
|
2021-09-02 18:14:49 +02:00
|
|
|
NAME("name", "Name"), INTRODUCTION("introduction", "Introduction"), AUTHOR("author", "Author/s"),
|
2021-09-15 16:14:27 +02:00
|
|
|
PROJECT_START_END_DATE("", "Project Start/End Date"), RECORD_STATUS("recordStatus", "Published with"), CREATED("created", "Created"),
|
2021-09-02 18:14:49 +02:00
|
|
|
CREATED_BY("createdBy", "Created by");
|
2021-08-06 16:23:17 +02:00
|
|
|
|
2021-09-02 18:14:49 +02:00
|
|
|
String jsonFieldName;
|
|
|
|
String displayName;
|
2021-08-06 16:23:17 +02:00
|
|
|
|
2021-09-02 18:14:49 +02:00
|
|
|
/**
|
|
|
|
* Instantiates a new record field.
|
|
|
|
*
|
|
|
|
* @param jsonFieldName the json field name
|
2021-09-14 13:08:55 +02:00
|
|
|
* @param displayName the display name
|
2021-09-02 18:14:49 +02:00
|
|
|
*/
|
|
|
|
RECORD_FIELD(String jsonFieldName, String displayName) {
|
|
|
|
this.jsonFieldName = jsonFieldName;
|
|
|
|
this.displayName = displayName;
|
|
|
|
}
|
2021-09-14 13:08:55 +02:00
|
|
|
|
2021-11-26 16:05:05 +01:00
|
|
|
/**
|
|
|
|
* Gets the json field name.
|
|
|
|
*
|
|
|
|
* @return the json field name
|
|
|
|
*/
|
2021-09-02 18:14:49 +02:00
|
|
|
public String getJsonFieldName() {
|
|
|
|
return jsonFieldName;
|
|
|
|
}
|
2021-09-14 13:08:55 +02:00
|
|
|
|
2021-11-26 16:05:05 +01:00
|
|
|
/**
|
|
|
|
* Gets the display name.
|
|
|
|
*
|
|
|
|
* @return the display name
|
|
|
|
*/
|
2021-09-02 18:14:49 +02:00
|
|
|
public String getDisplayName() {
|
|
|
|
return displayName;
|
|
|
|
}
|
2021-08-06 16:23:17 +02:00
|
|
|
}
|
|
|
|
|
2020-10-19 17:53:16 +02:00
|
|
|
}
|