Package com.netscape.cmscore.dbs
Class CertRecordList
java.lang.Object
com.netscape.cmscore.dbs.CertRecordList
A class represents a list of certificate records.
- Version:
- $Revision$, $Date$
- Author:
- thomask mzhao
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCertRecord
(int index) Gets one single record at a time similar to processCertRecords but no extra class needed.getCertRecords
(int startidx, int endidx) Retrieves requests.int
Gets the current index.int
getSize()
Retrieves the size of request list.int
Gets size after jump to index.int
Gets size before jump to index.void
processCertRecords
(int startidx, int endidx, IElementProcessor ep) Process certificate record as soon as it is returned.
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
CertRecordList
Constructs a request list.
-
-
Method Details
-
getCurrentIndex
public int getCurrentIndex()Gets the current index.- Returns:
- current index
-
getSize
public int getSize()Retrieves the size of request list.- Returns:
- size
-
getSizeBeforeJumpTo
public int getSizeBeforeJumpTo()Gets size before jump to index.- Returns:
- size
-
getSizeAfterJumpTo
public int getSizeAfterJumpTo()Gets size after jump to index.- Returns:
- size
-
processCertRecords
public void processCertRecords(int startidx, int endidx, IElementProcessor ep) throws EBaseException Process certificate record as soon as it is returned. kmccarth: changed to ignore startidx and endidx because VLVs don't provide a stable list.- Parameters:
startidx
- starting indexendidx
- ending indexep
- element processor- Throws:
EBaseException
- failed to process cert records
-
getCertRecords
Retrieves requests. It's no good to call this if you didnt check if the startidx, endidx are valid.- Parameters:
startidx
- starting indexendidx
- ending index- Throws:
EBaseException
- failed to retrieve
-
getCertRecord
Gets one single record at a time similar to processCertRecords but no extra class needed.- Parameters:
index
- position of the record to be retrieved- Returns:
- object
- Throws:
EBaseException
- failed to retrieve
-