diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-11-08 12:36:33 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-11-08 19:28:52 -0500 |
commit | f74c644b09dd1e18289c4a543a211c3ff8cd02d9 (patch) | |
tree | 296fe00e281225bd825c41b319c8435a4219855d /base/common/src/com/netscape/certsrv/base | |
parent | 9d3090378bf4e5152df2c02d48ca8f9beeac2057 (diff) | |
download | pki-f74c644b09dd1e18289c4a543a211c3ff8cd02d9.tar.gz pki-f74c644b09dd1e18289c4a543a211c3ff8cd02d9.tar.xz pki-f74c644b09dd1e18289c4a543a211c3ff8cd02d9.zip |
Fixed find commands.
Some of the REST services have been fixed to consistently return a
DataCollection which contains the total count, the requested subset
of results, and links to request other subsets of the results.
The TPSConnectorFindCLI has been split into separate find and show
commands.
Ticket #749
Diffstat (limited to 'base/common/src/com/netscape/certsrv/base')
-rw-r--r-- | base/common/src/com/netscape/certsrv/base/DataCollection.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/base/DataCollection.java b/base/common/src/com/netscape/certsrv/base/DataCollection.java index 0237e8fcc..8432604f0 100644 --- a/base/common/src/com/netscape/certsrv/base/DataCollection.java +++ b/base/common/src/com/netscape/certsrv/base/DataCollection.java @@ -30,9 +30,18 @@ import org.jboss.resteasy.plugins.providers.atom.Link; */ public class DataCollection<E> { + Integer total; Collection<E> entries = new ArrayList<E>(); Collection<Link> links = new ArrayList<Link>(); + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + public Collection<E> getEntries() { return entries; } |