diff options
author | Endi S. Dewata <edewata@redhat.com> | 2014-03-27 18:24:39 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2014-03-29 18:20:41 -0400 |
commit | 16ee3c262fbac7d1475ad006f40e35b6bb9a4213 (patch) | |
tree | 245523fe2787cae544f103ad1c3660fc0c245992 /base/java-tools/src/com/netscape/cmstools/tps | |
parent | c6a22f99b1ee222d512b60fdca181e29e09ff96a (diff) | |
download | pki-16ee3c262fbac7d1475ad006f40e35b6bb9a4213.tar.gz pki-16ee3c262fbac7d1475ad006f40e35b6bb9a4213.tar.xz pki-16ee3c262fbac7d1475ad006f40e35b6bb9a4213.zip |
Refactored TPS profiles.
The TPS profile has been modified to use PATCH for update operation as
required by Backbone. The ProfileData class has been modified to accept
null properties to indicate that the properties are not being updated.
The ProfileModel class has been modified to use JSON data type for
enable and disable operations.
Ticket #654
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java index 8b02f2e57..b27578ffc 100644 --- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java @@ -61,9 +61,11 @@ public class ProfileCLI extends CLI { if (showProperties) { System.out.println(" Properties:"); Map<String, String> properties = profileData.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); + } } } |