Package com.netscape.cmscore.dbs
Class CertRecordList
- java.lang.Object
-
- com.netscape.cmscore.dbs.CertRecordList
-
- All Implemented Interfaces:
ICertRecordList
public class CertRecordList extends java.lang.Object implements ICertRecordList
A class represents a list of certificate records.- Version:
- $Revision$, $Date$
- Author:
- thomask mzhao
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description CertRecordList(IDBVirtualList<ICertRecord> vlist)Constructs a request list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICertRecordgetCertRecord(int index)Gets one single record at a time similar to processCertRecords but no extra class needed.java.util.Enumeration<ICertRecord>getCertRecords(int startidx, int endidx)Retrieves requests.intgetCurrentIndex()Gets the current index.intgetSize()Retrieves the size of request list.intgetSizeAfterJumpTo()Gets size after jump to index.intgetSizeBeforeJumpTo()Gets size before jump to index.voidprocessCertRecords(int startidx, int endidx, IElementProcessor ep)Process certificate record as soon as it is returned.
-
-
-
Constructor Detail
-
CertRecordList
public CertRecordList(IDBVirtualList<ICertRecord> vlist)
Constructs a request list.
-
-
Method Detail
-
getCurrentIndex
public int getCurrentIndex()
Description copied from interface:ICertRecordListGets the current index.- Specified by:
getCurrentIndexin interfaceICertRecordList- Returns:
- current index
-
getSize
public int getSize()
Retrieves the size of request list.- Specified by:
getSizein interfaceICertRecordList- Returns:
- size
-
getSizeBeforeJumpTo
public int getSizeBeforeJumpTo()
Description copied from interface:ICertRecordListGets size before jump to index.- Specified by:
getSizeBeforeJumpToin interfaceICertRecordList- Returns:
- size
-
getSizeAfterJumpTo
public int getSizeAfterJumpTo()
Description copied from interface:ICertRecordListGets size after jump to index.- Specified by:
getSizeAfterJumpToin interfaceICertRecordList- Returns:
- size
-
processCertRecords
public void processCertRecords(int startidx, int endidx, IElementProcessor ep) throws EBaseExceptionProcess certificate record as soon as it is returned. kmccarth: changed to ignore startidx and endidx because VLVs don't provide a stable list.- Specified by:
processCertRecordsin interfaceICertRecordList- Parameters:
startidx- starting indexendidx- ending indexep- element processor- Throws:
EBaseException- failed to process cert records
-
getCertRecords
public java.util.Enumeration<ICertRecord> getCertRecords(int startidx, int endidx) throws EBaseException
Retrieves requests. It's no good to call this if you didnt check if the startidx, endidx are valid.- Specified by:
getCertRecordsin interfaceICertRecordList- Parameters:
startidx- starting indexendidx- ending index- Throws:
EBaseException- failed to retrieve
-
getCertRecord
public ICertRecord getCertRecord(int index) throws EBaseException
Description copied from interface:ICertRecordListGets one single record at a time similar to processCertRecords but no extra class needed.- Specified by:
getCertRecordin interfaceICertRecordList- Parameters:
index- position of the record to be retrieved- Returns:
- object
- Throws:
EBaseException- failed to retrieve
-
-