| | |
| | | * @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 static Schema readSchema(final Connection connection, final DN name) |
| | | throws ErrorResultException, InterruptedException { |
| | | throws ErrorResultException { |
| | | return new SchemaBuilder().addSchema(connection, name, true).toSchema(); |
| | | } |
| | | |
| | |
| | | * @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 static Schema readSchemaForEntry(final Connection connection, final DN name) |
| | | throws ErrorResultException, InterruptedException { |
| | | throws ErrorResultException { |
| | | return new SchemaBuilder().addSchemaForEntry(connection, name, true).toSchema(); |
| | | } |
| | | |