Updated Branches: refs/heads/master 42f8d98a0 -> a5883c3f3
Remove isActive option in create-tenant command Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/a5883c3f Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/a5883c3f Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/a5883c3f Branch: refs/heads/master Commit: a5883c3f318025f7bf58ff8648e0f9506df1851c Parents: 42f8d98 Author: Manula Thantriwatte <[email protected]> Authored: Tue Jan 7 15:21:22 2014 +0530 Committer: Manula Thantriwatte <[email protected]> Committed: Tue Jan 7 15:21:22 2014 +0530 ---------------------------------------------------------------------- .../org/apache/stratos/cli/beans/TenantInfoBean.java | 8 -------- .../apache/stratos/cli/commands/AddTenantCommand.java | 12 ------------ 2 files changed, 20 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a5883c3f/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/TenantInfoBean.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/TenantInfoBean.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/TenantInfoBean.java index 683c1d7..8ac42e8 100644 --- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/TenantInfoBean.java +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/beans/TenantInfoBean.java @@ -25,7 +25,6 @@ public class TenantInfoBean { private String adminPassword; private String tenantDomain; private String email; - private String active; public String getAdmin() { return admin; @@ -75,11 +74,4 @@ public class TenantInfoBean { this.email = email; } - public String getActive() { - return active; - } - - public void setActive(String active) { - this.active = active; - } } http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a5883c3f/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/AddTenantCommand.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/AddTenantCommand.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/AddTenantCommand.java index 4139866..4b33f6a 100644 --- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/AddTenantCommand.java +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/commands/AddTenantCommand.java @@ -72,11 +72,6 @@ public class AddTenantCommand implements Command<StratosCommandContext> { passwordOption.setArgName("email"); options.addOption(emailOption); - Option acvive = new Option(CliConstants.ACTIVE_OPTION, CliConstants.ACTIVE_LONG_OPTION, true, - "Is tenant active"); - passwordOption.setArgName("active"); - options.addOption(acvive); - return options; } @@ -104,7 +99,6 @@ public class AddTenantCommand implements Command<StratosCommandContext> { String password = null; String domain = null; String email = null; - String active = null; final CommandLineParser parser = new GnuParser(); CommandLine commandLine; @@ -153,12 +147,6 @@ public class AddTenantCommand implements Command<StratosCommandContext> { email = commandLine.getOptionValue(CliConstants.EMAIL_OPTION); } - //if (commandLine.hasOption(CliConstants.ACTIVE_OPTION)) { - // if (logger.isTraceEnabled()) { - // logger.trace("Tenat active option is passed"); - // } - // active = commandLine.getOptionValue(CliConstants.ACTIVE_OPTION); - //} if (admin == null || firstName == null || lastaName == null || password == null || domain == null || email == null) { System.out.println("usage: " + getName() + " [-u <user name>] [-f <first name>] [-l <last name>] [-p <password>] [-d <domain name>] [-e <email>]");
