| | |
| | | */ |
| | | package com.forgerock.opendj.ldap.tools; |
| | | |
| | | import static com.forgerock.opendj.cli.ArgumentConstants.*; |
| | | import static com.forgerock.opendj.ldap.tools.ToolsMessages.*; |
| | | import static com.forgerock.opendj.cli.Utils.filterExitCode; |
| | | import static com.forgerock.opendj.cli.Utils.secondsToTimeString; |
| | | import static org.forgerock.util.Utils.closeSilently; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.FileReader; |
| | | import java.io.IOException; |
| | |
| | | import com.forgerock.opendj.ldap.controls.AccountUsabilityResponseControl; |
| | | import com.forgerock.opendj.util.StaticUtils; |
| | | |
| | | import static org.forgerock.util.Utils.*; |
| | | |
| | | import static com.forgerock.opendj.cli.ArgumentConstants.*; |
| | | import static com.forgerock.opendj.cli.Utils.*; |
| | | import static com.forgerock.opendj.ldap.tools.ToolsMessages.*; |
| | | |
| | | /** |
| | | * A tool that can be used to issue Search requests to the Directory Server. |
| | | */ |
| | |
| | | private int entryCount; |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean handleEntry(final SearchResultEntry entry) { |
| | | entryCount++; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean handleReference(final SearchResultReference reference) { |
| | | println(LocalizableMessage.raw(reference.toString())); |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | public void handleErrorResult(ErrorResultException error) { |
| | | // Ignore. |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | public void handleResult(Result result) { |
| | | // Ignore. |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public boolean isInteractive() { |
| | | return false; |
| | | } |