diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-11-13 12:00:06 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-11-14 16:54:39 -0500 |
commit | 4d1ec71c790e467ecae184df01abf825f94d1dc3 (patch) | |
tree | 8f821411a4ec5d275b4ee0702e438cafc3e92c60 /base/common/src/com/netscape/certsrv/request | |
parent | 17a52b686bd81cda1bce76b454b3127d6575de62 (diff) | |
download | pki-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/common/src/com/netscape/certsrv/request')
-rw-r--r-- | base/common/src/com/netscape/certsrv/request/CMSRequestInfos.java | 56 |
1 files changed, 2 insertions, 54 deletions
diff --git a/base/common/src/com/netscape/certsrv/request/CMSRequestInfos.java b/base/common/src/com/netscape/certsrv/request/CMSRequestInfos.java index 7e9445dbc..157c8db26 100644 --- a/base/common/src/com/netscape/certsrv/request/CMSRequestInfos.java +++ b/base/common/src/com/netscape/certsrv/request/CMSRequestInfos.java @@ -17,61 +17,9 @@ //--- END COPYRIGHT BLOCK --- package com.netscape.certsrv.request; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import com.netscape.certsrv.base.Link; +import com.netscape.certsrv.base.DataCollection; //Convenience class to simply hold a Collection of CMSRequests and a List of Links. -public class CMSRequestInfos { - - protected Collection<CMSRequestInfo> requests = new ArrayList<CMSRequestInfo>(); - protected List<Link> links = new ArrayList<Link>(); - - /** - * @return the requests - */ - public Collection<CMSRequestInfo> getRequests() { - return requests; - } - - /** - * @param requests the requests to set - */ - public void setRequests(Collection<CMSRequestInfo> requests) { - this.requests.clear(); - if (requests == null) return; - this.requests.addAll(requests); - } - - /** - * @param requests the requests to add - */ - public void addRequest(CMSRequestInfo request) { - requests.add(request); - } - - /** - * @return the links - */ - public List<Link> getLinks() { - return links; - } - - /** - * @param links the links to set - */ - public void setLinks(List<Link> links) { - this.links.clear(); - if (links == null) return; - this.links.addAll(links); - } +public class CMSRequestInfos extends DataCollection<CMSRequestInfo> { - /** - * @param links the link to add - */ - public void addLink(Link link) { - links.add(link); - } } |