From ef56ae955857d607f04e5298bf200c755d1d0ca5 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 27 Mar 2014 18:52:54 -0400 Subject: Refactored TPS connections. The TPS connections has been modified to use PATCH for update operation as required by Backbone. The ConnectionData class has been modified to accept null properties to indicate that the properties are not being updated. The ConnectionModel class has been modified to use JSON data type for enable and disable operations. Ticket #654 --- .../src/com/netscape/cmstools/tps/connection/ConnectionCLI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'base/java-tools/src') diff --git a/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionCLI.java index 1159a2012..c0802ba13 100644 --- a/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionCLI.java @@ -59,9 +59,11 @@ public class ConnectionCLI extends CLI { if (showProperties) { System.out.println(" Properties:"); Map properties = connectionData.getProperties(); - for (String name : properties.keySet()) { - String value = properties.get(name); - System.out.println(" " + name + ": " + value); + if (properties != null) { + for (String name : properties.keySet()) { + String value = properties.get(name); + System.out.println(" " + name + ": " + value); + } } } -- cgit