diff options
author | Endi S. Dewata <edewata@redhat.com> | 2014-03-27 18:52:54 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2014-03-29 18:20:49 -0400 |
commit | ef56ae955857d607f04e5298bf200c755d1d0ca5 (patch) | |
tree | 0d6c94b823c998c8c345a8ec3d3f4d1dbb0e402f /base/java-tools/src | |
parent | 16ee3c262fbac7d1475ad006f40e35b6bb9a4213 (diff) | |
download | pki-ef56ae955857d607f04e5298bf200c755d1d0ca5.tar.gz pki-ef56ae955857d607f04e5298bf200c755d1d0ca5.tar.xz pki-ef56ae955857d607f04e5298bf200c755d1d0ca5.zip |
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
Diffstat (limited to 'base/java-tools/src')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionCLI.java | 8 |
1 files changed, 5 insertions, 3 deletions
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<String, String> 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); + } } } |