2020-12-09 16:59:02 +01:00
|
|
|
|
|
|
|
package eu.dnetlib.dhp.common;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
2020-12-09 20:00:27 +01:00
|
|
|
import com.google.common.collect.Maps;
|
|
|
|
|
2020-12-09 16:59:02 +01:00
|
|
|
public class Constants {
|
|
|
|
|
|
|
|
public static final Map<String, String> accessRightsCoarMap = Maps.newHashMap();
|
|
|
|
public static final Map<String, String> coarCodeLabelMap = Maps.newHashMap();
|
|
|
|
|
|
|
|
public static String COAR_ACCESS_RIGHT_SCHEMA = "http://vocabularies.coar-repositories.org/documentation/access_rights/";
|
|
|
|
|
|
|
|
static {
|
|
|
|
accessRightsCoarMap.put("OPEN", "c_abf2");
|
|
|
|
accessRightsCoarMap.put("RESTRICTED", "c_16ec");
|
|
|
|
accessRightsCoarMap.put("OPEN SOURCE", "c_abf2");
|
|
|
|
accessRightsCoarMap.put("CLOSED", "c_14cb");
|
|
|
|
accessRightsCoarMap.put("EMBARGO", "c_f1cf");
|
|
|
|
}
|
|
|
|
|
|
|
|
static {
|
|
|
|
coarCodeLabelMap.put("c_abf2", "OPEN");
|
|
|
|
coarCodeLabelMap.put("c_16ec", "RESTRICTED");
|
|
|
|
coarCodeLabelMap.put("c_14cb", "CLOSED");
|
|
|
|
coarCodeLabelMap.put("c_f1cf", "EMBARGO");
|
|
|
|
}
|
|
|
|
|
2021-02-08 12:19:38 +01:00
|
|
|
public static final String SEQUENCE_FILE_NAME = "/sequence_file";
|
|
|
|
public static final String REPORT_FILE_NAME = "/report";
|
|
|
|
public static final String MDSTORE_DATA_PATH = "/store";
|
|
|
|
public static final String MDSTORE_SIZE_PATH = "/size";
|
|
|
|
|
|
|
|
public static final String COLLECTION_MODE = "collectionMode";
|
|
|
|
public static final String METADATA_ENCODING = "metadataEncoding";
|
|
|
|
public static final String OOZIE_WF_PATH = "oozieWfPath";
|
|
|
|
public static final String DNET_MESSAGE_MGR_URL = "dnetMessageManagerURL";
|
|
|
|
|
|
|
|
public static final String MAX_NUMBER_OF_RETRY = "maxNumberOfRetry";
|
|
|
|
public static final String REQUEST_DELAY = "requestDelay";
|
|
|
|
public static final String RETRY_DELAY = "retryDelay";
|
|
|
|
public static final String CONNECT_TIMEOUT = "connectTimeOut";
|
|
|
|
public static final String READ_TIMEOUT = "readTimeOut";
|
2021-04-13 07:04:20 +02:00
|
|
|
public static final String FROM_DATE_OVERRIDE = "fromDateOverride";
|
|
|
|
public static final String UNTIL_DATE_OVERRIDE = "untilDateOverride";
|
2021-02-08 12:19:38 +01:00
|
|
|
|
|
|
|
public static final String CONTENT_TOTALITEMS = "TotalItems";
|
|
|
|
public static final String CONTENT_INVALIDRECORDS = "InvalidRecords";
|
|
|
|
public static final String CONTENT_TRANSFORMEDRECORDS = "transformedItems";
|
|
|
|
|
2020-12-09 16:59:02 +01:00
|
|
|
}
|