| | |
| | | * @throws ErrorResultException |
| | | * If the result code indicates that the request failed for some |
| | | * reason. |
| | | * @throws InterruptedException |
| | | * If the current thread was interrupted while waiting. |
| | | * @throws UnsupportedOperationException |
| | | * If the connection does not support search operations. |
| | | * @throws IllegalStateException |
| | |
| | | * If the {@code connection} or {@code name} was {@code null}. |
| | | */ |
| | | public SchemaBuilder addSchema(final Connection connection, final DN name, |
| | | final boolean overwrite) throws ErrorResultException, InterruptedException { |
| | | final boolean overwrite) throws ErrorResultException { |
| | | // The call to addSchema will perform copyOnWrite. |
| | | final SearchRequest request = getReadSchemaSearchRequest(name); |
| | | final Entry entry = connection.searchSingleEntry(request); |
| | |
| | | * @throws ErrorResultException |
| | | * If the result code indicates that the request failed for some |
| | | * reason. |
| | | * @throws InterruptedException |
| | | * If the current thread was interrupted while waiting. |
| | | * @throws UnsupportedOperationException |
| | | * If the connection does not support search operations. |
| | | * @throws IllegalStateException |
| | |
| | | * If the {@code connection} or {@code name} was {@code null}. |
| | | */ |
| | | public SchemaBuilder addSchemaForEntry(final Connection connection, final DN name, |
| | | final boolean overwrite) throws ErrorResultException, InterruptedException { |
| | | final boolean overwrite) throws ErrorResultException { |
| | | // The call to addSchema will perform copyOnWrite. |
| | | final SearchRequest request = getReadSchemaForEntrySearchRequest(name); |
| | | final Entry entry = connection.searchSingleEntry(request); |