/** {@inheritDoc} */ @Override protected void initOptions() { options.addOption(new Option(OPT_DSMLV1, false, "output results in DSML v1")); final Map<String, String> desc = getArgDesc( ConnectionConfig.class, Authenticator.class, SearchDnResolver.class, AuthenticationRequest.class); for (String s : ConnectionConfigPropertySource.getProperties()) { options.addOption(new Option(s, true, desc.get(s))); } for (String s : AuthenticatorPropertySource.getProperties()) { options.addOption(new Option(s, true, desc.get(s))); } for (String s : SearchDnResolverPropertySource.getProperties()) { // ignore connection config property if (!s.equalsIgnoreCase(ConnectionConfig.class.getSimpleName())) { options.addOption(new Option(s, true, desc.get(s))); } } for (String s : AuthenticationRequestPropertySource.getProperties()) { options.addOption(new Option(s, true, desc.get(s))); } super.initOptions(); }
/** {@inheritDoc} */ @Override protected void initOptions() { options.addOption(new Option(OPT_DN, true, "entry DN")); final Map<String, String> desc = getArgDesc(ConnectionConfig.class); for (String s : ConnectionConfigPropertySource.getProperties()) { options.addOption(new Option(s, true, desc.get(s))); } super.initOptions(); }
/** {@inheritDoc} */ protected void initOptions() { super.initOptions( new LdapConfigPropertyInvoker(LdapConfig.class, LdapConfig.PROPERTIES_DOMAIN)); options.addOption(new Option(OPT_QUERY, true, "")); }