You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/06/07 18:27:01 UTC
[airavata] 01/01: Merge branch 'staging' into develop
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
commit b49e9c819a5abbd6e686a480dbc9c176b95e190e
Merge: caaf77d 8c31d03
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Fri Jun 7 14:25:03 2019 -0400
Merge branch 'staging' into develop
.travis.yml | 20 +
INSTALL | 5 +-
NOTICE | 233 +-
README => README.md | 5 +-
RELEASE_NOTES | 183 +
airavata-api/airavata-api-server/pom.xml | 25 -
.../api/server/handler/AiravataServerHandler.java | 66 +-
airavata-api/airavata-api-stubs/pom.xml | 5 +
.../java/org/apache/airavata/api/Airavata.java | 6165 ++++----
.../apache/airavata/api/airavata_apiConstants.java | 2 +-
airavata-api/airavata-base-api/pom.xml | 22 +
.../java/org/apache/airavata/base/api/BaseAPI.java | 859 ++
.../main/resources/lib/Airavata/API/Airavata.php | 13116 +++++++++--------
.../API/Sharing/SharingRegistryService.php | 864 +-
.../resources/lib/Airavata/API/Sharing/Types.php | 8 +
.../src/main/resources/lib/Airavata/API/Types.php | 2 +-
.../resources/lib/Airavata/Base/API/BaseAPI.php | 218 +
.../Airavata/{API/Sharing => Base/API}/Types.php | 2 +-
.../resources/lib/Airavata/Model/Process/Types.php | 219 +-
.../resources/lib/Airavata/Model/Task/Types.php | 46 +
.../Iam/Admin/Services/CPI/IamAdminServices.php | 685 +-
.../Service/Iam/Admin/Services/CPI/Types.php | 2 +-
.../Groupmanager/CPI/GroupManagerService.php | 218 +-
.../Service/Profile/Groupmanager/CPI/Types.php | 2 +-
.../Profile/Tenant/CPI/TenantProfileService.php | 281 +-
.../Airavata/Service/Profile/Tenant/CPI/Types.php | 2 +-
.../Airavata/Service/Profile/User/CPI/Types.php | 2 +-
.../Profile/User/CPI/UserProfileService.php | 218 +-
.../resources/lib/airavata/api/Airavata-remote | 16 +-
.../main/resources/lib/airavata/api/Airavata.py | 227 +-
.../main/resources/lib/airavata/api/constants.py | 2 +-
.../api/sharing/SharingRegistryService-remote | 7 +
.../airavata/api/sharing/SharingRegistryService.py | 15 +-
.../lib/airavata/api/sharing/constants.py | 1 +
.../resources/lib/airavata/api/sharing/ttypes.py | 1 +
.../src/main/resources/lib/airavata/api/ttypes.py | 1 +
.../main/resources/lib/airavata/base/__init__.py | 0
.../api/BaseAPI-remote} | 55 +-
.../resources/lib/airavata/base/api/BaseAPI.py | 198 +
.../resources/lib/airavata/base/api/__init__.py | 1 +
.../{api/sharing => base/api}/constants.py | 0
.../airavata/{api/sharing => base/api}/ttypes.py | 1 -
.../resources/lib/airavata/model/process/ttypes.py | 147 +-
.../resources/lib/airavata/model/task/ttypes.py | 26 +-
.../groupmanager/cpi/GroupManagerService-remote | 7 +
.../groupmanager/cpi/GroupManagerService.py | 15 +-
.../service/profile/groupmanager/cpi/constants.py | 2 +-
.../service/profile/groupmanager/cpi/ttypes.py | 1 +
.../iam/admin/services/cpi/IamAdminServices-remote | 23 +-
.../iam/admin/services/cpi/IamAdminServices.py | 485 +-
.../profile/iam/admin/services/cpi/constants.py | 2 +-
.../profile/iam/admin/services/cpi/ttypes.py | 1 +
.../profile/tenant/cpi/TenantProfileService-remote | 16 +-
.../profile/tenant/cpi/TenantProfileService.py | 183 +-
.../service/profile/tenant/cpi/constants.py | 2 +-
.../airavata/service/profile/tenant/cpi/ttypes.py | 1 +
.../lib/airavata/service/profile/ttypes.py | 1 +
.../profile/user/cpi/UserProfileService-remote | 7 +
.../service/profile/user/cpi/UserProfileService.py | 15 +-
.../airavata/service/profile/user/cpi/constants.py | 2 +-
.../airavata/service/profile/user/cpi/ttypes.py | 1 +
.../java-client-samples/pom.xml | 16 -
.../secure/client/OAuthAppRegisteringClient.java | 79 -
.../secure/client/OAuthTokenRetrievalClient.java | 123 -
.../client/secure/client/SecureClient.java | 214 +-
.../airavata/model/process/ProcessModel.java | 297 +-
.../airavata/model/process/ProcessWorkflow.java | 691 +
.../org/apache/airavata/model/task/TaskModel.java | 204 +-
airavata-api/pom.xml | 1 +
airavata-services/pom.xml | 28 +-
.../iam-admin-services-core/pom.xml | 23 +-
.../core/impl/TenantManagementKeycloakImpl.java | 4 +-
.../core/interfaces/TenantManagementInterface.java | 4 +-
.../admin/services/core/tests/SetupNewGateway.java | 19 +
airavata-services/profile-service/pom.xml | 28 +-
.../java-client-samples/pom.xml | 28 +-
.../client/samples/TenantProfileSample.java | 19 +
.../profile/client/samples/UserProfileSample.java | 19 +
.../client/util/ProfileServiceClientUtil.java | 19 +
.../profile-service-client-sdks/pom.xml | 28 +-
.../profile-service-commons/pom.xml | 28 +-
.../commons/repositories/AbstractRepository.java | 5 +-
.../commons/tenant/entities/GatewayEntity.java | 3 +-
.../user/entities/NSFDemographicsEntity.java | 5 +-
.../commons/user/entities/UserProfileEntity.java | 5 +-
.../service/profile/commons/utils/Committer.java | 5 +-
.../profile/commons/utils/JPAConstants.java | 3 +-
.../service/profile/commons/utils/JPAUtils.java | 5 +-
.../commons/utils/ObjectMapperSingleton.java | 3 +-
.../profile/commons/utils/QueryConstants.java | 19 +
.../service/profile/commons/utils/Utils.java | 3 +-
.../profile-service/profile-service-server/pom.xml | 28 +-
.../handlers/GroupManagerServiceHandler.java | 3 +-
.../profile/handlers/IamAdminServicesHandler.java | 7 +-
.../handlers/TenantProfileServiceHandler.java | 7 +-
.../handlers/UserProfileServiceHandler.java | 10 +-
.../profile/server/ProfileServiceServer.java | 6 +-
.../profile-service/profile-service-stubs/pom.xml | 33 +-
.../client/ProfileServiceClientFactory.java | 3 +-
.../groupmanager/cpi/GroupManagerService.java | 12 +-
.../cpi/group_manager_cpiConstants.java | 2 +-
.../iam/admin/services/cpi/IamAdminServices.java | 879 +-
.../cpi/iam_admin_services_cpiConstants.java | 2 +-
.../profile/tenant/cpi/TenantProfileService.java | 879 +-
.../tenant/cpi/profile_tenant_cpiConstants.java | 2 +-
.../profile/user/cpi/UserProfileService.java | 12 +-
.../user/cpi/profile_user_cpiConstants.java | 2 +-
.../profile-service/profile-tenant-core/pom.xml | 28 +-
.../core/repositories/TenantProfileRepository.java | 3 +-
.../profile-service/profile-user-core/pom.xml | 23 +-
.../exceptions/UserProfileRegistryException.java | 3 +-
.../core/repositories/UserProfileRepository.java | 5 +-
.../core/repositories/WorkspaceRepositoryTest.java | 5 +-
airavata-services/services-security/pom.xml | 53 +-
.../service/security/AiravataSecurityManager.java | 3 +-
.../security/DefaultAiravataSecurityManager.java | 283 -
.../airavata/service/security/IdentityContext.java | 4 +-
.../service/security/KeyCloakSecurityManager.java | 5 +-
.../org/apache/airavata/service/security/Main.java | 179 -
.../service/security/SecurityManagerFactory.java | 3 +-
.../service/security/authzcache/AuthzCache.java | 3 +-
.../security/authzcache/AuthzCacheEntry.java | 3 +-
.../security/authzcache/AuthzCacheIndex.java | 3 +-
.../security/authzcache/AuthzCacheManager.java | 3 +-
.../authzcache/AuthzCacheManagerFactory.java | 3 +-
.../security/authzcache/AuthzCachedStatus.java | 3 +-
.../authzcache/DefaultAuthzCacheManager.java | 3 +-
.../security/interceptor/SecurityCheck.java | 3 +-
.../security/interceptor/SecurityInterceptor.java | 3 +-
.../security/interceptor/SecurityModule.java | 1 -
.../service/security/oauth/DefaultOAuthClient.java | 91 -
.../service/security/xacml/DefaultPAPClient.java | 125 -
.../service/security/xacml/DefaultXACMLPEP.java | 133 -
dev-tools/ansible/NOTE | 20 +
dev-tools/ansible/airavata-iam-setup.yml | 20 +
dev-tools/ansible/ansible.cfg | 20 +
dev-tools/ansible/database.yml | 22 +-
.../scigap/dreg-production/group_vars/pga/vars.yml | 2 +-
.../inventories/scigap/dreg-production/hosts | 15 +-
.../group_vars/pga}/vars.yml | 22 +-
.../nexttdb-production/group_vars/pga/vault.yml | 18 +
.../inventories/scigap/nexttdb-production/hosts | 24 +
.../group_vars/pga/vars.yml | 46 +-
.../pfec-hydro-production/group_vars/pga/vault.yml | 18 +
.../inventories/scigap/pfec-hydro-production/hosts | 24 +
.../scigap/production/files/pga_config_0.17.php.j2 | 256 -
.../scigap/production/group_vars/all/vars.yml | 52 +-
.../scigap/production/group_vars/all/vault.yml | 65 +-
.../ansible/inventories/scigap/production/hosts | 21 +-
.../scigap/production/pga_config/Kentucky/vars.yml | 1 -
.../production/pga_config/NCSAIndustry/vars.yml | 1 -
.../scigap/production/pga_config/accord/vars.yml | 66 -
.../scigap/production/pga_config/accord/vault.yml | 18 -
.../production/pga_config/ampgateway/vars.yml | 20 +-
.../scigap/production/pga_config/brandeis/vars.yml | 57 -
.../production/pga_config/brandeis/vault.yml | 18 -
.../scigap/production/pga_config/csbglsu/vars.yml | 1 -
.../pga_config/{demo1 => ddstudio}/vars.yml | 30 +-
.../production/pga_config/ddstudio/vault.yml | 17 +
.../scigap/production/pga_config/demo1/vault.yml | 17 -
.../scigap/production/pga_config/demo10/vars.yml | 65 -
.../scigap/production/pga_config/demo10/vault.yml | 17 -
.../scigap/production/pga_config/demo2/vars.yml | 65 -
.../scigap/production/pga_config/demo2/vault.yml | 17 -
.../scigap/production/pga_config/demo3/vault.yml | 17 -
.../scigap/production/pga_config/demo4/vars.yml | 65 -
.../scigap/production/pga_config/demo4/vault.yml | 17 -
.../scigap/production/pga_config/demo5/vars.yml | 65 -
.../scigap/production/pga_config/demo5/vault.yml | 17 -
.../scigap/production/pga_config/demo6/vars.yml | 65 -
.../scigap/production/pga_config/demo6/vault.yml | 17 -
.../scigap/production/pga_config/demo7/vars.yml | 65 -
.../scigap/production/pga_config/demo7/vault.yml | 17 -
.../scigap/production/pga_config/demo8/vars.yml | 65 -
.../scigap/production/pga_config/demo8/vault.yml | 17 -
.../scigap/production/pga_config/demo9/vars.yml | 65 -
.../scigap/production/pga_config/demo9/vault.yml | 17 -
.../{Kentucky => distantreader}/vars.yml | 27 +-
.../production/pga_config/distantreader/vault.yml | 18 +
.../pga_config/{demo3 => epwgateway}/vars.yml | 23 +-
.../production/pga_config/epwgateway/vault.yml | 18 +
.../scigap/production/pga_config/gatech/vars.yml | 9 +-
.../production/pga_config/georgiastate/vars.yml | 1 -
.../pga_config/{ultrascan => hubzero}/vars.yml | 29 +-
.../scigap/production/pga_config/hubzero/vault.yml | 18 +
.../production/pga_config/interactwel/vars.yml | 11 +-
.../production/pga_config/iugateway/vars.yml | 1 -
.../production/pga_config/iugeosurvey/vars.yml | 7 +-
.../scigap/production/pga_config/lsu/vars.yml | 1 -
.../pga_config/{Kentucky => mines}/vars.yml | 26 +-
.../scigap/production/pga_config/mines/vault.yml | 18 +
.../production/pga_config/nanoconfinement/vars.yml | 1 -
.../production/pga_config/nanoshape/vars.yml | 1 -
.../production/pga_config/newmexicostate/vars.yml | 1 -
.../scigap/production/pga_config/nexttdb/vars.yml | 2 +-
.../scigap/production/pga_config/nsg/vars.yml | 63 -
.../scigap/production/pga_config/nsg/vault.yml | 18 -
.../scigap/production/pga_config/oiitandy/vars.yml | 65 -
.../production/pga_config/oiitandy/vault.yml | 18 -
.../scigap/production/pga_config/oscer/vars.yml | 1 -
.../pga_config/{nexttdb => pfec-hydro}/vars.yml | 29 +-
.../production/pga_config/pfec-hydro/vault.yml | 18 +
.../scigap/production/pga_config/phasta/vars.yml | 7 +-
.../scigap/production/pga_config/r-hpc/vars.yml | 1 -
.../production/pga_config/rutgersgemr/vars.yml | 1 -
.../pga_config/{Kentucky => saverx}/vars.yml | 28 +-
.../scigap/production/pga_config/saverx/vault.yml | 18 +
.../scigap/production/pga_config/scigap/vars.yml | 1 -
.../{newmexicostate => sdstate}/vars.yml | 32 +-
.../scigap/production/pga_config/sdstate/vault.yml | 18 +
.../scigap/production/pga_config/seagrid/vars.yml | 12 +-
.../production/pga_config/searchingSRA/vars.yml | 4 +-
.../production/pga_config/simvascular/vars.yml | 1 -
.../production/pga_config/southdakota/vars.yml | 1 -
.../pga_config/southernillinois/vars.yml | 1 -
.../production/pga_config/testdrive/vars.yml | 1 -
.../scigap/production/pga_config/uab/vars.yml | 1 -
.../production/pga_config/ultrascan/vars.yml | 7 +-
.../scigap/production/pga_config/utah/vars.yml | 65 -
.../scigap/production/pga_config/utah/vault.yml | 18 -
.../scigap/production/pga_config/wvsu/vars.yml | 1 -
.../scigap/staging/group_vars/all/vars.yml | 2 +
.../scigap/testing/group_vars/all/vars.yml | 19 +-
.../scigap/testing/pga_config/scigap/vars.yml | 2 +-
.../scigap/testing/pga_config/scigap/vault.yml | 34 +-
.../scigap/testing/pga_config/seagrid/vars.yml | 2 +-
.../scigap/testing/pga_config/seagrid/vault.yml | 34 +-
.../scigap/testing/pga_config/testdrive/vars.yml | 2 +-
dev-tools/ansible/keycloak.yml | 20 +
dev-tools/ansible/pga-scigap-prod.yml | 16 +-
...a-scigap-prod.yml => pga-scigap-stagingnew.yml} | 30 +-
dev-tools/ansible/requirements.txt | 17 +
dev-tools/ansible/roles/api-orch/tasks/main.yml | 7 -
.../roles/api-orch/templates/gfac-config.yaml.j2 | 117 -
.../roles/database/files/MariaDB_yum_CentOS_7.repo | 20 +
.../ansible/roles/database/files/mysql-tmp.te | 20 +
dev-tools/ansible/roles/gfac/defaults/main.yml | 27 -
dev-tools/ansible/roles/gfac/handlers/main.yml | 28 -
dev-tools/ansible/roles/gfac/tasks/main.yml | 96 -
.../gfac/templates/airavata-server.properties.j2 | 302 -
.../roles/gfac/templates/gfac-config.yaml.j2 | 140 -
.../ansible/roles/gfac/templates/logback.xml.j2 | 58 -
.../ansible/roles/helix_setup/defaults/main.yml | 10 +-
dev-tools/ansible/roles/helix_setup/tasks/main.yml | 21 +-
.../post-wm/airavata-server.properties.j2 | 1 +
.../templates/pre-wm/airavata-server.properties.j2 | 1 +
.../ansible/roles/job_monitor/defaults/main.yml | 4 +-
dev-tools/ansible/roles/job_monitor/tasks/main.yml | 28 +-
.../email-monitor/airavata-server.properties.j2 | 8 +-
.../templates/email-monitor/email-config.yaml.j2 | 50 +-
.../realtime-monitor/airavata-server.properties.j2 | 8 +-
dev-tools/ansible/roles/keycloak/defaults/main.yml | 20 +
dev-tools/ansible/roles/keycloak/tasks/main.yml | 20 +
.../templates/airavata-server.properties.j2 | 2 +-
dev-tools/ansible/roles/wso2_is/tasks/main.yml | 61 -
.../ansible/roles/wso2_is/templates/carbon.xml.j2 | 688 -
dev-tools/ansible/roles/wso2_is/vars/main.yml | 38 -
modules/airavata-helix/agent-api/pom.xml | 2 +-
modules/airavata-helix/agent-impl/pom.xml | 2 +-
.../airavata-helix/agent-impl/ssh-agent/pom.xml | 2 +-
.../airavata-helix/agent-impl/sshj-agent/pom.xml | 2 +-
.../airavata/helix/adaptor/PoolingSSHJClient.java | 4 +-
modules/airavata-helix/helix-distribution/pom.xml | 155 -
.../src/main/assembly/controller-bin-assembly.xml | 86 -
.../src/main/assembly/parser-wm-bin-assembly.xml | 85 -
.../src/main/assembly/participant-bin-assembly.xml | 87 -
.../assembly/platform-monitor-bin-assembly.xml | 86 -
.../src/main/assembly/post-wm-bin-assembly.xml | 85 -
.../src/main/assembly/pre-wm-bin-assembly.xml | 86 -
modules/airavata-helix/helix-spectator/pom.xml | 5 +
.../helix/impl/participant/GlobalParticipant.java | 1 +
.../airavata/helix/impl/task/AiravataTask.java | 54 +-
.../airavata/helix/impl/task/TaskContext.java | 40 +-
.../task/cancel/RemoteJobCancellationTask.java | 60 +-
.../impl/task/cancel/WorkflowCancellationTask.java | 28 +-
.../helix/impl/task/completing/CompletingTask.java | 7 -
.../helix/impl/task/staging/DataStagingTask.java | 16 +
.../impl/task/staging/InputDataStagingTask.java | 115 +-
.../impl/task/staging/JobVerificationTask.java | 107 +
.../impl/task/staging/OutputDataStagingTask.java | 13 +-
.../task/submission/DefaultJobSubmissionTask.java | 16 +-
.../impl/task/submission/JobSubmissionTask.java | 44 +-
.../task/submission/config/GroovyMapBuilder.java | 2 +
.../impl/task/submission/config/GroovyMapData.java | 21 +
.../impl/task/submission/config/JobFactory.java | 25 +-
.../helix/impl/workflow/ParserWorkflowManager.java | 16 +-
.../helix/impl/workflow/PostWorkflowManager.java | 88 +-
.../helix/impl/workflow/PreWorkflowManager.java | 29 +-
.../helix/impl/workflow/WorkflowManager.java | 71 +-
.../src/main/resources/airavata-server.properties | 2 +
modules/airavata-helix/platform-monitor/pom.xml | 2 +-
modules/airavata-helix/pom.xml | 4 +-
modules/airavata-helix/task-api/pom.xml | 2 +-
modules/airavata-helix/task-core/pom.xml | 2 +-
.../apache/airavata/helix/core/AbstractTask.java | 13 +-
.../helix/core/participant/HelixParticipant.java | 9 +-
.../core/support/adaptor/AdaptorSupportImpl.java | 28 +-
.../helix/core/support/adaptor/AgentStore.java | 55 +-
.../airavata/helix/core/util/MonitoringUtil.java | 212 -
modules/airavata-helix/workflow-impl/pom.xml | 2 +-
.../airavata/helix/workflow/WorkflowOperator.java | 6 +-
modules/allocation-manager/pom.xml | 27 -
modules/cloud/ansible-playbooks/README | 1 -
modules/cloud/ansible-playbooks/README.md | 119 -
modules/cloud/ansible-playbooks/group_vars/all.yml | 39 -
modules/cloud/ansible-playbooks/hosts | 13 -
.../ansible-playbooks/roles/ec2/tasks/main.yml | 50 -
.../roles/ec2/vars/aws-credential.yml | 23 -
.../ansible-playbooks/roles/ec2/vars/main.yml | 28 -
.../ansible-playbooks/roles/java/tasks/main.yml | 41 -
.../ansible-playbooks/roles/java/vars/main.yml | 35 -
.../roles/mesos-master/tasks/backup_main.yml | 137 -
.../roles/mesos-master/tasks/main.yml | 106 -
.../roles/mesos-master/templates/quorum.j2 | 1 -
.../roles/mesos-master/templates/zk.j2 | 1 -
.../roles/mesos-slave/tasks/main.yml | 86 -
.../roles/mesos-slave/templates/zk.j2 | 1 -
.../roles/openstack/tasks/main.yml | 48 -
.../roles/openstack/vars/main.yml | 30 -
.../roles/openstack/vars/openstack-credentials.yml | 30 -
.../ansible-playbooks/roles/test/tasks/main.yml | 23 -
.../roles/zookeeper/handlers/main.yml | 35 -
.../roles/zookeeper/tasks/main.yml | 118 -
.../roles/zookeeper/templates/myid.j2 | 1 -
.../roles/zookeeper/templates/zoo.cfg.j2 | 32 -
.../roles/zookeeper/vars/main.yml | 35 -
modules/cloud/ansible-playbooks/site.yml | 44 -
modules/cloud/aurora-client/README.md | 49 -
modules/cloud/aurora-client/pom.xml | 82 -
.../client/AuroraSchedulerClientFactory.java | 98 -
.../cloud/aurora/client/AuroraThriftClient.java | 335 -
.../aurora/client/bean/GetJobsResponseBean.java | 63 -
.../cloud/aurora/client/bean/IdentityBean.java | 58 -
.../cloud/aurora/client/bean/JobConfigBean.java | 236 -
.../aurora/client/bean/JobDetailsResponseBean.java | 69 -
.../cloud/aurora/client/bean/JobKeyBean.java | 104 -
.../aurora/client/bean/PendingJobReasonBean.java | 70 -
.../cloud/aurora/client/bean/ProcessBean.java | 193 -
.../cloud/aurora/client/bean/ResourceBean.java | 104 -
.../cloud/aurora/client/bean/ResponseBean.java | 79 -
.../cloud/aurora/client/bean/ServerInfoBean.java | 87 -
.../cloud/aurora/client/bean/TaskConfigBean.java | 136 -
.../cloud/aurora/client/sdk/AppcImage.java | 549 -
.../cloud/aurora/client/sdk/AssignedTask.java | 1084 --
.../cloud/aurora/client/sdk/Attribute.java | 574 -
.../cloud/aurora/client/sdk/AuroraAdmin.java | 14400 ------------------
.../aurora/client/sdk/AuroraSchedulerManager.java | 13414 -----------------
.../cloud/aurora/client/sdk/ConfigGroup.java | 581 -
.../cloud/aurora/client/sdk/ConfigRewrite.java | 389 -
.../cloud/aurora/client/sdk/ConfigSummary.java | 581 -
.../aurora/client/sdk/ConfigSummaryResult.java | 422 -
.../cloud/aurora/client/sdk/Constraint.java | 539 -
.../cloud/aurora/client/sdk/Container.java | 392 -
.../aurora/client/sdk/CronCollisionPolicy.java | 80 -
.../cloud/aurora/client/sdk/DockerContainer.java | 606 -
.../cloud/aurora/client/sdk/DockerImage.java | 549 -
.../cloud/aurora/client/sdk/DockerParameter.java | 549 -
.../cloud/aurora/client/sdk/DrainHostsResult.java | 471 -
.../aurora/client/sdk/EndMaintenanceResult.java | 471 -
.../cloud/aurora/client/sdk/ExecutorConfig.java | 546 -
.../client/sdk/ExplicitReconciliationSettings.java | 412 -
.../client/sdk/GetJobUpdateDetailsResult.java | 584 -
.../aurora/client/sdk/GetJobUpdateDiffResult.java | 996 --
.../client/sdk/GetJobUpdateSummariesResult.java | 474 -
.../cloud/aurora/client/sdk/GetJobsResult.java | 471 -
.../aurora/client/sdk/GetPendingReasonResult.java | 471 -
.../cloud/aurora/client/sdk/GetQuotaResult.java | 931 --
.../aurora/client/sdk/GetTierConfigResult.java | 603 -
.../cloud/aurora/client/sdk/HostAttributes.java | 810 --
.../cloud/aurora/client/sdk/HostStatus.java | 538 -
.../airavata/cloud/aurora/client/sdk/Hosts.java | 466 -
.../airavata/cloud/aurora/client/sdk/Identity.java | 417 -
.../airavata/cloud/aurora/client/sdk/Image.java | 392 -
.../aurora/client/sdk/InstanceConfigRewrite.java | 678 -
.../cloud/aurora/client/sdk/InstanceKey.java | 552 -
.../aurora/client/sdk/InstanceTaskConfig.java | 608 -
.../cloud/aurora/client/sdk/JobConfigRewrite.java | 556 -
.../cloud/aurora/client/sdk/JobConfiguration.java | 1049 --
.../aurora/client/sdk/JobInstanceUpdateEvent.java | 666 -
.../airavata/cloud/aurora/client/sdk/JobKey.java | 666 -
.../airavata/cloud/aurora/client/sdk/JobStats.java | 760 -
.../cloud/aurora/client/sdk/JobSummary.java | 649 -
.../cloud/aurora/client/sdk/JobSummaryResult.java | 471 -
.../cloud/aurora/client/sdk/JobUpdate.java | 559 -
.../cloud/aurora/client/sdk/JobUpdateAction.java | 101 -
.../cloud/aurora/client/sdk/JobUpdateDetails.java | 776 -
.../cloud/aurora/client/sdk/JobUpdateEvent.java | 798 -
.../aurora/client/sdk/JobUpdateInstructions.java | 730 -
.../cloud/aurora/client/sdk/JobUpdateKey.java | 554 -
.../aurora/client/sdk/JobUpdatePulseStatus.java | 74 -
.../cloud/aurora/client/sdk/JobUpdateQuery.java | 1189 --
.../cloud/aurora/client/sdk/JobUpdateRequest.java | 848 --
.../cloud/aurora/client/sdk/JobUpdateSettings.java | 1285 --
.../cloud/aurora/client/sdk/JobUpdateState.java | 666 -
.../cloud/aurora/client/sdk/JobUpdateStatus.java | 129 -
.../cloud/aurora/client/sdk/JobUpdateSummary.java | 850 --
.../cloud/aurora/client/sdk/LimitConstraint.java | 419 -
.../cloud/aurora/client/sdk/ListBackupsResult.java | 466 -
.../airavata/cloud/aurora/client/sdk/Lock.java | 903 --
.../airavata/cloud/aurora/client/sdk/LockKey.java | 331 -
.../cloud/aurora/client/sdk/MaintenanceMode.java | 70 -
.../aurora/client/sdk/MaintenanceStatusResult.java | 471 -
.../cloud/aurora/client/sdk/MesosContainer.java | 432 -
.../cloud/aurora/client/sdk/MesosFetcherURI.java | 661 -
.../airavata/cloud/aurora/client/sdk/Metadata.java | 525 -
.../airavata/cloud/aurora/client/sdk/Mode.java | 73 -
.../airavata/cloud/aurora/client/sdk/Package.java | 625 -
.../cloud/aurora/client/sdk/PendingReason.java | 522 -
.../cloud/aurora/client/sdk/PopulateJobResult.java | 422 -
.../aurora/client/sdk/PulseJobUpdateResult.java | 436 -
.../aurora/client/sdk/QueryRecoveryResult.java | 471 -
.../airavata/cloud/aurora/client/sdk/Range.java | 517 -
.../cloud/aurora/client/sdk/ReadOnlyScheduler.java | 11291 ---------------
.../airavata/cloud/aurora/client/sdk/Resource.java | 561 -
.../cloud/aurora/client/sdk/ResourceAggregate.java | 820 --
.../airavata/cloud/aurora/client/sdk/Response.java | 840 --
.../cloud/aurora/client/sdk/ResponseCode.java | 85 -
.../cloud/aurora/client/sdk/ResponseDetail.java | 417 -
.../airavata/cloud/aurora/client/sdk/Result.java | 1487 --
.../aurora/client/sdk/RewriteConfigsRequest.java | 471 -
.../cloud/aurora/client/sdk/RoleSummary.java | 619 -
.../cloud/aurora/client/sdk/RoleSummaryResult.java | 471 -
.../cloud/aurora/client/sdk/ScheduleStatus.java | 143 -
.../aurora/client/sdk/ScheduleStatusResult.java | 471 -
.../cloud/aurora/client/sdk/ScheduledTask.java | 973 --
.../cloud/aurora/client/sdk/ServerInfo.java | 537 -
.../aurora/client/sdk/StartJobUpdateResult.java | 562 -
.../aurora/client/sdk/StartMaintenanceResult.java | 471 -
.../cloud/aurora/client/sdk/TaskConfig.java | 2769 ----
.../cloud/aurora/client/sdk/TaskConstraint.java | 392 -
.../cloud/aurora/client/sdk/TaskEvent.java | 794 -
.../cloud/aurora/client/sdk/TaskQuery.java | 1611 ---
.../cloud/aurora/client/sdk/TierConfig.java | 601 -
.../cloud/aurora/client/sdk/ValueConstraint.java | 585 -
.../airavata/cloud/aurora/client/sdk/Volume.java | 674 -
.../aurora/client/sdk/aurora_apiConstants.java | 124 -
.../cloud/aurora/sample/AuroraClientSample.java | 187 -
.../cloud/aurora/util/AuroraThriftClientUtil.java | 424 -
.../airavata/cloud/aurora/util/Constants.java | 47 -
.../cloud/aurora/util/ResponseCodeEnum.java | 95 -
.../cloud/aurora/util/ResponseResultType.java | 47 -
.../src/main/resources/aurora-api.thrift | 1238 --
.../src/main/resources/aurora-scheduler.properties | 11 -
.../main/resources/executor-config-template.json | 48 -
modules/cloud/cloud-provisioning/README | 13 -
modules/cloud/cloud-provisioning/pom.xml | 82 -
.../apache/airavata/cloud/intf/CloudInterface.java | 149 -
.../cloud/intf/impl/OpenstackIntfImpl.java | 495 -
.../cloud/openstack/OS4JClientProvider.java | 115 -
.../org/apache/airavata/cloud/util/CloudRef.java | 38 -
.../org/apache/airavata/cloud/util/Constants.java | 54 -
.../org/apache/airavata/cloud/util/IPType.java | 37 -
.../airavata/cloud/util/OpenstackIntfUtil.java | 47 -
.../src/main/resources/jetstream_openrc.properties | 33 -
.../apache/airavata/cloud/test/CloudIntfTest.java | 201 -
.../src/test/resources/test_data.properties | 32 -
modules/cloud/pom.xml | 68 -
.../java/org/apache/airavata/cloud/CloudMain.java | 27 -
modules/cluster-monitoring/pom.xml | 2 +-
modules/commons/pom.xml | 5 +
.../apache/airavata/common/utils/Constants.java | 2 +
.../common/utils/DBEventManagerConstants.java | 5 +-
.../airavata/common/utils/DBEventService.java | 5 +-
.../airavata/common/utils/ServerSettings.java | 2 +-
.../airavata/common/utils/ThriftClientPool.java | 26 +-
modules/compute-account-provisioning/pom.xml | 39 +-
.../airavata/accountprovisioning/ConfigParam.java | 5 +-
.../accountprovisioning/InvalidSetupException.java | 5 +-
.../InvalidUsernameException.java | 5 +-
.../accountprovisioning/SSHAccountManager.java | 5 +-
.../accountprovisioning/SSHAccountProvisioner.java | 5 +-
.../SSHAccountProvisionerFactory.java | 5 +-
.../SSHAccountProvisionerProvider.java | 5 +-
.../airavata/accountprovisioning/SSHUtil.java | 5 +-
.../provisioner/IULdapSSHAccountProvisioner.java | 5 +-
.../IULdapSSHAccountProvisionerProvider.java | 5 +-
.../SSHAccountProvisionerFactoryTest.java | 5 +-
.../provisioner/TestSSHAccountProvisioner.java | 5 +-
.../TestSSHAccountProvisionerProvider.java | 5 +-
.../src/main/resources/SLURM_Groovy.template | 1 +
.../resources/airavata-default-xacml-policy.xml | 211 -
.../server/src/main/resources/gfac-config.yaml | 121 -
.../server/src/main/resources/wso2carbon.pem | Bin 569 -> 0 bytes
.../server/src/main/resources/zoo.cfg | 22 -
.../store/server/CredentialStoreServerHandler.java | 2 +-
.../credential-store-stubs/pom.xml | 7 +-
.../store/cpi/CredentialStoreService.java | 765 +-
.../store/cpi/credential_store_cpiConstants.java | 2 +-
modules/db-event-manager/pom.xml | 28 +-
.../db/event/manager/DBEventManagerRunner.java | 5 +-
.../manager/messaging/DBEventManagerException.java | 5 +-
.../messaging/DBEventManagerMessagingFactory.java | 5 +-
.../messaging/impl/DBEventMessageHandler.java | 5 +-
.../airavata/db/event/manager/utils/Constants.java | 3 +-
.../event/manager/utils/DbEventManagerZkUtils.java | 5 +-
modules/db-event-manager/src/test/java/Test.java | 5 +-
modules/distribution/pom.xml | 212 +-
...in-assembly.xml => api-server-bin-assembly.xml} | 27 +-
...rc-assembly.xml => api-server-src-assembly.xml} | 2 +-
.../src/main/assembly/controller-bin-assembly.xml | 168 +
.../main/assembly/email-monitor-bin-assembly.xml | 5 +-
.../src/main/assembly/participant-bin-assembly.xml | 169 +
.../assembly/platform-monitor-bin-assembly.xml | 168 +
.../src/main/assembly/post-wm-bin-assembly.xml | 167 +
.../src/main/assembly/pre-wm-bin-assembly.xml | 168 +
.../assembly/realtime-monitor-bin-assembly.xml | 5 +-
.../src/main/resources/{ => api-server}/INSTALL | 0
.../src/main/resources/{ => api-server}/LICENSE | 0
.../src/main/resources/{ => api-server}/NOTICE | 0
.../src/main/resources/{ => api-server}/README | 0
.../{ => api-server}/bin/airavata-server-start.sh | 0
.../api-server/bin}/airavata-server-stop.sh | 0
.../{ => api-server}/bin/airavata-server.bat | 0
.../main/resources/{ => api-server}/bin/derby.sh | 2 +-
.../main/resources/{ => api-server}/bin/logo.txt | 0
.../main/resources/{ => api-server}/bin/setenv.bat | 0
.../src/main/resources/api-server}/bin/setenv.sh | 0
.../{ => api-server}/bin/startNetworkServer | 0
.../src/main/resources/bin/airavata-server-stop.sh | 71 -
.../resources/controller/bin/controller-daemon.sh | 22 +
.../main/resources/controller/bin/controller.sh | 0
.../src/main/resources/controller}/bin/setenv.sh | 0
.../controller/conf/airavata-server.properties | 0
.../main/resources/controller}/conf/logback.xml | 0
.../email-monitor/bin/email-monitor-daemon.sh | 22 +
.../resources/email-monitor/bin/email-monitor.sh | 0
.../resources/{ => email-monitor}/bin/setenv.sh | 0
.../email-monitor/conf/airavata-server.properties | 0
.../resources/email-monitor/conf/email-config.yaml | 0
.../main/resources/email-monitor/conf/logback.xml | 0
.../resources/parser-wm/bin/parser-wm-daemon.sh | 22 +
.../src/main/resources/parser-wm/bin/parser-wm.sh | 0
.../src/main/resources/parser-wm/bin/setenv.sh | 0
.../parser-wm/conf/airavata-server.properties | 0
.../src/main/resources/parser-wm}/conf/logback.xml | 0
.../participant/bin/participant-daemon.sh | 22 +
.../main/resources/participant/bin/participant.sh | 0
.../src/main/resources/participant}/bin/setenv.sh | 0
.../participant/conf/airavata-server.properties | 0
.../main/resources/participant/conf/cred_store.jks | Bin
.../main/resources/participant}/conf/logback.xml | 0
.../bin/platform-monitor-daemon.sh | 22 +
.../platform-monitor/bin/platform-monitor.sh | 0
.../main/resources/platform-monitor}/bin/setenv.sh | 0
.../conf/airavata-server.properties | 0
.../resources/platform-monitor/conf/logback.xml | 0
.../main/resources/post-wm/bin/post-wm-daemon.sh | 22 +
.../src/main/resources/post-wm/bin/post-wm.sh | 0
.../src/main/resources/post-wm}/bin/setenv.sh | 0
.../post-wm/conf/airavata-server.properties | 0
.../src/main/resources/post-wm}/conf/logback.xml | 0
.../src/main/resources/pre-wm/bin/pre-wm-daemon.sh | 22 +
.../src/main/resources/pre-wm/bin/pre-wm.sh | 0
.../src/main/resources/pre-wm}/bin/setenv.sh | 0
.../pre-wm/conf/airavata-server.properties | 0
.../src/main/resources/pre-wm}/conf/logback.xml | 0
.../bin/realtime-monitor-daemon.sh | 22 +
.../realtime-monitor/bin/realtime-monitor.sh | 0
.../main/resources/realtime-monitor}/bin/setenv.sh | 0
.../conf/airavata-server.properties | 0
.../resources/realtime-monitor}/conf/logback.xml | 0
.../src/main/resources/samples/registerSample.sh | 24 -
.../src/main/resources/samples/scripts/add.sh | 21 -
.../src/main/resources/samples/scripts/echo.sh | 22 -
.../src/main/resources/samples/scripts/multiply.sh | 22 -
.../src/main/resources/samples/scripts/subtract.sh | 22 -
.../gfac-application-specific-handlers/pom.xml | 41 -
.../gaussian/handler/GaussianHandler.java | 182 -
modules/gfac/gfac-bes/pom.xml | 139 -
.../gfac/bes/handlers/AbstractSMSHandler.java | 190 -
.../gfac/bes/handlers/SMSByteIOInHandler.java | 74 -
.../gfac/bes/handlers/SMSByteIOOutHandler.java | 112 -
.../gfac/bes/handlers/SMSDirectoryHandler.java | 45 -
.../gfac/bes/provider/impl/BESProvider.java | 452 -
.../gfac/bes/security/UNICORESecurityContext.java | 224 -
.../gfac/bes/security/X509SecurityContext.java | 343 -
.../airavata/gfac/bes/utils/ActivityInfo.java | 69 -
.../gfac/bes/utils/ApplicationProcessor.java | 219 -
.../airavata/gfac/bes/utils/BESConstants.java | 64 -
.../airavata/gfac/bes/utils/DataTransferrer.java | 234 -
.../airavata/gfac/bes/utils/FileDownloader.java | 254 -
.../airavata/gfac/bes/utils/FileTransferBase.java | 225 -
.../airavata/gfac/bes/utils/FileUploader.java | 243 -
.../airavata/gfac/bes/utils/JSDLGenerator.java | 116 -
.../apache/airavata/gfac/bes/utils/JSDLUtils.java | 540 -
.../org/apache/airavata/gfac/bes/utils/Mode.java | 43 -
.../airavata/gfac/bes/utils/MyProxyLogon.java | 501 -
.../airavata/gfac/bes/utils/OSRequirement.java | 106 -
.../org/apache/airavata/gfac/bes/utils/OSType.java | 122 -
.../gfac/bes/utils/ProcessorRequirement.java | 59 -
.../airavata/gfac/bes/utils/RangeValueType.java | 272 -
.../airavata/gfac/bes/utils/ResourceProcessor.java | 95 -
.../airavata/gfac/bes/utils/SPMDProcessor.java | 31 -
.../airavata/gfac/bes/utils/SPMDVariations.java | 50 -
.../airavata/gfac/bes/utils/SecurityUtils.java | 187 -
.../airavata/gfac/bes/utils/StorageCreator.java | 209 -
.../gfac/bes/utils/UASDataStagingProcessor.java | 150 -
.../apache/airavata/gfac/bes/utils/URIUtils.java | 117 -
.../gfac-bes/src/main/resources/errors.properties | 197 -
.../gfac-bes/src/main/resources/service.properties | 58 -
.../impl/JSDLGeneratorTestWithMyProxyAuth.java | 284 -
.../gfac-bes/src/test/resources/PBSTemplate.xslt | 73 -
.../gfac-bes/src/test/resources/logging.properties | 42 -
modules/gfac/gfac-client/pom.xml | 67 -
.../apache/airavata/gfac/client/GFACInstance.java | 61 -
.../airavata/gfac/client/GFacClientFactory.java | 41 -
.../org/apache/airavata/gfac/cpi/GfacService.java | 3021 ----
modules/gfac/gfac-core/pom.xml | 167 -
.../gfac/core/AbstractJobManagerConfiguration.java | 39 -
.../apache/airavata/gfac/core/ExecutionMode.java | 38 -
.../java/org/apache/airavata/gfac/core/GFac.java | 71 -
.../apache/airavata/gfac/core/GFacConstants.java | 90 -
.../org/apache/airavata/gfac/core/GFacEngine.java | 39 -
.../apache/airavata/gfac/core/GFacException.java | 46 -
.../airavata/gfac/core/GFacThreadPoolExecutor.java | 56 -
.../org/apache/airavata/gfac/core/GFacUtils.java | 1049 --
.../org/apache/airavata/gfac/core/GroovyMap.java | 112 -
.../gfac/core/JobManagerConfiguration.java | 51 -
.../org/apache/airavata/gfac/core/RequestData.java | 148 -
.../apache/airavata/gfac/core/SSHApiException.java | 34 -
.../java/org/apache/airavata/gfac/core/Script.java | 81 -
.../apache/airavata/gfac/core/SecurityContext.java | 24 -
.../core/authentication/AuthenticationInfo.java | 27 -
.../core/authentication/GSIAuthenticationInfo.java | 43 -
.../core/authentication/SSHKeyAuthentication.java | 90 -
.../authentication/SSHPasswordAuthentication.java | 42 -
.../authentication/SSHPublicKeyAuthentication.java | 45 -
.../SSHPublicKeyFileAuthentication.java | 45 -
.../gfac/core/cluster/AbstractRemoteCluster.java | 47 -
.../airavata/gfac/core/cluster/CommandInfo.java | 34 -
.../airavata/gfac/core/cluster/CommandOutput.java | 56 -
.../gfac/core/cluster/JobSubmissionOutput.java | 87 -
.../airavata/gfac/core/cluster/OutputParser.java | 68 -
.../airavata/gfac/core/cluster/RawCommandInfo.java | 45 -
.../airavata/gfac/core/cluster/RemoteCluster.java | 178 -
.../airavata/gfac/core/cluster/ServerInfo.java | 59 -
.../gfac/core/config/DataTransferTaskConfig.java | 60 -
.../gfac/core/config/GFacYamlConfigruation.java | 150 -
.../gfac/core/config/JobSubmitterTaskConfig.java | 59 -
.../airavata/gfac/core/config/ResourceConfig.java | 63 -
.../gfac/core/context/AbstractContext.java | 48 -
.../gfac/core/context/AbstractSecurityContext.java | 57 -
.../gfac/core/context/ApplicationContext.java | 65 -
.../airavata/gfac/core/context/GFacContext.java | 59 -
.../gfac/core/context/JobExecutionContext.java | 492 -
.../airavata/gfac/core/context/MessageContext.java | 49 -
.../airavata/gfac/core/context/ProcessContext.java | 863 --
.../airavata/gfac/core/context/TaskContext.java | 139 -
.../airavata/gfac/core/monitor/EmailParser.java | 34 -
.../airavata/gfac/core/monitor/JobMonitor.java | 48 -
.../gfac/core/monitor/JobStatusResult.java | 64 -
.../airavata/gfac/core/monitor/MonitorID.java | 227 -
.../gfac/core/scheduler/HostScheduler.java | 34 -
.../airavata/gfac/core/task/JobSubmissionTask.java | 32 -
.../org/apache/airavata/gfac/core/task/Task.java | 63 -
.../airavata/gfac/core/task/TaskException.java | 44 -
.../gfac/core/watcher/CancelRequestWatcher.java | 26 -
.../core/watcher/RedeliveryRequestWatcher.java | 26 -
.../src/main/resources/apache-license.txt | 17 -
.../gfac-core/src/main/resources/errors.properties | 197 -
.../gfac-core/src/main/resources/gfac-config.yaml | 79 -
.../src/main/resources/schema/AccessPolicy.json | 13 -
.../src/main/resources/schema/Activity.json | 31 -
.../src/main/resources/schema/AdminDomain.json | 51 -
.../resources/schema/ApplicationEnvironment.json | 86 -
.../main/resources/schema/ApplicationHandle.json | 21 -
.../src/main/resources/schema/Benchmark.json | 21 -
.../main/resources/schema/ComputingActivity.json | 165 -
.../main/resources/schema/ComputingEndpoint.json | 44 -
.../main/resources/schema/ComputingManager.json | 117 -
.../main/resources/schema/ComputingService.json | 32 -
.../src/main/resources/schema/ComputingShare.json | 182 -
.../src/main/resources/schema/Contact.json | 32 -
.../src/main/resources/schema/DataStore.json | 30 -
.../src/main/resources/schema/Domain.json | 30 -
.../src/main/resources/schema/Endpoint.json | 147 -
.../src/main/resources/schema/Entity.json | 35 -
.../resources/schema/ExecutionEnvironment.json | 115 -
.../gfac-core/src/main/resources/schema/Glue2.json | 246 -
.../src/main/resources/schema/Location.json | 47 -
.../src/main/resources/schema/Manager.json | 28 -
.../src/main/resources/schema/MappingPolicy.json | 13 -
.../src/main/resources/schema/Policy.json | 27 -
.../src/main/resources/schema/Resource.json | 27 -
.../src/main/resources/schema/Service.json | 75 -
.../gfac-core/src/main/resources/schema/Share.json | 45 -
.../resources/schema/StorageAccessProtocol.json | 32 -
.../src/main/resources/schema/StorageEndpoint.json | 8 -
.../src/main/resources/schema/StorageManager.json | 8 -
.../src/main/resources/schema/StorageService.json | 22 -
.../resources/schema/StorageServiceCapacity.json | 33 -
.../src/main/resources/schema/StorageShare.json | 65 -
.../resources/schema/StorageShareCapacity.json | 33 -
.../main/resources/schema/ToComputingService.json | 32 -
.../main/resources/schema/ToStorageService.json | 25 -
.../src/main/resources/schema/UserDomain.json | 58 -
.../src/main/resources/service.properties | 58 -
.../apache/airavata/gfac/core/GFacUtilsTest.java | 71 -
.../gfac-core/src/test/resources/PBSTemplate.xslt | 75 -
modules/gfac/gfac-core/src/test/resources/echo.bat | 22 -
.../gfac-core/src/test/resources/gfac-config.xml | 65 -
.../src/test/resources/logging.properties | 42 -
modules/gfac/gfac-impl/pom.xml | 143 -
.../main/java/com/jcraft/jsch/ExtendedSession.java | 40 -
.../java/com/jcraft/jsch/GSISSHIdentityFile.java | 124 -
.../com/jcraft/jsch/GSISSHIdentityRepository.java | 27 -
.../main/java/com/jcraft/jsch/GSSContextX509.java | 203 -
.../jsch/UserAuthGSSAPIWithMICGSSCredentials.java | 305 -
.../org/apache/airavata/gfac/impl/AuroraUtils.java | 29 -
.../airavata/gfac/impl/BESRemoteCluster.java | 130 -
.../airavata/gfac/impl/DefaultHostScheduler.java | 36 -
.../org/apache/airavata/gfac/impl/Factory.java | 642 -
.../apache/airavata/gfac/impl/GFacEngineImpl.java | 989 --
.../org/apache/airavata/gfac/impl/GFacWorker.java | 267 -
.../airavata/gfac/impl/HPCRemoteCluster.java | 436 -
.../org/apache/airavata/gfac/impl/HTTPUtils.java | 26 -
.../airavata/gfac/impl/LocalCommandOutput.java | 86 -
.../airavata/gfac/impl/LocalRemoteCluster.java | 257 -
.../org/apache/airavata/gfac/impl/SSHUtils.java | 529 -
.../airavata/gfac/impl/StandardOutReader.java | 86 -
.../job/AiravataCustomCommandOutputParser.java | 57 -
.../gfac/impl/job/ForkJobConfiguration.java | 113 -
.../airavata/gfac/impl/job/ForkOutputParser.java | 60 -
.../org/apache/airavata/gfac/impl/job/JobUtil.java | 58 -
.../gfac/impl/job/LSFJobConfiguration.java | 120 -
.../airavata/gfac/impl/job/LSFOutputParser.java | 134 -
.../gfac/impl/job/PBSJobConfiguration.java | 122 -
.../airavata/gfac/impl/job/PBSOutputParser.java | 143 -
.../gfac/impl/job/SlurmJobConfiguration.java | 117 -
.../airavata/gfac/impl/job/SlurmOutputParser.java | 138 -
.../gfac/impl/job/UGEJobConfiguration.java | 117 -
.../airavata/gfac/impl/job/UGEOutputParser.java | 111 -
.../airavata/gfac/impl/task/ArchiveTask.java | 218 -
.../gfac/impl/task/AuroraJobSubmissionTask.java | 169 -
.../gfac/impl/task/BESJobSubmissionTask.java | 538 -
.../airavata/gfac/impl/task/DataStageTask.java | 124 -
.../airavata/gfac/impl/task/DataStreamingTask.java | 112 -
.../gfac/impl/task/DefaultJobSubmissionTask.java | 379 -
.../gfac/impl/task/EnvironmentSetupTask.java | 75 -
.../gfac/impl/task/ForkJobSubmissionTask.java | 176 -
.../gfac/impl/task/LocalJobSubmissionTask.java | 217 -
.../airavata/gfac/impl/task/SCPDataStageTask.java | 380 -
.../apache/airavata/gfac/impl/task/TaskUtils.java | 49 -
.../airavata/gfac/impl/task/utils/StreamData.java | 169 -
.../gfac/impl/task/utils/bes/ActivityInfo.java | 69 -
.../impl/task/utils/bes/ApplicationProcessor.java | 219 -
.../gfac/impl/task/utils/bes/BESConstants.java | 64 -
.../gfac/impl/task/utils/bes/DataTransferrer.java | 334 -
.../gfac/impl/task/utils/bes/FileDownloader.java | 253 -
.../gfac/impl/task/utils/bes/FileTransferBase.java | 221 -
.../gfac/impl/task/utils/bes/FileUploader.java | 240 -
.../gfac/impl/task/utils/bes/JSDLGenerator.java | 115 -
.../gfac/impl/task/utils/bes/JSDLUtils.java | 515 -
.../airavata/gfac/impl/task/utils/bes/Mode.java | 43 -
.../gfac/impl/task/utils/bes/MyProxyLogon.java | 484 -
.../airavata/gfac/impl/task/utils/bes/OSType.java | 122 -
.../impl/task/utils/bes/ProcessorRequirement.java | 59 -
.../gfac/impl/task/utils/bes/RangeValueType.java | 269 -
.../impl/task/utils/bes/ResourceProcessor.java | 95 -
.../impl/task/utils/bes/ResourceRequirement.java | 32 -
.../gfac/impl/task/utils/bes/SPMDVariations.java | 50 -
.../gfac/impl/task/utils/bes/SecurityUtils.java | 181 -
.../gfac/impl/task/utils/bes/StorageCreator.java | 205 -
.../task/utils/bes/UASDataStagingProcessor.java | 180 -
.../task/utils/bes/UNICORESecurityContext.java | 214 -
.../gfac/impl/task/utils/bes/URIUtils.java | 119 -
.../impl/task/utils/bes/X509SecurityContext.java | 338 -
.../impl/watcher/CancelRequestWatcherImpl.java | 108 -
.../impl/watcher/RedeliveryRequestWatcherImpl.java | 89 -
.../local/handler/LocalDirectorySetupHandler.java | 81 -
.../gfac/local/handler/LocalInputHandler.java | 111 -
.../gfac/local/provider/impl/LocalProvider.java | 328 -
.../gfac/local/utils/InputStreamToFileWriter.java | 67 -
.../airavata/gfac/local/utils/InputUtils.java | 45 -
.../gfac/local/utils/LocalProviderUtil.java | 70 -
.../gfac/monitor/cloud/AuroraJobMonitor.java | 247 -
.../gfac/monitor/email/EmailBasedMonitor.java | 535 -
.../email/parser/AiravataCustomMailParser.java | 79 -
.../gfac/monitor/email/parser/LSFEmailParser.java | 80 -
.../gfac/monitor/email/parser/PBSEmailParser.java | 107 -
.../monitor/email/parser/SLURMEmailParser.java | 85 -
.../gfac/monitor/email/parser/UGEEmailParser.java | 111 -
.../exception/AiravataMonitorException.java | 36 -
.../airavata/gfac/ssh/context/SSHAuthWrapper.java | 49 -
.../gfac/ssh/security/SSHSecurityContext.java | 117 -
.../gfac/ssh/security/TokenizedSSHAuthInfo.java | 183 -
.../gfac-impl/src/main/resources/ForkTemplate.xslt | 24 -
.../gfac-impl/src/main/resources/LSFTemplate.xslt | 93 -
.../gfac-impl/src/main/resources/PBSTemplate.xslt | 82 -
.../src/main/resources/SLURMTemplate.xslt | 88 -
.../gfac-impl/src/main/resources/UGETemplate.xslt | 74 -
.../gfac-impl/src/main/resources/errors.properties | 197 -
.../src/main/resources/schema/AccessPolicy.json | 13 -
.../src/main/resources/schema/Activity.json | 31 -
.../src/main/resources/schema/AdminDomain.json | 51 -
.../resources/schema/ApplicationEnvironment.json | 86 -
.../main/resources/schema/ApplicationHandle.json | 21 -
.../src/main/resources/schema/Benchmark.json | 21 -
.../main/resources/schema/ComputingActivity.json | 165 -
.../main/resources/schema/ComputingEndpoint.json | 44 -
.../main/resources/schema/ComputingManager.json | 117 -
.../main/resources/schema/ComputingService.json | 32 -
.../src/main/resources/schema/ComputingShare.json | 182 -
.../src/main/resources/schema/Contact.json | 32 -
.../src/main/resources/schema/DataStore.json | 30 -
.../src/main/resources/schema/Domain.json | 30 -
.../src/main/resources/schema/Endpoint.json | 147 -
.../src/main/resources/schema/Entity.json | 35 -
.../resources/schema/ExecutionEnvironment.json | 115 -
.../gfac-impl/src/main/resources/schema/Glue2.json | 246 -
.../src/main/resources/schema/Location.json | 47 -
.../src/main/resources/schema/Manager.json | 28 -
.../src/main/resources/schema/MappingPolicy.json | 13 -
.../src/main/resources/schema/Policy.json | 27 -
.../src/main/resources/schema/Resource.json | 27 -
.../src/main/resources/schema/Service.json | 75 -
.../gfac-impl/src/main/resources/schema/Share.json | 45 -
.../resources/schema/StorageAccessProtocol.json | 32 -
.../src/main/resources/schema/StorageEndpoint.json | 8 -
.../src/main/resources/schema/StorageManager.json | 8 -
.../src/main/resources/schema/StorageService.json | 22 -
.../resources/schema/StorageServiceCapacity.json | 33 -
.../src/main/resources/schema/StorageShare.json | 65 -
.../resources/schema/StorageShareCapacity.json | 33 -
.../main/resources/schema/ToComputingService.json | 32 -
.../main/resources/schema/ToStorageService.json | 25 -
.../src/main/resources/schema/UserDomain.json | 58 -
.../main/resources/schemas/PBSJobDescriptor.xsd | 114 -
.../resources/schemas/gsissh-schemas.xsdconfig | 14 -
.../src/main/resources/service.properties | 58 -
.../gfac/services/impl/BigRed2TestWithSSHAuth.java | 271 -
.../gfac/services/impl/CredentialStoreTest.java | 154 -
.../impl/GSISSHProviderTestWithMyProxyAuth.java | 248 -
.../core/gfac/services/impl/LocalProviderTest.java | 203 -
.../services/impl/SSHProviderTestWithSSHAuth.java | 191 -
.../GSISecurityContextTestWithMyProxyAuth.java | 180 -
.../monitor/email/parser/PBSEmailParserTest.java | 52 -
.../airavata/gfac/ssh/config/ConfigReaderTest.java | 57 -
.../ssh/impl/DefaultSSHApiTestWithMyProxyAuth.java | 103 -
.../gfac/ssh/impl/VanilaTestWithSSHAuth.java | 283 -
.../org/apache/airavata/job/AMQPMonitorTest.java | 227 -
.../job/QstatMonitorTestWithMyProxyAuth.java | 191 -
.../gfac-impl/src/test/resources/PBSTemplate.xslt | 73 -
modules/gfac/gfac-impl/src/test/resources/echo.bat | 22 -
.../gfac-impl/src/test/resources/gsissh.properties | 26 -
.../gfac-impl/src/test/resources/log4j.properties | 34 -
.../src/test/resources/logging.properties | 42 -
.../gfac/gfac-impl/src/test/resources/sleep.pbs | 32 -
modules/gfac/gfac-impl/src/test/resources/test.pbs | 30 -
modules/gfac/gfac-service/pom.xml | 97 -
.../apache/airavata/gfac/server/GfacServer.java | 141 -
.../airavata/gfac/server/GfacServerHandler.java | 404 -
.../src/main/resources/gsissh.properties | 26 -
.../src/test/resources/gsissh.properties | 26 -
.../src/test/resources/monitor.properties | 30 -
.../src/test/resources/orchestrator.properties | 26 -
.../gfac/gfac-service/src/test/resources/zoo.cfg | 22 -
modules/gfac/pom.xml | 59 -
modules/integration-tests/pom.xml | 274 -
.../java/org/apache/airavata/integration/Man.java | 24 -
.../src/main/resources/stop-derby.sh | 25 -
.../integration/AbstractIntegrationTest.java | 84 -
.../apache/airavata/integration/BaseCaseIT.java | 390 -
.../airavata/integration/DataRetrievalIT.java | 226 -
.../apache/airavata/integration/ForEachCaseIT.java | 109 -
.../org/apache/airavata/integration/OsUtils.java | 49 -
.../airavata/integration/PasswordCallbackImpl.java | 58 -
.../apache/airavata/integration/SimpleEchoIT.java | 108 -
.../integration/SingleAppIntegrationTestBase.java | 85 -
.../integration/WorkflowIntegrationTestBase.java | 340 -
.../integration/WorkflowSamplesCaseIT.java | 118 -
.../integration/tools/DocumentCreatorNew.java | 828 --
.../integration/tools/DocumentCreatorUtils.java | 157 -
modules/integration-tests/src/test/java/suite.xml | 23 -
.../src/test/resources/EchoWorkflow.xwf | 149 -
.../src/test/resources/ForEachBasicWorkflow.xwf | 685 -
.../src/test/resources/ForEachEchoWorkflow.xwf | 689 -
.../src/test/resources/PBSTemplate.xslt | 77 -
.../src/test/resources/SLURMTemplate.xslt | 72 -
.../src/test/resources/comma_data.bat | 27 -
.../src/test/resources/comma_data.sh | 31 -
.../src/test/resources/gfac-config.xml | 104 -
.../src/test/resources/gsissh.properties | 26 -
.../src/test/resources/log4j.properties | 34 -
modules/job-monitor/email-monitor/pom.xml | 2 +-
.../monitor/email/parser/PBSEmailParser.java | 2 +-
modules/job-monitor/job-monitor-api/pom.xml | 2 +-
.../apache/airavata/monitor/AbstractMonitor.java | 69 +-
.../job-monitor/job-monitor-distribution/pom.xml | 91 -
modules/job-monitor/pom.xml | 8 +-
modules/job-monitor/real-time-monitor/pom.xml | 2 +-
.../airavata/monitor/realtime/RealtimeMonitor.java | 11 +-
.../realtime/parser/RealtimeJobStatusParser.java | 65 +-
.../messaging/core/impl/MessageConsumer.java | 3 +-
.../messaging/core/util/DBEventPublisherUtils.java | 19 +
modules/monitoring/pom.xml | 56 -
.../java/org/apache/airavata/monitoring/Main.java | 23 -
.../apache/airavata/monitoring/MessageExtract.java | 128 -
.../java/org/apache/airavata/monitoring/Util.java | 73 -
.../monitoring/consumer/StatusConsumer.java | 103 -
.../monitoring/consumer/StatusReceiver.java | 79 -
.../monitoring/mailbox/GmailSMTPMailBox.java | 97 -
.../airavata/monitoring/mailbox/MailBox.java | 38 -
.../airavata/monitoring/mailbox/MailConfig.java | 78 -
.../producer/RabbitMQEmailPublisher.java | 113 -
.../monitoring/simulator/FetchPublish.java | 60 -
.../airavata/monitoring/simulator/Simulator.java | 49 -
modules/orchestrator/orchestrator-client/pom.xml | 5 +
.../orchestrator/cpi/OrchestratorService.java | 765 +-
.../cpi/orchestrator_cpiConstants.java | 2 +-
modules/orchestrator/orchestrator-core/pom.xml | 4 +-
.../core/impl/GFACPassiveJobSubmitter.java | 13 +-
.../orchestrator/core/job/JobSubmitter.java | 8 -
.../orchestrator/core/utils/OrchestratorUtils.java | 19 +
.../cpi/impl/SimpleOrchestratorImpl.java | 19 +-
.../server/OrchestratorServerHandler.java | 93 +-
modules/registry/registry-core/pom.xml | 26 +
.../SSHAccountProvisionerConfiguration.java | 4 +-
.../SSHAccountProvisionerConfigurationPK.java | 4 +-
.../core/entities/expcatalog/ProcessEntity.java | 15 +-
.../entities/expcatalog/ProcessWorkflowEntity.java | 69 +
.../entities/expcatalog/ProcessWorkflowPK.java | 49 +
.../src/main/resources/META-INF/persistence.xml | 1 +
.../src/main/resources/expcatalog-derby.sql | 30 +-
.../src/main/resources/expcatalog-mysql.sql | 32 +-
.../airavata/registry/cpi/ExpCatChildDataType.java | 3 +-
.../registry/cpi/ExperimentCatalogModelType.java | 3 +-
.../airavata/registry/cpi/utils/Constants.java | 1 +
modules/registry/registry-server/pom.xml | 2 +-
.../api/service/handler/RegistryServerHandler.java | 66 +-
.../messaging/RegistryServiceDBEventHandler.java | 5 +-
.../RegistryServiceDBEventMessagingFactory.java | 5 +-
.../registry-server/registry-api-stubs/pom.xml | 7 +-
.../airavata/registry/api/RegistryService.java | 14498 +++++++++++--------
.../registry/api/registry_apiConstants.java | 2 +-
.../DeltaScripts/expCatalog_schema_delta.sql | 2 +-
.../DeltaScripts/profile_service_schema_delta.sql | 21 +
...licaCatalog_lowercase_user_data_dir_example.sql | 20 +
.../credentialStore_keycloak_migration.sql | 20 +
.../expCatalog_keycloak_migration.sql | 20 +
.../profileService_keycloak_migration.sql | 20 +
.../sharingCatalog_keycloak_migration.sql | 20 +
.../DeltaScripts/expCatalog_schema_delta.sql | 34 +
.../DeltaScripts/profile_service_schema_delta.sql | 53 +
.../DeltaScripts/sharingCatalog_schema_delta.sql | 28 +
modules/sharing-registry/pom.xml | 2 +-
.../sharing-registry/sharing-data-migrator/pom.xml | 4 +-
.../migrator/airavata/AiravataDataMigrator.java | 40 +-
.../sharing-registry-distribution/pom.xml | 4 +-
.../sharing-registry-server/pom.xml | 2 +-
.../registry/db/repositories/EntityRepository.java | 4 +-
.../db/repositories/GroupMembershipRepository.java | 2 +-
.../messaging/SharingServiceDBEventHandler.java | 57 +-
.../SharingServiceDBEventMessagingFactory.java | 5 +-
.../server/SharingRegistryServerHandler.java | 259 +-
.../airavata/sharing/registry/utils/Constants.java | 5 +-
.../registry/utils/ThriftDataModelConversion.java | 19 +
.../registry/SharingRegistryServiceTest.java | 2 +-
.../sharing-registry-stubs/pom.xml | 7 +-
.../airavata/sharing/registry/models/Domain.java | 16 +
.../registry/models/DuplicateEntryException.java | 16 +
.../airavata/sharing/registry/models/Entity.java | 16 +
.../sharing/registry/models/EntitySearchField.java | 16 +
.../sharing/registry/models/EntityType.java | 16 +
.../sharing/registry/models/GroupAdmin.java | 16 +
.../sharing/registry/models/GroupCardinality.java | 16 +
.../sharing/registry/models/GroupChildType.java | 16 +
.../sharing/registry/models/GroupMembership.java | 16 +
.../sharing/registry/models/GroupType.java | 16 +
.../sharing/registry/models/PermissionType.java | 16 +
.../sharing/registry/models/SearchCondition.java | 16 +
.../sharing/registry/models/SearchCriteria.java | 16 +
.../airavata/sharing/registry/models/Sharing.java | 16 +
.../registry/models/SharingRegistryException.java | 16 +
.../sharing/registry/models/SharingType.java | 16 +
.../airavata/sharing/registry/models/User.java | 16 +
.../sharing/registry/models/UserGroup.java | 16 +
.../registry/models/sharing_modelsConstants.java | 16 +
.../service/cpi/SharingRegistryService.java | 28 +-
.../service/cpi/sharing_cpiConstants.java} | 6 +-
.../sharing-service-docs/api-docs/index.html | 11 +-
.../sharing-service-docs/api-docs/sharing_cpi.html | 8 +-
.../sharing-registry/thrift_models/thrift-gen.sh | 29 +-
modules/test-suite/multi-tenanted-airavata/README | 36 -
modules/test-suite/multi-tenanted-airavata/pom.xml | 228 -
.../multitenantedairavata/AiravataClient.java | 57 -
.../multitenantedairavata/AiravataIT.java | 378 -
.../multitenantedairavata/ApplicationRegister.java | 263 -
.../ComputeResourceRegister.java | 220 -
.../multitenantedairavata/ExperimentExecution.java | 401 -
.../FrameworkBootstrapping.java | 509 -
.../multitenantedairavata/FrameworkSetup.java | 121 -
.../multitenantedairavata/GatewayRegister.java | 265 -
.../StorageResourceRegister.java | 170 -
.../multitenantedairavata/TestFrameworkProps.java | 266 -
.../utils/ApplicationProperties.java | 58 -
.../utils/ComputeResourceProperties.java | 54 -
.../utils/FrameworkUtils.java | 40 -
.../utils/PropertyFileType.java | 26 -
.../utils/PropertyReader.java | 56 -
.../utils/TestFrameworkConstants.java | 123 -
.../src/main/resources/airavata-server.properties | 346 -
.../src/main/resources/airavata_sym.jks | Bin 501 -> 0 bytes
.../local-exp-resources/wrapper/echo_wrapper.sh | 7 -
.../src/main/resources/log4j.properties | 41 -
.../src/main/resources/startup-airavata.sh | 8 -
.../src/main/resources/test-framework.json | 22 -
modules/test-suite/pom.xml | 51 -
modules/user-profile-migration/.gitignore | 1 -
modules/user-profile-migration/pom.xml | 134 -
.../airavata/KeycloakIdentityServerClient.java | 172 -
.../java/org/apache/airavata/MigrationManager.java | 391 -
.../java/org/apache/airavata/UserProfileDAO.java | 136 -
.../apache/airavata/Wso2ISLoginCredentialsDAO.java | 78 -
.../apache/airavata/Wso2IdentityServerClient.java | 161 -
.../user-profile-migration.properties.template | 35 -
modules/workflow-model/pom.xml | 44 -
modules/workflow-model/workflow-engine/pom.xml | 317 -
.../workflow/catalog/WorkflowCatalogFactory.java | 43 -
.../airavata/workflow/engine/WorkflowEngine.java | 24 -
.../workflow/engine/WorkflowEngineException.java | 36 -
.../workflow/engine/WorkflowEngineFactory.java | 31 -
.../workflow/engine/WorkflowEngineImpl.java | 89 -
.../airavata/workflow/engine/WorkflowUtils.java | 57 -
.../engine/concurrent/PredicatedExecutable.java | 32 -
.../engine/concurrent/PredicatedTaskRunner.java | 154 -
.../engine/core/amazon/AmazonCredential.java | 77 -
.../engine/core/amazon/EC2InstanceResult.java | 114 -
.../engine/core/generators/XmlBeansFiler.java | 69 -
.../engine/core/workflow/ParameterListModel.java | 86 -
.../engine/datadriven/WorkflowHarvester.java | 189 -
.../workflow/engine/file/XBayaPathConstants.java | 62 -
.../workflow/engine/gfac/GFacRegistryClient.java | 167 -
.../workflow/engine/gfac/SimpleWSClient.java | 132 -
.../engine/globus/FileTransferConstants.java | 36 -
.../engine/globus/GridFTPFileTransferClient.java | 258 -
.../engine/graph/controller/NodeController.java | 219 -
.../engine/interpretor/DoWhileHandler.java | 248 -
.../engine/interpretor/HeaderConstants.java | 31 -
.../SSWorkflowInterpreterInteractorImpl.java | 113 -
.../engine/interpretor/SystemComponentInvoker.java | 115 -
.../interpretor/WorkFlowInterpreterException.java | 35 -
.../interpretor/WorkflowExecutionMessage.java | 38 -
.../engine/interpretor/WorkflowInterpreter.java | 1493 --
.../WorkflowInterpreterConfiguration.java | 74 -
.../interpretor/WorkflowInterpreterInteractor.java | 92 -
.../interpretor/WorkflowInterpreterInvoker.java | 64 -
.../interpretor/WorkflowInterpreterSkeleton2.java | 517 -
.../engine/invoker/AsynchronousInvoker.java | 117 -
.../workflow/engine/invoker/DynamicInvoker.java | 167 -
.../airavata/workflow/engine/invoker/Invoker.java | 103 -
.../invoker/MsgBoxWsaResponsesCorrelator.java | 159 -
.../workflow/engine/invoker/SimpleInvoker.java | 256 -
.../workflow/engine/invoker/WorkflowInputUtil.java | 52 -
.../airavata/workflow/engine/util/AmazonUtil.java | 148 -
.../apache/airavata/workflow/engine/util/Data.java | 68 -
.../airavata/workflow/engine/util/GOConstants.java | 28 -
.../workflow/engine/util/GlobusOnlineUtils.java | 265 -
.../workflow/engine/util/InterpreterUtil.java | 307 -
.../engine/util/ProxyMonitorPublisher.java | 60 -
.../workflow/engine/util/RegistryConstants.java | 28 -
.../workflow/engine/util/TransferFile.java | 168 -
.../airavata/workflow/engine/util/XBayaUtil.java | 203 -
.../engine/workflow/WorkflowEngineException.java | 40 -
.../workflow/engine/workflow/proxy/ProxyWSDL.java | 85 -
.../engine/workflow/proxy/WorkflowClient.java | 33 -
.../engine/workflow/proxy/WorkflowContext.java | 40 -
.../workflow/proxy/WorkflowProxyException.java | 62 -
.../src/main/resources/WorkflowInterpretor.wsdl | 72 -
.../src/main/resources/images/airavata-2.png | Bin 5582 -> 0 bytes
.../src/main/resources/images/airavata-config.png | Bin 1297 -> 0 bytes
.../src/main/resources/images/airavata-icon.png | Bin 584 -> 0 bytes
.../src/main/resources/images/airavata-icon2.png | Bin 981 -> 0 bytes
.../src/main/resources/images/airavata-name.png | Bin 8261 -> 0 bytes
.../main/resources/images/airavata-title-text.png | Bin 16438 -> 0 bytes
.../src/main/resources/images/airavata.png | Bin 17280 -> 0 bytes
.../src/main/resources/images/application.png | Bin 894 -> 0 bytes
.../src/main/resources/images/applications.png | Bin 657 -> 0 bytes
.../src/main/resources/images/closed.gif | Bin 923 -> 0 bytes
.../src/main/resources/images/cloud.png | Bin 573 -> 0 bytes
.../src/main/resources/images/experiment.png | Bin 543 -> 0 bytes
.../src/main/resources/images/experiments.png | Bin 1142 -> 0 bytes
.../src/main/resources/images/gfac_url.png | Bin 739 -> 0 bytes
.../src/main/resources/images/gfac_urls.png | Bin 816 -> 0 bytes
.../src/main/resources/images/host.png | Bin 652 -> 0 bytes
.../src/main/resources/images/hosts.png | Bin 671 -> 0 bytes
.../src/main/resources/images/input_para.png | Bin 428 -> 0 bytes
.../src/main/resources/images/jcr-repo.png | Bin 1010 -> 0 bytes
.../src/main/resources/images/leaf.gif | Bin 906 -> 0 bytes
.../src/main/resources/images/menu/jcr.png | Bin 1158 -> 0 bytes
.../src/main/resources/images/menu/new2.png | Bin 1175 -> 0 bytes
.../src/main/resources/images/menu/open1.png | Bin 925 -> 0 bytes
.../src/main/resources/images/menu/open2.png | Bin 964 -> 0 bytes
.../src/main/resources/images/menu/open_dir.png | Bin 749 -> 0 bytes
.../src/main/resources/images/menu/pause1.png | Bin 1101 -> 0 bytes
.../main/resources/images/menu/pause_monitor1.png | Bin 873 -> 0 bytes
.../src/main/resources/images/menu/play3.png | Bin 1192 -> 0 bytes
.../src/main/resources/images/menu/play4.png | Bin 765 -> 0 bytes
.../resources/images/menu/resume_monitoring1.png | Bin 957 -> 0 bytes
.../src/main/resources/images/menu/save1.png | Bin 1200 -> 0 bytes
.../src/main/resources/images/menu/stop.png | Bin 316 -> 0 bytes
.../src/main/resources/images/opened.gif | Bin 917 -> 0 bytes
.../src/main/resources/images/output_para.png | Bin 490 -> 0 bytes
.../src/main/resources/images/parameter.png | Bin 544 -> 0 bytes
.../src/main/resources/images/pause.jpeg | Bin 458 -> 0 bytes
.../src/main/resources/images/play.jpeg | Bin 471 -> 0 bytes
.../src/main/resources/images/registry.png | Bin 3419 -> 0 bytes
.../src/main/resources/images/service.png | Bin 871 -> 0 bytes
.../src/main/resources/images/services.png | Bin 899 -> 0 bytes
.../src/main/resources/images/step.gif | Bin 211 -> 0 bytes
.../src/main/resources/images/stop.jpeg | Bin 497 -> 0 bytes
.../src/main/resources/images/workflow.png | Bin 601 -> 0 bytes
.../main/resources/images/workflow_templates.png | Bin 710 -> 0 bytes
.../src/main/resources/images/workflows.png | Bin 778 -> 0 bytes
.../src/main/resources/services.xml | 30 -
.../resources/wsdls/TestCMD_Example1_AWSDL.xml | 56 -
.../src/main/resources/wsdls/adder-awsdl.xml | 63 -
.../src/main/resources/wsdls/eventing.wsdl | 332 -
.../interpreter/ComplexForEachWorkflowTest.java | 92 -
.../xbaya/interpreter/ComplexMathService.java | 38 -
.../xbaya/interpreter/ComplexMathWorkflowTest.java | 90 -
.../interpreter/CrossProductWorkflowTest.java | 90 -
.../airavata/xbaya/interpreter/EchoService.java | 27 -
.../xbaya/interpreter/ForEachWorkflowTest.java | 92 -
.../interpreter/LevenshteinDistanceService.java | 46 -
.../airavata/xbaya/interpreter/Listener.java | 50 -
.../xbaya/interpreter/NotificationSender.java | 223 -
.../xbaya/interpreter/RegistryServiceTest.java | 124 -
.../interpreter/SimpleForEachWorkflowTest.java | 91 -
.../xbaya/interpreter/SimpleMathWorkflowTest.java | 92 -
.../airavata/xbaya/interpreter/WorkflowTest.java | 93 -
.../xbaya/interpreter/WorkflowTrackingTest.java | 124 -
.../xbaya/interpreter/XBayaClientTest.java | 79 -
.../interpreter/XBayaConsolidatedTestSuite.java | 86 -
.../xbaya/interpreter/utils/ConfigKeys.java | 33 -
.../xbaya/interpreter/utils/TestUtilServer.java | 262 -
.../xbaya/interpreter/utils/WorkflowTestUtils.java | 116 -
.../workflow-engine/src/test/java/test.xwf | 251 -
.../src/test/resources/axis2_default.xml | 278 -
.../workflow-model-component/pom.xml | 111 -
.../component/registry/JCRComponentReference.java | 64 -
.../component/registry/JCRComponentRegistry.java | 82 -
modules/workflow-model/workflow-model-core/pom.xml | 114 -
.../workflow/model/component/Component.java | 197 -
.../model/component/ComponentControlPort.java | 54 -
.../model/component/ComponentDataPort.java | 66 -
.../workflow/model/component/ComponentEPRPort.java | 55 -
.../model/component/ComponentException.java | 60 -
.../component/ComponentOperationReference.java | 62 -
.../workflow/model/component/ComponentPort.java | 92 -
.../model/component/ComponentReference.java | 93 -
.../model/component/ComponentRegistry.java | 52 -
.../component/ComponentRegistryException.java | 59 -
.../component/amazon/AmazonComponentRegistry.java | 71 -
.../model/component/amazon/InstanceComponent.java | 133 -
.../amazon/InstanceComponentDataPort.java | 57 -
.../amazon/TerminateInstanceComponent.java | 132 -
.../model/component/dynamic/DynamicComponent.java | 176 -
.../component/dynamic/DynamicComponentPort.java | 62 -
.../component/local/LocalComponentReference.java | 73 -
.../component/local/LocalComponentRegistry.java | 150 -
.../model/component/system/BlockComponent.java | 100 -
.../model/component/system/ConstantComponent.java | 70 -
.../component/system/DifferedInputComponent.java | 73 -
.../model/component/system/DoWhileComponent.java | 152 -
.../model/component/system/EndBlockComponent.java | 131 -
.../component/system/EndDoWhileComponent.java | 125 -
.../component/system/EndForEachComponent.java | 131 -
.../model/component/system/EndifComponent.java | 131 -
.../model/component/system/ExitComponent.java | 97 -
.../model/component/system/ForEachComponent.java | 132 -
.../model/component/system/IfComponent.java | 118 -
.../model/component/system/InputComponent.java | 71 -
.../model/component/system/MemoComponent.java | 60 -
.../model/component/system/OutputComponent.java | 69 -
.../model/component/system/ReceiveComponent.java | 100 -
.../model/component/system/S3InputComponent.java | 71 -
.../component/system/StreamSourceComponent.java | 94 -
.../component/system/SubWorkflowComponent.java | 79 -
.../model/component/system/SystemComponent.java | 94 -
.../component/system/SystemComponentDataPort.java | 61 -
.../component/system/SystemComponentReference.java | 61 -
.../component/system/SystemComponentRegistry.java | 97 -
.../model/component/url/URLComponentReference.java | 58 -
.../model/component/url/URLComponentRegistry.java | 87 -
.../model/component/web/WebComponentReference.java | 58 -
.../model/component/web/WebComponentRegistry.java | 185 -
.../workflow/model/component/ws/WSComponent.java | 256 -
.../model/component/ws/WSComponentApplication.java | 285 -
.../ws/WSComponentApplicationParameter.java | 112 -
.../model/component/ws/WSComponentFactory.java | 71 -
.../model/component/ws/WSComponentKey.java | 64 -
.../model/component/ws/WSComponentPort.java | 232 -
.../model/component/ws/WSComponentReference.java | 61 -
.../model/component/ws/WSComponentRegistry.java | 111 -
.../model/component/ws/WorkflowComponent.java | 159 -
.../model/exceptions/LazyLoadedDataException.java | 30 -
.../workflow/model/exceptions/UtilsException.java | 59 -
.../model/exceptions/WorkflowException.java | 60 -
.../model/exceptions/WorkflowRuntimeException.java | 55 -
.../airavata/workflow/model/gpel/DSCUtil.java | 116 -
.../workflow/model/gpel/script/BPELScript.java | 1122 --
.../workflow/model/gpel/script/BPELScriptType.java | 25 -
.../workflow/model/gpel/script/WorkflowWSDL.java | 727 -
.../airavata/workflow/model/graph/ControlEdge.java | 63 -
.../airavata/workflow/model/graph/ControlPort.java | 80 -
.../airavata/workflow/model/graph/DataEdge.java | 79 -
.../airavata/workflow/model/graph/DataPort.java | 73 -
.../airavata/workflow/model/graph/EPRPort.java | 70 -
.../apache/airavata/workflow/model/graph/Edge.java | 50 -
.../model/graph/ForEachExecutableNode.java | 23 -
.../airavata/workflow/model/graph/Graph.java | 191 -
.../workflow/model/graph/GraphException.java | 61 -
.../workflow/model/graph/GraphFactory.java | 70 -
.../airavata/workflow/model/graph/GraphPiece.java | 25 -
.../airavata/workflow/model/graph/GraphSchema.java | 388 -
.../apache/airavata/workflow/model/graph/Node.java | 218 -
.../apache/airavata/workflow/model/graph/Port.java | 160 -
.../model/graph/amazon/InstanceDataPort.java | 91 -
.../workflow/model/graph/amazon/InstanceNode.java | 298 -
.../workflow/model/graph/amazon/ResourceNode.java | 86 -
.../model/graph/amazon/TerminateInstanceNode.java | 87 -
.../model/graph/dynamic/BasicTypeMapping.java | 250 -
.../workflow/model/graph/dynamic/DynamicNode.java | 131 -
.../workflow/model/graph/dynamic/DynamicPort.java | 85 -
.../workflow/model/graph/dynamic/PortAddable.java | 30 -
.../model/graph/dynamic/SchemaCompilerUtil.java | 222 -
.../workflow/model/graph/impl/EdgeImpl.java | 177 -
.../workflow/model/graph/impl/GraphImpl.java | 720 -
.../workflow/model/graph/impl/NodeImpl.java | 820 --
.../workflow/model/graph/impl/PortImpl.java | 454 -
.../model/graph/subworkflow/SubWorkflowNode.java | 97 -
.../workflow/model/graph/system/BlockNode.java | 70 -
.../workflow/model/graph/system/ConstantNode.java | 291 -
.../model/graph/system/DifferedInputNode.java | 303 -
.../workflow/model/graph/system/DoWhileNode.java | 188 -
.../workflow/model/graph/system/EndBlockNode.java | 225 -
.../model/graph/system/EndDoWhileNode.java | 240 -
.../model/graph/system/EndForEachNode.java | 240 -
.../workflow/model/graph/system/EndifNode.java | 226 -
.../workflow/model/graph/system/ExitNode.java | 79 -
.../workflow/model/graph/system/ForEachNode.java | 305 -
.../workflow/model/graph/system/IfNode.java | 139 -
.../workflow/model/graph/system/InputNode.java | 399 -
.../workflow/model/graph/system/MemoNode.java | 90 -
.../workflow/model/graph/system/OutputNode.java | 211 -
.../workflow/model/graph/system/ParameterNode.java | 365 -
.../workflow/model/graph/system/ReceiveNode.java | 110 -
.../workflow/model/graph/system/S3InputNode.java | 295 -
.../model/graph/system/StreamSourceNode.java | 157 -
.../model/graph/system/SystemDataPort.java | 191 -
.../workflow/model/graph/system/SystemNode.java | 136 -
.../workflow/model/graph/util/GraphUtil.java | 514 -
.../airavata/workflow/model/graph/ws/WSGraph.java | 220 -
.../workflow/model/graph/ws/WSGraphFactory.java | 343 -
.../airavata/workflow/model/graph/ws/WSNode.java | 195 -
.../airavata/workflow/model/graph/ws/WSPort.java | 136 -
.../workflow/model/graph/ws/WorkflowNode.java | 74 -
.../workflow/model/ode/ODEBPELTransformer.java | 649 -
.../airavata/workflow/model/ode/ODEClient.java | 119 -
.../model/ode/ODEDeploymentDescriptor.java | 203 -
.../workflow/model/ode/ODEWSDLTransformer.java | 455 -
.../airavata/workflow/model/ode/WSDLCleaner.java | 117 -
.../workflow/model/utils/ApplicationVersion.java | 39 -
.../workflow/model/utils/FileConstants.java | 38 -
.../workflow/model/utils/MessageConstants.java | 43 -
.../workflow/model/utils/WorkflowConstants.java | 64 -
.../model/wf/InvalidDataFormatException.java | 32 -
.../workflow/model/wf/TridentTransformer.java | 53 -
.../airavata/workflow/model/wf/Workflow.java | 985 --
.../airavata/workflow/model/wf/WorkflowData.java | 76 -
.../workflow/model/wf/WorkflowExecutionState.java | 25 -
.../airavata/workflow/model/wf/WorkflowInput.java | 90 -
.../workflow/model/xsd/GFacSimpleTypesXSD.java | 95 -
.../workflow/model/xsd/LeadContextHeaderXSD.java | 185 -
.../workflow/model/xsd/LeadCrosscutXSD.java | 151 -
modules/workflow/pom.xml | 41 -
modules/workflow/workflow-core/pom.xml | 90 -
.../airavata/workflow/core/WorkflowBuilder.java | 34 -
.../workflow/core/WorkflowEnactmentService.java | 168 -
.../airavata/workflow/core/WorkflowFactory.java | 54 -
.../airavata/workflow/core/WorkflowInfo.java | 94 -
.../workflow/core/WorkflowInterpreter.java | 353 -
.../org/apache/airavata/workflow/core/XMLUtil.java | 585 -
.../airavata/workflow/core/XmlFormatter.java | 80 -
.../workflow/core/dag/edge/DirectedEdge.java | 71 -
.../airavata/workflow/core/dag/edge/Edge.java | 48 -
.../workflow/core/dag/nodes/ApplicationNode.java | 46 -
.../core/dag/nodes/ApplicationNodeImpl.java | 131 -
.../workflow/core/dag/nodes/InputNode.java | 41 -
.../workflow/core/dag/nodes/InputNodeImpl.java | 207 -
.../airavata/workflow/core/dag/nodes/NodeType.java | 26 -
.../workflow/core/dag/nodes/OutputNode.java | 35 -
.../workflow/core/dag/nodes/OutputNodeImpl.java | 189 -
.../workflow/core/dag/nodes/WorkflowNode.java | 46 -
.../airavata/workflow/core/dag/port/InPort.java | 39 -
.../workflow/core/dag/port/InputPortIml.java | 118 -
.../airavata/workflow/core/dag/port/OutPort.java | 37 -
.../workflow/core/dag/port/OutPortImpl.java | 109 -
.../airavata/workflow/core/dag/port/Port.java | 46 -
.../workflow/core/parser/JsonWorkflowParser.java | 760 -
.../workflow/core/parser/ParserException.java | 39 -
.../workflow/core/parser/WorkflowParser.java | 45 -
.../apache/airavata/workflow/core/XMLUtilTest.java | 55 -
.../core/parser/JsonWorkflowParserTest.java | 93 -
.../src/test/resources/ComplexMathWorkflow.awf | 465 -
.../test/resources/ParamChemApplicationTest.awf | 593 -
.../src/test/resources/TestWorkflow.json | 89 -
modules/xbaya-gui/pom.xml | 287 -
.../apache/airavata/xbaya/ThriftClientData.java | 68 -
.../apache/airavata/xbaya/ThriftServiceType.java | 24 -
.../main/java/org/apache/airavata/xbaya/XBaya.java | 270 -
.../apache/airavata/xbaya/XBayaConfiguration.java | 876 --
.../org/apache/airavata/xbaya/XBayaConstants.java | 203 -
.../org/apache/airavata/xbaya/XBayaEngine.java | 187 -
.../org/apache/airavata/xbaya/XBayaVersion.java | 40 -
.../component/registry/ComponentController.java | 48 -
.../registry/ComponentRegistryLoader.java | 179 -
.../xbaya/concurrent/PredicatedExecutable.java | 32 -
.../xbaya/concurrent/PredicatedTaskRunner.java | 156 -
.../xbaya/core/amazon/AmazonCredential.java | 77 -
.../xbaya/core/amazon/EC2InstanceResult.java | 92 -
.../airavata/xbaya/core/generators/BPELFiler.java | 137 -
.../airavata/xbaya/core/generators/ImageFiler.java | 104 -
.../xbaya/core/generators/JythonFiler.java | 126 -
.../xbaya/core/generators/ODEScriptFiler.java | 155 -
.../airavata/xbaya/core/generators/ScuflFiler.java | 118 -
.../xbaya/core/generators/WorkflowFiler.java | 270 -
.../xbaya/core/generators/XmlBeansFiler.java | 69 -
.../xbaya/core/ide/XBayaExecutionModeListener.java | 32 -
.../xbaya/core/workflow/ParameterListModel.java | 86 -
.../xbaya/datadriven/WorkflowHarvester.java | 189 -
.../airavata/xbaya/file/XBayaPathConstants.java | 62 -
.../airavata/xbaya/gfac/GFacRegistryClient.java | 167 -
.../apache/airavata/xbaya/gfac/SimpleWSClient.java | 132 -
.../xbaya/globus/FileTransferConstants.java | 36 -
.../xbaya/globus/GridFTPFileTransferClient.java | 257 -
.../xbaya/graph/controller/NodeController.java | 193 -
.../xbaya/interpretor/ExperimentTemplate.java | 56 -
.../GUIWorkflowInterpreterInteractorImpl.java | 230 -
.../xbaya/interpretor/HeaderConstants.java | 31 -
.../SSWorkflowInterpreterInteractorImpl.java | 137 -
.../interpretor/StandaloneNotificationSender.java | 131 -
.../interpretor/WorkFlowInterpreterException.java | 35 -
.../interpretor/WorkflowExecutionMessage.java | 38 -
.../interpretor/WorkflowExecutionTemplate.java | 70 -
.../xbaya/interpretor/WorkflowInterpreter.java | 1527 --
.../WorkflowInterpreterConfiguration.java | 252 -
.../interpretor/WorkflowInterpreterInteractor.java | 113 -
.../interpretor/WorkflowInterpreterInvoker.java | 64 -
.../WorkflowInterpretorEventListener.java | 406 -
.../WorkflowInterpretorMessageReceiverInOut.java | 281 -
.../interpretor/WorkflowInterpretorSkeleton.java | 590 -
.../xbaya/jython/lib/GFacServiceCreator.java | 166 -
.../xbaya/jython/lib/NotificationSender.java | 308 -
.../xbaya/jython/lib/ServiceNotifiable.java | 80 -
.../jython/lib/ServiceNotificationSender.java | 312 -
.../lib/StandaloneServiceNotificationSender.java | 93 -
.../xbaya/jython/lib/WorkflowNotifiable.java | 90 -
.../xbaya/jython/runner/JythonClassLoader.java | 421 -
.../xbaya/jython/runner/JythonOneTimeRunner.java | 33 -
.../jython/runner/JythonOneTimeRunnerImpl.java | 83 -
.../airavata/xbaya/jython/runner/JythonRunner.java | 71 -
.../airavata/xbaya/jython/script/JythonScript.java | 662 -
.../airavata/xbaya/menues/tools/ToolsMenuItem.java | 98 -
.../apache/airavata/xbaya/messaging/EventData.java | 146 -
.../xbaya/messaging/EventDataListener.java | 66 -
.../xbaya/messaging/EventDataRepository.java | 493 -
.../apache/airavata/xbaya/messaging/Monitor.java | 331 -
.../airavata/xbaya/messaging/MonitorException.java | 60 -
.../xbaya/messaging/NotificationHandler.java | 26 -
.../airavata/xbaya/messaging/event/Event.java | 82 -
.../xbaya/messaging/event/EventListener.java | 33 -
.../xbaya/messaging/event/EventProducer.java | 103 -
.../airavata/xbaya/modifier/WorkflowModifier.java | 250 -
.../xbaya/registry/PasswordCallbackImpl.java | 58 -
.../airavata/xbaya/scufl/script/ScuflScript.java | 558 -
.../airavata/xbaya/test/util/WorkflowCreator.java | 760 -
.../org/apache/airavata/xbaya/ui/XBayaGUI.java | 861 --
.../ui/actions/AbstractBrowserActionItem.java | 88 -
.../ui/actions/registry/browser/AddAction.java | 41 -
.../ui/actions/registry/browser/BrowserAction.java | 37 -
.../ui/actions/registry/browser/CopyAction.java | 37 -
.../ui/actions/registry/browser/DeleteAction.java | 40 -
.../ui/actions/registry/browser/EditAction.java | 37 -
.../ui/actions/registry/browser/ImportAction.java | 37 -
.../ui/actions/registry/browser/RefreshAction.java | 41 -
.../ui/actions/registry/browser/ViewAction.java | 37 -
.../airavata/xbaya/ui/dialogs/AboutWindow.java | 124 -
.../airavata/xbaya/ui/dialogs/ErrorWindow.java | 277 -
.../xbaya/ui/dialogs/GlobusFileTransferWindow.java | 277 -
.../airavata/xbaya/ui/dialogs/TextWindow.java | 137 -
.../airavata/xbaya/ui/dialogs/WaitDialog.java | 138 -
.../airavata/xbaya/ui/dialogs/XBayaDialog.java | 265 -
.../ui/dialogs/amazon/AmazonEC2InvokerWindow.java | 220 -
.../ui/dialogs/amazon/AmazonS3UtilsWindow.java | 310 -
.../xbaya/ui/dialogs/amazon/BucketsLoader.java | 121 -
.../ui/dialogs/amazon/ChangeCredentialWindow.java | 197 -
.../amazon/EC2InstancesManagementWindow.java | 181 -
.../xbaya/ui/dialogs/amazon/EC2LaunchWindow.java | 179 -
.../xbaya/ui/dialogs/amazon/InstancesLoader.java | 103 -
.../xbaya/ui/dialogs/amazon/S3Downloader.java | 135 -
.../xbaya/ui/dialogs/amazon/S3Uploader.java | 125 -
.../ui/dialogs/component/URLRegistryWindow.java | 130 -
.../ui/dialogs/component/WebResigtryWindow.java | 129 -
.../graph/amazon/InstanceConfigurationDialog.java | 222 -
.../graph/system/ConstantConfigurationDialog.java | 192 -
.../system/DifferedInputConfigurationDialog.java | 235 -
.../graph/system/DoWhileConfigrationDialog.java | 187 -
.../graph/system/EndBlockConfigurationDialog.java | 161 -
.../system/EndDoWhileConfigurationDialog.java | 170 -
.../system/EndForEachConfigurationDialog.java | 159 -
.../graph/system/EndifConfigurationDialog.java | 161 -
.../graph/system/ForEachConfigurationDialog.java | 159 -
.../graph/system/IfConfigurationDialog.java | 188 -
.../graph/system/InputConfigurationDialog.java | 180 -
.../graph/system/MemoConfigurationDialog.java | 113 -
.../graph/system/OutputConfigurationDialog.java | 144 -
.../graph/system/ReceiveConfigurationDialog.java | 159 -
.../ui/dialogs/graph/system/S3FileChooser.java | 191 -
.../system/StreamSourceConfigurationDialog.java | 127 -
.../dialogs/graph/ws/ServiceInteractionWindow.java | 130 -
.../xbaya/ui/dialogs/graph/ws/WSNodeWindow.java | 136 -
.../monitor/MonitorConfigurationWindow.java | 193 -
.../xbaya/ui/dialogs/monitor/MonitorWindow.java | 160 -
.../ui/dialogs/registry/NewRegistryUserDialog.java | 302 -
.../xbaya/ui/dialogs/registry/RegistryWindow.java | 246 -
.../dialogs/registry/browser/JCRBrowserDialog.java | 117 -
.../dialogs/workflow/ParameterPropertyWindow.java | 168 -
.../ui/dialogs/workflow/WorkflowImportWindow.java | 264 -
.../dialogs/workflow/WorkflowPropertyWindow.java | 173 -
.../xbaya/ui/experiment/ExperimentMenu.java | 101 -
.../ui/experiment/LaunchApplicationWindow.java | 416 -
.../xbaya/ui/experiment/RegistrySearchResult.java | 124 -
.../RegistryWorkflowPublisherWindow.java | 169 -
.../WorkflowInterpreterLaunchWindow.java | 411 -
.../apache/airavata/xbaya/ui/graph/EdgeGUI.java | 140 -
.../airavata/xbaya/ui/graph/GraphCanvas.java | 1385 --
.../airavata/xbaya/ui/graph/GraphCanvasEvent.java | 97 -
.../xbaya/ui/graph/GraphCanvasListener.java | 30 -
.../apache/airavata/xbaya/ui/graph/GraphGUI.java | 196 -
.../airavata/xbaya/ui/graph/GraphPieceGUI.java | 34 -
.../apache/airavata/xbaya/ui/graph/NodeGUI.java | 533 -
.../apache/airavata/xbaya/ui/graph/Paintable.java | 33 -
.../apache/airavata/xbaya/ui/graph/PortGUI.java | 272 -
.../xbaya/ui/graph/amazon/InstanceNodeGUI.java | 164 -
.../ui/graph/amazon/TerminateInstanceNodeGUI.java | 158 -
.../ui/graph/subworkflow/SubWorkflowNodeGUI.java | 87 -
.../xbaya/ui/graph/system/BlockNodeGUI.java | 85 -
.../xbaya/ui/graph/system/ConfigurableNodeGUI.java | 138 -
.../xbaya/ui/graph/system/ConstantNodeGUI.java | 61 -
.../ui/graph/system/DifferedInputHandler.java | 86 -
.../ui/graph/system/DifferedInputNodeGUI.java | 100 -
.../xbaya/ui/graph/system/DoWhileNodeGUI.java | 189 -
.../xbaya/ui/graph/system/EndBlockNodeGUI.java | 174 -
.../xbaya/ui/graph/system/EndDoWhileNodeGUI.java | 176 -
.../xbaya/ui/graph/system/EndForEachNodeGUI.java | 146 -
.../xbaya/ui/graph/system/EndifNodeGUI.java | 174 -
.../xbaya/ui/graph/system/ExitNodeGUI.java | 96 -
.../xbaya/ui/graph/system/ForEachNodeGUI.java | 153 -
.../airavata/xbaya/ui/graph/system/IfNodeGUI.java | 181 -
.../xbaya/ui/graph/system/InputNodeGUI.java | 79 -
.../xbaya/ui/graph/system/MemoNodeGUI.java | 105 -
.../xbaya/ui/graph/system/OutputNodeGUI.java | 89 -
.../xbaya/ui/graph/system/ReceiveNodeGUI.java | 148 -
.../xbaya/ui/graph/system/S3InputNodeGUI.java | 79 -
.../xbaya/ui/graph/system/StreamSourceNodeGUI.java | 71 -
.../airavata/xbaya/ui/graph/ws/WSNodeGUI.java | 154 -
.../xbaya/ui/graph/ws/WorkflowNodeGUI.java | 72 -
.../xbaya/ui/menues/AmazonEC2MenuItem.java | 158 -
.../xbaya/ui/menues/ApplicationMenuItem.java | 78 -
.../airavata/xbaya/ui/menues/EditMenuItem.java | 164 -
.../apache/airavata/xbaya/ui/menues/MenuIcons.java | 37 -
.../airavata/xbaya/ui/menues/RegistryMenuItem.java | 116 -
.../airavata/xbaya/ui/menues/RunMenuItem.java | 345 -
.../airavata/xbaya/ui/menues/ViewMenuItem.java | 138 -
.../apache/airavata/xbaya/ui/menues/XBayaMenu.java | 159 -
.../airavata/xbaya/ui/menues/XBayaMenuItem.java | 613 -
.../xbaya/ui/monitor/MonitorEventHandler.java | 501 -
.../airavata/xbaya/ui/monitor/MonitorStarter.java | 123 -
.../xbaya/ui/monitor/ResourcePaintable.java | 63 -
.../apache/airavata/xbaya/ui/utils/Cancelable.java | 28 -
.../apache/airavata/xbaya/ui/utils/DrawUtils.java | 106 -
.../airavata/xbaya/ui/utils/ErrorMessages.java | 238 -
.../airavata/xbaya/ui/views/ComponentViewer.java | 137 -
.../airavata/xbaya/ui/views/JCRBrowserPanel.java | 306 -
.../airavata/xbaya/ui/views/MonitorPanel.java | 305 -
.../xbaya/ui/views/ParameterPropertyPanel.java | 192 -
.../apache/airavata/xbaya/ui/views/PortViewer.java | 165 -
.../airavata/xbaya/ui/widgets/GridPanel.java | 163 -
.../airavata/xbaya/ui/widgets/ScrollPanel.java | 122 -
.../airavata/xbaya/ui/widgets/TabLabelButton.java | 140 -
.../airavata/xbaya/ui/widgets/TableRenderable.java | 29 -
.../airavata/xbaya/ui/widgets/ToolbarButton.java | 107 -
.../airavata/xbaya/ui/widgets/XBayaComboBox.java | 98 -
.../airavata/xbaya/ui/widgets/XBayaComponent.java | 33 -
.../airavata/xbaya/ui/widgets/XBayaLabel.java | 94 -
.../airavata/xbaya/ui/widgets/XBayaLinkButton.java | 304 -
.../airavata/xbaya/ui/widgets/XBayaList.java | 167 -
.../airavata/xbaya/ui/widgets/XBayaTextArea.java | 118 -
.../xbaya/ui/widgets/XBayaTextComponent.java | 35 -
.../airavata/xbaya/ui/widgets/XBayaTextField.java | 122 -
.../airavata/xbaya/ui/widgets/XBayaToolBar.java | 356 -
.../xbaya/ui/widgets/XbayaEnhancedList.java | 306 -
.../airavata/xbaya/ui/widgets/amazon/S3Tree.java | 131 -
.../xbaya/ui/widgets/amazon/S3TreeModel.java | 63 -
.../ui/widgets/component/ComponentSelector.java | 528 -
.../widgets/component/ComponentSelectorEvent.java | 83 -
.../component/ComponentSelectorListener.java | 30 -
.../component/ComponentSourceTransferable.java | 71 -
.../ui/widgets/component/ComponentTreeModel.java | 69 -
.../ui/widgets/component/ComponentTreeNode.java | 105 -
.../org/apache/airavata/xbaya/util/AmazonUtil.java | 148 -
.../java/org/apache/airavata/xbaya/util/Data.java | 68 -
.../apache/airavata/xbaya/util/GOConstants.java | 28 -
.../airavata/xbaya/util/GlobusOnlineUtils.java | 264 -
.../airavata/xbaya/util/RegistryConstants.java | 28 -
.../apache/airavata/xbaya/util/TransferFile.java | 168 -
.../org/apache/airavata/xbaya/util/XBayaUtil.java | 144 -
.../airavata/xbaya/workflow/WorkflowClient.java | 244 -
.../xbaya/workflow/WorkflowEngineException.java | 40 -
.../airavata/xbaya/workflow/proxy/ProxyWSDL.java | 85 -
.../xbaya/workflow/proxy/WorkflowClient.java | 33 -
.../xbaya/workflow/proxy/WorkflowContext.java | 40 -
.../workflow/proxy/WorkflowProxyException.java | 62 -
.../src/main/resources/WorkflowInterpretor.wsdl | 72 -
.../src/main/resources/images/airavata-2.png | Bin 5582 -> 0 bytes
.../src/main/resources/images/airavata-config.png | Bin 1297 -> 0 bytes
.../src/main/resources/images/airavata-icon.png | Bin 584 -> 0 bytes
.../src/main/resources/images/airavata-icon2.png | Bin 981 -> 0 bytes
.../src/main/resources/images/airavata-name.png | Bin 8261 -> 0 bytes
.../main/resources/images/airavata-title-text.png | Bin 16438 -> 0 bytes
.../src/main/resources/images/airavata.png | Bin 17280 -> 0 bytes
.../src/main/resources/images/application.png | Bin 894 -> 0 bytes
.../src/main/resources/images/applications.png | Bin 657 -> 0 bytes
.../xbaya-gui/src/main/resources/images/closed.gif | Bin 923 -> 0 bytes
.../xbaya-gui/src/main/resources/images/cloud.png | Bin 573 -> 0 bytes
.../src/main/resources/images/experiment.png | Bin 543 -> 0 bytes
.../src/main/resources/images/experiments.png | Bin 1142 -> 0 bytes
.../src/main/resources/images/gfac_url.png | Bin 739 -> 0 bytes
.../src/main/resources/images/gfac_urls.png | Bin 816 -> 0 bytes
.../xbaya-gui/src/main/resources/images/host.png | Bin 652 -> 0 bytes
.../xbaya-gui/src/main/resources/images/hosts.png | Bin 671 -> 0 bytes
.../src/main/resources/images/input_para.png | Bin 428 -> 0 bytes
.../src/main/resources/images/jcr-repo.png | Bin 1010 -> 0 bytes
.../xbaya-gui/src/main/resources/images/leaf.gif | Bin 906 -> 0 bytes
.../src/main/resources/images/menu/jcr.png | Bin 1158 -> 0 bytes
.../src/main/resources/images/menu/new2.png | Bin 1175 -> 0 bytes
.../src/main/resources/images/menu/open1.png | Bin 925 -> 0 bytes
.../src/main/resources/images/menu/open2.png | Bin 964 -> 0 bytes
.../src/main/resources/images/menu/open_dir.png | Bin 749 -> 0 bytes
.../src/main/resources/images/menu/pause1.png | Bin 1101 -> 0 bytes
.../main/resources/images/menu/pause_monitor1.png | Bin 873 -> 0 bytes
.../src/main/resources/images/menu/play3.png | Bin 1192 -> 0 bytes
.../src/main/resources/images/menu/play4.png | Bin 765 -> 0 bytes
.../resources/images/menu/resume_monitoring1.png | Bin 957 -> 0 bytes
.../src/main/resources/images/menu/save1.png | Bin 1200 -> 0 bytes
.../src/main/resources/images/menu/stop.png | Bin 316 -> 0 bytes
.../xbaya-gui/src/main/resources/images/opened.gif | Bin 917 -> 0 bytes
.../src/main/resources/images/output_para.png | Bin 490 -> 0 bytes
.../src/main/resources/images/parameter.png | Bin 544 -> 0 bytes
.../xbaya-gui/src/main/resources/images/pause.jpeg | Bin 458 -> 0 bytes
.../xbaya-gui/src/main/resources/images/play.jpeg | Bin 471 -> 0 bytes
.../src/main/resources/images/registry.png | Bin 3419 -> 0 bytes
.../src/main/resources/images/service.png | Bin 871 -> 0 bytes
.../src/main/resources/images/services.png | Bin 899 -> 0 bytes
.../xbaya-gui/src/main/resources/images/step.gif | Bin 211 -> 0 bytes
.../xbaya-gui/src/main/resources/images/stop.jpeg | Bin 497 -> 0 bytes
.../src/main/resources/images/workflow.png | Bin 601 -> 0 bytes
.../main/resources/images/workflow_templates.png | Bin 710 -> 0 bytes
.../src/main/resources/images/workflows.png | Bin 778 -> 0 bytes
modules/xbaya-gui/src/main/resources/services.xml | 30 -
.../resources/wsdls/TestCMD_Example1_AWSDL.xml | 56 -
.../src/main/resources/wsdls/adder-awsdl.xml | 63 -
.../src/main/resources/wsdls/eventing.wsdl | 332 -
.../interpreter/ComplexForEachWorkflowTest.java | 92 -
.../xbaya/interpreter/ComplexMathService.java | 38 -
.../xbaya/interpreter/ComplexMathWorkflowTest.java | 90 -
.../interpreter/CrossProductWorkflowTest.java | 90 -
.../airavata/xbaya/interpreter/EchoService.java | 27 -
.../xbaya/interpreter/ForEachWorkflowTest.java | 92 -
.../interpreter/LevenshteinDistanceService.java | 46 -
.../airavata/xbaya/interpreter/Listener.java | 51 -
.../xbaya/interpreter/NotificationSender.java | 223 -
.../xbaya/interpreter/RegistryServiceTest.java | 124 -
.../interpreter/SimpleForEachWorkflowTest.java | 91 -
.../xbaya/interpreter/SimpleMathWorkflowTest.java | 92 -
.../airavata/xbaya/interpreter/WorkflowTest.java | 93 -
.../xbaya/interpreter/WorkflowTrackingTest.java | 124 -
.../xbaya/interpreter/XBayaClientTest.java | 79 -
.../interpreter/XBayaConsolidatedTestSuite.java | 86 -
.../xbaya/interpreter/utils/ConfigKeys.java | 33 -
.../xbaya/interpreter/utils/TestUtilServer.java | 262 -
.../xbaya/interpreter/utils/WorkflowTestUtils.java | 116 -
modules/xbaya-gui/src/test/java/test.xwf | 251 -
.../xbaya-gui/src/test/resources/axis2_default.xml | 278 -
modules/xbaya/src/.DS_Store | Bin 6148 -> 0 bytes
modules/xbaya/src/main/.DS_Store | Bin 6148 -> 0 bytes
modules/xbaya/src/main/java/.DS_Store | Bin 6148 -> 0 bytes
modules/xbaya/src/main/java/org/.DS_Store | Bin 6148 -> 0 bytes
modules/xbaya/src/main/java/org/airavata/.DS_Store | Bin 6148 -> 0 bytes
.../src/main/java/org/airavata/xbaya/.DS_Store | Bin 6148 -> 0 bytes
pom.xml | 22 +-
.../airavata-apis/airavata_api.thrift | 13 +-
.../airavata-apis/workflow_api.thrift | 5 +-
.../base-api/base_api.thrift | 10 +
.../component-cpis/credential-store-cpi.thrift | 8 +-
.../component-cpis/generate-cpi-stubs.sh | 43 +-
.../component-cpis/gfac-cpi.thrift | 57 -
.../component-cpis/orchestrator-cpi.thrift | 9 +-
.../component-cpis/registry-api.thrift | 29 +-
.../component-cpis}/sharing_cpi.thrift | 7 +-
.../component-cpis/user-profile-cpi.thrift | 6 +-
.../experiment-catalog-models/process_model.thrift | 10 +-
.../experiment-catalog-models/task_model.thrift | 4 +-
.../sharing-models}/sharing_models.thrift | 0
.../generate-thrift-stubs.sh | 22 +-
.../service-cpis/generate-service-cpi-stubs.sh | 49 +-
.../group-manager/group-manager-cpi.thrift | 5 +-
.../iam-admin-services-cpi.thrift | 10 +-
.../profile-service/profile-service-cpi.thrift | 1 +
.../profile-tenant/profile-tenant-cpi.thrift | 10 +-
.../profile-user/profile-user-cpi.thrift | 6 +-
tools/gsissh-cli-tools/README.txt | 29 -
tools/gsissh-cli-tools/pom.xml | 115 -
.../gsi/ssh/cli/SSHApiClientWithMyProxyAuth.java | 76 -
.../src/main/resources/certificates/10718cba.0 | 23 -
.../main/resources/certificates/10718cba.crl_url | 2 -
.../src/main/resources/certificates/10718cba.info | 8 -
.../resources/certificates/10718cba.namespaces | 13 -
.../resources/certificates/10718cba.signing_policy | 3 -
.../src/main/resources/certificates/16da7552.0 | 97 -
.../main/resources/certificates/16da7552.crl_url | 1 -
.../resources/certificates/16da7552.signing_policy | 4 -
.../src/main/resources/certificates/1b6f5ede.0 | 23 -
.../main/resources/certificates/1b6f5ede.crl_url | 1 -
.../resources/certificates/1b6f5ede.signing_policy | 5 -
.../src/main/resources/certificates/1c3f2ca8.0 | 26 -
.../main/resources/certificates/1c3f2ca8.crl_url | 1 -
.../src/main/resources/certificates/1c3f2ca8.info | 12 -
.../resources/certificates/1c3f2ca8.signing_policy | 63 -
.../src/main/resources/certificates/2694e4f2.0 | 23 -
.../main/resources/certificates/2694e4f2.crl_url | 2 -
.../src/main/resources/certificates/2694e4f2.info | 11 -
.../resources/certificates/2694e4f2.namespaces | 13 -
.../resources/certificates/2694e4f2.signing_policy | 4 -
.../src/main/resources/certificates/2ac09305.0 | 25 -
.../main/resources/certificates/2ac09305.crl_url | 1 -
.../resources/certificates/2ac09305.signing_policy | 5 -
.../src/main/resources/certificates/2f3fadf6.0 | 21 -
.../main/resources/certificates/2f3fadf6.crl_url | 1 -
.../resources/certificates/2f3fadf6.signing_policy | 4 -
.../src/main/resources/certificates/38f7145f.0 | 37 -
.../main/resources/certificates/38f7145f.crl_url | 2 -
.../src/main/resources/certificates/38f7145f.info | 13 -
.../resources/certificates/38f7145f.namespaces | 19 -
.../resources/certificates/38f7145f.signing_policy | 4 -
.../src/main/resources/certificates/3deda549.0 | 24 -
.../main/resources/certificates/3deda549.crl_url | 1 -
.../resources/certificates/3deda549.signing_policy | 11 -
.../src/main/resources/certificates/44d6a2bc.0 | 32 -
.../src/main/resources/certificates/4b2783ac.0 | 89 -
.../main/resources/certificates/4b2783ac.crl_url | 1 -
.../src/main/resources/certificates/4b2783ac.info | 11 -
.../resources/certificates/4b2783ac.namespaces | 12 -
.../certificates/4b2783ac.psc-myproxy.cadesc | 15 -
.../resources/certificates/4b2783ac.signing_policy | 3 -
.../src/main/resources/certificates/617ff41b.0 | 21 -
.../main/resources/certificates/617ff41b.crl_url | 1 -
.../src/main/resources/certificates/617ff41b.info | 7 -
.../resources/certificates/617ff41b.signing_policy | 33 -
.../src/main/resources/certificates/679cff61.0 | 23 -
.../main/resources/certificates/679cff61.crl_url | 1 -
.../src/main/resources/certificates/679cff61.info | 8 -
.../resources/certificates/679cff61.signing_policy | 3 -
.../src/main/resources/certificates/67e8acfa.0 | 23 -
.../main/resources/certificates/67e8acfa.crl_url | 1 -
.../resources/certificates/67e8acfa.signing_policy | 3 -
.../src/main/resources/certificates/684261aa.0 | 25 -
.../main/resources/certificates/684261aa.crl_url | 1 -
.../resources/certificates/684261aa.signing_policy | 5 -
.../resources/certificates/684261aa.tacc.cadesc | 18 -
.../certificates/684261aa.tacc.cadesc.sig | 11 -
.../src/main/resources/certificates/69105f4f.0 | 22 -
.../main/resources/certificates/69105f4f.crl_url | 2 -
.../src/main/resources/certificates/69105f4f.info | 11 -
.../resources/certificates/69105f4f.namespaces | 13 -
.../resources/certificates/69105f4f.signing_policy | 4 -
.../src/main/resources/certificates/7ae34d87.0 | 41 -
.../src/main/resources/certificates/826e2611.0 | 17 -
.../src/main/resources/certificates/95009ddc.0 | 22 -
.../main/resources/certificates/95009ddc.crl_url | 1 -
.../resources/certificates/95009ddc.signing_policy | 3 -
.../src/main/resources/certificates/98ef0ee5.0 | 21 -
.../main/resources/certificates/98ef0ee5.crl_url | 1 -
.../resources/certificates/98ef0ee5.signing_policy | 4 -
.../src/main/resources/certificates/9b88e95b.0 | 84 -
.../main/resources/certificates/9b88e95b.crl_url | 1 -
.../certificates/9b88e95b.psc-root.cadesc | 15 -
.../resources/certificates/9b88e95b.signing_policy | 3 -
.../src/main/resources/certificates/9b95bbf2.0 | 23 -
.../main/resources/certificates/9b95bbf2.crl_url | 1 -
.../resources/certificates/9b95bbf2.signing_policy | 3 -
.../src/main/resources/certificates/9dd23746.0 | 32 -
.../main/resources/certificates/9dd23746.crl_url | 1 -
.../resources/certificates/9dd23746.signing_policy | 5 -
.../src/main/resources/certificates/CHECKSUM.MD5 | 86 -
.../resources/certificates/DOEGrids_provenance | 100 -
.../main/resources/certificates/INFN_provenance | 60 -
.../src/main/resources/certificates/IUCerts.tar | Bin 20480 -> 0 bytes
.../src/main/resources/certificates/IUCerts.tar.gz | Bin 4948 -> 0 bytes
.../resources/certificates/NCSA_CACL_provenance | 55 -
.../certificates/NCSA_GridShib_provenance | 74 -
.../resources/certificates/NCSA_MyProxy_provenance | 57 -
.../src/main/resources/certificates/PSC_provenance | 78 -
.../src/main/resources/certificates/README.txt | 422 -
.../resources/certificates/TACC_MICS_provenance | 23 -
.../main/resources/certificates/TACC_provenance | 68 -
.../resources/certificates/UKeScience_provenance | 137 -
.../src/main/resources/certificates/aaaddcdf.0 | 26 -
.../src/main/resources/certificates/acc06fda.0 | 88 -
.../main/resources/certificates/acc06fda.crl_url | 1 -
.../certificates/acc06fda.psc-host.cadesc | 15 -
.../resources/certificates/acc06fda.signing_policy | 3 -
.../src/main/resources/certificates/b93d6240.0 | 23 -
.../main/resources/certificates/b93d6240.crl_url | 1 -
.../src/main/resources/certificates/b93d6240.info | 11 -
.../resources/certificates/b93d6240.nersc.cadesc | 14 -
.../resources/certificates/b93d6240.signing_policy | 39 -
.../src/main/resources/certificates/c7a717ce.0 | 28 -
.../main/resources/certificates/c7a717ce.crl_url | 2 -
.../src/main/resources/certificates/c7a717ce.info | 12 -
.../resources/certificates/c7a717ce.namespaces | 19 -
.../resources/certificates/c7a717ce.signing_policy | 4 -
.../src/main/resources/certificates/cacert.pem | 60 -
.../src/main/resources/certificates/cakey.pem | 17 -
.../src/main/resources/certificates/d1b603c3.0 | 24 -
.../main/resources/certificates/d1b603c3.crl_url | 1 -
.../resources/certificates/d1b603c3.signing_policy | 56 -
.../src/main/resources/certificates/dc75341f.0 | 24 -
.../main/resources/certificates/dc75341f.crl_url | 1 -
.../main/resources/certificates/dc75341f.info.txt | 11 -
.../certificates/dc75341f.nics-myproxy.cadesc | 14 -
.../resources/certificates/dc75341f.signing_policy | 3 -
.../src/main/resources/certificates/demo-ca.pem | 15 -
.../main/resources/certificates/dfn-grid-ca.pem | 26 -
.../src/main/resources/certificates/e5cc84c2.0 | 25 -
.../main/resources/certificates/e5cc84c2.crl_url | 1 -
.../resources/certificates/e5cc84c2.signing_policy | 5 -
.../resources/certificates/e5cc84c2.tacc.cadesc | 17 -
.../certificates/e5cc84c2.tacc.cadesc.sig | 11 -
.../src/main/resources/certificates/e8ac4b61.0 | 23 -
.../main/resources/certificates/e8ac4b61.crl_url | 1 -
.../resources/certificates/e8ac4b61.signing_policy | 3 -
.../src/main/resources/certificates/f2e89fe3.0 | 23 -
.../main/resources/certificates/f2e89fe3.crl_url | 1 -
.../resources/certificates/f2e89fe3.signing_policy | 3 -
.../src/main/resources/certificates/f951d6e0.0 | 15 -
.../src/main/resources/certificates/ffc3d59b.0 | 23 -
.../main/resources/certificates/ffc3d59b.crl_url | 1 -
.../resources/certificates/ffc3d59b.signing_policy | 5 -
.../main/resources/certificates/xsede-certs.tar.gz | Bin 63784 -> 0 bytes
.../src/main/resources/gsissh.properties | 26 -
.../src/main/resources/log4j.properties | 34 -
tools/load-client/pom.xml | 2 +-
.../org/apache/airavata/tools/load/LoadClient.java | 29 +-
.../apache/airavata/tools/load/StatusMonitor.java | 124 +
.../org/apache/airavata/tools/load/UnitLoad.java | 36 +-
.../src/main/resources/conf/load-config.yml | 10 +-
tools/phoebus-integration/pom.xml | 75 -
.../impl/PhoebusGridConfigurationHandler.java | 70 -
.../airavata/core/gfac/utils/PhoebusUtils.java | 51 -
.../src/main/resources/service.properties | 57 -
tools/pom.xml | 6 +-
tools/rabbitmq-download-start.sh | 42 -
1775 files changed, 27840 insertions(+), 260662 deletions(-)
diff --cc airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index 80e2f36,2e7b0d8..115061a
--- 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
@@@ -234,31 -225,10 +234,31 @@@ public class AiravataServerHandler impl
entityType.setDescription("File entity type");
client.createEntityType(entityType);
+ entityType = new EntityType();
+ entityType.setEntityTypeId(domain.domainId+":"+ResourceType.APPLICATION_DEPLOYMENT.name());
+ entityType.setDomainId(domain.domainId);
+ entityType.setName("APPLICATION-DEPLOYMENT");
+ entityType.setDescription("Application Deployment entity type");
+ client.createEntityType(entityType);
+
+ entityType = new EntityType();
+ entityType.setEntityTypeId(domain.domainId+":"+ResourceType.GROUP_RESOURCE_PROFILE.name());
+ entityType.setDomainId(domain.domainId);
+ entityType.setName(ResourceType.GROUP_RESOURCE_PROFILE.name());
+ entityType.setDescription("Group Resource Profile entity type");
+ client.createEntityType(entityType);
+
+ entityType = new EntityType();
+ entityType.setEntityTypeId(domain.domainId+":"+ResourceType.CREDENTIAL_TOKEN.name());
+ entityType.setDomainId(domain.domainId);
+ entityType.setName(ResourceType.CREDENTIAL_TOKEN.name());
+ entityType.setDescription("Credential Store Token entity type");
+ client.createEntityType(entityType);
+
//Creating Permission Types for each domain
PermissionType permissionType = new PermissionType();
- permissionType.setPermissionTypeId(domain.domainId + ":READ");
- permissionType.setDomainId(domain.domainId);
+ permissionType.setPermissionTypeId(domain.getDomainId() + ":READ");
+ permissionType.setDomainId(domain.getDomainId());
permissionType.setName("READ");
permissionType.setDescription("Read permission type");
client.createPermissionType(permissionType);
@@@ -349,24 -317,10 +347,24 @@@
entityType.setDescription("File entity type");
sharingClient.createEntityType(entityType);
+ entityType = new EntityType();
+ entityType.setEntityTypeId(domain.domainId+":"+ResourceType.APPLICATION_DEPLOYMENT.name());
+ entityType.setDomainId(domain.domainId);
+ entityType.setName("APPLICATION-DEPLOYMENT");
+ entityType.setDescription("Application Deployment entity type");
+ sharingClient.createEntityType(entityType);
+
+ entityType = new EntityType();
+ entityType.setEntityTypeId(domain.domainId+":"+ResourceType.GROUP_RESOURCE_PROFILE.name());
+ entityType.setDomainId(domain.domainId);
+ entityType.setName(ResourceType.GROUP_RESOURCE_PROFILE.name());
+ entityType.setDescription("Group Resource Profile entity type");
+ sharingClient.createEntityType(entityType);
+
//Creating Permission Types for each domain
PermissionType permissionType = new PermissionType();
- permissionType.setPermissionTypeId(domain.domainId+":READ");
- permissionType.setDomainId(domain.domainId);
+ permissionType.setPermissionTypeId(domain.getDomainId()+":READ");
+ permissionType.setDomainId(domain.getDomainId());
permissionType.setName("READ");
permissionType.setDescription("Read permission type");
sharingClient.createPermissionType(permissionType);
@@@ -1066,13 -1001,8 +1064,13 @@@
filters.add(searchCriteria);
sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
userName + "@" + gatewayId, filters, 0, -1).stream().forEach(p -> accessibleProjectIds
- .add(p.entityId));
+ .add(p.getEntityId()));
- List<Project> result = regClient.searchProjects(gatewayId, userName, accessibleProjectIds, new HashMap<>(), limit, offset);
+ List<Project> result;
+ if (accessibleProjectIds.isEmpty()) {
+ result = Collections.emptyList();
+ } else {
+ result = regClient.searchProjects(gatewayId, userName, accessibleProjectIds, new HashMap<>(), limit, offset);
+ }
registryClientPool.returnResource(regClient);
sharingClientPool.returnResource(sharingClient);
return result;
@@@ -1133,15 -1062,9 +1131,15 @@@
searchCriteria.setValue(gatewayId + ":PROJECT");
sharingFilters.add(searchCriteria);
sharingClient.searchEntities(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- userName + "@" + gatewayId, sharingFilters, 0, -1).stream().forEach(e -> accessibleProjIds.add(e.entityId));
+ userName + "@" + gatewayId, sharingFilters, 0, -1).stream().forEach(e -> accessibleProjIds.add(e.getEntityId()));
+ if (accessibleProjIds.isEmpty()) {
+ result = Collections.emptyList();
+ } else {
+ result = regClient.searchProjects(gatewayId, userName, accessibleProjIds, filters, limit, offset);
+ }
+ } else {
+ result = regClient.searchProjects(gatewayId, userName, accessibleProjIds, filters, limit, offset);
}
- List<Project> result = regClient.searchProjects(gatewayId, userName, accessibleProjIds, filters, limit, offset);
registryClientPool.returnResource(regClient);
sharingClientPool.returnResource(sharingClient);
return result;
@@@ -5209,13 -4830,23 +5207,13 @@@
try {
HashSet<String> accessibleUsers = new HashSet<>();
if (permissionType.equals(ResourcePermissionType.WRITE)) {
- userListFunction.apply(sharingClient, ResourcePermissionType.WRITE).stream().forEach(u -> accessibleUsers.add(u.userId));
- userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.userId));
- sharingClient.getListOfSharedUsers(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- resourceId, authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
- + ":WRITE").stream().forEach(u -> accessibleUsers.add(u.getUserId()));
- sharingClient.getListOfSharedUsers(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- resourceId, authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
- + ":OWNER").stream().forEach(u -> accessibleUsers.add(u.getUserId()));
++ userListFunction.apply(sharingClient, ResourcePermissionType.WRITE).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
++ userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
} else if (permissionType.equals(ResourcePermissionType.READ)) {
- userListFunction.apply(sharingClient, ResourcePermissionType.READ).stream().forEach(u -> accessibleUsers.add(u.userId));
- userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.userId));
- sharingClient.getListOfSharedUsers(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- resourceId, authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
- + ":READ").stream().forEach(u -> accessibleUsers.add(u.getUserId()));
- sharingClient.getListOfSharedUsers(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- resourceId, authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
- + ":OWNER").stream().forEach(u -> accessibleUsers.add(u.getUserId()));
++ userListFunction.apply(sharingClient, ResourcePermissionType.READ).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
++ userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
} else if (permissionType.equals(ResourcePermissionType.OWNER)) {
- userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.userId));
- sharingClient.getListOfSharedUsers(authzToken.getClaimsMap().get(Constants.GATEWAY_ID),
- resourceId, authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
- + ":OWNER").stream().forEach(u -> accessibleUsers.add(u.getUserId()));
++ userListFunction.apply(sharingClient, ResourcePermissionType.OWNER).stream().forEach(u -> accessibleUsers.add(u.getUserId()));
}
registryClientPool.returnResource(regClient);
sharingClientPool.returnResource(sharingClient);
diff --cc airavata-api/airavata-api-stubs/pom.xml
index 9f95e21,cda35a4..62f2a7f
--- a/airavata-api/airavata-api-stubs/pom.xml
+++ b/airavata-api/airavata-api-stubs/pom.xml
@@@ -39,6 -39,11 +39,11 @@@
<dependencies>
<dependency>
<groupId>org.apache.airavata</groupId>
+ <artifactId>airavata-base-api</artifactId>
- <version>0.18-SNAPSHOT</version>
++ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.airavata</groupId>
<artifactId>airavata-data-models</artifactId>
<version>${project.version}</version>
</dependency>
diff --cc airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
index c44c620,3ed4c23..bd46d89
--- a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
+++ b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/Airavata.java
@@@ -9460,1023 -9514,8 +9421,1023 @@@ public class Airavata
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAccessibleUsers failed: unknown result");
}
+ public java.util.List<java.lang.String> getAllAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getAllAccessibleGroups(authzToken, resourceId, permissionType);
+ return recv_getAllAccessibleGroups();
+ }
+
+ public void send_getAllAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.thrift.TException
+ {
+ getAllAccessibleGroups_args args = new getAllAccessibleGroups_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ sendBase("getAllAccessibleGroups", args);
+ }
+
+ public java.util.List<java.lang.String> recv_getAllAccessibleGroups() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getAllAccessibleGroups_result result = new getAllAccessibleGroups_result();
+ receiveBase(result, "getAllAccessibleGroups");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAccessibleGroups failed: unknown result");
+ }
+
+ public java.util.List<java.lang.String> getAllDirectlyAccessibleUsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getAllDirectlyAccessibleUsers(authzToken, resourceId, permissionType);
+ return recv_getAllDirectlyAccessibleUsers();
+ }
+
+ public void send_getAllDirectlyAccessibleUsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.thrift.TException
+ {
+ getAllDirectlyAccessibleUsers_args args = new getAllDirectlyAccessibleUsers_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ sendBase("getAllDirectlyAccessibleUsers", args);
+ }
+
+ public java.util.List<java.lang.String> recv_getAllDirectlyAccessibleUsers() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getAllDirectlyAccessibleUsers_result result = new getAllDirectlyAccessibleUsers_result();
+ receiveBase(result, "getAllDirectlyAccessibleUsers");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllDirectlyAccessibleUsers failed: unknown result");
+ }
+
+ public java.util.List<java.lang.String> getAllDirectlyAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getAllDirectlyAccessibleGroups(authzToken, resourceId, permissionType);
+ return recv_getAllDirectlyAccessibleGroups();
+ }
+
+ public void send_getAllDirectlyAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.thrift.TException
+ {
+ getAllDirectlyAccessibleGroups_args args = new getAllDirectlyAccessibleGroups_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ sendBase("getAllDirectlyAccessibleGroups", args);
+ }
+
+ public java.util.List<java.lang.String> recv_getAllDirectlyAccessibleGroups() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getAllDirectlyAccessibleGroups_result result = new getAllDirectlyAccessibleGroups_result();
+ receiveBase(result, "getAllDirectlyAccessibleGroups");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllDirectlyAccessibleGroups failed: unknown result");
+ }
+
+ public boolean userHasAccess(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_userHasAccess(authzToken, resourceId, permissionType);
+ return recv_userHasAccess();
+ }
+
+ public void send_userHasAccess(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType) throws org.apache.thrift.TException
+ {
+ userHasAccess_args args = new userHasAccess_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ sendBase("userHasAccess", args);
+ }
+
+ public boolean recv_userHasAccess() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ userHasAccess_result result = new userHasAccess_result();
+ receiveBase(result, "userHasAccess");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "userHasAccess failed: unknown result");
+ }
+
+ public java.lang.String createGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_createGroupResourceProfile(authzToken, groupResourceProfile);
+ return recv_createGroupResourceProfile();
+ }
+
+ public void send_createGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile) throws org.apache.thrift.TException
+ {
+ createGroupResourceProfile_args args = new createGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfile(groupResourceProfile);
+ sendBase("createGroupResourceProfile", args);
+ }
+
+ public java.lang.String recv_createGroupResourceProfile() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ createGroupResourceProfile_result result = new createGroupResourceProfile_result();
+ receiveBase(result, "createGroupResourceProfile");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createGroupResourceProfile failed: unknown result");
+ }
+
+ public void updateGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_updateGroupResourceProfile(authzToken, groupResourceProfile);
+ recv_updateGroupResourceProfile();
+ }
+
+ public void send_updateGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile) throws org.apache.thrift.TException
+ {
+ updateGroupResourceProfile_args args = new updateGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfile(groupResourceProfile);
+ sendBase("updateGroupResourceProfile", args);
+ }
+
+ public void recv_updateGroupResourceProfile() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ updateGroupResourceProfile_result result = new updateGroupResourceProfile_result();
+ receiveBase(result, "updateGroupResourceProfile");
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ return;
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile getGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getGroupResourceProfile(authzToken, groupResourceProfileId);
+ return recv_getGroupResourceProfile();
+ }
+
+ public void send_getGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ getGroupResourceProfile_args args = new getGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("getGroupResourceProfile", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile recv_getGroupResourceProfile() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupResourceProfile_result result = new getGroupResourceProfile_result();
+ receiveBase(result, "getGroupResourceProfile");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupResourceProfile failed: unknown result");
+ }
+
+ public boolean removeGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeGroupResourceProfile(authzToken, groupResourceProfileId);
+ return recv_removeGroupResourceProfile();
+ }
+
+ public void send_removeGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ removeGroupResourceProfile_args args = new removeGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("removeGroupResourceProfile", args);
+ }
+
+ public boolean recv_removeGroupResourceProfile() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeGroupResourceProfile_result result = new removeGroupResourceProfile_result();
+ receiveBase(result, "removeGroupResourceProfile");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeGroupResourceProfile failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> getGroupResourceList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getGroupResourceList(authzToken, gatewayId);
+ return recv_getGroupResourceList();
+ }
+
+ public void send_getGroupResourceList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ getGroupResourceList_args args = new getGroupResourceList_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ sendBase("getGroupResourceList", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> recv_getGroupResourceList() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupResourceList_result result = new getGroupResourceList_result();
+ receiveBase(result, "getGroupResourceList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupResourceList failed: unknown result");
+ }
+
+ public boolean removeGroupComputePrefs(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeGroupComputePrefs(authzToken, computeResourceId, groupResourceProfileId);
+ return recv_removeGroupComputePrefs();
+ }
+
+ public void send_removeGroupComputePrefs(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ removeGroupComputePrefs_args args = new removeGroupComputePrefs_args();
+ args.setAuthzToken(authzToken);
+ args.setComputeResourceId(computeResourceId);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("removeGroupComputePrefs", args);
+ }
+
+ public boolean recv_removeGroupComputePrefs() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeGroupComputePrefs_result result = new removeGroupComputePrefs_result();
+ receiveBase(result, "removeGroupComputePrefs");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeGroupComputePrefs failed: unknown result");
+ }
+
+ public boolean removeGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeGroupComputeResourcePolicy(authzToken, resourcePolicyId);
+ return recv_removeGroupComputeResourcePolicy();
+ }
+
+ public void send_removeGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.thrift.TException
+ {
+ removeGroupComputeResourcePolicy_args args = new removeGroupComputeResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ sendBase("removeGroupComputeResourcePolicy", args);
+ }
+
+ public boolean recv_removeGroupComputeResourcePolicy() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeGroupComputeResourcePolicy_result result = new removeGroupComputeResourcePolicy_result();
+ receiveBase(result, "removeGroupComputeResourcePolicy");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeGroupComputeResourcePolicy failed: unknown result");
+ }
+
+ public boolean removeGroupBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeGroupBatchQueueResourcePolicy(authzToken, resourcePolicyId);
+ return recv_removeGroupBatchQueueResourcePolicy();
+ }
+
+ public void send_removeGroupBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.thrift.TException
+ {
+ removeGroupBatchQueueResourcePolicy_args args = new removeGroupBatchQueueResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ sendBase("removeGroupBatchQueueResourcePolicy", args);
+ }
+
+ public boolean recv_removeGroupBatchQueueResourcePolicy() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeGroupBatchQueueResourcePolicy_result result = new removeGroupBatchQueueResourcePolicy_result();
+ receiveBase(result, "removeGroupBatchQueueResourcePolicy");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeGroupBatchQueueResourcePolicy failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference getGroupComputeResourcePreference(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.Authorizatio [...]
+ {
+ send_getGroupComputeResourcePreference(authzToken, computeResourceId, groupResourceProfileId);
+ return recv_getGroupComputeResourcePreference();
+ }
+
+ public void send_getGroupComputeResourcePreference(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ getGroupComputeResourcePreference_args args = new getGroupComputeResourcePreference_args();
+ args.setAuthzToken(authzToken);
+ args.setComputeResourceId(computeResourceId);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("getGroupComputeResourcePreference", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference recv_getGroupComputeResourcePreference() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupComputeResourcePreference_result result = new getGroupComputeResourcePreference_result();
+ receiveBase(result, "getGroupComputeResourcePreference");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupComputeResourcePreference failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy getGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getGroupComputeResourcePolicy(authzToken, resourcePolicyId);
+ return recv_getGroupComputeResourcePolicy();
+ }
+
+ public void send_getGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.thrift.TException
+ {
+ getGroupComputeResourcePolicy_args args = new getGroupComputeResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ sendBase("getGroupComputeResourcePolicy", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy recv_getGroupComputeResourcePolicy() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupComputeResourcePolicy_result result = new getGroupComputeResourcePolicy_result();
+ receiveBase(result, "getGroupComputeResourcePolicy");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupComputeResourcePolicy failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy getBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getBatchQueueResourcePolicy(authzToken, resourcePolicyId);
+ return recv_getBatchQueueResourcePolicy();
+ }
+
+ public void send_getBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId) throws org.apache.thrift.TException
+ {
+ getBatchQueueResourcePolicy_args args = new getBatchQueueResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ sendBase("getBatchQueueResourcePolicy", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy recv_getBatchQueueResourcePolicy() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getBatchQueueResourcePolicy_result result = new getBatchQueueResourcePolicy_result();
+ receiveBase(result, "getBatchQueueResourcePolicy");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBatchQueueResourcePolicy failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> getGroupComputeResourcePrefList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache [...]
+ {
+ send_getGroupComputeResourcePrefList(authzToken, groupResourceProfileId);
+ return recv_getGroupComputeResourcePrefList();
+ }
+
+ public void send_getGroupComputeResourcePrefList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ getGroupComputeResourcePrefList_args args = new getGroupComputeResourcePrefList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("getGroupComputeResourcePrefList", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> recv_getGroupComputeResourcePrefList() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupComputeResourcePrefList_result result = new getGroupComputeResourcePrefList_result();
+ receiveBase(result, "getGroupComputeResourcePrefList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupComputeResourcePrefList failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> getGroupBatchQueueResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache. [...]
+ {
+ send_getGroupBatchQueueResourcePolicyList(authzToken, groupResourceProfileId);
+ return recv_getGroupBatchQueueResourcePolicyList();
+ }
+
+ public void send_getGroupBatchQueueResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ getGroupBatchQueueResourcePolicyList_args args = new getGroupBatchQueueResourcePolicyList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("getGroupBatchQueueResourcePolicyList", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> recv_getGroupBatchQueueResourcePolicyList() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupBatchQueueResourcePolicyList_result result = new getGroupBatchQueueResourcePolicyList_result();
+ receiveBase(result, "getGroupBatchQueueResourcePolicyList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupBatchQueueResourcePolicyList failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> getGroupComputeResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift [...]
+ {
+ send_getGroupComputeResourcePolicyList(authzToken, groupResourceProfileId);
+ return recv_getGroupComputeResourcePolicyList();
+ }
+
+ public void send_getGroupComputeResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId) throws org.apache.thrift.TException
+ {
+ getGroupComputeResourcePolicyList_args args = new getGroupComputeResourcePolicyList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ sendBase("getGroupComputeResourcePolicyList", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> recv_getGroupComputeResourcePolicyList() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGroupComputeResourcePolicyList_result result = new getGroupComputeResourcePolicyList_result();
+ receiveBase(result, "getGroupComputeResourcePolicyList");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGroupComputeResourcePolicyList failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups getGatewayGroups(org.apache.airavata.model.security.AuthzToken authzToken) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getGatewayGroups(authzToken);
+ return recv_getGatewayGroups();
+ }
+
+ public void send_getGatewayGroups(org.apache.airavata.model.security.AuthzToken authzToken) throws org.apache.thrift.TException
+ {
+ getGatewayGroups_args args = new getGatewayGroups_args();
+ args.setAuthzToken(authzToken);
+ sendBase("getGatewayGroups", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups recv_getGatewayGroups() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getGatewayGroups_result result = new getGatewayGroups_result();
+ receiveBase(result, "getGatewayGroups");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getGatewayGroups failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.Parser getParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getParser(authzToken, parserId, gatewayId);
+ return recv_getParser();
+ }
+
+ public void send_getParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ getParser_args args = new getParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParserId(parserId);
+ args.setGatewayId(gatewayId);
+ sendBase("getParser", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.Parser recv_getParser() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getParser_result result = new getParser_result();
+ receiveBase(result, "getParser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getParser failed: unknown result");
+ }
+
+ public java.lang.String saveParser(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.Parser parser) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_saveParser(authzToken, parser);
+ return recv_saveParser();
+ }
+
+ public void send_saveParser(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.Parser parser) throws org.apache.thrift.TException
+ {
+ saveParser_args args = new saveParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParser(parser);
+ sendBase("saveParser", args);
+ }
+
+ public java.lang.String recv_saveParser() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ saveParser_result result = new saveParser_result();
+ receiveBase(result, "saveParser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveParser failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.Parser> listAllParsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_listAllParsers(authzToken, gatewayId);
+ return recv_listAllParsers();
+ }
+
+ public void send_listAllParsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ listAllParsers_args args = new listAllParsers_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ sendBase("listAllParsers", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.Parser> recv_listAllParsers() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ listAllParsers_result result = new listAllParsers_result();
+ receiveBase(result, "listAllParsers");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listAllParsers failed: unknown result");
+ }
+
+ public boolean removeParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeParser(authzToken, parserId, gatewayId);
+ return recv_removeParser();
+ }
+
+ public void send_removeParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ removeParser_args args = new removeParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParserId(parserId);
+ args.setGatewayId(gatewayId);
+ sendBase("removeParser", args);
+ }
+
+ public boolean recv_removeParser() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeParser_result result = new removeParser_result();
+ receiveBase(result, "removeParser");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeParser failed: unknown result");
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.ParsingTemplate getParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_getParsingTemplate(authzToken, templateId, gatewayId);
+ return recv_getParsingTemplate();
+ }
+
+ public void send_getParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ getParsingTemplate_args args = new getParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setTemplateId(templateId);
+ args.setGatewayId(gatewayId);
+ sendBase("getParsingTemplate", args);
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.ParsingTemplate recv_getParsingTemplate() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getParsingTemplate_result result = new getParsingTemplate_result();
+ receiveBase(result, "getParsingTemplate");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getParsingTemplate failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> getParsingTemplatesForExperiment(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String experimentId, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TE [...]
+ {
+ send_getParsingTemplatesForExperiment(authzToken, experimentId, gatewayId);
+ return recv_getParsingTemplatesForExperiment();
+ }
+
+ public void send_getParsingTemplatesForExperiment(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String experimentId, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ getParsingTemplatesForExperiment_args args = new getParsingTemplatesForExperiment_args();
+ args.setAuthzToken(authzToken);
+ args.setExperimentId(experimentId);
+ args.setGatewayId(gatewayId);
+ sendBase("getParsingTemplatesForExperiment", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> recv_getParsingTemplatesForExperiment() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ getParsingTemplatesForExperiment_result result = new getParsingTemplatesForExperiment_result();
+ receiveBase(result, "getParsingTemplatesForExperiment");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getParsingTemplatesForExperiment failed: unknown result");
+ }
+
+ public java.lang.String saveParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.ParsingTemplate parsingTemplate) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_saveParsingTemplate(authzToken, parsingTemplate);
+ return recv_saveParsingTemplate();
+ }
+
+ public void send_saveParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.ParsingTemplate parsingTemplate) throws org.apache.thrift.TException
+ {
+ saveParsingTemplate_args args = new saveParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setParsingTemplate(parsingTemplate);
+ sendBase("saveParsingTemplate", args);
+ }
+
+ public java.lang.String recv_saveParsingTemplate() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ saveParsingTemplate_result result = new saveParsingTemplate_result();
+ receiveBase(result, "saveParsingTemplate");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveParsingTemplate failed: unknown result");
+ }
+
+ public boolean removeParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_removeParsingTemplate(authzToken, templateId, gatewayId);
+ return recv_removeParsingTemplate();
+ }
+
+ public void send_removeParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ removeParsingTemplate_args args = new removeParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setTemplateId(templateId);
+ args.setGatewayId(gatewayId);
+ sendBase("removeParsingTemplate", args);
+ }
+
+ public boolean recv_removeParsingTemplate() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ removeParsingTemplate_result result = new removeParsingTemplate_result();
+ receiveBase(result, "removeParsingTemplate");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "removeParsingTemplate failed: unknown result");
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> listAllParsingTemplates(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ send_listAllParsingTemplates(authzToken, gatewayId);
+ return recv_listAllParsingTemplates();
+ }
+
+ public void send_listAllParsingTemplates(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId) throws org.apache.thrift.TException
+ {
+ listAllParsingTemplates_args args = new listAllParsingTemplates_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ sendBase("listAllParsingTemplates", args);
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> recv_listAllParsingTemplates() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException
+ {
+ listAllParsingTemplates_result result = new listAllParsingTemplates_result();
+ receiveBase(result, "listAllParsingTemplates");
+ if (result.isSetSuccess()) {
+ return result.success;
+ }
+ if (result.ire != null) {
+ throw result.ire;
+ }
+ if (result.ace != null) {
+ throw result.ace;
+ }
+ if (result.ase != null) {
+ throw result.ase;
+ }
+ if (result.ae != null) {
+ throw result.ae;
+ }
+ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listAllParsingTemplates failed: unknown result");
+ }
+
}
- public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
+ public static class AsyncClient extends org.apache.airavata.base.api.BaseAPI.AsyncClient implements AsyncIface {
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
@@@ -16617,1019 -15800,9 +16549,1019 @@@
}
}
+ public void getAllAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllAccessibleGroups_call method_call = new getAllAccessibleGroups_call(authzToken, resourceId, permissionType, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllAccessibleGroups_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<java.lang.String>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourceId;
+ private org.apache.airavata.model.group.ResourcePermissionType permissionType;
+ public getAllAccessibleGroups_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourceId = resourceId;
+ this.permissionType = permissionType;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAccessibleGroups", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllAccessibleGroups_args args = new getAllAccessibleGroups_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<java.lang.String> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAllAccessibleGroups();
+ }
+ }
+
+ public void getAllDirectlyAccessibleUsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllDirectlyAccessibleUsers_call method_call = new getAllDirectlyAccessibleUsers_call(authzToken, resourceId, permissionType, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllDirectlyAccessibleUsers_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<java.lang.String>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourceId;
+ private org.apache.airavata.model.group.ResourcePermissionType permissionType;
+ public getAllDirectlyAccessibleUsers_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift. [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourceId = resourceId;
+ this.permissionType = permissionType;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllDirectlyAccessibleUsers", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllDirectlyAccessibleUsers_args args = new getAllDirectlyAccessibleUsers_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<java.lang.String> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAllDirectlyAccessibleUsers();
+ }
+ }
+
+ public void getAllDirectlyAccessibleGroups(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getAllDirectlyAccessibleGroups_call method_call = new getAllDirectlyAccessibleGroups_call(authzToken, resourceId, permissionType, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getAllDirectlyAccessibleGroups_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<java.lang.String>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourceId;
+ private org.apache.airavata.model.group.ResourcePermissionType permissionType;
+ public getAllDirectlyAccessibleGroups_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourceId = resourceId;
+ this.permissionType = permissionType;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllDirectlyAccessibleGroups", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getAllDirectlyAccessibleGroups_args args = new getAllDirectlyAccessibleGroups_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<java.lang.String> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getAllDirectlyAccessibleGroups();
+ }
+ }
+
+ public void userHasAccess(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ userHasAccess_call method_call = new userHasAccess_call(authzToken, resourceId, permissionType, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class userHasAccess_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourceId;
+ private org.apache.airavata.model.group.ResourcePermissionType permissionType;
+ public userHasAccess_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourceId, org.apache.airavata.model.group.ResourcePermissionType permissionType, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourceId = resourceId;
+ this.permissionType = permissionType;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("userHasAccess", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ userHasAccess_args args = new userHasAccess_args();
+ args.setAuthzToken(authzToken);
+ args.setResourceId(resourceId);
+ args.setPermissionType(permissionType);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_userHasAccess();
+ }
+ }
+
+ public void createGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ createGroupResourceProfile_call method_call = new createGroupResourceProfile_call(authzToken, groupResourceProfile, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class createGroupResourceProfile_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.String> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile;
+ public createGroupResourceProfile_call(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfile = groupResourceProfile;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createGroupResourceProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ createGroupResourceProfile_args args = new createGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfile(groupResourceProfile);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.String getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_createGroupResourceProfile();
+ }
+ }
+
+ public void updateGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ updateGroupResourceProfile_call method_call = new updateGroupResourceProfile_call(authzToken, groupResourceProfile, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class updateGroupResourceProfile_call extends org.apache.thrift.async.TAsyncMethodCall<Void> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile;
+ public updateGroupResourceProfile_call(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile groupResourceProfile, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfile = groupResourceProfile;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateGroupResourceProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ updateGroupResourceProfile_args args = new updateGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfile(groupResourceProfile);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public Void getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return null;
+ }
+ }
+
+ public void getGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupResourceProfile_call method_call = new getGroupResourceProfile_call(authzToken, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupResourceProfile_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String groupResourceProfileId;
+ public getGroupResourceProfile_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupResourceProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupResourceProfile_args args = new getGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupResourceProfile();
+ }
+ }
+
+ public void removeGroupResourceProfile(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeGroupResourceProfile_call method_call = new removeGroupResourceProfile_call(authzToken, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeGroupResourceProfile_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String groupResourceProfileId;
+ public removeGroupResourceProfile_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeGroupResourceProfile", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeGroupResourceProfile_args args = new removeGroupResourceProfile_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeGroupResourceProfile();
+ }
+ }
+
+ public void getGroupResourceList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupResourceList_call method_call = new getGroupResourceList_call(authzToken, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupResourceList_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String gatewayId;
+ public getGroupResourceList_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupResourceList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupResourceList_args args = new getGroupResourceList_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupResourceList();
+ }
+ }
+
+ public void removeGroupComputePrefs(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeGroupComputePrefs_call method_call = new removeGroupComputePrefs_call(authzToken, computeResourceId, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeGroupComputePrefs_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String computeResourceId;
+ private java.lang.String groupResourceProfileId;
+ public removeGroupComputePrefs_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.computeResourceId = computeResourceId;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeGroupComputePrefs", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeGroupComputePrefs_args args = new removeGroupComputePrefs_args();
+ args.setAuthzToken(authzToken);
+ args.setComputeResourceId(computeResourceId);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeGroupComputePrefs();
+ }
+ }
+
+ public void removeGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeGroupComputeResourcePolicy_call method_call = new removeGroupComputeResourcePolicy_call(authzToken, resourcePolicyId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeGroupComputeResourcePolicy_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourcePolicyId;
+ public removeGroupComputeResourcePolicy_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourcePolicyId = resourcePolicyId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeGroupComputeResourcePolicy", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeGroupComputeResourcePolicy_args args = new removeGroupComputeResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeGroupComputeResourcePolicy();
+ }
+ }
+
+ public void removeGroupBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeGroupBatchQueueResourcePolicy_call method_call = new removeGroupBatchQueueResourcePolicy_call(authzToken, resourcePolicyId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeGroupBatchQueueResourcePolicy_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourcePolicyId;
+ public removeGroupBatchQueueResourcePolicy_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourcePolicyId = resourcePolicyId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeGroupBatchQueueResourcePolicy", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeGroupBatchQueueResourcePolicy_args args = new removeGroupBatchQueueResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeGroupBatchQueueResourcePolicy();
+ }
+ }
+
+ public void getGroupComputeResourcePreference(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupComputeResourcePreference_call method_call = new getGroupComputeResourcePreference_call(authzToken, computeResourceId, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupComputeResourcePreference_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String computeResourceId;
+ private java.lang.String groupResourceProfileId;
+ public getGroupComputeResourcePreference_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String computeResourceId, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.computeResourceId = computeResourceId;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupComputeResourcePreference", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupComputeResourcePreference_args args = new getGroupComputeResourcePreference_args();
+ args.setAuthzToken(authzToken);
+ args.setComputeResourceId(computeResourceId);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupComputeResourcePreference();
+ }
+ }
+
+ public void getGroupComputeResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupComputeResourcePolicy_call method_call = new getGroupComputeResourcePolicy_call(authzToken, resourcePolicyId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupComputeResourcePolicy_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourcePolicyId;
+ public getGroupComputeResourcePolicy_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourcePolicyId = resourcePolicyId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupComputeResourcePolicy", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupComputeResourcePolicy_args args = new getGroupComputeResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupComputeResourcePolicy();
+ }
+ }
+
+ public void getBatchQueueResourcePolicy(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getBatchQueueResourcePolicy_call method_call = new getBatchQueueResourcePolicy_call(authzToken, resourcePolicyId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getBatchQueueResourcePolicy_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String resourcePolicyId;
+ public getBatchQueueResourcePolicy_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String resourcePolicyId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.resourcePolicyId = resourcePolicyId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBatchQueueResourcePolicy", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getBatchQueueResourcePolicy_args args = new getBatchQueueResourcePolicy_args();
+ args.setAuthzToken(authzToken);
+ args.setResourcePolicyId(resourcePolicyId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getBatchQueueResourcePolicy();
+ }
+ }
+
+ public void getGroupComputeResourcePrefList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupComputeResourcePrefList_call method_call = new getGroupComputeResourcePrefList_call(authzToken, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupComputeResourcePrefList_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String groupResourceProfileId;
+ public getGroupComputeResourcePrefList_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupComputeResourcePrefList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupComputeResourcePrefList_args args = new getGroupComputeResourcePrefList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupComputeResourcePrefList();
+ }
+ }
+
+ public void getGroupBatchQueueResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupBatchQueueResourcePolicyList_call method_call = new getGroupBatchQueueResourcePolicyList_call(authzToken, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupBatchQueueResourcePolicyList_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String groupResourceProfileId;
+ public getGroupBatchQueueResourcePolicyList_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org. [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupBatchQueueResourcePolicyList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupBatchQueueResourcePolicyList_args args = new getGroupBatchQueueResourcePolicyList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupBatchQueueResourcePolicyList();
+ }
+ }
+
+ public void getGroupComputeResourcePolicyList(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGroupComputeResourcePolicyList_call method_call = new getGroupComputeResourcePolicyList_call(authzToken, groupResourceProfileId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGroupComputeResourcePolicyList_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String groupResourceProfileId;
+ public getGroupComputeResourcePolicyList_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String groupResourceProfileId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.groupResourceProfileId = groupResourceProfileId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGroupComputeResourcePolicyList", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGroupComputeResourcePolicyList_args args = new getGroupComputeResourcePolicyList_args();
+ args.setAuthzToken(authzToken);
+ args.setGroupResourceProfileId(groupResourceProfileId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGroupComputeResourcePolicyList();
+ }
+ }
+
+ public void getGatewayGroups(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getGatewayGroups_call method_call = new getGatewayGroups_call(authzToken, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getGatewayGroups_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ public getGatewayGroups_call(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getGatewayGroups", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getGatewayGroups_args args = new getGatewayGroups_args();
+ args.setAuthzToken(authzToken);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getGatewayGroups();
+ }
+ }
+
+ public void getParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.Parser> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getParser_call method_call = new getParser_call(authzToken, parserId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getParser_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.parser.Parser> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String parserId;
+ private java.lang.String gatewayId;
+ public getParser_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.Parser> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.parserId = parserId;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getParser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getParser_args args = new getParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParserId(parserId);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.Parser getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getParser();
+ }
+ }
+
+ public void saveParser(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.Parser parser, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ saveParser_call method_call = new saveParser_call(authzToken, parser, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class saveParser_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.String> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private org.apache.airavata.model.appcatalog.parser.Parser parser;
+ public saveParser_call(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.Parser parser, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.parser = parser;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveParser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ saveParser_args args = new saveParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParser(parser);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.String getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_saveParser();
+ }
+ }
+
+ public void listAllParsers(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ listAllParsers_call method_call = new listAllParsers_call(authzToken, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class listAllParsers_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String gatewayId;
+ public listAllParsers_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listAllParsers", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ listAllParsers_args args = new listAllParsers_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.Parser> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_listAllParsers();
+ }
+ }
+
+ public void removeParser(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeParser_call method_call = new removeParser_call(authzToken, parserId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeParser_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String parserId;
+ private java.lang.String gatewayId;
+ public removeParser_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String parserId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.parserId = parserId;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeParser", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeParser_args args = new removeParser_args();
+ args.setAuthzToken(authzToken);
+ args.setParserId(parserId);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeParser();
+ }
+ }
+
+ public void getParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getParsingTemplate_call method_call = new getParsingTemplate_call(authzToken, templateId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getParsingTemplate_call extends org.apache.thrift.async.TAsyncMethodCall<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String templateId;
+ private java.lang.String gatewayId;
+ public getParsingTemplate_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.templateId = templateId;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getParsingTemplate", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getParsingTemplate_args args = new getParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setTemplateId(templateId);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public org.apache.airavata.model.appcatalog.parser.ParsingTemplate getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getParsingTemplate();
+ }
+ }
+
+ public void getParsingTemplatesForExperiment(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String experimentId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ getParsingTemplatesForExperiment_call method_call = new getParsingTemplatesForExperiment_call(authzToken, experimentId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class getParsingTemplatesForExperiment_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String experimentId;
+ private java.lang.String gatewayId;
+ public getParsingTemplatesForExperiment_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String experimentId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.th [...]
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.experimentId = experimentId;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getParsingTemplatesForExperiment", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ getParsingTemplatesForExperiment_args args = new getParsingTemplatesForExperiment_args();
+ args.setAuthzToken(authzToken);
+ args.setExperimentId(experimentId);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_getParsingTemplatesForExperiment();
+ }
+ }
+
+ public void saveParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.ParsingTemplate parsingTemplate, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ saveParsingTemplate_call method_call = new saveParsingTemplate_call(authzToken, parsingTemplate, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class saveParsingTemplate_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.String> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private org.apache.airavata.model.appcatalog.parser.ParsingTemplate parsingTemplate;
+ public saveParsingTemplate_call(org.apache.airavata.model.security.AuthzToken authzToken, org.apache.airavata.model.appcatalog.parser.ParsingTemplate parsingTemplate, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.parsingTemplate = parsingTemplate;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveParsingTemplate", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ saveParsingTemplate_args args = new saveParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setParsingTemplate(parsingTemplate);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.String getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_saveParsingTemplate();
+ }
+ }
+
+ public void removeParsingTemplate(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ removeParsingTemplate_call method_call = new removeParsingTemplate_call(authzToken, templateId, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class removeParsingTemplate_call extends org.apache.thrift.async.TAsyncMethodCall<java.lang.Boolean> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String templateId;
+ private java.lang.String gatewayId;
+ public removeParsingTemplate_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String templateId, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.templateId = templateId;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("removeParsingTemplate", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ removeParsingTemplate_args args = new removeParsingTemplate_args();
+ args.setAuthzToken(authzToken);
+ args.setTemplateId(templateId);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.lang.Boolean getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_removeParsingTemplate();
+ }
+ }
+
+ public void listAllParsingTemplates(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler) throws org.apache.thrift.TException {
+ checkReady();
+ listAllParsingTemplates_call method_call = new listAllParsingTemplates_call(authzToken, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
+ this.___currentMethod = method_call;
+ ___manager.call(method_call);
+ }
+
+ public static class listAllParsingTemplates_call extends org.apache.thrift.async.TAsyncMethodCall<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> {
+ private org.apache.airavata.model.security.AuthzToken authzToken;
+ private java.lang.String gatewayId;
+ public listAllParsingTemplates_call(org.apache.airavata.model.security.AuthzToken authzToken, java.lang.String gatewayId, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
+ super(client, protocolFactory, transport, resultHandler, false);
+ this.authzToken = authzToken;
+ this.gatewayId = gatewayId;
+ }
+
+ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
+ prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listAllParsingTemplates", org.apache.thrift.protocol.TMessageType.CALL, 0));
+ listAllParsingTemplates_args args = new listAllParsingTemplates_args();
+ args.setAuthzToken(authzToken);
+ args.setGatewayId(gatewayId);
+ args.write(prot);
+ prot.writeMessageEnd();
+ }
+
+ public java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException {
+ if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+ throw new java.lang.IllegalStateException("Method call not finished!");
+ }
+ org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+ org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
+ return (new Client(prot)).recv_listAllParsingTemplates();
+ }
+ }
+
}
- public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
+ public static class Processor<I extends Iface> extends org.apache.airavata.base.api.BaseAPI.Processor<I> implements org.apache.thrift.TProcessor {
private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new java.util.HashMap<java.lang.String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
@@@ -37148,32828 -34170,8 +36977,31898 @@@
return false;
}
- public void start(I iface, getAllAccessibleUsers_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<java.lang.String>> resultHandler) throws org.apache.thrift.TException {
- iface.getAllAccessibleUsers(args.authzToken, args.resourceId, args.resourceType, args.permissionType,resultHandler);
+ public void start(I iface, getGroupResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupResourceProfile(args.authzToken, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class removeGroupResourceProfile<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeGroupResourceProfile_args, java.lang.Boolean> {
+ public removeGroupResourceProfile() {
+ super("removeGroupResourceProfile");
+ }
+
+ public removeGroupResourceProfile_args getEmptyArgsInstance() {
+ return new removeGroupResourceProfile_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeGroupResourceProfile_result result = new removeGroupResourceProfile_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeGroupResourceProfile_result result = new removeGroupResourceProfile_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeGroupResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeGroupResourceProfile(args.authzToken, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class getGroupResourceList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupResourceList_args, java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> {
+ public getGroupResourceList() {
+ super("getGroupResourceList");
+ }
+
+ public getGroupResourceList_args getEmptyArgsInstance() {
+ return new getGroupResourceList_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile> o) {
+ getGroupResourceList_result result = new getGroupResourceList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupResourceList_result result = new getGroupResourceList_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupResourceList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupResourceProfile>> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupResourceList(args.authzToken, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class removeGroupComputePrefs<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeGroupComputePrefs_args, java.lang.Boolean> {
+ public removeGroupComputePrefs() {
+ super("removeGroupComputePrefs");
+ }
+
+ public removeGroupComputePrefs_args getEmptyArgsInstance() {
+ return new removeGroupComputePrefs_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeGroupComputePrefs_result result = new removeGroupComputePrefs_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeGroupComputePrefs_result result = new removeGroupComputePrefs_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeGroupComputePrefs_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeGroupComputePrefs(args.authzToken, args.computeResourceId, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class removeGroupComputeResourcePolicy<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeGroupComputeResourcePolicy_args, java.lang.Boolean> {
+ public removeGroupComputeResourcePolicy() {
+ super("removeGroupComputeResourcePolicy");
+ }
+
+ public removeGroupComputeResourcePolicy_args getEmptyArgsInstance() {
+ return new removeGroupComputeResourcePolicy_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeGroupComputeResourcePolicy_result result = new removeGroupComputeResourcePolicy_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeGroupComputeResourcePolicy_result result = new removeGroupComputeResourcePolicy_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeGroupComputeResourcePolicy_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeGroupComputeResourcePolicy(args.authzToken, args.resourcePolicyId,resultHandler);
+ }
+ }
+
+ public static class removeGroupBatchQueueResourcePolicy<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeGroupBatchQueueResourcePolicy_args, java.lang.Boolean> {
+ public removeGroupBatchQueueResourcePolicy() {
+ super("removeGroupBatchQueueResourcePolicy");
+ }
+
+ public removeGroupBatchQueueResourcePolicy_args getEmptyArgsInstance() {
+ return new removeGroupBatchQueueResourcePolicy_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeGroupBatchQueueResourcePolicy_result result = new removeGroupBatchQueueResourcePolicy_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeGroupBatchQueueResourcePolicy_result result = new removeGroupBatchQueueResourcePolicy_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeGroupBatchQueueResourcePolicy_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeGroupBatchQueueResourcePolicy(args.authzToken, args.resourcePolicyId,resultHandler);
+ }
+ }
+
+ public static class getGroupComputeResourcePreference<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupComputeResourcePreference_args, org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> {
+ public getGroupComputeResourcePreference() {
+ super("getGroupComputeResourcePreference");
+ }
+
+ public getGroupComputeResourcePreference_args getEmptyArgsInstance() {
+ return new getGroupComputeResourcePreference_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference o) {
+ getGroupComputeResourcePreference_result result = new getGroupComputeResourcePreference_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupComputeResourcePreference_result result = new getGroupComputeResourcePreference_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupComputeResourcePreference(args.authzToken, args.computeResourceId, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class getGroupComputeResourcePolicy<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupComputeResourcePolicy_args, org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> {
+ public getGroupComputeResourcePolicy() {
+ super("getGroupComputeResourcePolicy");
+ }
+
+ public getGroupComputeResourcePolicy_args getEmptyArgsInstance() {
+ return new getGroupComputeResourcePolicy_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy o) {
+ getGroupComputeResourcePolicy_result result = new getGroupComputeResourcePolicy_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupComputeResourcePolicy_result result = new getGroupComputeResourcePolicy_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupComputeResourcePolicy_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupComputeResourcePolicy(args.authzToken, args.resourcePolicyId,resultHandler);
+ }
+ }
+
+ public static class getBatchQueueResourcePolicy<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getBatchQueueResourcePolicy_args, org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> {
+ public getBatchQueueResourcePolicy() {
+ super("getBatchQueueResourcePolicy");
+ }
+
+ public getBatchQueueResourcePolicy_args getEmptyArgsInstance() {
+ return new getBatchQueueResourcePolicy_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy o) {
+ getBatchQueueResourcePolicy_result result = new getBatchQueueResourcePolicy_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getBatchQueueResourcePolicy_result result = new getBatchQueueResourcePolicy_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getBatchQueueResourcePolicy_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> resultHandler) throws org.apache.thrift.TException {
+ iface.getBatchQueueResourcePolicy(args.authzToken, args.resourcePolicyId,resultHandler);
+ }
+ }
+
+ public static class getGroupComputeResourcePrefList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupComputeResourcePrefList_args, java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> {
+ public getGroupComputeResourcePrefList() {
+ super("getGroupComputeResourcePrefList");
+ }
+
+ public getGroupComputeResourcePrefList_args getEmptyArgsInstance() {
+ return new getGroupComputeResourcePrefList_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference> o) {
+ getGroupComputeResourcePrefList_result result = new getGroupComputeResourcePrefList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupComputeResourcePrefList_result result = new getGroupComputeResourcePrefList_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupComputeResourcePrefList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.GroupComputeResourcePreference>> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupComputeResourcePrefList(args.authzToken, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class getGroupBatchQueueResourcePolicyList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupBatchQueueResourcePolicyList_args, java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> {
+ public getGroupBatchQueueResourcePolicyList() {
+ super("getGroupBatchQueueResourcePolicyList");
+ }
+
+ public getGroupBatchQueueResourcePolicyList_args getEmptyArgsInstance() {
+ return new getGroupBatchQueueResourcePolicyList_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy> o) {
+ getGroupBatchQueueResourcePolicyList_result result = new getGroupBatchQueueResourcePolicyList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupBatchQueueResourcePolicyList_result result = new getGroupBatchQueueResourcePolicyList_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupBatchQueueResourcePolicyList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.BatchQueueResourcePolicy>> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupBatchQueueResourcePolicyList(args.authzToken, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class getGroupComputeResourcePolicyList<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGroupComputeResourcePolicyList_args, java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> {
+ public getGroupComputeResourcePolicyList() {
+ super("getGroupComputeResourcePolicyList");
+ }
+
+ public getGroupComputeResourcePolicyList_args getEmptyArgsInstance() {
+ return new getGroupComputeResourcePolicyList_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy> o) {
+ getGroupComputeResourcePolicyList_result result = new getGroupComputeResourcePolicyList_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGroupComputeResourcePolicyList_result result = new getGroupComputeResourcePolicyList_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGroupComputeResourcePolicyList_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.groupresourceprofile.ComputeResourcePolicy>> resultHandler) throws org.apache.thrift.TException {
+ iface.getGroupComputeResourcePolicyList(args.authzToken, args.groupResourceProfileId,resultHandler);
+ }
+ }
+
+ public static class getGatewayGroups<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getGatewayGroups_args, org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> {
+ public getGatewayGroups() {
+ super("getGatewayGroups");
+ }
+
+ public getGatewayGroups_args getEmptyArgsInstance() {
+ return new getGatewayGroups_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups o) {
+ getGatewayGroups_result result = new getGatewayGroups_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getGatewayGroups_result result = new getGatewayGroups_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getGatewayGroups_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.gatewaygroups.GatewayGroups> resultHandler) throws org.apache.thrift.TException {
+ iface.getGatewayGroups(args.authzToken,resultHandler);
+ }
+ }
+
+ public static class getParser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getParser_args, org.apache.airavata.model.appcatalog.parser.Parser> {
+ public getParser() {
+ super("getParser");
+ }
+
+ public getParser_args getEmptyArgsInstance() {
+ return new getParser_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.Parser> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.Parser>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.parser.Parser o) {
+ getParser_result result = new getParser_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getParser_result result = new getParser_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getParser_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.Parser> resultHandler) throws org.apache.thrift.TException {
+ iface.getParser(args.authzToken, args.parserId, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class saveParser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveParser_args, java.lang.String> {
+ public saveParser() {
+ super("saveParser");
+ }
+
+ public saveParser_args getEmptyArgsInstance() {
+ return new saveParser_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ public void onComplete(java.lang.String o) {
+ saveParser_result result = new saveParser_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ saveParser_result result = new saveParser_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, saveParser_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
+ iface.saveParser(args.authzToken, args.parser,resultHandler);
+ }
+ }
+
+ public static class listAllParsers<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listAllParsers_args, java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> {
+ public listAllParsers() {
+ super("listAllParsers");
+ }
+
+ public listAllParsers_args getEmptyArgsInstance() {
+ return new listAllParsers_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.parser.Parser> o) {
+ listAllParsers_result result = new listAllParsers_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ listAllParsers_result result = new listAllParsers_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, listAllParsers_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.Parser>> resultHandler) throws org.apache.thrift.TException {
+ iface.listAllParsers(args.authzToken, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class removeParser<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeParser_args, java.lang.Boolean> {
+ public removeParser() {
+ super("removeParser");
+ }
+
+ public removeParser_args getEmptyArgsInstance() {
+ return new removeParser_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeParser_result result = new removeParser_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeParser_result result = new removeParser_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeParser_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeParser(args.authzToken, args.parserId, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class getParsingTemplate<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getParsingTemplate_args, org.apache.airavata.model.appcatalog.parser.ParsingTemplate> {
+ public getParsingTemplate() {
+ super("getParsingTemplate");
+ }
+
+ public getParsingTemplate_args getEmptyArgsInstance() {
+ return new getParsingTemplate_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>() {
+ public void onComplete(org.apache.airavata.model.appcatalog.parser.ParsingTemplate o) {
+ getParsingTemplate_result result = new getParsingTemplate_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getParsingTemplate_result result = new getParsingTemplate_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getParsingTemplate_args args, org.apache.thrift.async.AsyncMethodCallback<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> resultHandler) throws org.apache.thrift.TException {
+ iface.getParsingTemplate(args.authzToken, args.templateId, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class getParsingTemplatesForExperiment<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getParsingTemplatesForExperiment_args, java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> {
+ public getParsingTemplatesForExperiment() {
+ super("getParsingTemplatesForExperiment");
+ }
+
+ public getParsingTemplatesForExperiment_args getEmptyArgsInstance() {
+ return new getParsingTemplatesForExperiment_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> o) {
+ getParsingTemplatesForExperiment_result result = new getParsingTemplatesForExperiment_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ getParsingTemplatesForExperiment_result result = new getParsingTemplatesForExperiment_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, getParsingTemplatesForExperiment_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler) throws org.apache.thrift.TException {
+ iface.getParsingTemplatesForExperiment(args.authzToken, args.experimentId, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class saveParsingTemplate<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, saveParsingTemplate_args, java.lang.String> {
+ public saveParsingTemplate() {
+ super("saveParsingTemplate");
+ }
+
+ public saveParsingTemplate_args getEmptyArgsInstance() {
+ return new saveParsingTemplate_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.String> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.String>() {
+ public void onComplete(java.lang.String o) {
+ saveParsingTemplate_result result = new saveParsingTemplate_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ saveParsingTemplate_result result = new saveParsingTemplate_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, saveParsingTemplate_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.String> resultHandler) throws org.apache.thrift.TException {
+ iface.saveParsingTemplate(args.authzToken, args.parsingTemplate,resultHandler);
+ }
+ }
+
+ public static class removeParsingTemplate<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeParsingTemplate_args, java.lang.Boolean> {
+ public removeParsingTemplate() {
+ super("removeParsingTemplate");
+ }
+
+ public removeParsingTemplate_args getEmptyArgsInstance() {
+ return new removeParsingTemplate_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean>() {
+ public void onComplete(java.lang.Boolean o) {
+ removeParsingTemplate_result result = new removeParsingTemplate_result();
+ result.success = o;
+ result.setSuccessIsSet(true);
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ removeParsingTemplate_result result = new removeParsingTemplate_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, removeParsingTemplate_args args, org.apache.thrift.async.AsyncMethodCallback<java.lang.Boolean> resultHandler) throws org.apache.thrift.TException {
+ iface.removeParsingTemplate(args.authzToken, args.templateId, args.gatewayId,resultHandler);
+ }
+ }
+
+ public static class listAllParsingTemplates<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, listAllParsingTemplates_args, java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> {
+ public listAllParsingTemplates() {
+ super("listAllParsingTemplates");
+ }
+
+ public listAllParsingTemplates_args getEmptyArgsInstance() {
+ return new listAllParsingTemplates_args();
+ }
+
+ public org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> getResultHandler(final org.apache.thrift.server.AbstractNonblockingServer.AsyncFrameBuffer fb, final int seqid) {
+ final org.apache.thrift.AsyncProcessFunction fcall = this;
+ return new org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>>() {
+ public void onComplete(java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate> o) {
+ listAllParsingTemplates_result result = new listAllParsingTemplates_result();
+ result.success = o;
+ try {
+ fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+ } catch (org.apache.thrift.transport.TTransportException e) {
+ _LOGGER.error("TTransportException writing to internal frame buffer", e);
+ fb.close();
+ } catch (java.lang.Exception e) {
+ _LOGGER.error("Exception writing to internal frame buffer", e);
+ onError(e);
+ }
+ }
+ public void onError(java.lang.Exception e) {
+ byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+ org.apache.thrift.TSerializable msg;
+ listAllParsingTemplates_result result = new listAllParsingTemplates_result();
+ if (e instanceof org.apache.airavata.model.error.InvalidRequestException) {
+ result.ire = (org.apache.airavata.model.error.InvalidRequestException) e;
+ result.setIreIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataClientException) {
+ result.ace = (org.apache.airavata.model.error.AiravataClientException) e;
+ result.setAceIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) {
+ result.ase = (org.apache.airavata.model.error.AiravataSystemException) e;
+ result.setAseIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) {
+ result.ae = (org.apache.airavata.model.error.AuthorizationException) e;
+ result.setAeIsSet(true);
+ msg = result;
+ } else if (e instanceof org.apache.thrift.transport.TTransportException) {
+ _LOGGER.error("TTransportException inside handler", e);
+ fb.close();
+ return;
+ } else if (e instanceof org.apache.thrift.TApplicationException) {
+ _LOGGER.error("TApplicationException inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = (org.apache.thrift.TApplicationException)e;
+ } else {
+ _LOGGER.error("Exception inside handler", e);
+ msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+ msg = new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
+ }
+ try {
+ fcall.sendResponse(fb,msg,msgType,seqid);
+ } catch (java.lang.Exception ex) {
+ _LOGGER.error("Exception writing to internal frame buffer", ex);
+ fb.close();
+ }
+ }
+ };
+ }
+
+ protected boolean isOneway() {
+ return false;
+ }
+
+ public void start(I iface, listAllParsingTemplates_args args, org.apache.thrift.async.AsyncMethodCallback<java.util.List<org.apache.airavata.model.appcatalog.parser.ParsingTemplate>> resultHandler) throws org.apache.thrift.TException {
+ iface.listAllParsingTemplates(args.authzToken, args.gatewayId,resultHandler);
+ }
+ }
+
+ }
+
- public static class getAPIVersion_args implements org.apache.thrift.TBase<getAPIVersion_args, getAPIVersion_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAPIVersion_args> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAPIVersion_args");
-
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAPIVersion_argsStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAPIVersion_argsTupleSchemeFactory();
-
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- ;
-
- private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAPIVersion_args.class, metaDataMap);
- }
-
- public getAPIVersion_args() {
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public getAPIVersion_args(getAPIVersion_args other) {
- }
-
- public getAPIVersion_args deepCopy() {
- return new getAPIVersion_args(this);
- }
-
- @Override
- public void clear() {
- }
-
- public void setFieldValue(_Fields field, java.lang.Object value) {
- switch (field) {
- }
- }
-
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof getAPIVersion_args)
- return this.equals((getAPIVersion_args)that);
- return false;
- }
-
- public boolean equals(getAPIVersion_args that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- return hashCode;
- }
-
- @Override
- public int compareTo(getAPIVersion_args other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- return 0;
- }
-
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("getAPIVersion_args(");
- boolean first = true;
-
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class getAPIVersion_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public getAPIVersion_argsStandardScheme getScheme() {
- return new getAPIVersion_argsStandardScheme();
- }
- }
-
- private static class getAPIVersion_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getAPIVersion_args> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, getAPIVersion_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, getAPIVersion_args struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class getAPIVersion_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public getAPIVersion_argsTupleScheme getScheme() {
- return new getAPIVersion_argsTupleScheme();
- }
- }
-
- private static class getAPIVersion_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getAPIVersion_args> {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_args struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- }
- }
-
- private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
- public static class getAPIVersion_result implements org.apache.thrift.TBase<getAPIVersion_result, getAPIVersion_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAPIVersion_result> {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAPIVersion_result");
-
- private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
- private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1);
- private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2);
- private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAPIVersion_resultStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAPIVersion_resultTupleSchemeFactory();
-
- public java.lang.String success; // required
- public org.apache.airavata.model.error.InvalidRequestException ire; // required
- public org.apache.airavata.model.error.AiravataClientException ace; // required
- public org.apache.airavata.model.error.AiravataSystemException ase; // required
-
- /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
- public enum _Fields implements org.apache.thrift.TFieldIdEnum {
- SUCCESS((short)0, "success"),
- IRE((short)1, "ire"),
- ACE((short)2, "ace"),
- ASE((short)3, "ase");
-
- private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 0: // SUCCESS
- return SUCCESS;
- case 1: // IRE
- return IRE;
- case 2: // ACE
- return ACE;
- case 3: // ASE
- return ASE;
- default:
- return null;
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, throwing an exception
- * if it is not found.
- */
- public static _Fields findByThriftIdOrThrow(int fieldId) {
- _Fields fields = findByThriftId(fieldId);
- if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.InvalidRequestException.class)));
- tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataClientException.class)));
- tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataSystemException.class)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAPIVersion_result.class, metaDataMap);
- }
-
- public getAPIVersion_result() {
- }
-
- public getAPIVersion_result(
- java.lang.String success,
- org.apache.airavata.model.error.InvalidRequestException ire,
- org.apache.airavata.model.error.AiravataClientException ace,
- org.apache.airavata.model.error.AiravataSystemException ase)
- {
- this();
- this.success = success;
- this.ire = ire;
- this.ace = ace;
- this.ase = ase;
- }
-
- /**
- * Performs a deep copy on <i>other</i>.
- */
- public getAPIVersion_result(getAPIVersion_result other) {
- if (other.isSetSuccess()) {
- this.success = other.success;
- }
- if (other.isSetIre()) {
- this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire);
- }
- if (other.isSetAce()) {
- this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace);
- }
- if (other.isSetAse()) {
- this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase);
- }
- }
-
- public getAPIVersion_result deepCopy() {
- return new getAPIVersion_result(this);
- }
-
- @Override
- public void clear() {
- this.success = null;
- this.ire = null;
- this.ace = null;
- this.ase = null;
- }
-
- public java.lang.String getSuccess() {
- return this.success;
- }
-
- public getAPIVersion_result setSuccess(java.lang.String success) {
- this.success = success;
- return this;
- }
-
- public void unsetSuccess() {
- this.success = null;
- }
-
- /** Returns true if field success is set (has been assigned a value) and false otherwise */
- public boolean isSetSuccess() {
- return this.success != null;
- }
-
- public void setSuccessIsSet(boolean value) {
- if (!value) {
- this.success = null;
- }
- }
-
- public org.apache.airavata.model.error.InvalidRequestException getIre() {
- return this.ire;
- }
-
- public getAPIVersion_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) {
- this.ire = ire;
- return this;
- }
-
- public void unsetIre() {
- this.ire = null;
- }
-
- /** Returns true if field ire is set (has been assigned a value) and false otherwise */
- public boolean isSetIre() {
- return this.ire != null;
- }
-
- public void setIreIsSet(boolean value) {
- if (!value) {
- this.ire = null;
- }
- }
-
- public org.apache.airavata.model.error.AiravataClientException getAce() {
- return this.ace;
- }
-
- public getAPIVersion_result setAce(org.apache.airavata.model.error.AiravataClientException ace) {
- this.ace = ace;
- return this;
- }
-
- public void unsetAce() {
- this.ace = null;
- }
-
- /** Returns true if field ace is set (has been assigned a value) and false otherwise */
- public boolean isSetAce() {
- return this.ace != null;
- }
-
- public void setAceIsSet(boolean value) {
- if (!value) {
- this.ace = null;
- }
- }
-
- public org.apache.airavata.model.error.AiravataSystemException getAse() {
- return this.ase;
- }
-
- public getAPIVersion_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) {
- this.ase = ase;
- return this;
- }
-
- public void unsetAse() {
- this.ase = null;
- }
-
- /** Returns true if field ase is set (has been assigned a value) and false otherwise */
- public boolean isSetAse() {
- return this.ase != null;
- }
-
- public void setAseIsSet(boolean value) {
- if (!value) {
- this.ase = null;
- }
- }
-
- public void setFieldValue(_Fields field, java.lang.Object value) {
- switch (field) {
- case SUCCESS:
- if (value == null) {
- unsetSuccess();
- } else {
- setSuccess((java.lang.String)value);
- }
- break;
-
- case IRE:
- if (value == null) {
- unsetIre();
- } else {
- setIre((org.apache.airavata.model.error.InvalidRequestException)value);
- }
- break;
-
- case ACE:
- if (value == null) {
- unsetAce();
- } else {
- setAce((org.apache.airavata.model.error.AiravataClientException)value);
- }
- break;
-
- case ASE:
- if (value == null) {
- unsetAse();
- } else {
- setAse((org.apache.airavata.model.error.AiravataSystemException)value);
- }
- break;
-
- }
- }
-
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case SUCCESS:
- return getSuccess();
-
- case IRE:
- return getIre();
-
- case ACE:
- return getAce();
-
- case ASE:
- return getAse();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case SUCCESS:
- return isSetSuccess();
- case IRE:
- return isSetIre();
- case ACE:
- return isSetAce();
- case ASE:
- return isSetAse();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that == null)
- return false;
- if (that instanceof getAPIVersion_result)
- return this.equals((getAPIVersion_result)that);
- return false;
- }
-
- public boolean equals(getAPIVersion_result that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_success = true && this.isSetSuccess();
- boolean that_present_success = true && that.isSetSuccess();
- if (this_present_success || that_present_success) {
- if (!(this_present_success && that_present_success))
- return false;
- if (!this.success.equals(that.success))
- return false;
- }
-
- boolean this_present_ire = true && this.isSetIre();
- boolean that_present_ire = true && that.isSetIre();
- if (this_present_ire || that_present_ire) {
- if (!(this_present_ire && that_present_ire))
- return false;
- if (!this.ire.equals(that.ire))
- return false;
- }
-
- boolean this_present_ace = true && this.isSetAce();
- boolean that_present_ace = true && that.isSetAce();
- if (this_present_ace || that_present_ace) {
- if (!(this_present_ace && that_present_ace))
- return false;
- if (!this.ace.equals(that.ace))
- return false;
- }
-
- boolean this_present_ase = true && this.isSetAse();
- boolean that_present_ase = true && that.isSetAse();
- if (this_present_ase || that_present_ase) {
- if (!(this_present_ase && that_present_ase))
- return false;
- if (!this.ase.equals(that.ase))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
- if (isSetSuccess())
- hashCode = hashCode * 8191 + success.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetIre()) ? 131071 : 524287);
- if (isSetIre())
- hashCode = hashCode * 8191 + ire.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetAce()) ? 131071 : 524287);
- if (isSetAce())
- hashCode = hashCode * 8191 + ace.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetAse()) ? 131071 : 524287);
- if (isSetAse())
- hashCode = hashCode * 8191 + ase.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(getAPIVersion_result other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetSuccess()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetIre()).compareTo(other.isSetIre());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetIre()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetAce()).compareTo(other.isSetAce());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAce()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.valueOf(isSetAse()).compareTo(other.isSetAse());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetAse()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("getAPIVersion_result(");
- boolean first = true;
-
- sb.append("success:");
- if (this.success == null) {
- sb.append("null");
- } else {
- sb.append(this.success);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("ire:");
- if (this.ire == null) {
- sb.append("null");
- } else {
- sb.append(this.ire);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("ace:");
- if (this.ace == null) {
- sb.append("null");
- } else {
- sb.append(this.ace);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("ase:");
- if (this.ase == null) {
- sb.append("null");
- } else {
- sb.append(this.ase);
- }
- first = false;
- sb.append(")");
- return sb.toString();
- }
-
- public void validate() throws org.apache.thrift.TException {
- // check for required fields
- // check for sub-struct validity
- }
-
- private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
- try {
- write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
- try {
- read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
- } catch (org.apache.thrift.TException te) {
- throw new java.io.IOException(te);
- }
- }
-
- private static class getAPIVersion_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public getAPIVersion_resultStandardScheme getScheme() {
- return new getAPIVersion_resultStandardScheme();
- }
- }
-
- private static class getAPIVersion_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<getAPIVersion_result> {
-
- public void read(org.apache.thrift.protocol.TProtocol iprot, getAPIVersion_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TField schemeField;
- iprot.readStructBegin();
- while (true)
- {
- schemeField = iprot.readFieldBegin();
- if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
- break;
- }
- switch (schemeField.id) {
- case 0: // SUCCESS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.success = iprot.readString();
- struct.setSuccessIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 1: // IRE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
- struct.ire.read(iprot);
- struct.setIreIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // ACE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ace = new org.apache.airavata.model.error.AiravataClientException();
- struct.ace.read(iprot);
- struct.setAceIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // ASE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
- struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
- struct.ase.read(iprot);
- struct.setAseIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- default:
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- iprot.readFieldEnd();
- }
- iprot.readStructEnd();
-
- // check for required fields of primitive type, which can't be checked in the validate method
- struct.validate();
- }
-
- public void write(org.apache.thrift.protocol.TProtocol oprot, getAPIVersion_result struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.success != null) {
- oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
- oprot.writeString(struct.success);
- oprot.writeFieldEnd();
- }
- if (struct.ire != null) {
- oprot.writeFieldBegin(IRE_FIELD_DESC);
- struct.ire.write(oprot);
- oprot.writeFieldEnd();
- }
- if (struct.ace != null) {
- oprot.writeFieldBegin(ACE_FIELD_DESC);
- struct.ace.write(oprot);
- oprot.writeFieldEnd();
- }
- if (struct.ase != null) {
- oprot.writeFieldBegin(ASE_FIELD_DESC);
- struct.ase.write(oprot);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class getAPIVersion_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- public getAPIVersion_resultTupleScheme getScheme() {
- return new getAPIVersion_resultTupleScheme();
- }
- }
-
- private static class getAPIVersion_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<getAPIVersion_result> {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetSuccess()) {
- optionals.set(0);
- }
- if (struct.isSetIre()) {
- optionals.set(1);
- }
- if (struct.isSetAce()) {
- optionals.set(2);
- }
- if (struct.isSetAse()) {
- optionals.set(3);
- }
- oprot.writeBitSet(optionals, 4);
- if (struct.isSetSuccess()) {
- oprot.writeString(struct.success);
- }
- if (struct.isSetIre()) {
- struct.ire.write(oprot);
- }
- if (struct.isSetAce()) {
- struct.ace.write(oprot);
- }
- if (struct.isSetAse()) {
- struct.ase.write(oprot);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, getAPIVersion_result struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(4);
- if (incoming.get(0)) {
- struct.success = iprot.readString();
- struct.setSuccessIsSet(true);
- }
- if (incoming.get(1)) {
- struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
- struct.ire.read(iprot);
- struct.setIreIsSet(true);
- }
- if (incoming.get(2)) {
- struct.ace = new org.apache.airavata.model.error.AiravataClientException();
- struct.ace.read(iprot);
- struct.setAceIsSet(true);
- }
- if (incoming.get(3)) {
- struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
- struct.ase.read(iprot);
- struct.setAseIsSet(true);
- }
- }
- }
-
- private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
- }
-
+ public static class isUserExists_args implements org.apache.thrift.TBase<isUserExists_args, isUserExists_args._Fields>, java.io.Serializable, Cloneable, Comparable<isUserExists_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isUserExists_args");
+
+ private static final org.apache.thrift.protocol.TField AUTHZ_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("authzToken", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)2);
+ private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)3);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isUserExists_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isUserExists_argsTupleSchemeFactory();
+
+ public org.apache.airavata.model.security.AuthzToken authzToken; // required
+ public java.lang.String gatewayId; // required
+ public java.lang.String userName; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ AUTHZ_TOKEN((short)1, "authzToken"),
+ GATEWAY_ID((short)2, "gatewayId"),
+ USER_NAME((short)3, "userName");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // AUTHZ_TOKEN
+ return AUTHZ_TOKEN;
+ case 2: // GATEWAY_ID
+ return GATEWAY_ID;
+ case 3: // USER_NAME
+ return USER_NAME;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.AUTHZ_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authzToken", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.security.AuthzToken.class)));
+ tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("userName", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isUserExists_args.class, metaDataMap);
+ }
+
+ public isUserExists_args() {
+ }
+
+ public isUserExists_args(
+ org.apache.airavata.model.security.AuthzToken authzToken,
+ java.lang.String gatewayId,
+ java.lang.String userName)
+ {
+ this();
+ this.authzToken = authzToken;
+ this.gatewayId = gatewayId;
+ this.userName = userName;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public isUserExists_args(isUserExists_args other) {
+ if (other.isSetAuthzToken()) {
+ this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken);
+ }
+ if (other.isSetGatewayId()) {
+ this.gatewayId = other.gatewayId;
+ }
+ if (other.isSetUserName()) {
+ this.userName = other.userName;
+ }
+ }
+
+ public isUserExists_args deepCopy() {
+ return new isUserExists_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.authzToken = null;
+ this.gatewayId = null;
+ this.userName = null;
+ }
+
+ public org.apache.airavata.model.security.AuthzToken getAuthzToken() {
+ return this.authzToken;
+ }
+
+ public isUserExists_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) {
+ this.authzToken = authzToken;
+ return this;
+ }
+
+ public void unsetAuthzToken() {
+ this.authzToken = null;
+ }
+
+ /** Returns true if field authzToken is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthzToken() {
+ return this.authzToken != null;
+ }
+
+ public void setAuthzTokenIsSet(boolean value) {
+ if (!value) {
+ this.authzToken = null;
+ }
+ }
+
+ public java.lang.String getGatewayId() {
+ return this.gatewayId;
+ }
+
+ public isUserExists_args setGatewayId(java.lang.String gatewayId) {
+ this.gatewayId = gatewayId;
+ return this;
+ }
+
+ public void unsetGatewayId() {
+ this.gatewayId = null;
+ }
+
+ /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
+ public boolean isSetGatewayId() {
+ return this.gatewayId != null;
+ }
+
+ public void setGatewayIdIsSet(boolean value) {
+ if (!value) {
+ this.gatewayId = null;
+ }
+ }
+
+ public java.lang.String getUserName() {
+ return this.userName;
+ }
+
+ public isUserExists_args setUserName(java.lang.String userName) {
+ this.userName = userName;
+ return this;
+ }
+
+ public void unsetUserName() {
+ this.userName = null;
+ }
+
+ /** Returns true if field userName is set (has been assigned a value) and false otherwise */
+ public boolean isSetUserName() {
+ return this.userName != null;
+ }
+
+ public void setUserNameIsSet(boolean value) {
+ if (!value) {
+ this.userName = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ if (value == null) {
+ unsetAuthzToken();
+ } else {
+ setAuthzToken((org.apache.airavata.model.security.AuthzToken)value);
+ }
+ break;
+
+ case GATEWAY_ID:
+ if (value == null) {
+ unsetGatewayId();
+ } else {
+ setGatewayId((java.lang.String)value);
+ }
+ break;
+
+ case USER_NAME:
+ if (value == null) {
+ unsetUserName();
+ } else {
+ setUserName((java.lang.String)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return getAuthzToken();
+
+ case GATEWAY_ID:
+ return getGatewayId();
+
+ case USER_NAME:
+ return getUserName();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return isSetAuthzToken();
+ case GATEWAY_ID:
+ return isSetGatewayId();
+ case USER_NAME:
+ return isSetUserName();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof isUserExists_args)
+ return this.equals((isUserExists_args)that);
+ return false;
+ }
+
+ public boolean equals(isUserExists_args that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_authzToken = true && this.isSetAuthzToken();
+ boolean that_present_authzToken = true && that.isSetAuthzToken();
+ if (this_present_authzToken || that_present_authzToken) {
+ if (!(this_present_authzToken && that_present_authzToken))
+ return false;
+ if (!this.authzToken.equals(that.authzToken))
+ return false;
+ }
+
+ boolean this_present_gatewayId = true && this.isSetGatewayId();
+ boolean that_present_gatewayId = true && that.isSetGatewayId();
+ if (this_present_gatewayId || that_present_gatewayId) {
+ if (!(this_present_gatewayId && that_present_gatewayId))
+ return false;
+ if (!this.gatewayId.equals(that.gatewayId))
+ return false;
+ }
+
+ boolean this_present_userName = true && this.isSetUserName();
+ boolean that_present_userName = true && that.isSetUserName();
+ if (this_present_userName || that_present_userName) {
+ if (!(this_present_userName && that_present_userName))
+ return false;
+ if (!this.userName.equals(that.userName))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetAuthzToken()) ? 131071 : 524287);
+ if (isSetAuthzToken())
+ hashCode = hashCode * 8191 + authzToken.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetGatewayId()) ? 131071 : 524287);
+ if (isSetGatewayId())
+ hashCode = hashCode * 8191 + gatewayId.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetUserName()) ? 131071 : 524287);
+ if (isSetUserName())
+ hashCode = hashCode * 8191 + userName.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(isUserExists_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.valueOf(isSetAuthzToken()).compareTo(other.isSetAuthzToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthzToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzToken, other.authzToken);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetGatewayId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetUserName()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isUserExists_args(");
+ boolean first = true;
+
+ sb.append("authzToken:");
+ if (this.authzToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authzToken);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("gatewayId:");
+ if (this.gatewayId == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.gatewayId);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("userName:");
+ if (this.userName == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.userName);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (authzToken == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzToken' was not present! Struct: " + toString());
+ }
+ if (gatewayId == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
+ }
+ if (userName == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString());
+ }
+ // check for sub-struct validity
+ if (authzToken != null) {
+ authzToken.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class isUserExists_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isUserExists_argsStandardScheme getScheme() {
+ return new isUserExists_argsStandardScheme();
+ }
+ }
+
+ private static class isUserExists_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<isUserExists_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, isUserExists_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // AUTHZ_TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // GATEWAY_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.gatewayId = iprot.readString();
+ struct.setGatewayIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // USER_NAME
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.userName = iprot.readString();
+ struct.setUserNameIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, isUserExists_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.authzToken != null) {
+ oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC);
+ struct.authzToken.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.gatewayId != null) {
+ oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
+ oprot.writeString(struct.gatewayId);
+ oprot.writeFieldEnd();
+ }
+ if (struct.userName != null) {
+ oprot.writeFieldBegin(USER_NAME_FIELD_DESC);
+ oprot.writeString(struct.userName);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class isUserExists_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isUserExists_argsTupleScheme getScheme() {
+ return new isUserExists_argsTupleScheme();
+ }
+ }
+
+ private static class isUserExists_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<isUserExists_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, isUserExists_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken.write(oprot);
+ oprot.writeString(struct.gatewayId);
+ oprot.writeString(struct.userName);
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, isUserExists_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ struct.gatewayId = iprot.readString();
+ struct.setGatewayIdIsSet(true);
+ struct.userName = iprot.readString();
+ struct.setUserNameIsSet(true);
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ public static class isUserExists_result implements org.apache.thrift.TBase<isUserExists_result, isUserExists_result._Fields>, java.io.Serializable, Cloneable, Comparable<isUserExists_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isUserExists_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
+ private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+ private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+ private static final org.apache.thrift.protocol.TField AE_FIELD_DESC = new org.apache.thrift.protocol.TField("ae", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new isUserExists_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new isUserExists_resultTupleSchemeFactory();
+
+ public boolean success; // required
+ public org.apache.airavata.model.error.InvalidRequestException ire; // required
+ public org.apache.airavata.model.error.AiravataClientException ace; // required
+ public org.apache.airavata.model.error.AiravataSystemException ase; // required
+ public org.apache.airavata.model.error.AuthorizationException ae; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ IRE((short)1, "ire"),
+ ACE((short)2, "ace"),
+ ASE((short)3, "ase"),
+ AE((short)4, "ae");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // IRE
+ return IRE;
+ case 2: // ACE
+ return ACE;
+ case 3: // ASE
+ return ASE;
+ case 4: // AE
+ return AE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ private static final int __SUCCESS_ISSET_ID = 0;
+ private byte __isset_bitfield = 0;
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
+ tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.InvalidRequestException.class)));
+ tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataClientException.class)));
+ tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataSystemException.class)));
+ tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AuthorizationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isUserExists_result.class, metaDataMap);
+ }
+
+ public isUserExists_result() {
+ }
+
+ public isUserExists_result(
+ boolean success,
+ org.apache.airavata.model.error.InvalidRequestException ire,
+ org.apache.airavata.model.error.AiravataClientException ace,
+ org.apache.airavata.model.error.AiravataSystemException ase,
+ org.apache.airavata.model.error.AuthorizationException ae)
+ {
+ this();
+ this.success = success;
+ setSuccessIsSet(true);
+ this.ire = ire;
+ this.ace = ace;
+ this.ase = ase;
+ this.ae = ae;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public isUserExists_result(isUserExists_result other) {
+ __isset_bitfield = other.__isset_bitfield;
+ this.success = other.success;
+ if (other.isSetIre()) {
+ this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire);
+ }
+ if (other.isSetAce()) {
+ this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace);
+ }
+ if (other.isSetAse()) {
+ this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase);
+ }
+ if (other.isSetAe()) {
+ this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae);
+ }
+ }
+
+ public isUserExists_result deepCopy() {
+ return new isUserExists_result(this);
+ }
+
+ @Override
+ public void clear() {
+ setSuccessIsSet(false);
+ this.success = false;
+ this.ire = null;
+ this.ace = null;
+ this.ase = null;
+ this.ae = null;
+ }
+
+ public boolean isSuccess() {
+ return this.success;
+ }
+
+ public isUserExists_result setSuccess(boolean success) {
+ this.success = success;
+ setSuccessIsSet(true);
+ return this;
+ }
+
+ public void unsetSuccess() {
+ __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
+ }
+
+ public org.apache.airavata.model.error.InvalidRequestException getIre() {
+ return this.ire;
+ }
+
+ public isUserExists_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) {
+ this.ire = ire;
+ return this;
+ }
+
+ public void unsetIre() {
+ this.ire = null;
+ }
+
+ /** Returns true if field ire is set (has been assigned a value) and false otherwise */
+ public boolean isSetIre() {
+ return this.ire != null;
+ }
+
+ public void setIreIsSet(boolean value) {
+ if (!value) {
+ this.ire = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataClientException getAce() {
+ return this.ace;
+ }
+
+ public isUserExists_result setAce(org.apache.airavata.model.error.AiravataClientException ace) {
+ this.ace = ace;
+ return this;
+ }
+
+ public void unsetAce() {
+ this.ace = null;
+ }
+
+ /** Returns true if field ace is set (has been assigned a value) and false otherwise */
+ public boolean isSetAce() {
+ return this.ace != null;
+ }
+
+ public void setAceIsSet(boolean value) {
+ if (!value) {
+ this.ace = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataSystemException getAse() {
+ return this.ase;
+ }
+
+ public isUserExists_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) {
+ this.ase = ase;
+ return this;
+ }
+
+ public void unsetAse() {
+ this.ase = null;
+ }
+
+ /** Returns true if field ase is set (has been assigned a value) and false otherwise */
+ public boolean isSetAse() {
+ return this.ase != null;
+ }
+
+ public void setAseIsSet(boolean value) {
+ if (!value) {
+ this.ase = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AuthorizationException getAe() {
+ return this.ae;
+ }
+
+ public isUserExists_result setAe(org.apache.airavata.model.error.AuthorizationException ae) {
+ this.ae = ae;
+ return this;
+ }
+
+ public void unsetAe() {
+ this.ae = null;
+ }
+
+ /** Returns true if field ae is set (has been assigned a value) and false otherwise */
+ public boolean isSetAe() {
+ return this.ae != null;
+ }
+
+ public void setAeIsSet(boolean value) {
+ if (!value) {
+ this.ae = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((java.lang.Boolean)value);
+ }
+ break;
+
+ case IRE:
+ if (value == null) {
+ unsetIre();
+ } else {
+ setIre((org.apache.airavata.model.error.InvalidRequestException)value);
+ }
+ break;
+
+ case ACE:
+ if (value == null) {
+ unsetAce();
+ } else {
+ setAce((org.apache.airavata.model.error.AiravataClientException)value);
+ }
+ break;
+
+ case ASE:
+ if (value == null) {
+ unsetAse();
+ } else {
+ setAse((org.apache.airavata.model.error.AiravataSystemException)value);
+ }
+ break;
+
+ case AE:
+ if (value == null) {
+ unsetAe();
+ } else {
+ setAe((org.apache.airavata.model.error.AuthorizationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return isSuccess();
+
+ case IRE:
+ return getIre();
+
+ case ACE:
+ return getAce();
+
+ case ASE:
+ return getAse();
+
+ case AE:
+ return getAe();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case IRE:
+ return isSetIre();
+ case ACE:
+ return isSetAce();
+ case ASE:
+ return isSetAse();
+ case AE:
+ return isSetAe();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof isUserExists_result)
+ return this.equals((isUserExists_result)that);
+ return false;
+ }
+
+ public boolean equals(isUserExists_result that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_success = true;
+ boolean that_present_success = true;
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (this.success != that.success)
+ return false;
+ }
+
+ boolean this_present_ire = true && this.isSetIre();
+ boolean that_present_ire = true && that.isSetIre();
+ if (this_present_ire || that_present_ire) {
+ if (!(this_present_ire && that_present_ire))
+ return false;
+ if (!this.ire.equals(that.ire))
+ return false;
+ }
+
+ boolean this_present_ace = true && this.isSetAce();
+ boolean that_present_ace = true && that.isSetAce();
+ if (this_present_ace || that_present_ace) {
+ if (!(this_present_ace && that_present_ace))
+ return false;
+ if (!this.ace.equals(that.ace))
+ return false;
+ }
+
+ boolean this_present_ase = true && this.isSetAse();
+ boolean that_present_ase = true && that.isSetAse();
+ if (this_present_ase || that_present_ase) {
+ if (!(this_present_ase && that_present_ase))
+ return false;
+ if (!this.ase.equals(that.ase))
+ return false;
+ }
+
+ boolean this_present_ae = true && this.isSetAe();
+ boolean that_present_ae = true && that.isSetAe();
+ if (this_present_ae || that_present_ae) {
+ if (!(this_present_ae && that_present_ae))
+ return false;
+ if (!this.ae.equals(that.ae))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((success) ? 131071 : 524287);
+
+ hashCode = hashCode * 8191 + ((isSetIre()) ? 131071 : 524287);
+ if (isSetIre())
+ hashCode = hashCode * 8191 + ire.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAce()) ? 131071 : 524287);
+ if (isSetAce())
+ hashCode = hashCode * 8191 + ace.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAse()) ? 131071 : 524287);
+ if (isSetAse())
+ hashCode = hashCode * 8191 + ase.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAe()) ? 131071 : 524287);
+ if (isSetAe())
+ hashCode = hashCode * 8191 + ae.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(isUserExists_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetIre()).compareTo(other.isSetIre());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIre()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAce()).compareTo(other.isSetAce());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAce()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAse()).compareTo(other.isSetAse());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAse()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAe()).compareTo(other.isSetAe());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAe()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ae, other.ae);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("isUserExists_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ sb.append(this.success);
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ire:");
+ if (this.ire == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ire);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ace:");
+ if (this.ace == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ace);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ase:");
+ if (this.ase == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ase);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ae:");
+ if (this.ae == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ae);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
+ __isset_bitfield = 0;
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class isUserExists_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isUserExists_resultStandardScheme getScheme() {
+ return new isUserExists_resultStandardScheme();
+ }
+ }
+
+ private static class isUserExists_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<isUserExists_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, isUserExists_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // IRE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
+ struct.ire.read(iprot);
+ struct.setIreIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // ACE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ace = new org.apache.airavata.model.error.AiravataClientException();
+ struct.ace.read(iprot);
+ struct.setAceIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // ASE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
+ struct.ase.read(iprot);
+ struct.setAseIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // AE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ae = new org.apache.airavata.model.error.AuthorizationException();
+ struct.ae.read(iprot);
+ struct.setAeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, isUserExists_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.isSetSuccess()) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeBool(struct.success);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ire != null) {
+ oprot.writeFieldBegin(IRE_FIELD_DESC);
+ struct.ire.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ace != null) {
+ oprot.writeFieldBegin(ACE_FIELD_DESC);
+ struct.ace.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ase != null) {
+ oprot.writeFieldBegin(ASE_FIELD_DESC);
+ struct.ase.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ae != null) {
+ oprot.writeFieldBegin(AE_FIELD_DESC);
+ struct.ae.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class isUserExists_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public isUserExists_resultTupleScheme getScheme() {
+ return new isUserExists_resultTupleScheme();
+ }
+ }
+
+ private static class isUserExists_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<isUserExists_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, isUserExists_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetIre()) {
+ optionals.set(1);
+ }
+ if (struct.isSetAce()) {
+ optionals.set(2);
+ }
+ if (struct.isSetAse()) {
+ optionals.set(3);
+ }
+ if (struct.isSetAe()) {
+ optionals.set(4);
+ }
+ oprot.writeBitSet(optionals, 5);
+ if (struct.isSetSuccess()) {
+ oprot.writeBool(struct.success);
+ }
+ if (struct.isSetIre()) {
+ struct.ire.write(oprot);
+ }
+ if (struct.isSetAce()) {
+ struct.ace.write(oprot);
+ }
+ if (struct.isSetAse()) {
+ struct.ase.write(oprot);
+ }
+ if (struct.isSetAe()) {
+ struct.ae.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, isUserExists_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(5);
+ if (incoming.get(0)) {
+ struct.success = iprot.readBool();
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
+ struct.ire.read(iprot);
+ struct.setIreIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.ace = new org.apache.airavata.model.error.AiravataClientException();
+ struct.ace.read(iprot);
+ struct.setAceIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
+ struct.ase.read(iprot);
+ struct.setAseIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.ae = new org.apache.airavata.model.error.AuthorizationException();
+ struct.ae.read(iprot);
+ struct.setAeIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ public static class addGateway_args implements org.apache.thrift.TBase<addGateway_args, addGateway_args._Fields>, java.io.Serializable, Cloneable, Comparable<addGateway_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addGateway_args");
+
+ private static final org.apache.thrift.protocol.TField AUTHZ_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("authzToken", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField GATEWAY_FIELD_DESC = new org.apache.thrift.protocol.TField("gateway", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addGateway_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addGateway_argsTupleSchemeFactory();
+
+ public org.apache.airavata.model.security.AuthzToken authzToken; // required
+ public org.apache.airavata.model.workspace.Gateway gateway; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ AUTHZ_TOKEN((short)1, "authzToken"),
+ GATEWAY((short)2, "gateway");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // AUTHZ_TOKEN
+ return AUTHZ_TOKEN;
+ case 2: // GATEWAY
+ return GATEWAY;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.AUTHZ_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authzToken", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.security.AuthzToken.class)));
+ tmpMap.put(_Fields.GATEWAY, new org.apache.thrift.meta_data.FieldMetaData("gateway", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Gateway.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addGateway_args.class, metaDataMap);
+ }
+
+ public addGateway_args() {
+ }
+
+ public addGateway_args(
+ org.apache.airavata.model.security.AuthzToken authzToken,
+ org.apache.airavata.model.workspace.Gateway gateway)
+ {
+ this();
+ this.authzToken = authzToken;
+ this.gateway = gateway;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public addGateway_args(addGateway_args other) {
+ if (other.isSetAuthzToken()) {
+ this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken);
+ }
+ if (other.isSetGateway()) {
+ this.gateway = new org.apache.airavata.model.workspace.Gateway(other.gateway);
+ }
+ }
+
+ public addGateway_args deepCopy() {
+ return new addGateway_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.authzToken = null;
+ this.gateway = null;
+ }
+
+ public org.apache.airavata.model.security.AuthzToken getAuthzToken() {
+ return this.authzToken;
+ }
+
+ public addGateway_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) {
+ this.authzToken = authzToken;
+ return this;
+ }
+
+ public void unsetAuthzToken() {
+ this.authzToken = null;
+ }
+
+ /** Returns true if field authzToken is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthzToken() {
+ return this.authzToken != null;
+ }
+
+ public void setAuthzTokenIsSet(boolean value) {
+ if (!value) {
+ this.authzToken = null;
+ }
+ }
+
+ public org.apache.airavata.model.workspace.Gateway getGateway() {
+ return this.gateway;
+ }
+
+ public addGateway_args setGateway(org.apache.airavata.model.workspace.Gateway gateway) {
+ this.gateway = gateway;
+ return this;
+ }
+
+ public void unsetGateway() {
+ this.gateway = null;
+ }
+
+ /** Returns true if field gateway is set (has been assigned a value) and false otherwise */
+ public boolean isSetGateway() {
+ return this.gateway != null;
+ }
+
+ public void setGatewayIsSet(boolean value) {
+ if (!value) {
+ this.gateway = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ if (value == null) {
+ unsetAuthzToken();
+ } else {
+ setAuthzToken((org.apache.airavata.model.security.AuthzToken)value);
+ }
+ break;
+
+ case GATEWAY:
+ if (value == null) {
+ unsetGateway();
+ } else {
+ setGateway((org.apache.airavata.model.workspace.Gateway)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return getAuthzToken();
+
+ case GATEWAY:
+ return getGateway();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return isSetAuthzToken();
+ case GATEWAY:
+ return isSetGateway();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof addGateway_args)
+ return this.equals((addGateway_args)that);
+ return false;
+ }
+
+ public boolean equals(addGateway_args that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_authzToken = true && this.isSetAuthzToken();
+ boolean that_present_authzToken = true && that.isSetAuthzToken();
+ if (this_present_authzToken || that_present_authzToken) {
+ if (!(this_present_authzToken && that_present_authzToken))
+ return false;
+ if (!this.authzToken.equals(that.authzToken))
+ return false;
+ }
+
+ boolean this_present_gateway = true && this.isSetGateway();
+ boolean that_present_gateway = true && that.isSetGateway();
+ if (this_present_gateway || that_present_gateway) {
+ if (!(this_present_gateway && that_present_gateway))
+ return false;
+ if (!this.gateway.equals(that.gateway))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetAuthzToken()) ? 131071 : 524287);
+ if (isSetAuthzToken())
+ hashCode = hashCode * 8191 + authzToken.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetGateway()) ? 131071 : 524287);
+ if (isSetGateway())
+ hashCode = hashCode * 8191 + gateway.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(addGateway_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.valueOf(isSetAuthzToken()).compareTo(other.isSetAuthzToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthzToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzToken, other.authzToken);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetGateway()).compareTo(other.isSetGateway());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetGateway()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gateway, other.gateway);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("addGateway_args(");
+ boolean first = true;
+
+ sb.append("authzToken:");
+ if (this.authzToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authzToken);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("gateway:");
+ if (this.gateway == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.gateway);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (authzToken == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzToken' was not present! Struct: " + toString());
+ }
+ if (gateway == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'gateway' was not present! Struct: " + toString());
+ }
+ // check for sub-struct validity
+ if (authzToken != null) {
+ authzToken.validate();
+ }
+ if (gateway != null) {
+ gateway.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class addGateway_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addGateway_argsStandardScheme getScheme() {
+ return new addGateway_argsStandardScheme();
+ }
+ }
+
+ private static class addGateway_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<addGateway_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, addGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // AUTHZ_TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // GATEWAY
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.gateway = new org.apache.airavata.model.workspace.Gateway();
+ struct.gateway.read(iprot);
+ struct.setGatewayIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, addGateway_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.authzToken != null) {
+ oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC);
+ struct.authzToken.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.gateway != null) {
+ oprot.writeFieldBegin(GATEWAY_FIELD_DESC);
+ struct.gateway.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class addGateway_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addGateway_argsTupleScheme getScheme() {
+ return new addGateway_argsTupleScheme();
+ }
+ }
+
+ private static class addGateway_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<addGateway_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, addGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken.write(oprot);
+ struct.gateway.write(oprot);
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, addGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ struct.gateway = new org.apache.airavata.model.workspace.Gateway();
+ struct.gateway.read(iprot);
+ struct.setGatewayIsSet(true);
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ public static class addGateway_result implements org.apache.thrift.TBase<addGateway_result, addGateway_result._Fields>, java.io.Serializable, Cloneable, Comparable<addGateway_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addGateway_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
+ private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+ private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+ private static final org.apache.thrift.protocol.TField AE_FIELD_DESC = new org.apache.thrift.protocol.TField("ae", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new addGateway_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new addGateway_resultTupleSchemeFactory();
+
+ public java.lang.String success; // required
+ public org.apache.airavata.model.error.InvalidRequestException ire; // required
+ public org.apache.airavata.model.error.AiravataClientException ace; // required
+ public org.apache.airavata.model.error.AiravataSystemException ase; // required
+ public org.apache.airavata.model.error.AuthorizationException ae; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ IRE((short)1, "ire"),
+ ACE((short)2, "ace"),
+ ASE((short)3, "ase"),
+ AE((short)4, "ae");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // IRE
+ return IRE;
+ case 2: // ACE
+ return ACE;
+ case 3: // ASE
+ return ASE;
+ case 4: // AE
+ return AE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.InvalidRequestException.class)));
+ tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataClientException.class)));
+ tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataSystemException.class)));
+ tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AuthorizationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addGateway_result.class, metaDataMap);
+ }
+
+ public addGateway_result() {
+ }
+
+ public addGateway_result(
+ java.lang.String success,
+ org.apache.airavata.model.error.InvalidRequestException ire,
+ org.apache.airavata.model.error.AiravataClientException ace,
+ org.apache.airavata.model.error.AiravataSystemException ase,
+ org.apache.airavata.model.error.AuthorizationException ae)
+ {
+ this();
+ this.success = success;
+ this.ire = ire;
+ this.ace = ace;
+ this.ase = ase;
+ this.ae = ae;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public addGateway_result(addGateway_result other) {
+ if (other.isSetSuccess()) {
+ this.success = other.success;
+ }
+ if (other.isSetIre()) {
+ this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire);
+ }
+ if (other.isSetAce()) {
+ this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace);
+ }
+ if (other.isSetAse()) {
+ this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase);
+ }
+ if (other.isSetAe()) {
+ this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae);
+ }
+ }
+
+ public addGateway_result deepCopy() {
+ return new addGateway_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ace = null;
+ this.ase = null;
+ this.ae = null;
+ }
+
+ public java.lang.String getSuccess() {
+ return this.success;
+ }
+
+ public addGateway_result setSuccess(java.lang.String success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.InvalidRequestException getIre() {
+ return this.ire;
+ }
+
+ public addGateway_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) {
+ this.ire = ire;
+ return this;
+ }
+
+ public void unsetIre() {
+ this.ire = null;
+ }
+
+ /** Returns true if field ire is set (has been assigned a value) and false otherwise */
+ public boolean isSetIre() {
+ return this.ire != null;
+ }
+
+ public void setIreIsSet(boolean value) {
+ if (!value) {
+ this.ire = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataClientException getAce() {
+ return this.ace;
+ }
+
+ public addGateway_result setAce(org.apache.airavata.model.error.AiravataClientException ace) {
+ this.ace = ace;
+ return this;
+ }
+
+ public void unsetAce() {
+ this.ace = null;
+ }
+
+ /** Returns true if field ace is set (has been assigned a value) and false otherwise */
+ public boolean isSetAce() {
+ return this.ace != null;
+ }
+
+ public void setAceIsSet(boolean value) {
+ if (!value) {
+ this.ace = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataSystemException getAse() {
+ return this.ase;
+ }
+
+ public addGateway_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) {
+ this.ase = ase;
+ return this;
+ }
+
+ public void unsetAse() {
+ this.ase = null;
+ }
+
+ /** Returns true if field ase is set (has been assigned a value) and false otherwise */
+ public boolean isSetAse() {
+ return this.ase != null;
+ }
+
+ public void setAseIsSet(boolean value) {
+ if (!value) {
+ this.ase = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AuthorizationException getAe() {
+ return this.ae;
+ }
+
+ public addGateway_result setAe(org.apache.airavata.model.error.AuthorizationException ae) {
+ this.ae = ae;
+ return this;
+ }
+
+ public void unsetAe() {
+ this.ae = null;
+ }
+
+ /** Returns true if field ae is set (has been assigned a value) and false otherwise */
+ public boolean isSetAe() {
+ return this.ae != null;
+ }
+
+ public void setAeIsSet(boolean value) {
+ if (!value) {
+ this.ae = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((java.lang.String)value);
+ }
+ break;
+
+ case IRE:
+ if (value == null) {
+ unsetIre();
+ } else {
+ setIre((org.apache.airavata.model.error.InvalidRequestException)value);
+ }
+ break;
+
+ case ACE:
+ if (value == null) {
+ unsetAce();
+ } else {
+ setAce((org.apache.airavata.model.error.AiravataClientException)value);
+ }
+ break;
+
+ case ASE:
+ if (value == null) {
+ unsetAse();
+ } else {
+ setAse((org.apache.airavata.model.error.AiravataSystemException)value);
+ }
+ break;
+
+ case AE:
+ if (value == null) {
+ unsetAe();
+ } else {
+ setAe((org.apache.airavata.model.error.AuthorizationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case IRE:
+ return getIre();
+
+ case ACE:
+ return getAce();
+
+ case ASE:
+ return getAse();
+
+ case AE:
+ return getAe();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case IRE:
+ return isSetIre();
+ case ACE:
+ return isSetAce();
+ case ASE:
+ return isSetAse();
+ case AE:
+ return isSetAe();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof addGateway_result)
+ return this.equals((addGateway_result)that);
+ return false;
+ }
+
+ public boolean equals(addGateway_result that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_success = true && this.isSetSuccess();
+ boolean that_present_success = true && that.isSetSuccess();
+ if (this_present_success || that_present_success) {
+ if (!(this_present_success && that_present_success))
+ return false;
+ if (!this.success.equals(that.success))
+ return false;
+ }
+
+ boolean this_present_ire = true && this.isSetIre();
+ boolean that_present_ire = true && that.isSetIre();
+ if (this_present_ire || that_present_ire) {
+ if (!(this_present_ire && that_present_ire))
+ return false;
+ if (!this.ire.equals(that.ire))
+ return false;
+ }
+
+ boolean this_present_ace = true && this.isSetAce();
+ boolean that_present_ace = true && that.isSetAce();
+ if (this_present_ace || that_present_ace) {
+ if (!(this_present_ace && that_present_ace))
+ return false;
+ if (!this.ace.equals(that.ace))
+ return false;
+ }
+
+ boolean this_present_ase = true && this.isSetAse();
+ boolean that_present_ase = true && that.isSetAse();
+ if (this_present_ase || that_present_ase) {
+ if (!(this_present_ase && that_present_ase))
+ return false;
+ if (!this.ase.equals(that.ase))
+ return false;
+ }
+
+ boolean this_present_ae = true && this.isSetAe();
+ boolean that_present_ae = true && that.isSetAe();
+ if (this_present_ae || that_present_ae) {
+ if (!(this_present_ae && that_present_ae))
+ return false;
+ if (!this.ae.equals(that.ae))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetSuccess()) ? 131071 : 524287);
+ if (isSetSuccess())
+ hashCode = hashCode * 8191 + success.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetIre()) ? 131071 : 524287);
+ if (isSetIre())
+ hashCode = hashCode * 8191 + ire.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAce()) ? 131071 : 524287);
+ if (isSetAce())
+ hashCode = hashCode * 8191 + ace.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAse()) ? 131071 : 524287);
+ if (isSetAse())
+ hashCode = hashCode * 8191 + ase.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetAe()) ? 131071 : 524287);
+ if (isSetAe())
+ hashCode = hashCode * 8191 + ae.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(addGateway_result other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetSuccess()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetIre()).compareTo(other.isSetIre());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetIre()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAce()).compareTo(other.isSetAce());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAce()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAse()).compareTo(other.isSetAse());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAse()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetAe()).compareTo(other.isSetAe());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAe()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ae, other.ae);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("addGateway_result(");
+ boolean first = true;
+
+ sb.append("success:");
+ if (this.success == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.success);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ire:");
+ if (this.ire == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ire);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ace:");
+ if (this.ace == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ace);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ase:");
+ if (this.ase == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ase);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("ae:");
+ if (this.ae == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.ae);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ // check for sub-struct validity
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class addGateway_resultStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addGateway_resultStandardScheme getScheme() {
+ return new addGateway_resultStandardScheme();
+ }
+ }
+
+ private static class addGateway_resultStandardScheme extends org.apache.thrift.scheme.StandardScheme<addGateway_result> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, addGateway_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 0: // SUCCESS
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.success = iprot.readString();
+ struct.setSuccessIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 1: // IRE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
+ struct.ire.read(iprot);
+ struct.setIreIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // ACE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ace = new org.apache.airavata.model.error.AiravataClientException();
+ struct.ace.read(iprot);
+ struct.setAceIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 3: // ASE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
+ struct.ase.read(iprot);
+ struct.setAseIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 4: // AE
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.ae = new org.apache.airavata.model.error.AuthorizationException();
+ struct.ae.read(iprot);
+ struct.setAeIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, addGateway_result struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.success != null) {
+ oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+ oprot.writeString(struct.success);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ire != null) {
+ oprot.writeFieldBegin(IRE_FIELD_DESC);
+ struct.ire.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ace != null) {
+ oprot.writeFieldBegin(ACE_FIELD_DESC);
+ struct.ace.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ase != null) {
+ oprot.writeFieldBegin(ASE_FIELD_DESC);
+ struct.ase.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.ae != null) {
+ oprot.writeFieldBegin(AE_FIELD_DESC);
+ struct.ae.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class addGateway_resultTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public addGateway_resultTupleScheme getScheme() {
+ return new addGateway_resultTupleScheme();
+ }
+ }
+
+ private static class addGateway_resultTupleScheme extends org.apache.thrift.scheme.TupleScheme<addGateway_result> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, addGateway_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet optionals = new java.util.BitSet();
+ if (struct.isSetSuccess()) {
+ optionals.set(0);
+ }
+ if (struct.isSetIre()) {
+ optionals.set(1);
+ }
+ if (struct.isSetAce()) {
+ optionals.set(2);
+ }
+ if (struct.isSetAse()) {
+ optionals.set(3);
+ }
+ if (struct.isSetAe()) {
+ optionals.set(4);
+ }
+ oprot.writeBitSet(optionals, 5);
+ if (struct.isSetSuccess()) {
+ oprot.writeString(struct.success);
+ }
+ if (struct.isSetIre()) {
+ struct.ire.write(oprot);
+ }
+ if (struct.isSetAce()) {
+ struct.ace.write(oprot);
+ }
+ if (struct.isSetAse()) {
+ struct.ase.write(oprot);
+ }
+ if (struct.isSetAe()) {
+ struct.ae.write(oprot);
+ }
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, addGateway_result struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ java.util.BitSet incoming = iprot.readBitSet(5);
+ if (incoming.get(0)) {
+ struct.success = iprot.readString();
+ struct.setSuccessIsSet(true);
+ }
+ if (incoming.get(1)) {
+ struct.ire = new org.apache.airavata.model.error.InvalidRequestException();
+ struct.ire.read(iprot);
+ struct.setIreIsSet(true);
+ }
+ if (incoming.get(2)) {
+ struct.ace = new org.apache.airavata.model.error.AiravataClientException();
+ struct.ace.read(iprot);
+ struct.setAceIsSet(true);
+ }
+ if (incoming.get(3)) {
+ struct.ase = new org.apache.airavata.model.error.AiravataSystemException();
+ struct.ase.read(iprot);
+ struct.setAseIsSet(true);
+ }
+ if (incoming.get(4)) {
+ struct.ae = new org.apache.airavata.model.error.AuthorizationException();
+ struct.ae.read(iprot);
+ struct.setAeIsSet(true);
+ }
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ public static class getAllUsersInGateway_args implements org.apache.thrift.TBase<getAllUsersInGateway_args, getAllUsersInGateway_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsersInGateway_args> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersInGateway_args");
+
+ private static final org.apache.thrift.protocol.TField AUTHZ_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("authzToken", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayId", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllUsersInGateway_argsStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllUsersInGateway_argsTupleSchemeFactory();
+
+ public org.apache.airavata.model.security.AuthzToken authzToken; // required
+ public java.lang.String gatewayId; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ AUTHZ_TOKEN((short)1, "authzToken"),
+ GATEWAY_ID((short)2, "gatewayId");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 1: // AUTHZ_TOKEN
+ return AUTHZ_TOKEN;
+ case 2: // GATEWAY_ID
+ return GATEWAY_ID;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.AUTHZ_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("authzToken", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.security.AuthzToken.class)));
+ tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.REQUIRED,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersInGateway_args.class, metaDataMap);
+ }
+
+ public getAllUsersInGateway_args() {
+ }
+
+ public getAllUsersInGateway_args(
+ org.apache.airavata.model.security.AuthzToken authzToken,
+ java.lang.String gatewayId)
+ {
+ this();
+ this.authzToken = authzToken;
+ this.gatewayId = gatewayId;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAllUsersInGateway_args(getAllUsersInGateway_args other) {
+ if (other.isSetAuthzToken()) {
+ this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken);
+ }
+ if (other.isSetGatewayId()) {
+ this.gatewayId = other.gatewayId;
+ }
+ }
+
+ public getAllUsersInGateway_args deepCopy() {
+ return new getAllUsersInGateway_args(this);
+ }
+
+ @Override
+ public void clear() {
+ this.authzToken = null;
+ this.gatewayId = null;
+ }
+
+ public org.apache.airavata.model.security.AuthzToken getAuthzToken() {
+ return this.authzToken;
+ }
+
+ public getAllUsersInGateway_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) {
+ this.authzToken = authzToken;
+ return this;
+ }
+
+ public void unsetAuthzToken() {
+ this.authzToken = null;
+ }
+
+ /** Returns true if field authzToken is set (has been assigned a value) and false otherwise */
+ public boolean isSetAuthzToken() {
+ return this.authzToken != null;
+ }
+
+ public void setAuthzTokenIsSet(boolean value) {
+ if (!value) {
+ this.authzToken = null;
+ }
+ }
+
+ public java.lang.String getGatewayId() {
+ return this.gatewayId;
+ }
+
+ public getAllUsersInGateway_args setGatewayId(java.lang.String gatewayId) {
+ this.gatewayId = gatewayId;
+ return this;
+ }
+
+ public void unsetGatewayId() {
+ this.gatewayId = null;
+ }
+
+ /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
+ public boolean isSetGatewayId() {
+ return this.gatewayId != null;
+ }
+
+ public void setGatewayIdIsSet(boolean value) {
+ if (!value) {
+ this.gatewayId = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ if (value == null) {
+ unsetAuthzToken();
+ } else {
+ setAuthzToken((org.apache.airavata.model.security.AuthzToken)value);
+ }
+ break;
+
+ case GATEWAY_ID:
+ if (value == null) {
+ unsetGatewayId();
+ } else {
+ setGatewayId((java.lang.String)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return getAuthzToken();
+
+ case GATEWAY_ID:
+ return getGatewayId();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case AUTHZ_TOKEN:
+ return isSetAuthzToken();
+ case GATEWAY_ID:
+ return isSetGatewayId();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getAllUsersInGateway_args)
+ return this.equals((getAllUsersInGateway_args)that);
+ return false;
+ }
+
+ public boolean equals(getAllUsersInGateway_args that) {
+ if (that == null)
+ return false;
+ if (this == that)
+ return true;
+
+ boolean this_present_authzToken = true && this.isSetAuthzToken();
+ boolean that_present_authzToken = true && that.isSetAuthzToken();
+ if (this_present_authzToken || that_present_authzToken) {
+ if (!(this_present_authzToken && that_present_authzToken))
+ return false;
+ if (!this.authzToken.equals(that.authzToken))
+ return false;
+ }
+
+ boolean this_present_gatewayId = true && this.isSetGatewayId();
+ boolean that_present_gatewayId = true && that.isSetGatewayId();
+ if (this_present_gatewayId || that_present_gatewayId) {
+ if (!(this_present_gatewayId && that_present_gatewayId))
+ return false;
+ if (!this.gatewayId.equals(that.gatewayId))
+ return false;
+ }
+
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ int hashCode = 1;
+
+ hashCode = hashCode * 8191 + ((isSetAuthzToken()) ? 131071 : 524287);
+ if (isSetAuthzToken())
+ hashCode = hashCode * 8191 + authzToken.hashCode();
+
+ hashCode = hashCode * 8191 + ((isSetGatewayId()) ? 131071 : 524287);
+ if (isSetGatewayId())
+ hashCode = hashCode * 8191 + gatewayId.hashCode();
+
+ return hashCode;
+ }
+
+ @Override
+ public int compareTo(getAllUsersInGateway_args other) {
+ if (!getClass().equals(other.getClass())) {
+ return getClass().getName().compareTo(other.getClass().getName());
+ }
+
+ int lastComparison = 0;
+
+ lastComparison = java.lang.Boolean.valueOf(isSetAuthzToken()).compareTo(other.isSetAuthzToken());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetAuthzToken()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzToken, other.authzToken);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ lastComparison = java.lang.Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId());
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ if (isSetGatewayId()) {
+ lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId);
+ if (lastComparison != 0) {
+ return lastComparison;
+ }
+ }
+ return 0;
+ }
+
+ public _Fields fieldForId(int fieldId) {
+ return _Fields.findByThriftId(fieldId);
+ }
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+ scheme(iprot).read(iprot, this);
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+ scheme(oprot).write(oprot, this);
+ }
+
+ @Override
+ public java.lang.String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder("getAllUsersInGateway_args(");
+ boolean first = true;
+
+ sb.append("authzToken:");
+ if (this.authzToken == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.authzToken);
+ }
+ first = false;
+ if (!first) sb.append(", ");
+ sb.append("gatewayId:");
+ if (this.gatewayId == null) {
+ sb.append("null");
+ } else {
+ sb.append(this.gatewayId);
+ }
+ first = false;
+ sb.append(")");
+ return sb.toString();
+ }
+
+ public void validate() throws org.apache.thrift.TException {
+ // check for required fields
+ if (authzToken == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzToken' was not present! Struct: " + toString());
+ }
+ if (gatewayId == null) {
+ throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString());
+ }
+ // check for sub-struct validity
+ if (authzToken != null) {
+ authzToken.validate();
+ }
+ }
+
+ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+ try {
+ write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
+ try {
+ read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+ } catch (org.apache.thrift.TException te) {
+ throw new java.io.IOException(te);
+ }
+ }
+
+ private static class getAllUsersInGateway_argsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public getAllUsersInGateway_argsStandardScheme getScheme() {
+ return new getAllUsersInGateway_argsStandardScheme();
+ }
+ }
+
+ private static class getAllUsersInGateway_argsStandardScheme extends org.apache.thrift.scheme.StandardScheme<getAllUsersInGateway_args> {
+
+ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUsersInGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TField schemeField;
+ iprot.readStructBegin();
+ while (true)
+ {
+ schemeField = iprot.readFieldBegin();
+ if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
+ break;
+ }
+ switch (schemeField.id) {
+ case 1: // AUTHZ_TOKEN
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ case 2: // GATEWAY_ID
+ if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+ struct.gatewayId = iprot.readString();
+ struct.setGatewayIdIsSet(true);
+ } else {
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ break;
+ default:
+ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+ }
+ iprot.readFieldEnd();
+ }
+ iprot.readStructEnd();
+
+ // check for required fields of primitive type, which can't be checked in the validate method
+ struct.validate();
+ }
+
+ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUsersInGateway_args struct) throws org.apache.thrift.TException {
+ struct.validate();
+
+ oprot.writeStructBegin(STRUCT_DESC);
+ if (struct.authzToken != null) {
+ oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC);
+ struct.authzToken.write(oprot);
+ oprot.writeFieldEnd();
+ }
+ if (struct.gatewayId != null) {
+ oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
+ oprot.writeString(struct.gatewayId);
+ oprot.writeFieldEnd();
+ }
+ oprot.writeFieldStop();
+ oprot.writeStructEnd();
+ }
+
+ }
+
+ private static class getAllUsersInGateway_argsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
+ public getAllUsersInGateway_argsTupleScheme getScheme() {
+ return new getAllUsersInGateway_argsTupleScheme();
+ }
+ }
+
+ private static class getAllUsersInGateway_argsTupleScheme extends org.apache.thrift.scheme.TupleScheme<getAllUsersInGateway_args> {
+
+ @Override
+ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUsersInGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken.write(oprot);
+ oprot.writeString(struct.gatewayId);
+ }
+
+ @Override
+ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUsersInGateway_args struct) throws org.apache.thrift.TException {
+ org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
+ struct.authzToken = new org.apache.airavata.model.security.AuthzToken();
+ struct.authzToken.read(iprot);
+ struct.setAuthzTokenIsSet(true);
+ struct.gatewayId = iprot.readString();
+ struct.setGatewayIdIsSet(true);
+ }
+ }
+
+ private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
+ return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
+ }
+ }
+
+ public static class getAllUsersInGateway_result implements org.apache.thrift.TBase<getAllUsersInGateway_result, getAllUsersInGateway_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllUsersInGateway_result> {
+ private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersInGateway_result");
+
+ private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
+ private static final org.apache.thrift.protocol.TField IRE_FIELD_DESC = new org.apache.thrift.protocol.TField("ire", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+ private static final org.apache.thrift.protocol.TField ACE_FIELD_DESC = new org.apache.thrift.protocol.TField("ace", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+ private static final org.apache.thrift.protocol.TField ASE_FIELD_DESC = new org.apache.thrift.protocol.TField("ase", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+ private static final org.apache.thrift.protocol.TField AE_FIELD_DESC = new org.apache.thrift.protocol.TField("ae", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+ private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new getAllUsersInGateway_resultStandardSchemeFactory();
+ private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new getAllUsersInGateway_resultTupleSchemeFactory();
+
+ public java.util.List<java.lang.String> success; // required
+ public org.apache.airavata.model.error.InvalidRequestException ire; // required
+ public org.apache.airavata.model.error.AiravataClientException ace; // required
+ public org.apache.airavata.model.error.AiravataSystemException ase; // required
+ public org.apache.airavata.model.error.AuthorizationException ae; // required
+
+ /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+ public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+ SUCCESS((short)0, "success"),
+ IRE((short)1, "ire"),
+ ACE((short)2, "ace"),
+ ASE((short)3, "ase"),
+ AE((short)4, "ae");
+
+ private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
+
+ static {
+ for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
+ byName.put(field.getFieldName(), field);
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, or null if its not found.
+ */
+ public static _Fields findByThriftId(int fieldId) {
+ switch(fieldId) {
+ case 0: // SUCCESS
+ return SUCCESS;
+ case 1: // IRE
+ return IRE;
+ case 2: // ACE
+ return ACE;
+ case 3: // ASE
+ return ASE;
+ case 4: // AE
+ return AE;
+ default:
+ return null;
+ }
+ }
+
+ /**
+ * Find the _Fields constant that matches fieldId, throwing an exception
+ * if it is not found.
+ */
+ public static _Fields findByThriftIdOrThrow(int fieldId) {
+ _Fields fields = findByThriftId(fieldId);
+ if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+ return fields;
+ }
+
+ /**
+ * Find the _Fields constant that matches name, or null if its not found.
+ */
+ public static _Fields findByName(java.lang.String name) {
+ return byName.get(name);
+ }
+
+ private final short _thriftId;
+ private final java.lang.String _fieldName;
+
+ _Fields(short thriftId, java.lang.String fieldName) {
+ _thriftId = thriftId;
+ _fieldName = fieldName;
+ }
+
+ public short getThriftFieldId() {
+ return _thriftId;
+ }
+
+ public java.lang.String getFieldName() {
+ return _fieldName;
+ }
+ }
+
+ // isset id assignments
+ public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+ static {
+ java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+ tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
+ new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+ tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.InvalidRequestException.class)));
+ tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataClientException.class)));
+ tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AiravataSystemException.class)));
+ tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT,
+ new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.error.AuthorizationException.class)));
+ metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
+ org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersInGateway_result.class, metaDataMap);
+ }
+
+ public getAllUsersInGateway_result() {
+ }
+
+ public getAllUsersInGateway_result(
+ java.util.List<java.lang.String> success,
+ org.apache.airavata.model.error.InvalidRequestException ire,
+ org.apache.airavata.model.error.AiravataClientException ace,
+ org.apache.airavata.model.error.AiravataSystemException ase,
+ org.apache.airavata.model.error.AuthorizationException ae)
+ {
+ this();
+ this.success = success;
+ this.ire = ire;
+ this.ace = ace;
+ this.ase = ase;
+ this.ae = ae;
+ }
+
+ /**
+ * Performs a deep copy on <i>other</i>.
+ */
+ public getAllUsersInGateway_result(getAllUsersInGateway_result other) {
+ if (other.isSetSuccess()) {
+ java.util.List<java.lang.String> __this__success = new java.util.ArrayList<java.lang.String>(other.success);
+ this.success = __this__success;
+ }
+ if (other.isSetIre()) {
+ this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire);
+ }
+ if (other.isSetAce()) {
+ this.ace = new org.apache.airavata.model.error.AiravataClientException(other.ace);
+ }
+ if (other.isSetAse()) {
+ this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase);
+ }
+ if (other.isSetAe()) {
+ this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae);
+ }
+ }
+
+ public getAllUsersInGateway_result deepCopy() {
+ return new getAllUsersInGateway_result(this);
+ }
+
+ @Override
+ public void clear() {
+ this.success = null;
+ this.ire = null;
+ this.ace = null;
+ this.ase = null;
+ this.ae = null;
+ }
+
+ public int getSuccessSize() {
+ return (this.success == null) ? 0 : this.success.size();
+ }
+
+ public java.util.Iterator<java.lang.String> getSuccessIterator() {
+ return (this.success == null) ? null : this.success.iterator();
+ }
+
+ public void addToSuccess(java.lang.String elem) {
+ if (this.success == null) {
+ this.success = new java.util.ArrayList<java.lang.String>();
+ }
+ this.success.add(elem);
+ }
+
+ public java.util.List<java.lang.String> getSuccess() {
+ return this.success;
+ }
+
+ public getAllUsersInGateway_result setSuccess(java.util.List<java.lang.String> success) {
+ this.success = success;
+ return this;
+ }
+
+ public void unsetSuccess() {
+ this.success = null;
+ }
+
+ /** Returns true if field success is set (has been assigned a value) and false otherwise */
+ public boolean isSetSuccess() {
+ return this.success != null;
+ }
+
+ public void setSuccessIsSet(boolean value) {
+ if (!value) {
+ this.success = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.InvalidRequestException getIre() {
+ return this.ire;
+ }
+
+ public getAllUsersInGateway_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) {
+ this.ire = ire;
+ return this;
+ }
+
+ public void unsetIre() {
+ this.ire = null;
+ }
+
+ /** Returns true if field ire is set (has been assigned a value) and false otherwise */
+ public boolean isSetIre() {
+ return this.ire != null;
+ }
+
+ public void setIreIsSet(boolean value) {
+ if (!value) {
+ this.ire = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataClientException getAce() {
+ return this.ace;
+ }
+
+ public getAllUsersInGateway_result setAce(org.apache.airavata.model.error.AiravataClientException ace) {
+ this.ace = ace;
+ return this;
+ }
+
+ public void unsetAce() {
+ this.ace = null;
+ }
+
+ /** Returns true if field ace is set (has been assigned a value) and false otherwise */
+ public boolean isSetAce() {
+ return this.ace != null;
+ }
+
+ public void setAceIsSet(boolean value) {
+ if (!value) {
+ this.ace = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AiravataSystemException getAse() {
+ return this.ase;
+ }
+
+ public getAllUsersInGateway_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) {
+ this.ase = ase;
+ return this;
+ }
+
+ public void unsetAse() {
+ this.ase = null;
+ }
+
+ /** Returns true if field ase is set (has been assigned a value) and false otherwise */
+ public boolean isSetAse() {
+ return this.ase != null;
+ }
+
+ public void setAseIsSet(boolean value) {
+ if (!value) {
+ this.ase = null;
+ }
+ }
+
+ public org.apache.airavata.model.error.AuthorizationException getAe() {
+ return this.ae;
+ }
+
+ public getAllUsersInGateway_result setAe(org.apache.airavata.model.error.AuthorizationException ae) {
+ this.ae = ae;
+ return this;
+ }
+
+ public void unsetAe() {
+ this.ae = null;
+ }
+
+ /** Returns true if field ae is set (has been assigned a value) and false otherwise */
+ public boolean isSetAe() {
+ return this.ae != null;
+ }
+
+ public void setAeIsSet(boolean value) {
+ if (!value) {
+ this.ae = null;
+ }
+ }
+
+ public void setFieldValue(_Fields field, java.lang.Object value) {
+ switch (field) {
+ case SUCCESS:
+ if (value == null) {
+ unsetSuccess();
+ } else {
+ setSuccess((java.util.List<java.lang.String>)value);
+ }
+ break;
+
+ case IRE:
+ if (value == null) {
+ unsetIre();
+ } else {
+ setIre((org.apache.airavata.model.error.InvalidRequestException)value);
+ }
+ break;
+
+ case ACE:
+ if (value == null) {
+ unsetAce();
+ } else {
+ setAce((org.apache.airavata.model.error.AiravataClientException)value);
+ }
+ break;
+
+ case ASE:
+ if (value == null) {
+ unsetAse();
+ } else {
+ setAse((org.apache.airavata.model.error.AiravataSystemException)value);
+ }
+ break;
+
+ case AE:
+ if (value == null) {
+ unsetAe();
+ } else {
+ setAe((org.apache.airavata.model.error.AuthorizationException)value);
+ }
+ break;
+
+ }
+ }
+
+ public java.lang.Object getFieldValue(_Fields field) {
+ switch (field) {
+ case SUCCESS:
+ return getSuccess();
+
+ case IRE:
+ return getIre();
+
+ case ACE:
+ return getAce();
+
+ case ASE:
+ return getAse();
+
+ case AE:
+ return getAe();
+
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+ public boolean isSet(_Fields field) {
+ if (field == null) {
+ throw new java.lang.IllegalArgumentException();
+ }
+
+ switch (field) {
+ case SUCCESS:
+ return isSetSuccess();
+ case IRE:
+ return isSetIre();
+ case ACE:
+ return isSetAce();
+ case ASE:
+ return isSetAse();
+ case AE:
+ return isSetAe();
+ }
+ throw new java.lang.IllegalStateException();
+ }
+
+ @Override
+ public boolean equals(java.lang.Object that) {
+ if (that == null)
+ return false;
+ if (that instanceof getAllUsersInGateway_result)
+ return this.equals((getAllUsersInGateway_result)that);
+ return false;
+ }
+
+ public boolean equals(getAllUsersInGateway_result that) {
+ if (that == null)
+ return false;
+ if (this == that)
... 145437 lines suppressed ...