/** * Processes the provided add request using a connection from this connection * pool. * * @param addRequest The add request to be processed. It must not be * {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final ReadOnlyAddRequest addRequest) throws LDAPException { return add((AddRequest) addRequest); }
/** * Processes the provided add request using a connection from this connection * pool. * * @param addRequest The add request to be processed. It must not be * {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final ReadOnlyAddRequest addRequest) throws LDAPException { return add((AddRequest) addRequest); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param entry The entry to add. It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final Entry entry) throws LDAPException { return add(new AddRequest(entry)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param entry The entry to add. It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final Entry entry) throws LDAPException { return add(new AddRequest(entry)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param ldifLines The lines that comprise an LDIF representation of the * entry to add. It must not be empty or {@code null}. * * @return The result of processing the add operation. * * @throws LDIFException If the provided entry lines cannot be decoded as an * entry in LDIF form. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String... ldifLines) throws LDIFException, LDAPException { return add(new AddRequest(ldifLines)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param dn The DN of the entry to add. It must not be * {@code null}. * @param attributes The set of attributes to include in the entry to add. * It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String dn, final Collection<Attribute> attributes) throws LDAPException { return add(new AddRequest(dn, attributes)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param dn The DN of the entry to add. It must not be * {@code null}. * @param attributes The set of attributes to include in the entry to add. * It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String dn, final Collection<Attribute> attributes) throws LDAPException { return add(new AddRequest(dn, attributes)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param dn The DN of the entry to add. It must not be * {@code null}. * @param attributes The set of attributes to include in the entry to add. * It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String dn, final Attribute... attributes) throws LDAPException { return add(new AddRequest(dn, attributes)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param dn The DN of the entry to add. It must not be * {@code null}. * @param attributes The set of attributes to include in the entry to add. * It must not be {@code null}. * * @return The result of processing the add operation. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String dn, final Attribute... attributes) throws LDAPException { return add(new AddRequest(dn, attributes)); }
/** * Processes an add operation with the provided information using a connection * from this connection pool. * * @param ldifLines The lines that comprise an LDIF representation of the * entry to add. It must not be empty or {@code null}. * * @return The result of processing the add operation. * * @throws LDIFException If the provided entry lines cannot be decoded as an * entry in LDIF form. * * @throws LDAPException If the server rejects the add request, or if a * problem is encountered while sending the request or * reading the response. */ public final LDAPResult add(final String... ldifLines) throws LDIFException, LDAPException { return add(new AddRequest(ldifLines)); }