| | |
| | | import org.forgerock.opendj.ldap.controls.SimplePagedResultsControl; |
| | | import org.forgerock.opendj.ldap.controls.VirtualListViewRequestControl; |
| | | import org.forgerock.opendj.ldap.controls.VirtualListViewResponseControl; |
| | | import org.forgerock.opendj.ldap.requests.BindRequest; |
| | | import org.forgerock.opendj.ldap.requests.Requests; |
| | | import org.forgerock.opendj.ldap.requests.SearchRequest; |
| | | import org.forgerock.opendj.ldap.responses.Result; |
| | |
| | | import com.forgerock.opendj.cli.ArgumentParser; |
| | | import com.forgerock.opendj.cli.BooleanArgument; |
| | | import com.forgerock.opendj.cli.CommonArguments; |
| | | import com.forgerock.opendj.cli.ConnectionFactoryProvider; |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | import com.forgerock.opendj.cli.IntegerArgument; |
| | | import com.forgerock.opendj.cli.MultiChoiceArgument; |
| | |
| | | StringArgument assertionFilter; |
| | | IntegerArgument sizeLimit; |
| | | try { |
| | | connectionFactoryProvider = new ConnectionFactoryProvider(argParser, this); |
| | | connectionFactoryProvider = new ConnectionFactoryProvider(argParser, this) { |
| | | @Override |
| | | public ConnectionFactory newAuthenticatedConnectionFactory(final ConnectionFactory connection, |
| | | final BindRequest request) throws ArgumentException { |
| | | return new AuthenticatedConnectionFactory(connection, request); |
| | | |
| | | } |
| | | }; |
| | | final StringArgument propertiesFileArgument = |
| | | CommonArguments.getPropertiesFile(); |
| | | argParser.addArgument(propertiesFileArgument); |
| | |
| | | final BooleanArgument continueOnError = CommonArguments.getContinueOnError(); |
| | | argParser.addArgument(continueOnError); |
| | | |
| | | noop = |
| | | new BooleanArgument("noop", OPTION_SHORT_DRYRUN, OPTION_LONG_DRYRUN, |
| | | INFO_DESCRIPTION_NOOP.get()); |
| | | noop.setPropertyName(OPTION_LONG_DRYRUN); |
| | | noop = CommonArguments.getNoOp(); |
| | | argParser.addArgument(noop); |
| | | |
| | | verbose = CommonArguments.getVerbose(); |