code cleanup
This commit is contained in:
parent
cea62d5fa4
commit
c9ce66d89c
2 changed files with 1 additions and 22 deletions
|
@ -587,28 +587,6 @@ public final class Utils {
|
||||||
return (hexString.length() < 2) ? "0" + hexString : hexString;
|
return (hexString.length() < 2) ? "0" + hexString : hexString;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getJSONValue(final String value) {
|
|
||||||
if (Constants.TRUE_STRING.equalsIgnoreCase(value) || Constants.FALSE_STRING.equalsIgnoreCase(value)) {
|
|
||||||
return value.toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
return String.valueOf(Long.parseLong(value));
|
|
||||||
} catch (final Exception e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
|
||||||
return String.valueOf(Double.parseDouble(value));
|
|
||||||
} catch (final Exception e) {
|
|
||||||
}
|
|
||||||
|
|
||||||
return new StringBuilder()
|
|
||||||
.append(Constants.DOUBLE_QUOTE)
|
|
||||||
.append(value)
|
|
||||||
.append(Constants.DOUBLE_QUOTE)
|
|
||||||
.toString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static String toAppFormUrlEncodedBody(final MultiValueMap<String, String> attributes) {
|
public static String toAppFormUrlEncodedBody(final MultiValueMap<String, String> attributes) {
|
||||||
return attributes
|
return attributes
|
||||||
.entrySet()
|
.entrySet()
|
||||||
|
|
|
@ -64,6 +64,7 @@ sebserver.overall.types.entityType.LMS_SETUP=LMS Setup
|
||||||
sebserver.overall.types.entityType.USER=User Account
|
sebserver.overall.types.entityType.USER=User Account
|
||||||
sebserver.overall.types.entityType.CLIENT_INSTRUCTION=SEB Client Instruction
|
sebserver.overall.types.entityType.CLIENT_INSTRUCTION=SEB Client Instruction
|
||||||
sebserver.overall.types.entityType.EXAM_SEB_RESTRICTION=SEB Exam Restriction
|
sebserver.overall.types.entityType.EXAM_SEB_RESTRICTION=SEB Exam Restriction
|
||||||
|
sebserver.overall.types.entityType.CERTIFICATE=Certificate
|
||||||
|
|
||||||
sebserver.overall.activity.title.serveradmin=SEB Server Administration
|
sebserver.overall.activity.title.serveradmin=SEB Server Administration
|
||||||
sebserver.overall.activity.title.sebconfig=Configurations
|
sebserver.overall.activity.title.sebconfig=Configurations
|
||||||
|
|
Loading…
Reference in a new issue