summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-11-13 12:00:06 -0500
committerEndi S. Dewata <edewata@redhat.com>2013-11-14 16:54:39 -0500
commit4d1ec71c790e467ecae184df01abf825f94d1dc3 (patch)
tree8f821411a4ec5d275b4ee0702e438cafc3e92c60 /base/java-tools/src/com/netscape/cmstools/tps
parent17a52b686bd81cda1bce76b454b3127d6575de62 (diff)
downloadpki-4d1ec71c790e467ecae184df01abf825f94d1dc3.tar.gz
pki-4d1ec71c790e467ecae184df01abf825f94d1dc3.tar.xz
pki-4d1ec71c790e467ecae184df01abf825f94d1dc3.zip
Added paging on all find commands.
The find commands in some REST services have been modified to support paging to be consistent with others. The other find commands have been cleaned up as well.
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorFindCLI.java4
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/cert/TPSCertFindCLI.java4
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionFindCLI.java4
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileFindCLI.java4
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java4
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/token/TokenFindCLI.java4
6 files changed, 12 insertions, 12 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorFindCLI.java
index 81724bb31..683d2891c 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorFindCLI.java
@@ -72,11 +72,11 @@ public class AuthenticatorFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
AuthenticatorCollection result = authenticatorCLI.authenticatorClient.findAuthenticators(start, size);
- Collection<AuthenticatorData> authenticators = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " authenticator(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<AuthenticatorData> authenticators = result.getEntries();
boolean first = true;
for (AuthenticatorData authenticatorData : authenticators) {
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/cert/TPSCertFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/cert/TPSCertFindCLI.java
index 9ba66a62a..12ec1b9da 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/cert/TPSCertFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/cert/TPSCertFindCLI.java
@@ -72,11 +72,11 @@ public class TPSCertFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
TPSCertCollection result = certCLI.certClient.findCerts(start, size);
- Collection<TPSCertData> certs = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " certificate(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<TPSCertData> certs = result.getEntries();
boolean first = true;
for (TPSCertData certData : certs) {
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionFindCLI.java
index 7cb4c1b16..d78727d7b 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/connection/ConnectionFindCLI.java
@@ -72,11 +72,11 @@ public class ConnectionFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
ConnectionCollection result = connectionCLI.connectionClient.findConnections(start, size);
- Collection<ConnectionData> connections = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " connection(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<ConnectionData> connections = result.getEntries();
boolean first = true;
for (ConnectionData connectionData : connections) {
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileFindCLI.java
index 907641462..cabacaacd 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileFindCLI.java
@@ -72,11 +72,11 @@ public class ProfileFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
ProfileCollection result = profileCLI.profileClient.findProfiles(start, size);
- Collection<ProfileData> profiles = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " profile(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<ProfileData> profiles = result.getEntries();
boolean first = true;
for (ProfileData profileData : profiles) {
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java
index 6e101a049..9d87cc43c 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java
@@ -72,11 +72,11 @@ public class ProfileMappingFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
ProfileMappingCollection result = profileMappingCLI.profileMappingClient.findProfileMappings(start, size);
- Collection<ProfileMappingData> profileMappings = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " profile mapping(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<ProfileMappingData> profileMappings = result.getEntries();
boolean first = true;
for (ProfileMappingData profileMappingData : profileMappings) {
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/token/TokenFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/token/TokenFindCLI.java
index 2e43f3cdd..6cfb1fb00 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/token/TokenFindCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/token/TokenFindCLI.java
@@ -72,11 +72,11 @@ public class TokenFindCLI extends CLI {
Integer size = s == null ? null : Integer.valueOf(s);
TokenCollection result = tokenCLI.tokenClient.findTokens(start, size);
- Collection<TokenData> tokens = result.getEntries();
- MainCLI.printMessage(result.getTotal() + " token(s) matched");
+ MainCLI.printMessage(result.getTotal() + " entries matched");
if (result.getTotal() == 0) return;
+ Collection<TokenData> tokens = result.getEntries();
boolean first = true;
for (TokenData tokenData : tokens) {