airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [5/5] airavata git commit: api method get data sharing enabled
Date Tue, 04 Oct 2016 16:01:08 GMT
api method get data sharing enabled


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

Branch: refs/heads/develop
Commit: 33c025188d2181ae9227054ab5911e13adb3f302
Parents: 1917d3b
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Oct 4 02:00:42 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Oct 4 02:00:42 2016 -0400

----------------------------------------------------------------------
 .../server/handler/AiravataServerHandler.java   |    11 +
 .../java/org/apache/airavata/api/Airavata.java  | 42040 +++++++++--------
 .../main/resources/lib/airavata/Airavata.cpp    |   480 +
 .../src/main/resources/lib/airavata/Airavata.h  |   146 +
 .../lib/airavata/Airavata_server.skeleton.cpp   |     5 +
 .../resources/lib/airavata/job_model_types.cpp  |    30 +-
 .../resources/lib/airavata/job_model_types.h    |    12 +-
 .../lib/airavata/process_model_types.cpp        |    60 +-
 .../lib/airavata/process_model_types.h          |    22 +-
 .../resources/lib/airavata/task_model_types.cpp |    60 +-
 .../resources/lib/airavata/task_model_types.h   |    18 +-
 .../resources/lib/Airavata/API/Airavata.php     |   295 +
 .../lib/Airavata/Model/Process/Types.php        |    44 +-
 .../resources/lib/Airavata/Model/Task/Types.php |    44 +-
 .../resources/lib/Airavata/Model/job/Types.php  |    22 +-
 .../lib/apache/airavata/api/Airavata-remote     |     7 +
 .../lib/apache/airavata/api/Airavata.py         |   235 +
 .../lib/apache/airavata/model/job/ttypes.py     |    22 +-
 .../lib/apache/airavata/model/process/ttypes.py |    42 +-
 .../lib/apache/airavata/model/task/ttypes.py    |    46 +-
 .../org/apache/airavata/model/job/JobModel.java |   103 +-
 .../airavata/model/process/ProcessModel.java    |   179 +-
 .../apache/airavata/model/task/TaskModel.java   |   178 +-
 .../airavata-apis/airavata_api.thrift           |     5 +
 24 files changed, 23275 insertions(+), 20831 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/33c02518/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 5ccf874..1513d81 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
@@ -3542,6 +3542,17 @@ public class AiravataServerHandler implements Airavata.Iface {
         }
     }
 
+    @Override
+    public boolean isDataSharingEnabled() throws InvalidRequestException, AiravataClientException,
AiravataSystemException, AuthorizationException, TException {
+        try {
+            return ServerSettings.isEnableSharing();
+        } catch (ApplicationSettingsException e) {
+            AiravataSystemException exception = new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR);
+            exception.setMessage( e.getMessage());
+            throw exception;
+        }
+    }
+
     private void initializeResourceWithGrouper(String resourceId, ResourceType resourceType)
throws RegistryServiceException, GroupManagerException, TException, ApplicationSettingsException
{
         GroupManagerCPI groupManager = GroupManagerFactory.getGroupManager();
         if(resourceType.equals(ResourceType.PROJECT)){


Mime
View raw message