summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-04-07 16:39:29 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-04-15 14:50:37 -0400
commitaae856cd189c23662fbed66b7ca93a3bc2fa0f6c (patch)
tree6ecc7d3d384a7e1599c028f98cd8d86a3c6e9869 /base/java-tools/src/com/netscape/cmstools/tps
parent790167fc9bd475b78d693a2b3cf0c5e11c16137b (diff)
downloadpki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.tar.gz
pki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.tar.xz
pki-aae856cd189c23662fbed66b7ca93a3bc2fa0f6c.zip
Added change token status dialog.
A new dialog has been added to change the token status. The status can be changed by clicking the Status value in the tokens table. Initially the status is Uninitialized. The status can be changed according to the allowed status transitions defined in the CS.cfg. The status and reason fields in TokenRecord is now translated into a single status field in TokenData. This way the UI only needs to handle a single status field. A new field has also been added to the database for token type. Some issues displaying and updating some token attributes have been fixed as well. Ticket #654
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/token/TokenCLI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/token/TokenCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/token/TokenCLI.java
index a26c07f9a..df3ab2890 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/token/TokenCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/token/TokenCLI.java
@@ -52,8 +52,8 @@ public class TokenCLI extends CLI {
public static void printToken(TokenData token) {
System.out.println(" Token ID: " + token.getID());
if (token.getUserID() != null) System.out.println(" User ID: " + token.getUserID());
+ if (token.getType() != null) System.out.println(" Status: " + token.getType());
if (token.getStatus() != null) System.out.println(" Status: " + token.getStatus());
- if (token.getReason() != null) System.out.println(" Reason: " + token.getReason());
if (token.getAppletID() != null) System.out.println(" Applet ID: " + token.getAppletID());
if (token.getKeyInfo() != null) System.out.println(" Key Info: " + token.getKeyInfo());
if (token.getCreateTimestamp() != null) System.out.println(" Date Created: " + token.getCreateTimestamp());