SEBSERV-118 fix
This commit is contained in:
parent
bdb8e673dd
commit
be7889a4cf
1 changed files with 8 additions and 4 deletions
|
@ -92,12 +92,16 @@ public class KioskModeConverter implements AttributeValueConverter {
|
||||||
final String template) throws IOException {
|
final String template) throws IOException {
|
||||||
|
|
||||||
final String val = (ATTR_NAME_CREATE_NEW_DESKTOP.equals(name))
|
final String val = (ATTR_NAME_CREATE_NEW_DESKTOP.equals(name))
|
||||||
? value == null || value.getValue() == null || "0".equals(value.getValue())
|
? (value == null || value.getValue() == null)
|
||||||
|
? Constants.TRUE_STRING
|
||||||
|
: "0".equals(value.getValue())
|
||||||
? Constants.TRUE_STRING
|
? Constants.TRUE_STRING
|
||||||
: Constants.FALSE_STRING
|
: Constants.FALSE_STRING
|
||||||
: value == null || value.getValue() == null || "0".equals(value.getValue())
|
: (value == null || value.getValue() == null)
|
||||||
? Constants.FALSE_STRING
|
? Constants.FALSE_STRING
|
||||||
: Constants.TRUE_STRING;
|
: "1".equals(value.getValue())
|
||||||
|
? Constants.TRUE_STRING
|
||||||
|
: Constants.FALSE_STRING;
|
||||||
|
|
||||||
out.write(Utils.toByteArray(String.format(template, name, val)));
|
out.write(Utils.toByteArray(String.format(template, name, val)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue