X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fesr-server.git;a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Faai%2FIExternalSystem.java;h=037b077fc336849f3e5e4b83544c7cbe8bac8430;hp=859120d7cd55d572fecaf12ebc9b24067450c7df;hb=83c6e0c5f6214af24efc124ed6cf840e6ad59cc4;hpb=d0d48600112f9f2341a48f5970d5879c048415a6 diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java index 859120d..037b077 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/IExternalSystem.java @@ -29,6 +29,7 @@ import javax.ws.rs.core.MediaType; import org.onap.aai.esr.entity.aai.EsrEmsDetail; import org.onap.aai.esr.entity.aai.EsrThirdpartySdncDetail; import org.onap.aai.esr.entity.aai.EsrVnfmDetail; +import org.onap.aai.esr.exception.ExtsysException; @Path("/") public interface IExternalSystem { @@ -40,7 +41,7 @@ public interface IExternalSystem { public void registerVNFM(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("vnfm_id") String vnfmId, - EsrVnfmDetail esrVnfmDetail) throws Exception; + EsrVnfmDetail esrVnfmDetail) throws ExtsysException; @GET @Path("/esr-vnfm-list/esr-vnfm/{vnfm_id}?depth=all") @@ -49,7 +50,7 @@ public interface IExternalSystem { public String queryVNFMDetail(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("vnfm_id") String vnfmId) - throws Exception; + throws ExtsysException; @GET @Path("/esr-vnfm-list") @@ -57,7 +58,7 @@ public interface IExternalSystem { @Produces(MediaType.APPLICATION_JSON) public String queryVNFMList(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, - @HeaderParam("Authorization") String authorization) throws Exception; + @HeaderParam("Authorization") String authorization) throws ExtsysException; @DELETE @Path("/esr-vnfm-list/esr-vnfm/{vnfm_id}") @@ -67,7 +68,7 @@ public interface IExternalSystem { @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("vnfm_id") String vnfmId, - @QueryParam("resource-version") String resourceVersion) throws Exception; + @QueryParam("resource-version") String resourceVersion) throws ExtsysException; @PUT @Path("/esr-ems-list/esr-ems/{ems_id}") @@ -76,7 +77,7 @@ public interface IExternalSystem { public void registerEMS(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("ems_id") String emsId, - EsrEmsDetail esrEmsDetail) throws Exception; + EsrEmsDetail esrEmsDetail) throws ExtsysException; @GET @Path("/esr-ems-list/esr-ems/{ems_id}?depth=all") @@ -85,7 +86,7 @@ public interface IExternalSystem { public String queryEMSDetail(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("ems_id") String emsId) - throws Exception; + throws ExtsysException; @GET @Path("/esr-ems-list") @@ -93,7 +94,7 @@ public interface IExternalSystem { @Produces(MediaType.APPLICATION_JSON) public String queryEMSList(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, - @HeaderParam("Authorization") String authorization) throws Exception; + @HeaderParam("Authorization") String authorization) throws ExtsysException; @DELETE @Path("/esr-ems-list/esr-ems/{ems_id}") @@ -103,7 +104,7 @@ public interface IExternalSystem { @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("ems_id") String emsId, - @QueryParam("resource-version") String resourceVersion) throws Exception; + @QueryParam("resource-version") String resourceVersion) throws ExtsysException; @PUT @Path("/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{thirdparty-sdnc-id}") @@ -112,7 +113,7 @@ public interface IExternalSystem { public void registerThirdpartySdnc(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("thirdparty-sdnc-id") String thirdpartySdncId, - EsrThirdpartySdncDetail esrThirdpartySdncDetail) throws Exception; + EsrThirdpartySdncDetail esrThirdpartySdncDetail) throws ExtsysException; @GET @Path("/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{thirdparty-sdnc-id}?depth=all") @@ -121,7 +122,7 @@ public interface IExternalSystem { public String queryThirdpartySdncDetail(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("thirdparty-sdnc-id") String thirdpartySdncId) - throws Exception; + throws ExtsysException; @GET @Path("/esr-thirdparty-sdnc-list") @@ -129,7 +130,7 @@ public interface IExternalSystem { @Produces(MediaType.APPLICATION_JSON) public String queryThirdpartySdncList(@HeaderParam("X-TransactionId") String transactionId, @HeaderParam("X-FromAppId") String fromApp, - @HeaderParam("Authorization") String authorization) throws Exception; + @HeaderParam("Authorization") String authorization) throws ExtsysException; @DELETE @Path("/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{thirdparty-sdnc-id}") @@ -139,5 +140,5 @@ public interface IExternalSystem { @HeaderParam("X-FromAppId") String fromApp, @HeaderParam("Authorization") String authorization, @PathParam("thirdparty-sdnc-id") String thirdpartySdncId, - @QueryParam("resource-version") String resourceVersion) throws Exception; + @QueryParam("resource-version") String resourceVersion) throws ExtsysException; }