| File was renamed from opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliParser.java |
| | |
| | | import org.opends.admin.ads.ADSContextException; |
| | | import org.opends.admin.ads.util.ApplicationKeyManager; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.server.admin.client.cli.DsServiceCliReturnCode.ReturnCode; |
| | | import org.opends.server.admin.client.cli.DsFrameworkCliReturnCode.ReturnCode; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import org.opends.server.util.PasswordReader; |
| | |
| | | /** |
| | | * This class will parser CLI arguments. |
| | | */ |
| | | public class DsServiceCliParser extends SubCommandArgumentParser |
| | | public class DsFrameworkCliParser extends SubCommandArgumentParser |
| | | { |
| | | /** |
| | | * The tracer object for the debug logger. |
| | |
| | | * The Logger. |
| | | */ |
| | | static private final Logger LOG = |
| | | Logger.getLogger(DsServiceCliParser.class.getName()); |
| | | Logger.getLogger(DsFrameworkCliParser.class.getName()); |
| | | |
| | | /** |
| | | * The diferent CLI group. |
| | | */ |
| | | public HashSet<DsServiceCliSubCommandGroup> cliGroup; |
| | | public HashSet<DsFrameworkCliSubCommandGroup> cliGroup; |
| | | |
| | | |
| | | |
| | |
| | | * Indicates whether subcommand and long argument names |
| | | * should be treated in a case-sensitive manner. |
| | | */ |
| | | public DsServiceCliParser(String mainClassName, String toolDescription, |
| | | public DsFrameworkCliParser(String mainClassName, String toolDescription, |
| | | boolean longArgumentsCaseSensitive) |
| | | { |
| | | super(mainClassName, toolDescription, longArgumentsCaseSensitive); |
| | | cliGroup = new HashSet<DsServiceCliSubCommandGroup>(); |
| | | cliGroup = new HashSet<DsFrameworkCliSubCommandGroup>(); |
| | | } |
| | | |
| | | /** |
| | |
| | | initializeGlobalOption(outStream); |
| | | |
| | | // ads Group cli |
| | | cliGroup.add(new DsServiceCliAds()); |
| | | cliGroup.add(new DsFrameworkCliAds()); |
| | | |
| | | // Server Group cli |
| | | cliGroup.add(new DsServiceCliServerGroup()); |
| | | cliGroup.add(new DsFrameworkCliServerGroup()); |
| | | |
| | | // Initialization |
| | | for (DsServiceCliSubCommandGroup oneCli : cliGroup) |
| | | for (DsFrameworkCliSubCommandGroup oneCli : cliGroup) |
| | | { |
| | | oneCli.initializeCliGroup(this, verboseArg); |
| | | } |
| | |
| | | { |
| | | SubCommand subCmd = getSubCommand(); |
| | | |
| | | for (DsServiceCliSubCommandGroup oneCli : cliGroup) |
| | | for (DsFrameworkCliSubCommandGroup oneCli : cliGroup) |
| | | { |
| | | if (oneCli.isSubCommand(subCmd)) |
| | | { |