Class CertRecordList

  • All Implemented Interfaces:
    com.netscape.certsrv.dbs.certdb.ICertRecordList

    public class CertRecordList
    extends java.lang.Object
    implements com.netscape.certsrv.dbs.certdb.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.Logger logger  
    • Constructor Summary

      Constructors 
      Constructor Description
      CertRecordList​(com.netscape.certsrv.dbs.IDBVirtualList<com.netscape.certsrv.dbs.certdb.ICertRecord> vlist)
      Constructs a request list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.netscape.certsrv.dbs.certdb.ICertRecord getCertRecord​(int index)
      Gets one single record at a time similar to processCertRecords but no extra class needed.
      java.util.Enumeration<com.netscape.certsrv.dbs.certdb.ICertRecord> getCertRecords​(int startidx, int endidx)
      Retrieves requests.
      int getCurrentIndex()
      Gets the current index.
      int getSize()
      Retrieves the size of request list.
      int getSizeAfterJumpTo()
      Gets size after jump to index.
      int getSizeBeforeJumpTo()
      Gets size before jump to index.
      void processCertRecords​(int startidx, int endidx, com.netscape.certsrv.dbs.IElementProcessor ep)
      Process certificate record as soon as it is returned.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • CertRecordList

        public CertRecordList​(com.netscape.certsrv.dbs.IDBVirtualList<com.netscape.certsrv.dbs.certdb.ICertRecord> vlist)
        Constructs a request list.
    • Method Detail

      • getCurrentIndex

        public int getCurrentIndex()
        Description copied from interface: com.netscape.certsrv.dbs.certdb.ICertRecordList
        Gets the current index.
        Specified by:
        getCurrentIndex in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Returns:
        current index
      • getSize

        public int getSize()
        Retrieves the size of request list.
        Specified by:
        getSize in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Returns:
        size
      • getSizeBeforeJumpTo

        public int getSizeBeforeJumpTo()
        Description copied from interface: com.netscape.certsrv.dbs.certdb.ICertRecordList
        Gets size before jump to index.
        Specified by:
        getSizeBeforeJumpTo in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Returns:
        size
      • getSizeAfterJumpTo

        public int getSizeAfterJumpTo()
        Description copied from interface: com.netscape.certsrv.dbs.certdb.ICertRecordList
        Gets size after jump to index.
        Specified by:
        getSizeAfterJumpTo in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Returns:
        size
      • processCertRecords

        public void processCertRecords​(int startidx,
                                       int endidx,
                                       com.netscape.certsrv.dbs.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.
        Specified by:
        processCertRecords in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Parameters:
        startidx - starting index
        endidx - ending index
        ep - element processor
        Throws:
        EBaseException - failed to process cert records
      • getCertRecords

        public java.util.Enumeration<com.netscape.certsrv.dbs.certdb.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:
        getCertRecords in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Parameters:
        startidx - starting index
        endidx - ending index
        Throws:
        EBaseException - failed to retrieve
      • getCertRecord

        public com.netscape.certsrv.dbs.certdb.ICertRecord getCertRecord​(int index)
                                                                  throws EBaseException
        Description copied from interface: com.netscape.certsrv.dbs.certdb.ICertRecordList
        Gets one single record at a time similar to processCertRecords but no extra class needed.
        Specified by:
        getCertRecord in interface com.netscape.certsrv.dbs.certdb.ICertRecordList
        Parameters:
        index - position of the record to be retrieved
        Returns:
        object
        Throws:
        EBaseException - failed to retrieve