| | |
| | | import static com.forgerock.opendj.cli.ToolVersionHandler.newSdkVersionHandler; |
| | | import static com.forgerock.opendj.ldap.tools.LDAPToolException.newToolParamException; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.addControlsToRequest; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.ensureLdapProtocolVersionIsSupported; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.computeWrapColumn; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.printErrorMessage; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.printPasswordPolicyResults; |
| | |
| | | BooleanArgument typesOnly; |
| | | IntegerArgument simplePageSize; |
| | | IntegerArgument timeLimit; |
| | | IntegerArgument ldapProtocolVersion; |
| | | StringArgument baseDN; |
| | | StringArgument controlStr; |
| | | MultiChoiceArgument<DereferenceAliasesPolicy> dereferencePolicy; |
| | |
| | | .multiValued() |
| | | .valuePlaceholder(INFO_ATTRIBUTE_PLACEHOLDER.get()) |
| | | .buildAndAddToParser(argParser); |
| | | |
| | | ldapProtocolVersion = ldapVersionArgument(); |
| | | argParser.addArgument(ldapProtocolVersion); |
| | | |
| | | dereferencePolicy = |
| | | MultiChoiceArgument.<DereferenceAliasesPolicy>builder("dereferencePolicy") |
| | | .shortIdentifier('a') |
| | |
| | | scope, |
| | | filter, |
| | | attributes.toArray(new String[attributes.size()])); |
| | | ensureLdapProtocolVersionIsSupported(ldapProtocolVersion); |
| | | } catch (final LocalizedIllegalArgumentException e) { |
| | | errPrintln(e.getMessageObject()); |
| | | return ResultCode.CLIENT_SIDE_PARAM_ERROR.intValue(); |