2018-11-13 11:56:12 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET)
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2018-11-14 13:58:27 +01:00
|
|
|
package ch.ethz.seb.sebserver.gbl;
|
2018-11-13 11:56:12 +01:00
|
|
|
|
|
|
|
import org.joda.time.format.DateTimeFormat;
|
|
|
|
import org.joda.time.format.DateTimeFormatter;
|
|
|
|
|
|
|
|
/** Global Constants used in SEB Server web-service as well as in web-gui component */
|
2018-11-14 16:13:53 +01:00
|
|
|
public final class Constants {
|
2018-11-13 11:56:12 +01:00
|
|
|
|
2018-12-17 16:36:04 +01:00
|
|
|
public static final Character LIST_SEPARATOR_CHAR = ',';
|
|
|
|
public static final String LIST_SEPARATOR = ",";
|
2019-02-05 16:45:41 +01:00
|
|
|
public static final String EMPTY_NOTE = "--";
|
2019-02-21 17:00:42 +01:00
|
|
|
public static final String FORM_URL_ENCODED_SEPARATOR = "&";
|
|
|
|
public static final String FORM_URL_ENCODED_NAME_VALUE_SEPARATOR = "=";
|
2018-12-17 16:36:04 +01:00
|
|
|
|
2018-11-13 11:56:12 +01:00
|
|
|
/** Date-Time formatter without milliseconds using UTC time-zone. Pattern is yyyy-MM-dd HH:mm:ss */
|
2018-11-14 16:29:51 +01:00
|
|
|
public static final DateTimeFormatter DATE_TIME_PATTERN_UTC_NO_MILLIS = DateTimeFormat
|
2018-11-13 11:56:12 +01:00
|
|
|
.forPattern("yyyy-MM-dd HH:mm:ss")
|
|
|
|
.withZoneUTC();
|
|
|
|
|
|
|
|
/** Date-Time formatter with milliseconds using UTC time-zone. Pattern is yyyy-MM-dd HH:mm:ss.S */
|
2018-11-14 16:29:51 +01:00
|
|
|
public static final DateTimeFormatter DATE_TIME_PATTERN_UTC_MILLIS = DateTimeFormat
|
2018-11-13 11:56:12 +01:00
|
|
|
.forPattern("yyyy-MM-dd HH:mm:ss.S")
|
|
|
|
.withZoneUTC();
|
|
|
|
|
|
|
|
}
|