Class ModelFactoryImpl

    • Constructor Detail

      • ModelFactoryImpl

        ModelFactoryImpl()
    • Method Detail

      • newAddRequest

        public AddRequest newAddRequest​(Entry entry)
        Returns a new AddRequest for the entry.
        Specified by:
        newAddRequest in interface ModelFactory
        Parameters:
        entry - The Entry to add
        Returns:
        The resulting AddRequest
      • newAttribute

        public Attribute newAttribute​(String name)
        Returns a new Attribute for with the provided name and a null value. This is useful for clearing out an Attribute with a ModifyRequest, replace function.
        Specified by:
        newAttribute in interface ModelFactory
        Parameters:
        name - The attribute's name
        Returns:
        The resulting Attribute
      • newAttribute

        public Attribute newAttribute​(String name,
                                      byte[]... values)
        Returns a new Attribute for with the provided name and value(s).
        Specified by:
        newAttribute in interface ModelFactory
        Parameters:
        name - The attribute's name
        values - The attribute's values
        Returns:
        The resulting Attribute
      • newAttribute

        public Attribute newAttribute​(String name,
                                      String... values)
        Returns a new Attribute for with the provided name and value(s).
        Specified by:
        newAttribute in interface ModelFactory
        Parameters:
        name - The attribute's name
        values - The attribute's values
        Returns:
        The resulting Attribute
      • newAttribute

        public Attribute newAttribute​(String name,
                                      Value... values)
        Returns a new Attribute for with the provided name and value(s).
        Specified by:
        newAttribute in interface ModelFactory
        Parameters:
        name - The attribute's name
        values - The attribute's values
        Returns:
        The resulting Attribute
      • newDeleteRequest

        public DeleteRequest newDeleteRequest​(Dn dn)
        Returns a new DeleteRequest for the dn.
        Specified by:
        newDeleteRequest in interface ModelFactory
        Parameters:
        dn - The Dn for the Entry to delete
        Returns:
        The resulting DeleteRequest
      • newDn

        public Dn newDn​(String dn)
        Returns a Dn that represents dn.
        Specified by:
        newDn in interface ModelFactory
        Parameters:
        dn - The Entry's Dn
        Returns:
        The resulting Dn
      • newEntry

        public Entry newEntry​(String dn)
        Returns a Entry with the specified dn.
        Specified by:
        newEntry in interface ModelFactory
        Parameters:
        dn - The Entry's Dn
        Returns:
        The resulting Entry
      • newEntry

        public Entry newEntry​(Dn dn)
        Returns a Entry with the specified dn.
        Specified by:
        newEntry in interface ModelFactory
        Parameters:
        dn - The Entry's Dn
        Returns:
        The resulting Entry
      • newModifyRequest

        public ModifyRequest newModifyRequest​(String dn)
        Returns a new ModifyRequest for the dn.
        Specified by:
        newModifyRequest in interface ModelFactory
        Parameters:
        dn - The Dn of the entry to modify
        Returns:
        The resulting ModifyRequest
      • newModifyRequest

        public ModifyRequest newModifyRequest​(Dn dn)
        Returns a new ModifyRequest for the dn.
        Specified by:
        newModifyRequest in interface ModelFactory
        Parameters:
        dn - The DN of the entry to modify
        Returns:
        The resulting ModifyRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(String baseDn,
                                              FilterBuilder filter,
                                              SearchScope scope)
        Returns a new SearchRequest over baseDn in scope matching filter returning all normal attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(String baseDn,
                                              String filter,
                                              SearchScope scope)
        Returns a new SearchRequest over baseDn in scope matching filter returning all normal attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(Dn baseDn,
                                              FilterBuilder filter,
                                              SearchScope scope)
        Returns a new SearchRequest over baseDn in scope matching filter returning all normal attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(Dn baseDn,
                                              String filter,
                                              SearchScope scope)
        Returns a new SearchRequest over baseDn in scope matching filter returning all normal attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(String baseDn,
                                              FilterBuilder filter,
                                              SearchScope scope,
                                              String... attributes)
        Returns a new SearchRequest over baseDn in scope matching filter returning attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        attributes - The list of AttributeType to return
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(String baseDn,
                                              String filter,
                                              SearchScope scope,
                                              String... attributes)
        Returns a new SearchRequest over baseDn in scope matching filter returning attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        attributes - The list of AttributeType to return
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(Dn baseDn,
                                              FilterBuilder filter,
                                              SearchScope scope,
                                              String... attributes)
        Returns a new SearchRequest over baseDn in scope matching filter returning attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        attributes - The list of AttributeType to return
        Returns:
        The resulting SearchRequest
      • newSearchRequest

        public SearchRequest newSearchRequest​(Dn baseDn,
                                              String filter,
                                              SearchScope scope,
                                              String... attributes)
        Returns a new SearchRequest over baseDn in scope matching filter returning attributes for each matching entry.
        Specified by:
        newSearchRequest in interface ModelFactory
        Parameters:
        baseDn - The base DN from which to start the search
        filter - The filter selecting the entries
        scope - The scope to look from
        attributes - The list of AttributeType to return
        Returns:
        The resulting SearchRequest