Interface IncrementalAttributesMapper<T extends IncrementalAttributesMapper>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String[] getAttributesForLookup()
      Get properly formatted attributes for use in the next query.
      javax.naming.directory.Attributes getCollectedAttributes()
      Get all collected values for all managed attributes as an Attributes instance.
      java.util.List<java.lang.Object> getValues​(java.lang.String attributeName)
      Get all of the collected values for the specified attribute.
      boolean hasMore()
      Check whether another query iteration is required to get all values for all attributes.
      T mapFromAttributes​(javax.naming.directory.Attributes attributes)
      Goes through all of the attributes to record their values and figure out whether a new query iteration is needed to get more values.
    • Method Detail

      • getValues

        java.util.List<java.lang.Object> getValues​(java.lang.String attributeName)
        Get all of the collected values for the specified attribute.
        Parameters:
        attributeName - the attribute to get values for.
        Returns:
        the collected values for the specified attribute. Will be null if the requested attribute has not been returned by the server (attribute did not exist).
      • getCollectedAttributes

        javax.naming.directory.Attributes getCollectedAttributes()
        Get all collected values for all managed attributes as an Attributes instance.
        Returns:
        an Attributes instance populated with all collected values.
      • hasMore

        boolean hasMore()
        Check whether another query iteration is required to get all values for all attributes.
        Returns:
        true if there are more values for at least one of the managed attributes, false otherwise.
      • mapFromAttributes

        T mapFromAttributes​(javax.naming.directory.Attributes attributes)
                     throws javax.naming.NamingException
        Goes through all of the attributes to record their values and figure out whether a new query iteration is needed to get more values.
        Specified by:
        mapFromAttributes in interface AttributesMapper<T extends IncrementalAttributesMapper>
        Parameters:
        attributes - attributes from a SearchResult.
        Returns:
        this instance.
        Throws:
        javax.naming.NamingException