diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-10-06 22:30:23 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-20 12:41:19 +0530 |
commit | 20dc78d226aca6cb390586a9e19e522d68d0821b (patch) | |
tree | cb302def17571f8f53d08073cbf83a89082fbcdc /plugins/onap-1.0/auth | |
parent | 51a60f14821cb3ca54848e94694b3dda045fe666 (diff) |
Normalize OnapCommandSchema
discovery is optimized to register the plugins
and http commands from one function
Issue-Id: CLI-66
Change-Id: I3b813862ffd5640c5218c4cced7d10f914dce4ad
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/onap-1.0/auth')
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommand.java b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommand.java index b441d3bd..e0fa3abf 100644 --- a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommand.java +++ b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommand.java @@ -20,11 +20,11 @@ import org.onap.cli.fw.OnapCommandSchema; import org.onap.cli.fw.cmd.BasicAuthLoginCommand; import org.onap.cli.fw.error.OnapCommandException; -@OnapCommandSchema(name = "basic-login", version = "onap-1.0", type = "auth", schema = "basic-login-onap-1-0.yaml") +@OnapCommandSchema(schema = "basic-login-onap-1-0.yaml") public class OnapBasicAuthLoginCommand extends BasicAuthLoginCommand { @Override protected void run() throws OnapCommandException { - super.run(); + super.run(); } } diff --git a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommand.java b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommand.java index 8b44b5cc..b87989c7 100644 --- a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommand.java +++ b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommand.java @@ -20,7 +20,7 @@ import org.onap.cli.fw.OnapCommandSchema; import org.onap.cli.fw.cmd.BasicAuthLogoutCommand; import org.onap.cli.fw.error.OnapCommandException; -@OnapCommandSchema(name = "basic-logout", version = "onap-1.0", type = "auth", schema = "basic-logout-onap-1-0.yaml") +@OnapCommandSchema(schema = "basic-logout-onap-1-0.yaml") public class OnapBasicAuthLogoutCommand extends BasicAuthLogoutCommand { @Override diff --git a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommand.java b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommand.java index 792b9990..0e8805a4 100644 --- a/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommand.java +++ b/plugins/onap-1.0/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommand.java @@ -20,11 +20,11 @@ import org.onap.cli.fw.OnapCommandSchema; import org.onap.cli.fw.cmd.BasicAuthLoginCommand; import org.onap.cli.fw.error.OnapCommandException; -@OnapCommandSchema(name = "sdc-basic-login", version = "onap-1.0", type = "auth", schema = "basic-login-onap-sdc-1-0.yaml") +@OnapCommandSchema(schema = "basic-login-onap-sdc-1-0.yaml") public class OnapSdcBasicAuthLoginCommand extends BasicAuthLoginCommand { @Override protected void run() throws OnapCommandException { - super.run(); + super.run(); } } |