Class SearchResults

    • Field Detail

      • VLVRESPONSE_CONTENT_COUNT

        public static final String VLVRESPONSE_CONTENT_COUNT
        Attribute name used with Object get( String ). Expected return object is Integer getting the content count from the VirtualListResponse control returned by server after a search
        See Also:
        Constant Field Values
      • VLVRESPONSE_FIRST_POSITION

        public static final String VLVRESPONSE_FIRST_POSITION
        Attribute name used with Object get( String ). Expected return object is Integer getting the index of first position from VirtualListResponse control returned by server after a search
        See Also:
        Constant Field Values
      • VLVRESPONSE_RESULT_CODE

        public static final String VLVRESPONSE_RESULT_CODE
        Attribute name used with Object get( String ). Expected return object is Integer getting the result code from from VirtualListResponse control returned by server after a search.
        See Also:
        Constant Field Values
      • VLVRESPONSE_CONTEXT

        public static final String VLVRESPONSE_CONTEXT
        Attribute name used with Object get( String ). Expected return object is String getting the context cookie from VirtualListResponse control returned by server after a search.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SearchResults

        protected SearchResults​(org.forgerock.opendj.ldap.Connection connection,
                                org.forgerock.opendj.ldif.ConnectionEntryReader ldapSearchResult,
                                org.forgerock.opendj.ldap.Connection conn,
                                DataLayer dataLayer)
        Constructs SearchResults from ldapSearchResult.
        Parameters:
        ldapSearchResult - LDAPSearchResults to construct from
        conn - LDAPConnection assosciated with the search results.
        dataLayer - Data Layer assosciated with the connection.
      • SearchResults

        protected SearchResults​(org.forgerock.opendj.ldap.Connection connection,
                                org.forgerock.opendj.ldif.ConnectionEntryReader ldapSearchResult,
                                org.forgerock.opendj.ldap.Connection conn)
        Constructs Search Results from ldapSearchResult.
        Parameters:
        ldapSearchResult - LDAPSearchResults to construct from.
        conn - LDAPConnection associated with the search results.
    • Method Detail

      • hasMoreElements

        public boolean hasMoreElements()
        Checks whether there are entries available.
        Returns:
        true if there is more to read
      • get

        public Object get​(String name)
                   throws UMSException
        Get search result attributes related to the search operation performed.
        Parameters:
        name - Name of attribute to return, null if attribute is unknown or not found
        Throws:
        UMSException - from accessor methods on LDAPVirtualListResponse control
      • abandon

        public void abandon()
                     throws UMSException
        Abandons a current search operation, notifying the server not to send additional search results.
        Throws:
        UMSException - from abandoning a search operation from LDAP
      • setPrincipal

        protected void setPrincipal​(Principal principal)
        Sets the principal with which to associate search results.
        Parameters:
        principal - Authenticated principal.