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.1/auth/src | |
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.1/auth/src')
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandAmesterdam.java b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandAmesterdam.java index b05267e1..2e7e95eb 100644 --- a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandAmesterdam.java +++ b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLoginCommandAmesterdam.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.1", type = "auth", schema = "basic-login-onap-1-1.yaml") +@OnapCommandSchema(schema = "basic-login-onap-1-1.yaml") public class OnapBasicAuthLoginCommandAmesterdam extends BasicAuthLoginCommand { @Override protected void run() throws OnapCommandException { - super.run(); + super.run(); } } diff --git a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandAmesterdam.java b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandAmesterdam.java index 4a90f7e0..130f71be 100644 --- a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandAmesterdam.java +++ b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapBasicAuthLogoutCommandAmesterdam.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.1", type = "auth", schema = "basic-logout-onap-1-1.yaml") +@OnapCommandSchema(schema = "basic-logout-onap-1-1.yaml") public class OnapBasicAuthLogoutCommandAmesterdam extends BasicAuthLogoutCommand { @Override diff --git a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandAmesterdam.java b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandAmesterdam.java index ba1a7b28..cae9b3fd 100644 --- a/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandAmesterdam.java +++ b/plugins/onap-1.1/auth/src/main/java/org/onap/cli/cmd/auth/OnapSdcBasicAuthLoginCommandAmesterdam.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.1", type = "auth", schema = "basic-login-onap-sdc-1-1.yaml") +@OnapCommandSchema(schema = "basic-login-onap-sdc-1-1.yaml") public class OnapSdcBasicAuthLoginCommandAmesterdam extends BasicAuthLoginCommand { @Override protected void run() throws OnapCommandException { - super.run(); + super.run(); } } |