Refine search
@Override protected ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final ModelNode req = new ModelNode(); final ModelNode address = req.get(Util.ADDRESS); if(ctx.isDomainMode()) { address.add(Util.HOST, host.getValue(ctx.getParsedCommandLine(), true)); address.add(Util.SERVER, server.getValue(ctx.getParsedCommandLine(), true)); } address.add(Util.SUBSYSTEM, Util.DATASOURCES); req.get(Util.OPERATION).set(Util.INSTALLED_DRIVERS_LIST); return req; }
@Override protected ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException { final ModelNode req = new ModelNode(); final ModelNode address = req.get(Util.ADDRESS); if(ctx.isDomainMode()) { address.add(Util.HOST, host.getValue(ctx.getParsedCommandLine(), true)); address.add(Util.SERVER, server.getValue(ctx.getParsedCommandLine(), true)); } address.add(Util.SUBSYSTEM, Util.DATASOURCES); req.get(Util.OPERATION).set(Util.INSTALLED_DRIVERS_LIST); return req; }
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr) || REMOVE.equals(actionStr) || LIST_LINKS.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr) || REMOVE.equals(actionStr) || LIST_LINKS.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(REMOVE.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(!ctx.isDomainMode()) { return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(REMOVE.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(isDependsOnProfile() && ctx.isDomainMode() && !profile.isValueComplete(ctx.getParsedCommandLine())) { return false; } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(ctx.isDomainMode()) { return host.isPresent(ctx.getParsedCommandLine()) && server.isPresent(ctx.getParsedCommandLine()) && super.canAppearNext(ctx); } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(ctx.isDomainMode()) { return host.isPresent(ctx.getParsedCommandLine()) && server.isPresent(ctx.getParsedCommandLine()) && super.canAppearNext(ctx); } return super.canAppearNext(ctx); } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(ctx.isDomainMode()) { if(serverGroups.isPresent(ctx.getParsedCommandLine()) || allServerGroups.isPresent(ctx.getParsedCommandLine())) { return super.canAppearNext(ctx); } return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr) || REMOVE.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
@Override public boolean canAppearNext(CommandContext ctx) throws CommandFormatException { if(ctx.isDomainMode()) { if(serverGroups.isPresent(ctx.getParsedCommandLine()) || allServerGroups.isPresent(ctx.getParsedCommandLine())) { return super.canAppearNext(ctx); } return false; } final String actionStr = action.getValue(ctx.getParsedCommandLine()); if(actionStr == null) { return false; } if(ADD.equals(actionStr) || LINK.equals(actionStr) || REMOVE.equals(actionStr)) { return super.canAppearNext(ctx); } return false; } };
protected ModelNode initRequest(CommandContext ctx) throws CommandLineException { ModelNode request = new ModelNode(); ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfile() && ctx.isDomainMode()) { final String profileName = profile.getValue(ctx.getParsedCommandLine()); if(profileName == null) { throw new CommandLineException("WARNING: --profile argument is required for the complete description."); } address.add(Util.PROFILE, profileName); } for(OperationRequestAddress.Node node : getRequiredAddress()) { address.add(node.getType(), node.getName()); } address.add(getRequiredType(), "?"); return request; }
protected ModelNode initRequest(CommandContext ctx) throws CommandFormatException { ModelNode request = new ModelNode(); ModelNode address = request.get(Util.ADDRESS); if(isDependsOnProfile() && ctx.isDomainMode()) { final String profileName = profile.getValue(ctx.getParsedCommandLine()); if(profileName == null) { throw new CommandFormatException("WARNING: --profile argument is required for the complete description."); } address.add(Util.PROFILE, profileName); } for(OperationRequestAddress.Node node : getRequiredAddress()) { address.add(node.getType(), node.getName()); } address.add(getRequiredType(), "?"); return request; }