airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [9/9] airavata git commit: removing gateway credential API methods from the API
Date Mon, 21 Dec 2015 19:48:45 GMT
removing gateway credential API methods from the API


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/b7f7fd3b
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/b7f7fd3b
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/b7f7fd3b

Branch: refs/heads/master
Commit: b7f7fd3b1ac37d266be396dd5167fb5a602063b5
Parents: 3d83432
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon Dec 21 14:48:18 2015 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon Dec 21 14:48:18 2015 -0500

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |    63 -
 .../java/org/apache/airavata/api/Airavata.java  | 13006 ++++++-----------
 .../main/resources/lib/airavata/Airavata.cpp    |  5250 +++----
 .../src/main/resources/lib/airavata/Airavata.h  |   444 -
 .../lib/airavata/Airavata_server.skeleton.cpp   |    33 -
 .../lib/airavata/security_model_types.cpp       |    46 +-
 .../lib/airavata/security_model_types.h         |    20 +-
 .../resources/lib/Airavata/API/Airavata.php     |  2537 +---
 .../lib/Airavata/Model/Security/Types.php       |    48 +-
 .../lib/apache/airavata/api/Airavata-remote     |    21 -
 .../lib/apache/airavata/api/Airavata.py         |  1716 +--
 .../apache/airavata/model/security/ttypes.py    |    32 +-
 .../airavata/model/security/AuthzToken.java     |   228 +-
 .../airavata-apis/airavata_api.thrift           |    25 -
 .../airavata-apis/security_model.thrift         |     4 +-
 15 files changed, 7880 insertions(+), 15593 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/b7f7fd3b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index 9cc6f2f..1ceb797 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -361,69 +361,6 @@ public class AiravataServerHandler implements Airavata.Iface {
     }
 
     /**
-     * * Create new gateway client credential
-     * *
-     *
-     * @param gatewayId
-     */
-    @Override
-    public Map<String, String> createNewGatewayClientCredential(String gatewayId) throws
InvalidRequestException,
-            AiravataClientException, AiravataSystemException, TException {
-        try {
-            Map.Entry<String, String> credential = appCatalog.getGatewayClientCredential().generateNewGatewayClientCredential(gatewayId);
-            HashMap<String, String> returnCredential = new HashMap<>();
-            returnCredential.put(credential.getKey(), credential.getValue());
-            return returnCredential;
-        } catch (AppCatalogException e) {
-            logger.error("Error occurred while generating gateway credential", e);
-            AiravataSystemException exception = new AiravataSystemException();
-            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error occurred while generating gateway client credential.
More info : " + e.getMessage());
-            throw exception;
-        }
-    }
-
-    /**
-     * * Delete existing gateway credential
-     * *
-     *
-     * @param clientKey
-     */
-    @Override
-    public void deleteGatewayClientCredential(String clientKey) throws InvalidRequestException,
-            AiravataClientException, AiravataSystemException, TException {
-        try {
-            appCatalog.getGatewayClientCredential().removeGatewayClientCredential(clientKey);
-        } catch (AppCatalogException e) {
-            logger.error("Error occurred while removing gateway credential", e);
-            AiravataSystemException exception = new AiravataSystemException();
-            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error occurred while removing gateway client credential.
More info : " + e.getMessage());
-            throw exception;
-        }
-    }
-
-    /**
-     * * Get all gateway client credentials
-     * *
-     *
-     * @param gatewayId
-     */
-    @Override
-    public Map<String, String> getAllGatewayClientCredentials(String gatewayId) throws
InvalidRequestException,
-            AiravataClientException, AiravataSystemException, TException {
-        try {
-            return appCatalog.getGatewayClientCredential().getAllGatewayClientCredentials(gatewayId);
-        } catch (AppCatalogException e) {
-            logger.error("Error occurred while removing gateway credential", e);
-            AiravataSystemException exception = new AiravataSystemException();
-            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
-            exception.setMessage("Error occurred while removing gateway client credential.
More info : " + e.getMessage());
-            throw exception;
-        }
-    }
-
-    /**
      * Create a Project
      *
      * @param project


Mime
View raw message