From 1f7b55d2cb7b6eab569d398d519cecf0467920ef Mon Sep 17 00:00:00 2001 From: hasinitg Date: Fri, 24 Jul 2015 21:11:17 +0530 Subject: [PATCH 01/18] fixing compiling errors in tests. --- .../handler/AiravataServerHandlerTest.java | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java index cbe694fd5f..88db1590e7 100644 --- a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java +++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java @@ -31,6 +31,7 @@ import org.apache.airavata.model.experiment.ExperimentSummaryModel; import org.apache.airavata.model.experiment.UserConfigurationDataModel; import org.apache.airavata.model.scheduling.ComputationalResourceSchedulingModel; +import org.apache.airavata.model.security.AuthzToken; import org.apache.airavata.model.status.ExperimentState; import org.apache.airavata.model.workspace.Gateway; import org.apache.airavata.model.workspace.Project; @@ -62,7 +63,7 @@ public static void setupBeforeClass() throws Exception{ Gateway gateway = new Gateway(); gateway.setGatewayId(gatewayId); - airavataServerHandler.addGateway(gateway); + airavataServerHandler.addGateway(new AuthzToken(""), gateway); } @AfterClass @@ -83,7 +84,7 @@ public void testProject(){ project.setOwner("TestUser"+TAG); project.setName("TestProject"+TAG); project.setDescription("This is a test project"+TAG); - String projectId1 = airavataServerHandler.createProject(gatewayId, project); + String projectId1 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId, project); Assert.assertNotNull(projectId1); //testing the update of a project @@ -92,10 +93,10 @@ public void testProject(){ updatedProject.setOwner("TestUser"+TAG); updatedProject.setName("UpdatedTestProject"+TAG); updatedProject.setDescription("This is an updated test project"+TAG); - airavataServerHandler.updateProject(projectId1, updatedProject); + airavataServerHandler.updateProject(new AuthzToken(""), projectId1, updatedProject); //testing project retrieval - Project retrievedProject = airavataServerHandler.getProject(projectId1); + Project retrievedProject = airavataServerHandler.getProject(new AuthzToken(""), projectId1); Assert.assertEquals(updatedProject.getProjectID(), retrievedProject.getProjectID()); Assert.assertEquals(updatedProject.getOwner(), retrievedProject.getOwner()); Assert.assertEquals(updatedProject.getName(), retrievedProject.getName()); @@ -109,28 +110,28 @@ public void testProject(){ project.setOwner("TestUser"+TAG); project.setName("Project Terrible"+TAG); project.setDescription("This is a test project_2"+TAG); - String projectId2 = airavataServerHandler.createProject(gatewayId, project); + String projectId2 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId, project); Assert.assertNotNull(projectId2); project = new Project(); project.setOwner("TestUser"+TAG); project.setName("Project Funny"+TAG); project.setDescription("This is a test project_3"+TAG); - String projectId3 = airavataServerHandler.createProject(gatewayId, project); + String projectId3 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId, project); Assert.assertNotNull(projectId3); project = new Project(); project.setOwner("TestUser"+TAG); project.setName("Project Stupid"+TAG); project.setDescription("This is a test project_4"+TAG); - String projectId4 = airavataServerHandler.createProject(gatewayId, project); + String projectId4 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId, project); Assert.assertNotNull(projectId4); project = new Project(); project.setOwner("TestUser"+TAG); project.setName("Project Boring"+TAG); project.setDescription("This is a test project_5"+TAG); - String projectId5 = airavataServerHandler.createProject(gatewayId, project); + String projectId5 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId, project); Assert.assertNotNull(projectId5); //search project by project name @@ -138,7 +139,7 @@ public void testProject(){ "TestUser"+TAG, "Terrible"+TAG); Assert.assertTrue(list.size()==1); //with pagination - list = airavataServerHandler.searchProjectsByProjectNameWithPagination(gatewayId, + list = airavataServerHandler.searchProjectsByProjectNameWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, "Project", 2, 1); Assert.assertTrue(list.size()==2); @@ -147,7 +148,7 @@ public void testProject(){ "test project_2"+TAG); Assert.assertTrue(list.size()==1); //with pagination - list = airavataServerHandler.searchProjectsByProjectDescWithPagination(gatewayId, + list = airavataServerHandler.searchProjectsByProjectDescWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, "test", 2, 1); Assert.assertTrue(list.size()==2); @@ -155,7 +156,7 @@ public void testProject(){ list = airavataServerHandler.getAllUserProjects(gatewayId, "TestUser"+TAG); Assert.assertTrue(list.size()==5); //with pagination - list = airavataServerHandler.getAllUserProjectsWithPagination(gatewayId, "TestUser" + TAG, 2, 2); + list = airavataServerHandler.getAllUserProjectsWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, 2, 2); Assert.assertTrue(list.size()==2); Project project1 = list.get(0); Project project2 = list.get(1); @@ -181,7 +182,7 @@ public void testExperiment(){ project.setOwner("TestUser"+TAG); project.setName("TestProject"+TAG); project.setDescription("This is a test project"+TAG); - String projectId1 = airavataServerHandler.createProject(gatewayId,project); + String projectId1 = airavataServerHandler.createProject(new AuthzToken(""), gatewayId,project); Assert.assertNotNull(projectId1); //creating sample echo experiment. assumes echo application is already defined @@ -210,11 +211,11 @@ public void testExperiment(){ experiment.setUserConfigurationData(userConfigurationData); experiment.addToExperimentInputs(inputDataObjectType); - String experimentId1 = airavataServerHandler.createExperiment(gatewayId, experiment); + String experimentId1 = airavataServerHandler.createExperiment(new AuthzToken(""), gatewayId, experiment); Assert.assertNotNull(experimentId1); //retrieving the stored experiment - ExperimentModel retrievedExperiment = airavataServerHandler.getExperiment(experimentId1); + ExperimentModel retrievedExperiment = airavataServerHandler.getExperiment(new AuthzToken(""), experimentId1); Assert.assertNotNull(retrievedExperiment); Assert.assertEquals(retrievedExperiment.getProjectId(), experiment.getProjectId()); Assert.assertEquals(retrievedExperiment.getDescription(), experiment.getDescription()); @@ -229,7 +230,7 @@ public void testExperiment(){ outputDataObjectType.setName("Output_to_Echo"); outputDataObjectType.setValue("Hello World"); experiment.addToExperimentOutputs(outputDataObjectType); - airavataServerHandler.updateExperiment(experimentId1, experiment); + airavataServerHandler.updateExperiment(new AuthzToken(""), experimentId1, experiment); //creating more experiments experiment = new ExperimentModel(); @@ -241,7 +242,7 @@ public void testExperiment(){ experiment.setUserConfigurationData(userConfigurationData); experiment.addToExperimentInputs(inputDataObjectType); - String experimentId2 = airavataServerHandler.createExperiment(gatewayId, experiment); + String experimentId2 = airavataServerHandler.createExperiment(new AuthzToken(""), gatewayId, experiment); Assert.assertNotNull(experimentId2); experiment = new ExperimentModel(); @@ -253,7 +254,7 @@ public void testExperiment(){ experiment.setUserConfigurationData(userConfigurationData); experiment.addToExperimentInputs(inputDataObjectType); - String experimentId3 = airavataServerHandler.createExperiment(gatewayId, experiment); + String experimentId3 = airavataServerHandler.createExperiment(new AuthzToken(""), gatewayId, experiment); Assert.assertNotNull(experimentId3); //searching experiments by name @@ -261,7 +262,7 @@ public void testExperiment(){ "TestUser" + TAG, "Experiment2"); Assert.assertTrue(results.size()==1); //with pagination - results = airavataServerHandler.searchExperimentsByNameWithPagination(gatewayId, + results = airavataServerHandler.searchExperimentsByNameWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, "Experi", 2, 0); Assert.assertTrue(results.size()==2); @@ -271,7 +272,7 @@ public void testExperiment(){ gatewayId, "TestUser" + TAG, time-10000, time+1000); Assert.assertTrue(results.size()==3); //with pagination - results = airavataServerHandler.searchExperimentsByCreationTimeWithPagination( + results = airavataServerHandler.searchExperimentsByCreationTimeWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, time-10000, time+1000, 2, 1); Assert.assertTrue(results.size()==2); @@ -281,7 +282,7 @@ public void testExperiment(){ gatewayId, "TestUser" + TAG, experimentState); Assert.assertTrue(results.size() == 3); //with pagination - results = airavataServerHandler.searchExperimentsByStatusWithPagination( + results = airavataServerHandler.searchExperimentsByStatusWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, experimentState, 2, 0); Assert.assertTrue(results.size()==2); @@ -290,7 +291,7 @@ public void testExperiment(){ gatewayId, "TestUser" + TAG, "Ech"); Assert.assertTrue(results.size() == 3); //with pagination - results = airavataServerHandler.searchExperimentsByApplicationWithPagination( + results = airavataServerHandler.searchExperimentsByApplicationWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, "Ech", 2, 0); Assert.assertTrue(results.size()==2); @@ -299,7 +300,7 @@ public void testExperiment(){ gatewayId, "TestUser" + TAG, "exp"); Assert.assertTrue(results.size() == 3); //with pagination - results = airavataServerHandler.searchExperimentsByDescWithPagination( + results = airavataServerHandler.searchExperimentsByDescWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, "exp", 2, 0); Assert.assertTrue(results.size()==2); @@ -308,14 +309,14 @@ public void testExperiment(){ List list = airavataServerHandler.getAllExperimentsInProject(projectId1); Assert.assertTrue(list.size()==3); //with pagination - list = airavataServerHandler.getAllExperimentsInProjectWithPagination(projectId1, 2, 1); + list = airavataServerHandler.getAllExperimentsInProjectWithPagination(new AuthzToken(""), projectId1, 2, 1); Assert.assertTrue(list.size()==2); //getting all user experiments list = airavataServerHandler.getAllUserExperiments(gatewayId, "TestUser" + TAG); Assert.assertTrue(list.size() == 3); //with pagination - list = airavataServerHandler.getAllUserExperimentsWithPagination( + list = airavataServerHandler.getAllUserExperimentsWithPagination(new AuthzToken(""), gatewayId, "TestUser" + TAG, 2, 0); //testing time ordering Assert.assertTrue(list.size()==2); From 86eac5d929eeb9dbbeb09be02e46054f69083c3c Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Fri, 31 Jul 2015 13:20:10 -0400 Subject: [PATCH 02/18] Added AdvancedSCPDataStageTask for both input and output data staging with remote client --- .../apache/airavata/gfac/impl/Factory.java | 78 ++++++ .../impl/task/AdvancedSCPDataStageTask.java | 231 ++++++++++++++++++ .../gfac/impl/task/SCPDataStageTask.java | 12 +- 3 files changed, 319 insertions(+), 2 deletions(-) create mode 100644 modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/Factory.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/Factory.java index a5fa5ed154..4bfb6cf2c8 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/Factory.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/Factory.java @@ -21,6 +21,10 @@ package org.apache.airavata.gfac.impl; import com.google.common.eventbus.EventBus; +import com.jcraft.jsch.JSch; +import com.jcraft.jsch.JSchException; +import com.jcraft.jsch.Session; +import com.jcraft.jsch.UserInfo; import org.apache.airavata.common.exception.AiravataException; import org.apache.airavata.common.exception.ApplicationSettingsException; import org.apache.airavata.common.utils.LocalEventPublisher; @@ -103,6 +107,7 @@ public abstract class Factory { private static Map resources = new HashMap<>(); private static Map jobMonitorServices = new HashMap<>(); private static RabbitMQProcessLaunchConsumer processLaunchConsumer; + private static Map sessionMap = new HashMap<>(); public static GFacEngine getGFacEngine() throws GFacException { if (engine == null) { @@ -299,4 +304,77 @@ public static JobMonitor getMonitorService(MonitorMode monitorMode) throws Airav return jobMonitor; } + public static Session getSSHSession(AuthenticationInfo authenticationInfo, ServerInfo serverInfo) throws AiravataException { + SSHKeyAuthentication authentication = null; + String key = serverInfo.getUserName() + "_" + serverInfo.getHost() + "_" + serverInfo.getPort(); + if (sessionMap.get(key) == null) { + try { + if (authenticationInfo instanceof SSHKeyAuthentication) { + authentication = (SSHKeyAuthentication) authenticationInfo; + } else { + throw new AiravataException("Support ssh key authentication only"); + } + JSch jSch = new JSch(); + jSch.addIdentity(authentication.getPrivateKeyFilePath(), authentication.getPublicKeyFilePath(), + authentication.getPassphrase().getBytes()); + Session session = jSch.getSession(serverInfo.getUserName(), serverInfo.getHost(), + serverInfo.getPort()); + session.setUserInfo(new DefaultUserInfo(serverInfo.getUserName(), null, authentication.getPassphrase())); + if (authentication.getStrictHostKeyChecking().equals("yes")) { + jSch.setKnownHosts(authentication.getKnownHostsFilePath()); + } else { + session.setConfig("StrictHostKeyChecking","no"); + } + session.connect(); // 0 connection timeout + sessionMap.put(key, session); + } catch (JSchException e) { + throw new AiravataException("JSch initialization error ", e); + } + } + return sessionMap.get(key); + + } + + private static class DefaultUserInfo implements UserInfo { + + private String userName; + private String password; + private String passphrase; + + public DefaultUserInfo(String userName, String password, String passphrase) { + this.userName = userName; + this.password = password; + this.passphrase = passphrase; + } + + @Override + public String getPassphrase() { + return null; + } + + @Override + public String getPassword() { + return null; + } + + @Override + public boolean promptPassword(String s) { + return false; + } + + @Override + public boolean promptPassphrase(String s) { + return false; + } + + @Override + public boolean promptYesNo(String s) { + return false; + } + + @Override + public void showMessage(String s) { + + } + } } diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java new file mode 100644 index 0000000000..45f5ff61da --- /dev/null +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java @@ -0,0 +1,231 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.airavata.gfac.impl.task; + +import com.jcraft.jsch.JSchException; +import com.jcraft.jsch.Session; +import org.apache.airavata.common.exception.AiravataException; +import org.apache.airavata.common.utils.ServerSettings; +import org.apache.airavata.common.utils.ThriftUtils; +import org.apache.airavata.gfac.core.SSHApiException; +import org.apache.airavata.gfac.core.authentication.AuthenticationInfo; +import org.apache.airavata.gfac.core.authentication.SSHKeyAuthentication; +import org.apache.airavata.gfac.core.authentication.SSHPasswordAuthentication; +import org.apache.airavata.gfac.core.cluster.ServerInfo; +import org.apache.airavata.gfac.core.context.TaskContext; +import org.apache.airavata.gfac.core.task.Task; +import org.apache.airavata.gfac.core.task.TaskException; +import org.apache.airavata.gfac.impl.Factory; +import org.apache.airavata.gfac.impl.SSHUtils; +import org.apache.airavata.model.commons.ErrorModel; +import org.apache.airavata.model.status.ProcessState; +import org.apache.airavata.model.status.TaskState; +import org.apache.airavata.model.status.TaskStatus; +import org.apache.airavata.model.task.DataStagingTaskModel; +import org.apache.airavata.model.task.TaskTypes; +import org.apache.thrift.TException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.io.File; +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.Map; + +public class AdvancedSCPDataStageTask implements Task{ + private static final Logger log = LoggerFactory.getLogger(AdvancedSCPDataStageTask.class); + private static final int DEFAULT_SSH_PORT = 22; + private String password; + private String publicKeyPath; + private String passPhrase; + private String privateKeyPath; + private String userName; + private String hostName; + private String inputPath; + + @Override + public void init(Map propertyMap) throws TaskException { + password = propertyMap.get("password"); + passPhrase = propertyMap.get("passPhrase"); + privateKeyPath = propertyMap.get("privateKeyPath"); + publicKeyPath = propertyMap.get("publicKeyPath"); + userName = propertyMap.get("userName"); + hostName = propertyMap.get("hostName"); + inputPath = propertyMap.get("inputPath"); + } + + @Override + public TaskStatus execute(TaskContext taskContext) { + AuthenticationInfo authenticationInfo = null; + if (password != null) { + authenticationInfo = getSSHPasswordAuthentication(); + } else { + authenticationInfo = getSSHKeyAuthentication(); + } + TaskStatus status = new TaskStatus(TaskState.COMPLETED); + DataStagingTaskModel subTaskModel = null; + try { + subTaskModel = (DataStagingTaskModel) ThriftUtils.getSubTaskModel + (taskContext.getTaskModel()); + } catch (TException e) { + String msg = "Couldn't create subTask model thrift model"; + log.error(msg, e); + status.setState(TaskState.FAILED); + status.setReason(msg); + ErrorModel errorModel = new ErrorModel(); + errorModel.setActualErrorMessage(e.getMessage()); + errorModel.setUserFriendlyMessage(msg); + taskContext.getTaskModel().setTaskError(errorModel); + return status; + } + + try { + URI sourceURI = new URI(subTaskModel.getSource()); + URI destinationURI = new URI(subTaskModel.getDestination()); + + File tempOutputDir = getLocalDir(taskContext); + if (!tempOutputDir.exists()) { + if (!tempOutputDir.mkdirs()) { + // failed to create temp output location + } + } + + String fileName = sourceURI.getPath().substring(sourceURI.getPath().lastIndexOf(File.separator) + 1, + sourceURI.getPath().length()); + String filePath = tempOutputDir + File.separator + fileName; + + ServerInfo serverInfo = new ServerInfo(userName, hostName, DEFAULT_SSH_PORT); + Session sshSession = Factory.getSSHSession(authenticationInfo, serverInfo); + ProcessState processState = taskContext.getParentProcessContext().getProcessState(); + if (processState == ProcessState.INPUT_DATA_STAGING) { + inputDataStaging(taskContext, sshSession, sourceURI, destinationURI, filePath); + status.setReason("Successfully staged input data"); + }else if (processState == ProcessState.OUTPUT_DATA_STAGING) { + outputDataStaging(taskContext, sshSession, sourceURI, destinationURI, filePath); + status.setReason("Successfully staged output data"); + } else { + status.setState(TaskState.FAILED); + status.setReason("Invalid task invocation, Support " + ProcessState.INPUT_DATA_STAGING.name() + " and " + + "" + ProcessState.OUTPUT_DATA_STAGING.name() + " process phases. found " + processState.name()); + } + + }catch (URISyntaxException e) { + String msg = "Sorce or destination uri is not correct source : " + subTaskModel.getSource() + ", " + + "destination : " + subTaskModel.getDestination(); + log.error(msg, e); + status.setState(TaskState.FAILED); + status.setReason(msg); + ErrorModel errorModel = new ErrorModel(); + errorModel.setActualErrorMessage(e.getMessage()); + errorModel.setUserFriendlyMessage(msg); + taskContext.getTaskModel().setTaskError(errorModel); + } catch (SSHApiException e) { + String msg = "Failed to do scp with compute resource"; + log.error(msg, e); + status.setState(TaskState.FAILED); + status.setReason(msg); + ErrorModel errorModel = new ErrorModel(); + errorModel.setActualErrorMessage(e.getMessage()); + errorModel.setUserFriendlyMessage(msg); + taskContext.getTaskModel().setTaskError(errorModel); + } catch (AiravataException e) { + String msg = "Error while creating ssh session with client"; + log.error(msg, e); + status.setState(TaskState.FAILED); + status.setReason(msg); + ErrorModel errorModel = new ErrorModel(); + errorModel.setActualErrorMessage(e.getMessage()); + errorModel.setUserFriendlyMessage(msg); + taskContext.getTaskModel().setTaskError(errorModel); + } catch (JSchException | IOException e ) { + String msg = "Failed to do scp with client"; + log.error(msg, e); + status.setState(TaskState.FAILED); + status.setReason(msg); + ErrorModel errorModel = new ErrorModel(); + errorModel.setActualErrorMessage(e.getMessage()); + errorModel.setUserFriendlyMessage(msg); + taskContext.getTaskModel().setTaskError(errorModel); + } + + return status; + } + + private void inputDataStaging(TaskContext taskContext, Session sshSession, URI sourceURI, URI + destinationURI, String filePath) throws SSHApiException, IOException, JSchException { + /** + * scp remote client file to airavata local dir. + */ + SSHUtils.scpFrom(sourceURI.getPath(), filePath, sshSession); + + /** + * scp local file to compute resource. + */ + taskContext.getParentProcessContext().getRemoteCluster().scpTo(destinationURI.getPath(), filePath); + } + + private void outputDataStaging(TaskContext taskContext, Session sshSession, URI sourceURI, URI destinationURI, + String filePath) throws SSHApiException, AiravataException, IOException, JSchException { + /** + * scp remote file from comute resource to airavata local + */ + taskContext.getParentProcessContext().getRemoteCluster().scpFrom(sourceURI.getPath(), filePath); + + /** + * scp local file to remote client + */ + SSHUtils.scpTo(filePath, destinationURI.getPath(), sshSession); + } + + private File getLocalDir(TaskContext taskContext) { + if (inputPath == null) { + return new File(ServerSettings.getOutputLocation() + taskContext.getParentProcessContext() + .getProcessId()); + } else { + return new File(inputPath); + } + } + + @Override + public TaskStatus recover(TaskContext taskContext) { + return null; + } + + @Override + public TaskTypes getType() { + return null; + } + + private SSHPasswordAuthentication getSSHPasswordAuthentication() { + return new SSHPasswordAuthentication(userName, password); + } + + private SSHKeyAuthentication getSSHKeyAuthentication(){ + SSHKeyAuthentication sshKA = new SSHKeyAuthentication(); + sshKA.setUserName(userName); + sshKA.setPassphrase(passPhrase); + sshKA.setPrivateKeyFilePath(privateKeyPath); + sshKA.setPublicKeyFilePath(publicKeyPath); + sshKA.setStrictHostKeyChecking("no"); + return sshKA; + } +} diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java index b2a83ed5ba..eecf57d723 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SCPDataStageTask.java @@ -26,6 +26,7 @@ import org.apache.airavata.gfac.core.task.Task; import org.apache.airavata.gfac.core.task.TaskException; import org.apache.airavata.model.commons.ErrorModel; +import org.apache.airavata.model.status.ProcessState; import org.apache.airavata.model.status.TaskState; import org.apache.airavata.model.status.TaskStatus; import org.apache.airavata.model.task.DataStagingTaskModel; @@ -60,10 +61,17 @@ public TaskStatus execute(TaskContext taskContext) { URI sourceURI = new URI(subTaskModel.getSource()); URI destinationURI = new URI(subTaskModel.getDestination()); - if (sourceURI.getScheme().equalsIgnoreCase("file")) { // Airavata --> RemoteCluster + ProcessState processState = taskContext.getParentProcessContext().getProcessState(); + if (processState == ProcessState.INPUT_DATA_STAGING) { + /** + * copy local file to compute resource. + */ taskContext.getParentProcessContext().getRemoteCluster().scpTo(sourceURI.getPath(), destinationURI .getPath()); - } else { // RemoteCluster --> Airavata + } else if (processState == ProcessState.OUTPUT_DATA_STAGING) { + /** + * copy remote file from compute resource. + */ taskContext.getParentProcessContext().getRemoteCluster().scpFrom(sourceURI.getPath(), destinationURI .getPath()); } From b103e6fbd61c8b18bafa292b3af4fce2db25f37e Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Fri, 31 Jul 2015 13:35:27 -0400 Subject: [PATCH 03/18] Added AdvancedSCPDataStageTask configuration to gfac-config.yaml --- .../src/main/resources/gfac-config.yaml | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/modules/configuration/server/src/main/resources/gfac-config.yaml b/modules/configuration/server/src/main/resources/gfac-config.yaml index 31fd63a33a..c6b90b17b6 100644 --- a/modules/configuration/server/src/main/resources/gfac-config.yaml +++ b/modules/configuration/server/src/main/resources/gfac-config.yaml @@ -21,17 +21,20 @@ jobSubmitters: - submissionProtocol: SSH taskClass: org.apache.airavata.gfac.impl.task.SSHJobSubmissionTask - properties: - - password: pwd123 - passPhrase: test - privateKey: key - publicKey: pubk - # - submissionProtocol: GSISSH - # taskClass: org.apache.airavata.task.adapters.GSISSHJobSubmissionTask +# properties: +# - userName: airavata +# passPhrase: airavata +# privateKey: /path/to/the/privatekey +# publicKey: /path/to/the/publickey +# hostName: remote.client.hostName - submissionProtocol: LOCAL taskClass: org.apache.airavata.gfac.impl.task.LocalJobSubmissionTask +# Following job subbmitters are not yet implemented. + + # - submissionProtocol: GSISSH + # taskClass: org.apache.airavata.task.adapters.GSISSHJobSubmissionTask commonTasks: - type: SETUP taskClass: org.apache.airavata.task.common.SetupTask @@ -43,14 +46,22 @@ fileTransferTasks: - transferProtocol: SCP taskClass: org.apache.airavata.gfac.impl.task.SCPDataStageTask +# If your client doen't run the same instance where airavata server is running then you need to comment above +# SCPDataStageTask and uncomment AdvancedSCPDataStageTask. To work with AdvancedSCPDataStageTask, you either need to +# provide ssh keys or password. + # - transferProtocol: SCP -# taskClass: org.apache.airavata.gfac.impl.task.SCPInputDataStageTask +# taskClass: org.apache.airavata.gfac.impl.task.AdvancedSCPDataStageTask # properties: -# - password: pwd123 -# passPhrase: test -# privateKey: key -# publicKey: pubkey +# - userName: airavata +# passPhrase: airavata +# privateKey: /path/to/the/privatekey +# publicKey: /path/to/the/publickey +# hostName: remote.client.hostName +# inputPath: /path/to/data/dir +## password: password +# Following transfer tasks are not yet implemented. #- transferProtocol: SFTP # taskClass: org.apache.airavata.task.adapters.SFTPFileTransferTask From 7ae9cc387de6929c1a5198fa5aeac5a7f072e727 Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Fri, 31 Jul 2015 19:41:04 -0400 Subject: [PATCH 04/18] Corrected scpTo interface method arguments order --- .../apache/airavata/gfac/core/cluster/RemoteCluster.java | 6 +++--- .../airavata/gfac/impl/task/AdvancedSCPDataStageTask.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cluster/RemoteCluster.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cluster/RemoteCluster.java index b3a8ffb1b8..6afeb592d8 100644 --- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cluster/RemoteCluster.java +++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cluster/RemoteCluster.java @@ -47,11 +47,11 @@ public interface RemoteCluster { // FIXME: replace SSHApiException with suitable /** * This will copy the localFile to remoteFile location in configured cluster * - * @param remoteFile remote file location, this can be a directory too - * @param localFile local file path of the file which needs to copy to remote location + * @param localFile local file path of the file which needs to copy to remote location + * @param remoteFile remote file location, this can be a directory too * @throws SSHApiException throws exception during error */ - public void scpTo(String remoteFile, String localFile) throws SSHApiException; + public void scpTo(String localFile, String remoteFile) throws SSHApiException; /** * This will copy a remote file in path rFile to local file lFile diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java index 45f5ff61da..f44621ca66 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java @@ -180,7 +180,7 @@ private void inputDataStaging(TaskContext taskContext, Session sshSession, URI s /** * scp local file to compute resource. */ - taskContext.getParentProcessContext().getRemoteCluster().scpTo(destinationURI.getPath(), filePath); + taskContext.getParentProcessContext().getRemoteCluster().scpTo(filePath, destinationURI.getPath()); } private void outputDataStaging(TaskContext taskContext, Session sshSession, URI sourceURI, URI destinationURI, From 673fbf3b40dda4391a33e7a639d3e13e312c865c Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Fri, 31 Jul 2015 20:04:12 -0400 Subject: [PATCH 05/18] Added processId to intermediate file transfer directory name --- .../airavata/gfac/impl/task/AdvancedSCPDataStageTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java index f44621ca66..29f09e6b8b 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/AdvancedSCPDataStageTask.java @@ -201,7 +201,8 @@ private File getLocalDir(TaskContext taskContext) { return new File(ServerSettings.getOutputLocation() + taskContext.getParentProcessContext() .getProcessId()); } else { - return new File(inputPath); + inputPath = (inputPath.endsWith(File.separator) ? inputPath : inputPath + File.separator); + return new File(inputPath + taskContext.getParentProcessContext().getProcessId()); } } From 1ef5bc33d6959472a10ee184e121bfd0d703d44e Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Fri, 31 Jul 2015 21:10:48 -0400 Subject: [PATCH 06/18] Modified advanced scp task properties names --- .../server/src/main/resources/gfac-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/configuration/server/src/main/resources/gfac-config.yaml b/modules/configuration/server/src/main/resources/gfac-config.yaml index c6b90b17b6..5a3ebe74ee 100644 --- a/modules/configuration/server/src/main/resources/gfac-config.yaml +++ b/modules/configuration/server/src/main/resources/gfac-config.yaml @@ -24,8 +24,8 @@ jobSubmitters: # properties: # - userName: airavata # passPhrase: airavata -# privateKey: /path/to/the/privatekey -# publicKey: /path/to/the/publickey +# privateKeyPath: /path/to/the/privatekey +# publicKeyPath: /path/to/the/publickey # hostName: remote.client.hostName - submissionProtocol: LOCAL @@ -55,8 +55,8 @@ fileTransferTasks: # properties: # - userName: airavata # passPhrase: airavata -# privateKey: /path/to/the/privatekey -# publicKey: /path/to/the/publickey +# privateKeyPath: /path/to/the/privatekey +# publicKeyPath: /path/to/the/publickey # hostName: remote.client.hostName # inputPath: /path/to/data/dir ## password: password From c3174f2028f7292e402ac686dbdc3065c426a69a Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Sat, 1 Aug 2015 22:58:02 +0530 Subject: [PATCH 07/18] removing redundant meta-inf folder --- .../src/main/java/META-INF/persistence.xml | 105 ------------------ 1 file changed, 105 deletions(-) delete mode 100644 modules/registry/registry-core/src/main/java/META-INF/persistence.xml diff --git a/modules/registry/registry-core/src/main/java/META-INF/persistence.xml b/modules/registry/registry-core/src/main/java/META-INF/persistence.xml deleted file mode 100644 index ddf13346d3..0000000000 --- a/modules/registry/registry-core/src/main/java/META-INF/persistence.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - org.apache.openjpa.persistence.PersistenceProviderImpl - org.apache.airavata.registry.core.experiment.catalog.model.Experiment - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentError - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentInput - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentOutput - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentStatus - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentSummary - org.apache.airavata.registry.core.experiment.catalog.model.Gateway - org.apache.airavata.registry.core.experiment.catalog.model.GatewayWorker - org.apache.airavata.registry.core.experiment.catalog.model.Process - org.apache.airavata.registry.core.experiment.catalog.model.ProcessError - org.apache.airavata.registry.core.experiment.catalog.model.ProcessInput - org.apache.airavata.registry.core.experiment.catalog.model.ProcessOutput - org.apache.airavata.registry.core.experiment.catalog.model.ProcessResourceSchedule - org.apache.airavata.registry.core.experiment.catalog.model.ProcessStatus - org.apache.airavata.registry.core.experiment.catalog.model.Project - org.apache.airavata.registry.core.experiment.catalog.model.ProjectUser - org.apache.airavata.registry.core.experiment.catalog.model.Task - org.apache.airavata.registry.core.experiment.catalog.model.TaskError - org.apache.airavata.registry.core.experiment.catalog.model.TaskStatus - org.apache.airavata.registry.core.experiment.catalog.model.User - org.apache.airavata.registry.core.experiment.catalog.model.UserConfigurationData - org.apache.airavata.registry.core.app.catalog.model.BatchQueue - org.apache.airavata.registry.core.app.catalog.model.LocalSubmission - org.apache.airavata.registry.core.app.catalog.model.JobManagerCommand - org.apache.airavata.registry.core.app.catalog.model.SshJobSubmission - org.apache.airavata.registry.core.app.catalog.model.ComputeResourceFileSystem - org.apache.airavata.registry.core.experiment.catalog.model.ErrorDetail - org.apache.airavata.registry.core.app.catalog.model.GridftpDataMovement - org.apache.airavata.registry.core.app.catalog.model.ScpDataMovement - org.apache.airavata.registry.core.app.catalog.model.PostJobCommand - org.apache.airavata.registry.core.app.catalog.model.ResourceJobManager - org.apache.airavata.registry.core.app.catalog.model.PreJobCommand - org.apache.airavata.registry.core.app.catalog.model.ComputeResource - org.apache.airavata.registry.core.app.catalog.model.GSISSHExport - org.apache.airavata.registry.core.app.catalog.model.ComputeResourcePreference - org.apache.airavata.registry.core.app.catalog.model.LocalDataMovement - org.apache.airavata.registry.core.experiment.catalog.model.DataTransferDetail - org.apache.airavata.registry.core.experiment.catalog.model.Gateway - org.apache.airavata.registry.core.experiment.catalog.model.WorkflowNodeDetail - org.apache.airavata.registry.core.experiment.catalog.model.Computational_Resource_Scheduling - org.apache.airavata.registry.core.experiment.catalog.model.JobDetail - org.apache.airavata.registry.core.experiment.catalog.model.ApplicationInput - org.apache.airavata.registry.core.experiment.catalog.model.TaskDetail - org.apache.airavata.registry.core.app.catalog.model.Workflow - org.apache.airavata.registry.core.app.catalog.model.ApplicationInterface - org.apache.airavata.registry.core.experiment.catalog.model.ApplicationOutput - org.apache.airavata.registry.core.experiment.catalog.model.Status - org.apache.airavata.registry.core.app.catalog.model.GatewayProfile - org.apache.airavata.registry.core.experiment.catalog.model.Project - org.apache.airavata.registry.core.experiment.catalog.model.AdvancedOutputDataHandling - org.apache.airavata.registry.core.app.catalog.model.ApplicationModule - org.apache.airavata.registry.core.experiment.catalog.model.Configuration - org.apache.airavata.registry.core.experiment.catalog.model.Experiment - org.apache.airavata.registry.core.app.catalog.model.CloudJobSubmission - org.apache.airavata.registry.core.experiment.catalog.model.Experiment_Output - org.apache.airavata.registry.core.experiment.catalog.model.QosParam - org.apache.airavata.registry.core.experiment.catalog.model.AdvancedInputDataHandling - org.apache.airavata.registry.core.experiment.catalog.model.ProjectUser - org.apache.airavata.registry.core.experiment.catalog.model.NodeInput - org.apache.airavata.registry.core.experiment.catalog.model.Experiment_Input - org.apache.airavata.registry.core.app.catalog.model.Configuration - org.apache.airavata.registry.core.app.catalog.model.ModuleLoadCmd - org.apache.airavata.registry.core.experiment.catalog.model.Gateway_Worker - org.apache.airavata.registry.core.experiment.catalog.model.NodeOutput - org.apache.airavata.registry.core.experiment.catalog.model.Users - org.apache.airavata.registry.core.experiment.catalog.model.ExperimentConfigData - org.apache.airavata.registry.core.experiment.catalog.model.Notification_Email - org.apache.airavata.registry.core.app.catalog.model.UnicoreDataMovement - org.apache.airavata.registry.core.app.catalog.model.UnicoreJobSubmission - org.apache.airavata.registry.core.app.catalog.model.ApplicationDeployment - org.apache.airavata.registry.core.app.catalog.model.HostAlias - org.apache.airavata.registry.core.app.catalog.model.HostIPAddress - org.apache.airavata.registry.core.app.catalog.model.LibraryApendPath - org.apache.airavata.registry.core.app.catalog.model.GSISSHSubmission - org.apache.airavata.registry.core.app.catalog.model.GlobusGKEndpoint - org.apache.airavata.registry.core.app.catalog.model.AppModuleMapping - org.apache.airavata.registry.core.app.catalog.model.LibraryPrepandPath - org.apache.airavata.registry.core.app.catalog.model.ApplicationIntInput - org.apache.airavata.registry.core.app.catalog.model.ApplicationIntOutput - org.apache.airavata.registry.core.app.catalog.model.WorkflowInput - org.apache.airavata.registry.core.app.catalog.model.WorkflowOutput - org.apache.airavata.registry.core.app.catalog.model.AppEnvironment - org.apache.airavata.registry.core.app.catalog.model.GlobusJobSubmission - org.apache.airavata.registry.core.app.catalog.model.DataMovementInterface - org.apache.airavata.registry.core.app.catalog.model.JobSubmissionInterface - org.apache.airavata.registry.core.app.catalog.model.GridftpEndpoint - true - - - - - - - - - - - - From 64a49b9ed26ecc9c81d555f518fcfb48480ec117 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Sun, 2 Aug 2015 01:01:30 +0530 Subject: [PATCH 08/18] Adding enable/disable compute resource functionality to Airavata master --- .../server/handler/AiravataServerHandler.java | 97 +++++----- .../handler/AiravataServerHandlerTest.java | 16 +- .../src/test/resources/appcatalog-derby.sql | 1 + .../org/apache/airavata/api/Airavata.java | 2 +- .../main/resources/lib/airavata/Airavata.h | 24 +-- .../airavata/compute_resource_model_types.cpp | 44 +++-- .../airavata/compute_resource_model_types.h | 16 +- .../AppCatalog/ComputeResource/Types.php | 49 +++-- .../appcatalog/computeresource/ttypes.py | 43 +++-- .../org/apache/airavata/model/Workflow.java | 2 +- .../ApplicationDeploymentDescription.java | 2 +- .../appdeployment/ApplicationModule.java | 2 +- .../appcatalog/appdeployment/SetEnvPaths.java | 2 +- .../ApplicationInterfaceDescription.java | 2 +- .../computeresource/BatchQueue.java | 2 +- .../computeresource/CloudJobSubmission.java | 2 +- .../ComputeResourceDescription.java | 167 ++++++++++++++---- .../DataMovementInterface.java | 2 +- .../computeresource/GlobusJobSubmission.java | 2 +- .../computeresource/GridFTPDataMovement.java | 2 +- .../JobSubmissionInterface.java | 2 +- .../computeresource/LOCALDataMovement.java | 2 +- .../computeresource/LOCALSubmission.java | 2 +- .../computeresource/ResourceJobManager.java | 2 +- .../computeresource/SCPDataMovement.java | 2 +- .../computeresource/SSHJobSubmission.java | 2 +- .../computeresource/UnicoreDataMovement.java | 2 +- .../computeresource/UnicoreJobSubmission.java | 2 +- .../ComputeResourcePreference.java | 2 +- .../GatewayResourceProfile.java | 2 +- .../application/io/InputDataObjectType.java | 2 +- .../application/io/OutputDataObjectType.java | 2 +- .../airavata/model/commons/ErrorModel.java | 2 +- .../model/commons/ValidationResults.java | 2 +- .../model/commons/ValidatorResult.java | 2 +- .../model/error/AiravataClientException.java | 2 +- .../model/error/AiravataSystemException.java | 2 +- .../model/error/AuthenticationException.java | 2 +- .../model/error/AuthorizationException.java | 2 +- .../error/ExperimentNotFoundException.java | 2 +- .../model/error/InvalidRequestException.java | 2 +- .../error/LaunchValidationException.java | 2 +- .../model/error/ProjectNotFoundException.java | 2 +- .../model/error/TimedOutException.java | 2 +- .../model/error/ValidationResults.java | 2 +- .../airavata/model/error/ValidatorResult.java | 2 +- .../model/experiment/ExperimentModel.java | 2 +- .../experiment/ExperimentStatistics.java | 2 +- .../experiment/ExperimentSummaryModel.java | 2 +- .../UserConfigurationDataModel.java | 2 +- .../apache/airavata/model/job/JobModel.java | 2 +- .../event/ExperimentStatusChangeEvent.java | 2 +- .../model/messaging/event/JobIdentifier.java | 2 +- .../messaging/event/JobStatusChangeEvent.java | 2 +- .../event/JobStatusChangeRequestEvent.java | 2 +- .../model/messaging/event/Message.java | 2 +- .../messaging/event/ProcessIdentifier.java | 2 +- .../event/ProcessStatusChangeEvent.java | 2 +- .../ProcessStatusChangeRequestEvent.java | 2 +- .../messaging/event/ProcessSubmitEvent.java | 2 +- .../event/ProcessTerminateEvent.java | 2 +- .../model/messaging/event/TaskIdentifier.java | 2 +- .../event/TaskOutputChangeEvent.java | 2 +- .../event/TaskStatusChangeEvent.java | 2 +- .../event/TaskStatusChangeRequestEvent.java | 2 +- .../airavata/model/process/ProcessModel.java | 2 +- .../ComputationalResourceSchedulingModel.java | 2 +- .../airavata/model/security/AuthzToken.java | 2 +- .../model/status/ExperimentStatus.java | 2 +- .../airavata/model/status/JobStatus.java | 2 +- .../airavata/model/status/ProcessStatus.java | 2 +- .../airavata/model/status/TaskStatus.java | 2 +- .../model/task/DataStagingTaskModel.java | 2 +- .../apache/airavata/model/task/TaskModel.java | 2 +- .../airavata/model/workspace/Gateway.java | 2 +- .../airavata/model/workspace/Group.java | 2 +- .../airavata/model/workspace/Project.java | 2 +- .../apache/airavata/model/workspace/User.java | 2 +- .../app/catalog/model/ComputeResource.java | 18 +- .../resources/ComputeResourceResource.java | 11 +- .../app/catalog/util/AppCatalogJPAUtils.java | 1 + .../util/AppCatalogThriftConversion.java | 2 + .../src/main/resources/appcatalog-derby.sql | 1 + .../src/main/resources/appcatalog-mysql.sql | 1 + .../compute_resource_model.thrift | 11 +- 85 files changed, 417 insertions(+), 223 deletions(-) diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index 600c6947fa..56af29043c 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -23,9 +23,7 @@ import org.apache.airavata.api.Airavata; import org.apache.airavata.api.airavataAPIConstants; -import org.apache.airavata.api.server.security.AiravataSecurityManager; import org.apache.airavata.api.server.security.SecurityCheck; -import org.apache.airavata.api.server.security.SecurityManagerFactory; import org.apache.airavata.common.exception.AiravataException; import org.apache.airavata.common.exception.ApplicationSettingsException; import org.apache.airavata.common.utils.AiravataUtils; @@ -37,36 +35,13 @@ import org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription; import org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule; import org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription; -import org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission; -import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription; -import org.apache.airavata.model.appcatalog.computeresource.DataMovementInterface; -import org.apache.airavata.model.appcatalog.computeresource.DataMovementProtocol; -import org.apache.airavata.model.appcatalog.computeresource.GridFTPDataMovement; -import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionInterface; -import org.apache.airavata.model.appcatalog.computeresource.JobSubmissionProtocol; -import org.apache.airavata.model.appcatalog.computeresource.LOCALDataMovement; -import org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission; -import org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager; -import org.apache.airavata.model.appcatalog.computeresource.SCPDataMovement; -import org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission; -import org.apache.airavata.model.appcatalog.computeresource.UnicoreDataMovement; -import org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission; +import org.apache.airavata.model.appcatalog.computeresource.*; import org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference; import org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile; import org.apache.airavata.model.application.io.InputDataObjectType; import org.apache.airavata.model.application.io.OutputDataObjectType; -import org.apache.airavata.model.error.AiravataClientException; -import org.apache.airavata.model.error.AiravataErrorType; -import org.apache.airavata.model.error.AiravataSystemException; -import org.apache.airavata.model.error.AuthorizationException; -import org.apache.airavata.model.error.ExperimentNotFoundException; -import org.apache.airavata.model.error.InvalidRequestException; -import org.apache.airavata.model.error.ProjectNotFoundException; -import org.apache.airavata.model.experiment.ExperimentModel; -import org.apache.airavata.model.experiment.ExperimentSearchFields; -import org.apache.airavata.model.experiment.ExperimentStatistics; -import org.apache.airavata.model.experiment.ExperimentSummaryModel; -import org.apache.airavata.model.experiment.UserConfigurationDataModel; +import org.apache.airavata.model.error.*; +import org.apache.airavata.model.experiment.*; import org.apache.airavata.model.job.JobModel; import org.apache.airavata.model.messaging.event.ExperimentStatusChangeEvent; import org.apache.airavata.model.messaging.event.MessageType; @@ -80,32 +55,12 @@ import org.apache.airavata.orchestrator.client.OrchestratorClientFactory; import org.apache.airavata.orchestrator.cpi.OrchestratorService; import org.apache.airavata.orchestrator.cpi.OrchestratorService.Client; -import org.apache.airavata.registry.core.app.catalog.resources.AppCatAbstractResource; -import org.apache.airavata.registry.core.app.catalog.resources.CloudSubmissionResource; -import org.apache.airavata.registry.core.app.catalog.resources.GridftpDataMovementResource; -import org.apache.airavata.registry.core.app.catalog.resources.LocalDataMovementResource; -import org.apache.airavata.registry.core.app.catalog.resources.LocalSubmissionResource; -import org.apache.airavata.registry.core.app.catalog.resources.ScpDataMovementResource; -import org.apache.airavata.registry.core.app.catalog.resources.SshJobSubmissionResource; -import org.apache.airavata.registry.core.app.catalog.resources.UnicoreDataMovementResource; -import org.apache.airavata.registry.core.app.catalog.resources.UnicoreJobSubmissionResource; +import org.apache.airavata.registry.core.app.catalog.resources.*; import org.apache.airavata.registry.core.app.catalog.util.AppCatalogThriftConversion; import org.apache.airavata.registry.core.experiment.catalog.ExpCatResourceUtils; import org.apache.airavata.registry.core.experiment.catalog.impl.RegistryFactory; -import org.apache.airavata.registry.cpi.AppCatalog; -import org.apache.airavata.registry.cpi.AppCatalogException; -import org.apache.airavata.registry.cpi.ApplicationDeployment; -import org.apache.airavata.registry.cpi.ComputeResource; -import org.apache.airavata.registry.cpi.ExpCatChildDataType; -import org.apache.airavata.registry.cpi.ExpCatParentDataType; -import org.apache.airavata.registry.cpi.ExperimentCatalog; -import org.apache.airavata.registry.cpi.ExperimentCatalogModelType; -import org.apache.airavata.registry.cpi.GwyResourceProfile; -import org.apache.airavata.registry.cpi.RegistryException; -import org.apache.airavata.registry.cpi.ResultOrderType; -import org.apache.airavata.registry.cpi.WorkflowCatalog; +import org.apache.airavata.registry.cpi.*; import org.apache.airavata.registry.cpi.utils.Constants; -import org.apache.airavata.security.AiravataSecurityException; import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -1329,6 +1284,23 @@ public String createExperiment(AuthzToken authzToken, String gatewayId, Experime logger.error("Gateway does not exist.Please provide a valid gateway id..."); throw new AiravataSystemException(AiravataErrorType.INTERNAL_ERROR); } + + if(experiment.getUserConfigurationData() != null && experiment.getUserConfigurationData() + .getComputationalResourceScheduling() != null){ + + String compResourceId = experiment.getUserConfigurationData() + .getComputationalResourceScheduling().getResourceHostId(); + ComputeResourceDescription computeResourceDescription = appCatalog.getComputeResource() + .getComputeResource(compResourceId); + if(!computeResourceDescription.isEnabled()){ + logger.error("Compute Resource is not enabled by the Admin!"); + AiravataSystemException exception = new AiravataSystemException(); + exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR); + exception.setMessage("Compute Resource is not enabled by the Admin!"); + throw exception; + } + } + String experimentId = (String) experimentCatalog.add(ExpCatParentDataType.EXPERIMENT, experiment, gatewayId); ExperimentStatusChangeEvent event = new ExperimentStatusChangeEvent(ExperimentState.CREATED, experimentId, @@ -1437,6 +1409,20 @@ public void updateExperiment(AuthzToken authzToken, String airavataExperimentId, ExperimentState experimentState = experimentStatus.getState(); switch (experimentState){ case CREATED: case VALIDATED: + if(experiment.getUserConfigurationData() != null && experiment.getUserConfigurationData() + .getComputationalResourceScheduling() != null){ + String compResourceId = experiment.getUserConfigurationData() + .getComputationalResourceScheduling().getResourceHostId(); + ComputeResourceDescription computeResourceDescription = appCatalog.getComputeResource() + .getComputeResource(compResourceId); + if(!computeResourceDescription.isEnabled()){ + logger.error("Compute Resource is not enabled by the Admin!"); + AiravataSystemException exception = new AiravataSystemException(); + exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR); + exception.setMessage("Compute Resource is not enabled by the Admin!"); + throw exception; + } + } experimentCatalog.update(ExperimentCatalogModelType.EXPERIMENT, experiment, airavataExperimentId); logger.info(airavataExperimentId, "Successfully updated experiment {} ", experiment.getExperimentName()); break; @@ -1887,6 +1873,17 @@ public String cloneExperiment(AuthzToken authzToken, String existingExperimentID if (existingExperiment.getErrors() != null ){ existingExperiment.getErrors().clear(); } + if(existingExperiment.getUserConfigurationData() != null && existingExperiment.getUserConfigurationData() + .getComputationalResourceScheduling() != null){ + String compResourceId = existingExperiment.getUserConfigurationData() + .getComputationalResourceScheduling().getResourceHostId(); + + ComputeResourceDescription computeResourceDescription = appCatalog.getComputeResource() + .getComputeResource(compResourceId); + if(!computeResourceDescription.isEnabled()){ + existingExperiment.getUserConfigurationData().setComputationalResourceScheduling(null); + } + } return (String) experimentCatalog.add(ExpCatParentDataType.EXPERIMENT, existingExperiment, gatewayId); } catch (Exception e) { logger.error(existingExperimentID, "Error while cloning the experiment with existing configuration...", e); diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java index 88db1590e7..671298f9d2 100644 --- a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java +++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java @@ -24,7 +24,7 @@ import org.apache.airavata.api.server.handler.utils.AppCatInit; import org.apache.airavata.api.server.handler.utils.ExpCatInit; import org.apache.airavata.api.server.util.RegistryInitUtil; -import org.apache.airavata.common.utils.AiravataUtils; +import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription; import org.apache.airavata.model.application.io.InputDataObjectType; import org.apache.airavata.model.application.io.OutputDataObjectType; import org.apache.airavata.model.experiment.ExperimentModel; @@ -38,8 +38,6 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.List; import java.util.UUID; @@ -48,10 +46,11 @@ * Test methods for Airavata Service Handler */ public class AiravataServerHandlerTest { - private final static Logger logger = LoggerFactory.getLogger(AiravataServerHandlerTest.class); +// private final static Logger logger = LoggerFactory.getLogger(AiravataServerHandlerTest.class); private static AiravataServerHandler airavataServerHandler; private static String gatewayId = "php_reference_gateway"; + private static String computeResouceId = null; @BeforeClass public static void setupBeforeClass() throws Exception{ @@ -64,6 +63,13 @@ public static void setupBeforeClass() throws Exception{ Gateway gateway = new Gateway(); gateway.setGatewayId(gatewayId); airavataServerHandler.addGateway(new AuthzToken(""), gateway); + + ComputeResourceDescription computeResourceDescription = new ComputeResourceDescription(); + computeResourceDescription.setHostName("test.compute.resource"); + computeResourceDescription.setResourceDescription("test compute resource"); + computeResourceDescription.setEnabled(true); + computeResouceId = airavataServerHandler.registerComputeResource(new AuthzToken(""), + computeResourceDescription); } @AfterClass @@ -191,7 +197,7 @@ public void testExperiment(){ inputDataObjectType.setValue("Hello World"); ComputationalResourceSchedulingModel scheduling = new ComputationalResourceSchedulingModel(); - scheduling.setResourceHostId(UUID.randomUUID().toString()); + scheduling.setResourceHostId(computeResouceId); scheduling.setTotalCPUCount(1); scheduling.setNodeCount(1); scheduling.setWallTimeLimit(15); diff --git a/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql b/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql index fc24d835f7..0b0f0e4648 100644 --- a/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql +++ b/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql @@ -27,6 +27,7 @@ CREATE TABLE COMPUTE_RESOURCE CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', MAX_MEMORY_NODE INTEGER, + ENABLED SMALLINT, PRIMARY KEY (RESOURCE_ID) ); diff --git 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 index 8129158356..062c4f3b8a 100644 --- 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 @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Airavata { public interface Iface { diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h index 477753fee9..b891dd0aeb 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h @@ -13260,8 +13260,8 @@ class Airavata_getAvailableAppInterfaceComputeResources_presult { class Airavata_registerComputeResource_args { public: - static const char* ascii_fingerprint; // = "C72A09735248A09777AD2324A02E3CCE"; - static const uint8_t binary_fingerprint[16]; // = {0xC7,0x2A,0x09,0x73,0x52,0x48,0xA0,0x97,0x77,0xAD,0x23,0x24,0xA0,0x2E,0x3C,0xCE}; + static const char* ascii_fingerprint; // = "A0B8CF62A1878BA384B2619B9C93A4D0"; + static const uint8_t binary_fingerprint[16]; // = {0xA0,0xB8,0xCF,0x62,0xA1,0x87,0x8B,0xA3,0x84,0xB2,0x61,0x9B,0x9C,0x93,0xA4,0xD0}; Airavata_registerComputeResource_args(const Airavata_registerComputeResource_args&); Airavata_registerComputeResource_args& operator=(const Airavata_registerComputeResource_args&); @@ -13300,8 +13300,8 @@ class Airavata_registerComputeResource_args { class Airavata_registerComputeResource_pargs { public: - static const char* ascii_fingerprint; // = "C72A09735248A09777AD2324A02E3CCE"; - static const uint8_t binary_fingerprint[16]; // = {0xC7,0x2A,0x09,0x73,0x52,0x48,0xA0,0x97,0x77,0xAD,0x23,0x24,0xA0,0x2E,0x3C,0xCE}; + static const char* ascii_fingerprint; // = "A0B8CF62A1878BA384B2619B9C93A4D0"; + static const uint8_t binary_fingerprint[16]; // = {0xA0,0xB8,0xCF,0x62,0xA1,0x87,0x8B,0xA3,0x84,0xB2,0x61,0x9B,0x9C,0x93,0xA4,0xD0}; virtual ~Airavata_registerComputeResource_pargs() throw(); @@ -13477,8 +13477,8 @@ typedef struct _Airavata_getComputeResource_result__isset { class Airavata_getComputeResource_result { public: - static const char* ascii_fingerprint; // = "CFB1C53E8FB09D7DE70FD4D2EB1666BB"; - static const uint8_t binary_fingerprint[16]; // = {0xCF,0xB1,0xC5,0x3E,0x8F,0xB0,0x9D,0x7D,0xE7,0x0F,0xD4,0xD2,0xEB,0x16,0x66,0xBB}; + static const char* ascii_fingerprint; // = "7905BE169CBADD24201811EE1339957F"; + static const uint8_t binary_fingerprint[16]; // = {0x79,0x05,0xBE,0x16,0x9C,0xBA,0xDD,0x24,0x20,0x18,0x11,0xEE,0x13,0x39,0x95,0x7F}; Airavata_getComputeResource_result(const Airavata_getComputeResource_result&); Airavata_getComputeResource_result& operator=(const Airavata_getComputeResource_result&); @@ -13542,8 +13542,8 @@ typedef struct _Airavata_getComputeResource_presult__isset { class Airavata_getComputeResource_presult { public: - static const char* ascii_fingerprint; // = "CFB1C53E8FB09D7DE70FD4D2EB1666BB"; - static const uint8_t binary_fingerprint[16]; // = {0xCF,0xB1,0xC5,0x3E,0x8F,0xB0,0x9D,0x7D,0xE7,0x0F,0xD4,0xD2,0xEB,0x16,0x66,0xBB}; + static const char* ascii_fingerprint; // = "7905BE169CBADD24201811EE1339957F"; + static const uint8_t binary_fingerprint[16]; // = {0x79,0x05,0xBE,0x16,0x9C,0xBA,0xDD,0x24,0x20,0x18,0x11,0xEE,0x13,0x39,0x95,0x7F}; virtual ~Airavata_getComputeResource_presult() throw(); @@ -13710,8 +13710,8 @@ class Airavata_getAllComputeResourceNames_presult { class Airavata_updateComputeResource_args { public: - static const char* ascii_fingerprint; // = "1DE6CEEF441398B41030AC7847117ED4"; - static const uint8_t binary_fingerprint[16]; // = {0x1D,0xE6,0xCE,0xEF,0x44,0x13,0x98,0xB4,0x10,0x30,0xAC,0x78,0x47,0x11,0x7E,0xD4}; + static const char* ascii_fingerprint; // = "3BA03B80825B9C928838194635F8BBB1"; + static const uint8_t binary_fingerprint[16]; // = {0x3B,0xA0,0x3B,0x80,0x82,0x5B,0x9C,0x92,0x88,0x38,0x19,0x46,0x35,0xF8,0xBB,0xB1}; Airavata_updateComputeResource_args(const Airavata_updateComputeResource_args&); Airavata_updateComputeResource_args& operator=(const Airavata_updateComputeResource_args&); @@ -13755,8 +13755,8 @@ class Airavata_updateComputeResource_args { class Airavata_updateComputeResource_pargs { public: - static const char* ascii_fingerprint; // = "1DE6CEEF441398B41030AC7847117ED4"; - static const uint8_t binary_fingerprint[16]; // = {0x1D,0xE6,0xCE,0xEF,0x44,0x13,0x98,0xB4,0x10,0x30,0xAC,0x78,0x47,0x11,0x7E,0xD4}; + static const char* ascii_fingerprint; // = "3BA03B80825B9C928838194635F8BBB1"; + static const uint8_t binary_fingerprint[16]; // = {0x3B,0xA0,0x3B,0x80,0x82,0x5B,0x9C,0x92,0x88,0x38,0x19,0x46,0x35,0xF8,0xBB,0xB1}; virtual ~Airavata_updateComputeResource_pargs() throw(); diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.cpp index d70178d026..175ed096fb 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.cpp @@ -2270,6 +2270,11 @@ void ComputeResourceDescription::__set_resourceDescription(const std::string& va __isset.resourceDescription = true; } +void ComputeResourceDescription::__set_enabled(const bool val) { + this->enabled = val; +__isset.enabled = true; +} + void ComputeResourceDescription::__set_batchQueues(const std::vector & val) { this->batchQueues = val; __isset.batchQueues = true; @@ -2295,8 +2300,8 @@ void ComputeResourceDescription::__set_maxMemoryPerNode(const int32_t val) { __isset.maxMemoryPerNode = true; } -const char* ComputeResourceDescription::ascii_fingerprint = "3CD4212965217787DCD6081F1744069F"; -const uint8_t ComputeResourceDescription::binary_fingerprint[16] = {0x3C,0xD4,0x21,0x29,0x65,0x21,0x77,0x87,0xDC,0xD6,0x08,0x1F,0x17,0x44,0x06,0x9F}; +const char* ComputeResourceDescription::ascii_fingerprint = "FEBE7045EBC701802205EA9BA436FCE2"; +const uint8_t ComputeResourceDescription::binary_fingerprint[16] = {0xFE,0xBE,0x70,0x45,0xEB,0xC7,0x01,0x80,0x22,0x05,0xEA,0x9B,0xA4,0x36,0xFC,0xE2}; uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -2385,6 +2390,14 @@ uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* } break; case 6: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->enabled); + this->__isset.enabled = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->batchQueues.clear(); @@ -2404,7 +2417,7 @@ uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* xfer += iprot->skip(ftype); } break; - case 7: + case 8: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->fileSystems.clear(); @@ -2429,7 +2442,7 @@ uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* xfer += iprot->skip(ftype); } break; - case 8: + case 9: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->jobSubmissionInterfaces.clear(); @@ -2449,7 +2462,7 @@ uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* xfer += iprot->skip(ftype); } break; - case 9: + case 10: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->dataMovementInterfaces.clear(); @@ -2469,7 +2482,7 @@ uint32_t ComputeResourceDescription::read(::apache::thrift::protocol::TProtocol* xfer += iprot->skip(ftype); } break; - case 10: + case 11: if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->maxMemoryPerNode); this->__isset.maxMemoryPerNode = true; @@ -2537,8 +2550,13 @@ uint32_t ComputeResourceDescription::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeString(this->resourceDescription); xfer += oprot->writeFieldEnd(); } + if (this->__isset.enabled) { + xfer += oprot->writeFieldBegin("enabled", ::apache::thrift::protocol::T_BOOL, 6); + xfer += oprot->writeBool(this->enabled); + xfer += oprot->writeFieldEnd(); + } if (this->__isset.batchQueues) { - xfer += oprot->writeFieldBegin("batchQueues", ::apache::thrift::protocol::T_LIST, 6); + xfer += oprot->writeFieldBegin("batchQueues", ::apache::thrift::protocol::T_LIST, 7); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->batchQueues.size())); std::vector ::const_iterator _iter94; @@ -2551,7 +2569,7 @@ uint32_t ComputeResourceDescription::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldEnd(); } if (this->__isset.fileSystems) { - xfer += oprot->writeFieldBegin("fileSystems", ::apache::thrift::protocol::T_MAP, 7); + xfer += oprot->writeFieldBegin("fileSystems", ::apache::thrift::protocol::T_MAP, 8); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast(this->fileSystems.size())); std::map ::const_iterator _iter95; @@ -2565,7 +2583,7 @@ uint32_t ComputeResourceDescription::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldEnd(); } if (this->__isset.jobSubmissionInterfaces) { - xfer += oprot->writeFieldBegin("jobSubmissionInterfaces", ::apache::thrift::protocol::T_LIST, 8); + xfer += oprot->writeFieldBegin("jobSubmissionInterfaces", ::apache::thrift::protocol::T_LIST, 9); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->jobSubmissionInterfaces.size())); std::vector ::const_iterator _iter96; @@ -2578,7 +2596,7 @@ uint32_t ComputeResourceDescription::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldEnd(); } if (this->__isset.dataMovementInterfaces) { - xfer += oprot->writeFieldBegin("dataMovementInterfaces", ::apache::thrift::protocol::T_LIST, 9); + xfer += oprot->writeFieldBegin("dataMovementInterfaces", ::apache::thrift::protocol::T_LIST, 10); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->dataMovementInterfaces.size())); std::vector ::const_iterator _iter97; @@ -2591,7 +2609,7 @@ uint32_t ComputeResourceDescription::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldEnd(); } if (this->__isset.maxMemoryPerNode) { - xfer += oprot->writeFieldBegin("maxMemoryPerNode", ::apache::thrift::protocol::T_I32, 10); + xfer += oprot->writeFieldBegin("maxMemoryPerNode", ::apache::thrift::protocol::T_I32, 11); xfer += oprot->writeI32(this->maxMemoryPerNode); xfer += oprot->writeFieldEnd(); } @@ -2608,6 +2626,7 @@ void swap(ComputeResourceDescription &a, ComputeResourceDescription &b) { swap(a.hostAliases, b.hostAliases); swap(a.ipAddresses, b.ipAddresses); swap(a.resourceDescription, b.resourceDescription); + swap(a.enabled, b.enabled); swap(a.batchQueues, b.batchQueues); swap(a.fileSystems, b.fileSystems); swap(a.jobSubmissionInterfaces, b.jobSubmissionInterfaces); @@ -2622,6 +2641,7 @@ ComputeResourceDescription::ComputeResourceDescription(const ComputeResourceDesc hostAliases = other98.hostAliases; ipAddresses = other98.ipAddresses; resourceDescription = other98.resourceDescription; + enabled = other98.enabled; batchQueues = other98.batchQueues; fileSystems = other98.fileSystems; jobSubmissionInterfaces = other98.jobSubmissionInterfaces; @@ -2635,6 +2655,7 @@ ComputeResourceDescription& ComputeResourceDescription::operator=(const ComputeR hostAliases = other99.hostAliases; ipAddresses = other99.ipAddresses; resourceDescription = other99.resourceDescription; + enabled = other99.enabled; batchQueues = other99.batchQueues; fileSystems = other99.fileSystems; jobSubmissionInterfaces = other99.jobSubmissionInterfaces; @@ -2651,6 +2672,7 @@ std::ostream& operator<<(std::ostream& out, const ComputeResourceDescription& ob out << ", " << "hostAliases="; (obj.__isset.hostAliases ? (out << to_string(obj.hostAliases)) : (out << "")); out << ", " << "ipAddresses="; (obj.__isset.ipAddresses ? (out << to_string(obj.ipAddresses)) : (out << "")); out << ", " << "resourceDescription="; (obj.__isset.resourceDescription ? (out << to_string(obj.resourceDescription)) : (out << "")); + out << ", " << "enabled="; (obj.__isset.enabled ? (out << to_string(obj.enabled)) : (out << "")); out << ", " << "batchQueues="; (obj.__isset.batchQueues ? (out << to_string(obj.batchQueues)) : (out << "")); out << ", " << "fileSystems="; (obj.__isset.fileSystems ? (out << to_string(obj.fileSystems)) : (out << "")); out << ", " << "jobSubmissionInterfaces="; (obj.__isset.jobSubmissionInterfaces ? (out << to_string(obj.jobSubmissionInterfaces)) : (out << "")); diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h index 14a843cd65..5e1a806f77 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/compute_resource_model_types.h @@ -891,10 +891,11 @@ class DataMovementInterface { void swap(DataMovementInterface &a, DataMovementInterface &b); typedef struct _ComputeResourceDescription__isset { - _ComputeResourceDescription__isset() : hostAliases(false), ipAddresses(false), resourceDescription(false), batchQueues(false), fileSystems(false), jobSubmissionInterfaces(false), dataMovementInterfaces(false), maxMemoryPerNode(false) {} + _ComputeResourceDescription__isset() : hostAliases(false), ipAddresses(false), resourceDescription(false), enabled(false), batchQueues(false), fileSystems(false), jobSubmissionInterfaces(false), dataMovementInterfaces(false), maxMemoryPerNode(false) {} bool hostAliases :1; bool ipAddresses :1; bool resourceDescription :1; + bool enabled :1; bool batchQueues :1; bool fileSystems :1; bool jobSubmissionInterfaces :1; @@ -905,12 +906,12 @@ typedef struct _ComputeResourceDescription__isset { class ComputeResourceDescription { public: - static const char* ascii_fingerprint; // = "3CD4212965217787DCD6081F1744069F"; - static const uint8_t binary_fingerprint[16]; // = {0x3C,0xD4,0x21,0x29,0x65,0x21,0x77,0x87,0xDC,0xD6,0x08,0x1F,0x17,0x44,0x06,0x9F}; + static const char* ascii_fingerprint; // = "FEBE7045EBC701802205EA9BA436FCE2"; + static const uint8_t binary_fingerprint[16]; // = {0xFE,0xBE,0x70,0x45,0xEB,0xC7,0x01,0x80,0x22,0x05,0xEA,0x9B,0xA4,0x36,0xFC,0xE2}; ComputeResourceDescription(const ComputeResourceDescription&); ComputeResourceDescription& operator=(const ComputeResourceDescription&); - ComputeResourceDescription() : computeResourceId("DO_NOT_SET_AT_CLIENTS"), hostName(), resourceDescription(), maxMemoryPerNode(0) { + ComputeResourceDescription() : computeResourceId("DO_NOT_SET_AT_CLIENTS"), hostName(), resourceDescription(), enabled(0), maxMemoryPerNode(0) { } virtual ~ComputeResourceDescription() throw(); @@ -919,6 +920,7 @@ class ComputeResourceDescription { std::vector hostAliases; std::vector ipAddresses; std::string resourceDescription; + bool enabled; std::vector batchQueues; std::map fileSystems; std::vector jobSubmissionInterfaces; @@ -937,6 +939,8 @@ class ComputeResourceDescription { void __set_resourceDescription(const std::string& val); + void __set_enabled(const bool val); + void __set_batchQueues(const std::vector & val); void __set_fileSystems(const std::map & val); @@ -965,6 +969,10 @@ class ComputeResourceDescription { return false; else if (__isset.resourceDescription && !(resourceDescription == rhs.resourceDescription)) return false; + if (__isset.enabled != rhs.__isset.enabled) + return false; + else if (__isset.enabled && !(enabled == rhs.enabled)) + return false; if (__isset.batchQueues != rhs.__isset.batchQueues) return false; else if (__isset.batchQueues && !(batchQueues == rhs.batchQueues)) diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php index b773cc480e..6835993388 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/AppCatalog/ComputeResource/Types.php @@ -2309,6 +2309,10 @@ class ComputeResourceDescription { * @var string */ public $resourceDescription = null; + /** + * @var bool + */ + public $enabled = null; /** * @var \Airavata\Model\AppCatalog\ComputeResource\BatchQueue[] */ @@ -2362,6 +2366,10 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 6 => array( + 'var' => 'enabled', + 'type' => TType::BOOL, + ), + 7 => array( 'var' => 'batchQueues', 'type' => TType::LST, 'etype' => TType::STRUCT, @@ -2370,7 +2378,7 @@ public function __construct($vals=null) { 'class' => '\Airavata\Model\AppCatalog\ComputeResource\BatchQueue', ), ), - 7 => array( + 8 => array( 'var' => 'fileSystems', 'type' => TType::MAP, 'ktype' => TType::I32, @@ -2382,7 +2390,7 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), ), - 8 => array( + 9 => array( 'var' => 'jobSubmissionInterfaces', 'type' => TType::LST, 'etype' => TType::STRUCT, @@ -2391,7 +2399,7 @@ public function __construct($vals=null) { 'class' => '\Airavata\Model\AppCatalog\ComputeResource\JobSubmissionInterface', ), ), - 9 => array( + 10 => array( 'var' => 'dataMovementInterfaces', 'type' => TType::LST, 'etype' => TType::STRUCT, @@ -2400,7 +2408,7 @@ public function __construct($vals=null) { 'class' => '\Airavata\Model\AppCatalog\ComputeResource\DataMovementInterface', ), ), - 10 => array( + 11 => array( 'var' => 'maxMemoryPerNode', 'type' => TType::I32, ), @@ -2422,6 +2430,9 @@ public function __construct($vals=null) { if (isset($vals['resourceDescription'])) { $this->resourceDescription = $vals['resourceDescription']; } + if (isset($vals['enabled'])) { + $this->enabled = $vals['enabled']; + } if (isset($vals['batchQueues'])) { $this->batchQueues = $vals['batchQueues']; } @@ -2515,6 +2526,13 @@ public function read($input) } break; case 6: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->enabled); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: if ($ftype == TType::LST) { $this->batchQueues = array(); $_size35 = 0; @@ -2532,7 +2550,7 @@ public function read($input) $xfer += $input->skip($ftype); } break; - case 7: + case 8: if ($ftype == TType::MAP) { $this->fileSystems = array(); $_size41 = 0; @@ -2552,7 +2570,7 @@ public function read($input) $xfer += $input->skip($ftype); } break; - case 8: + case 9: if ($ftype == TType::LST) { $this->jobSubmissionInterfaces = array(); $_size48 = 0; @@ -2570,7 +2588,7 @@ public function read($input) $xfer += $input->skip($ftype); } break; - case 9: + case 10: if ($ftype == TType::LST) { $this->dataMovementInterfaces = array(); $_size54 = 0; @@ -2588,7 +2606,7 @@ public function read($input) $xfer += $input->skip($ftype); } break; - case 10: + case 11: if ($ftype == TType::I32) { $xfer += $input->readI32($this->maxMemoryPerNode); } else { @@ -2657,11 +2675,16 @@ public function write($output) { $xfer += $output->writeString($this->resourceDescription); $xfer += $output->writeFieldEnd(); } + if ($this->enabled !== null) { + $xfer += $output->writeFieldBegin('enabled', TType::BOOL, 6); + $xfer += $output->writeBool($this->enabled); + $xfer += $output->writeFieldEnd(); + } if ($this->batchQueues !== null) { if (!is_array($this->batchQueues)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('batchQueues', TType::LST, 6); + $xfer += $output->writeFieldBegin('batchQueues', TType::LST, 7); { $output->writeListBegin(TType::STRUCT, count($this->batchQueues)); { @@ -2678,7 +2701,7 @@ public function write($output) { if (!is_array($this->fileSystems)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('fileSystems', TType::MAP, 7); + $xfer += $output->writeFieldBegin('fileSystems', TType::MAP, 8); { $output->writeMapBegin(TType::I32, TType::STRING, count($this->fileSystems)); { @@ -2696,7 +2719,7 @@ public function write($output) { if (!is_array($this->jobSubmissionInterfaces)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('jobSubmissionInterfaces', TType::LST, 8); + $xfer += $output->writeFieldBegin('jobSubmissionInterfaces', TType::LST, 9); { $output->writeListBegin(TType::STRUCT, count($this->jobSubmissionInterfaces)); { @@ -2713,7 +2736,7 @@ public function write($output) { if (!is_array($this->dataMovementInterfaces)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('dataMovementInterfaces', TType::LST, 9); + $xfer += $output->writeFieldBegin('dataMovementInterfaces', TType::LST, 10); { $output->writeListBegin(TType::STRUCT, count($this->dataMovementInterfaces)); { @@ -2727,7 +2750,7 @@ public function write($output) { $xfer += $output->writeFieldEnd(); } if ($this->maxMemoryPerNode !== null) { - $xfer += $output->writeFieldBegin('maxMemoryPerNode', TType::I32, 10); + $xfer += $output->writeFieldBegin('maxMemoryPerNode', TType::I32, 11); $xfer += $output->writeI32($this->maxMemoryPerNode); $xfer += $output->writeFieldEnd(); } diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/appcatalog/computeresource/ttypes.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/appcatalog/computeresource/ttypes.py index 387aa18143..e2e9d0481c 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/appcatalog/computeresource/ttypes.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/appcatalog/computeresource/ttypes.py @@ -1855,6 +1855,7 @@ class ComputeResourceDescription: - hostAliases - ipAddresses - resourceDescription + - enabled - batchQueues - fileSystems - jobSubmissionInterfaces @@ -1869,19 +1870,21 @@ class ComputeResourceDescription: (3, TType.LIST, 'hostAliases', (TType.STRING,None), None, ), # 3 (4, TType.LIST, 'ipAddresses', (TType.STRING,None), None, ), # 4 (5, TType.STRING, 'resourceDescription', None, None, ), # 5 - (6, TType.LIST, 'batchQueues', (TType.STRUCT,(BatchQueue, BatchQueue.thrift_spec)), None, ), # 6 - (7, TType.MAP, 'fileSystems', (TType.I32,None,TType.STRING,None), None, ), # 7 - (8, TType.LIST, 'jobSubmissionInterfaces', (TType.STRUCT,(JobSubmissionInterface, JobSubmissionInterface.thrift_spec)), None, ), # 8 - (9, TType.LIST, 'dataMovementInterfaces', (TType.STRUCT,(DataMovementInterface, DataMovementInterface.thrift_spec)), None, ), # 9 - (10, TType.I32, 'maxMemoryPerNode', None, None, ), # 10 + (6, TType.BOOL, 'enabled', None, None, ), # 6 + (7, TType.LIST, 'batchQueues', (TType.STRUCT,(BatchQueue, BatchQueue.thrift_spec)), None, ), # 7 + (8, TType.MAP, 'fileSystems', (TType.I32,None,TType.STRING,None), None, ), # 8 + (9, TType.LIST, 'jobSubmissionInterfaces', (TType.STRUCT,(JobSubmissionInterface, JobSubmissionInterface.thrift_spec)), None, ), # 9 + (10, TType.LIST, 'dataMovementInterfaces', (TType.STRUCT,(DataMovementInterface, DataMovementInterface.thrift_spec)), None, ), # 10 + (11, TType.I32, 'maxMemoryPerNode', None, None, ), # 11 ) - def __init__(self, computeResourceId=thrift_spec[1][4], hostName=None, hostAliases=None, ipAddresses=None, resourceDescription=None, batchQueues=None, fileSystems=None, jobSubmissionInterfaces=None, dataMovementInterfaces=None, maxMemoryPerNode=None,): + def __init__(self, computeResourceId=thrift_spec[1][4], hostName=None, hostAliases=None, ipAddresses=None, resourceDescription=None, enabled=None, batchQueues=None, fileSystems=None, jobSubmissionInterfaces=None, dataMovementInterfaces=None, maxMemoryPerNode=None,): self.computeResourceId = computeResourceId self.hostName = hostName self.hostAliases = hostAliases self.ipAddresses = ipAddresses self.resourceDescription = resourceDescription + self.enabled = enabled self.batchQueues = batchQueues self.fileSystems = fileSystems self.jobSubmissionInterfaces = jobSubmissionInterfaces @@ -1933,6 +1936,11 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 6: + if ftype == TType.BOOL: + self.enabled = iprot.readBool(); + else: + iprot.skip(ftype) + elif fid == 7: if ftype == TType.LIST: self.batchQueues = [] (_etype38, _size35) = iprot.readListBegin() @@ -1943,7 +1951,7 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 7: + elif fid == 8: if ftype == TType.MAP: self.fileSystems = {} (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() @@ -1954,7 +1962,7 @@ def read(self, iprot): iprot.readMapEnd() else: iprot.skip(ftype) - elif fid == 8: + elif fid == 9: if ftype == TType.LIST: self.jobSubmissionInterfaces = [] (_etype51, _size48) = iprot.readListBegin() @@ -1965,7 +1973,7 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 9: + elif fid == 10: if ftype == TType.LIST: self.dataMovementInterfaces = [] (_etype57, _size54) = iprot.readListBegin() @@ -1976,7 +1984,7 @@ def read(self, iprot): iprot.readListEnd() else: iprot.skip(ftype) - elif fid == 10: + elif fid == 11: if ftype == TType.I32: self.maxMemoryPerNode = iprot.readI32(); else: @@ -2017,15 +2025,19 @@ def write(self, oprot): oprot.writeFieldBegin('resourceDescription', TType.STRING, 5) oprot.writeString(self.resourceDescription) oprot.writeFieldEnd() + if self.enabled is not None: + oprot.writeFieldBegin('enabled', TType.BOOL, 6) + oprot.writeBool(self.enabled) + oprot.writeFieldEnd() if self.batchQueues is not None: - oprot.writeFieldBegin('batchQueues', TType.LIST, 6) + oprot.writeFieldBegin('batchQueues', TType.LIST, 7) oprot.writeListBegin(TType.STRUCT, len(self.batchQueues)) for iter62 in self.batchQueues: iter62.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.fileSystems is not None: - oprot.writeFieldBegin('fileSystems', TType.MAP, 7) + oprot.writeFieldBegin('fileSystems', TType.MAP, 8) oprot.writeMapBegin(TType.I32, TType.STRING, len(self.fileSystems)) for kiter63,viter64 in self.fileSystems.items(): oprot.writeI32(kiter63) @@ -2033,21 +2045,21 @@ def write(self, oprot): oprot.writeMapEnd() oprot.writeFieldEnd() if self.jobSubmissionInterfaces is not None: - oprot.writeFieldBegin('jobSubmissionInterfaces', TType.LIST, 8) + oprot.writeFieldBegin('jobSubmissionInterfaces', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.jobSubmissionInterfaces)) for iter65 in self.jobSubmissionInterfaces: iter65.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.dataMovementInterfaces is not None: - oprot.writeFieldBegin('dataMovementInterfaces', TType.LIST, 9) + oprot.writeFieldBegin('dataMovementInterfaces', TType.LIST, 10) oprot.writeListBegin(TType.STRUCT, len(self.dataMovementInterfaces)) for iter66 in self.dataMovementInterfaces: iter66.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.maxMemoryPerNode is not None: - oprot.writeFieldBegin('maxMemoryPerNode', TType.I32, 10) + oprot.writeFieldBegin('maxMemoryPerNode', TType.I32, 11) oprot.writeI32(self.maxMemoryPerNode) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -2068,6 +2080,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.hostAliases) value = (value * 31) ^ hash(self.ipAddresses) value = (value * 31) ^ hash(self.resourceDescription) + value = (value * 31) ^ hash(self.enabled) value = (value * 31) ^ hash(self.batchQueues) value = (value * 31) ^ hash(self.fileSystems) value = (value * 31) ^ hash(self.jobSubmissionInterfaces) diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java index 9d3fddd01b..6f66aac6a5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Workflow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Workflow"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java index 3549a72146..714dbec5d2 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java @@ -77,7 +77,7 @@ * assigns to the environment variable "NAME" the value * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ApplicationDeploymentDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationDeploymentDescription"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java index 4af07b08f2..02f4a43f1d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java @@ -66,7 +66,7 @@ * Descriprion of the Module * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ApplicationModule implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationModule"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java index 3e1c0dfaa7..b667e71cb5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java @@ -60,7 +60,7 @@ * value: * Value of the environment variable to set */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class SetEnvPaths implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetEnvPaths"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java index 470e1f98d3..e35aa68b36 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java @@ -64,7 +64,7 @@ * Outputs generated from the application * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ApplicationInterfaceDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationInterfaceDescription"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java index 783b1c1600..8382a1659b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java @@ -57,7 +57,7 @@ * maxRunTime: * Maximum allowed run time in hours. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class BatchQueue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BatchQueue"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java index e22cfb12fc..9238baa58b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class CloudJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloudJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java index 62e84baced..5f38ba8fcb 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java @@ -80,7 +80,7 @@ * Map of file systems type and the path. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ComputeResourceDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputeResourceDescription"); @@ -89,11 +89,12 @@ public class ComputeResourceDescription implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -106,6 +107,7 @@ public class ComputeResourceDescription implements org.apache.thrift.TBase hostAliases; // optional private List ipAddresses; // optional private String resourceDescription; // optional + private boolean enabled; // optional private List batchQueues; // optional private Map fileSystems; // optional private List jobSubmissionInterfaces; // optional @@ -119,11 +121,12 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { HOST_ALIASES((short)3, "hostAliases"), IP_ADDRESSES((short)4, "ipAddresses"), RESOURCE_DESCRIPTION((short)5, "resourceDescription"), - BATCH_QUEUES((short)6, "batchQueues"), - FILE_SYSTEMS((short)7, "fileSystems"), - JOB_SUBMISSION_INTERFACES((short)8, "jobSubmissionInterfaces"), - DATA_MOVEMENT_INTERFACES((short)9, "dataMovementInterfaces"), - MAX_MEMORY_PER_NODE((short)10, "maxMemoryPerNode"); + ENABLED((short)6, "enabled"), + BATCH_QUEUES((short)7, "batchQueues"), + FILE_SYSTEMS((short)8, "fileSystems"), + JOB_SUBMISSION_INTERFACES((short)9, "jobSubmissionInterfaces"), + DATA_MOVEMENT_INTERFACES((short)10, "dataMovementInterfaces"), + MAX_MEMORY_PER_NODE((short)11, "maxMemoryPerNode"); private static final Map byName = new HashMap(); @@ -148,15 +151,17 @@ public static _Fields findByThriftId(int fieldId) { return IP_ADDRESSES; case 5: // RESOURCE_DESCRIPTION return RESOURCE_DESCRIPTION; - case 6: // BATCH_QUEUES + case 6: // ENABLED + return ENABLED; + case 7: // BATCH_QUEUES return BATCH_QUEUES; - case 7: // FILE_SYSTEMS + case 8: // FILE_SYSTEMS return FILE_SYSTEMS; - case 8: // JOB_SUBMISSION_INTERFACES + case 9: // JOB_SUBMISSION_INTERFACES return JOB_SUBMISSION_INTERFACES; - case 9: // DATA_MOVEMENT_INTERFACES + case 10: // DATA_MOVEMENT_INTERFACES return DATA_MOVEMENT_INTERFACES; - case 10: // MAX_MEMORY_PER_NODE + case 11: // MAX_MEMORY_PER_NODE return MAX_MEMORY_PER_NODE; default: return null; @@ -198,9 +203,10 @@ public String getFieldName() { } // isset id assignments - private static final int __MAXMEMORYPERNODE_ISSET_ID = 0; + private static final int __ENABLED_ISSET_ID = 0; + private static final int __MAXMEMORYPERNODE_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.HOST_ALIASES,_Fields.IP_ADDRESSES,_Fields.RESOURCE_DESCRIPTION,_Fields.BATCH_QUEUES,_Fields.FILE_SYSTEMS,_Fields.JOB_SUBMISSION_INTERFACES,_Fields.DATA_MOVEMENT_INTERFACES,_Fields.MAX_MEMORY_PER_NODE}; + private static final _Fields optionals[] = {_Fields.HOST_ALIASES,_Fields.IP_ADDRESSES,_Fields.RESOURCE_DESCRIPTION,_Fields.ENABLED,_Fields.BATCH_QUEUES,_Fields.FILE_SYSTEMS,_Fields.JOB_SUBMISSION_INTERFACES,_Fields.DATA_MOVEMENT_INTERFACES,_Fields.MAX_MEMORY_PER_NODE}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -216,6 +222,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.RESOURCE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("resourceDescription", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENABLED, new org.apache.thrift.meta_data.FieldMetaData("enabled", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); tmpMap.put(_Fields.BATCH_QUEUES, new org.apache.thrift.meta_data.FieldMetaData("batchQueues", org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BatchQueue.class)))); @@ -271,6 +279,7 @@ public ComputeResourceDescription(ComputeResourceDescription other) { if (other.isSetResourceDescription()) { this.resourceDescription = other.resourceDescription; } + this.enabled = other.enabled; if (other.isSetBatchQueues()) { List __this__batchQueues = new ArrayList(other.batchQueues.size()); for (BatchQueue other_element : other.batchQueues) { @@ -322,6 +331,8 @@ public void clear() { this.hostAliases = null; this.ipAddresses = null; this.resourceDescription = null; + setEnabledIsSet(false); + this.enabled = false; this.batchQueues = null; this.fileSystems = null; this.jobSubmissionInterfaces = null; @@ -475,6 +486,28 @@ public void setResourceDescriptionIsSet(boolean value) { } } + public boolean isEnabled() { + return this.enabled; + } + + public void setEnabled(boolean enabled) { + this.enabled = enabled; + setEnabledIsSet(true); + } + + public void unsetEnabled() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ENABLED_ISSET_ID); + } + + /** Returns true if field enabled is set (has been assigned a value) and false otherwise */ + public boolean isSetEnabled() { + return EncodingUtils.testBit(__isset_bitfield, __ENABLED_ISSET_ID); + } + + public void setEnabledIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ENABLED_ISSET_ID, value); + } + public int getBatchQueuesSize() { return (this.batchQueues == null) ? 0 : this.batchQueues.size(); } @@ -687,6 +720,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENABLED: + if (value == null) { + unsetEnabled(); + } else { + setEnabled((Boolean)value); + } + break; + case BATCH_QUEUES: if (value == null) { unsetBatchQueues(); @@ -747,6 +788,9 @@ public Object getFieldValue(_Fields field) { case RESOURCE_DESCRIPTION: return getResourceDescription(); + case ENABLED: + return Boolean.valueOf(isEnabled()); + case BATCH_QUEUES: return getBatchQueues(); @@ -783,6 +827,8 @@ public boolean isSet(_Fields field) { return isSetIpAddresses(); case RESOURCE_DESCRIPTION: return isSetResourceDescription(); + case ENABLED: + return isSetEnabled(); case BATCH_QUEUES: return isSetBatchQueues(); case FILE_SYSTEMS: @@ -855,6 +901,15 @@ public boolean equals(ComputeResourceDescription that) { return false; } + boolean this_present_enabled = true && this.isSetEnabled(); + boolean that_present_enabled = true && that.isSetEnabled(); + if (this_present_enabled || that_present_enabled) { + if (!(this_present_enabled && that_present_enabled)) + return false; + if (this.enabled != that.enabled) + return false; + } + boolean this_present_batchQueues = true && this.isSetBatchQueues(); boolean that_present_batchQueues = true && that.isSetBatchQueues(); if (this_present_batchQueues || that_present_batchQueues) { @@ -932,6 +987,11 @@ public int hashCode() { if (present_resourceDescription) list.add(resourceDescription); + boolean present_enabled = true && (isSetEnabled()); + list.add(present_enabled); + if (present_enabled) + list.add(enabled); + boolean present_batchQueues = true && (isSetBatchQueues()); list.add(present_batchQueues); if (present_batchQueues) @@ -1018,6 +1078,16 @@ public int compareTo(ComputeResourceDescription other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetEnabled()).compareTo(other.isSetEnabled()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnabled()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enabled, other.enabled); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetBatchQueues()).compareTo(other.isSetBatchQueues()); if (lastComparison != 0) { return lastComparison; @@ -1133,6 +1203,12 @@ public String toString() { } first = false; } + if (isSetEnabled()) { + if (!first) sb.append(", "); + sb.append("enabled:"); + sb.append(this.enabled); + first = false; + } if (isSetBatchQueues()) { if (!first) sb.append(", "); sb.append("batchQueues:"); @@ -1292,7 +1368,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ComputeResourceDesc org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // BATCH_QUEUES + case 6: // ENABLED + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.enabled = iprot.readBool(); + struct.setEnabledIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // BATCH_QUEUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list32 = iprot.readListBegin(); @@ -1311,7 +1395,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ComputeResourceDesc org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 7: // FILE_SYSTEMS + case 8: // FILE_SYSTEMS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { org.apache.thrift.protocol.TMap _map35 = iprot.readMapBegin(); @@ -1331,7 +1415,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ComputeResourceDesc org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 8: // JOB_SUBMISSION_INTERFACES + case 9: // JOB_SUBMISSION_INTERFACES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list39 = iprot.readListBegin(); @@ -1350,7 +1434,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ComputeResourceDesc org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 9: // DATA_MOVEMENT_INTERFACES + case 10: // DATA_MOVEMENT_INTERFACES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(); @@ -1369,7 +1453,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ComputeResourceDesc org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 10: // MAX_MEMORY_PER_NODE + case 11: // MAX_MEMORY_PER_NODE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.maxMemoryPerNode = iprot.readI32(); struct.setMaxMemoryPerNodeIsSet(true); @@ -1435,6 +1519,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ComputeResourceDes oprot.writeFieldEnd(); } } + if (struct.isSetEnabled()) { + oprot.writeFieldBegin(ENABLED_FIELD_DESC); + oprot.writeBool(struct.enabled); + oprot.writeFieldEnd(); + } if (struct.batchQueues != null) { if (struct.isSetBatchQueues()) { oprot.writeFieldBegin(BATCH_QUEUES_FIELD_DESC); @@ -1526,22 +1615,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDesc if (struct.isSetResourceDescription()) { optionals.set(2); } - if (struct.isSetBatchQueues()) { + if (struct.isSetEnabled()) { optionals.set(3); } - if (struct.isSetFileSystems()) { + if (struct.isSetBatchQueues()) { optionals.set(4); } - if (struct.isSetJobSubmissionInterfaces()) { + if (struct.isSetFileSystems()) { optionals.set(5); } - if (struct.isSetDataMovementInterfaces()) { + if (struct.isSetJobSubmissionInterfaces()) { optionals.set(6); } - if (struct.isSetMaxMemoryPerNode()) { + if (struct.isSetDataMovementInterfaces()) { optionals.set(7); } - oprot.writeBitSet(optionals, 8); + if (struct.isSetMaxMemoryPerNode()) { + optionals.set(8); + } + oprot.writeBitSet(optionals, 9); if (struct.isSetHostAliases()) { { oprot.writeI32(struct.hostAliases.size()); @@ -1563,6 +1655,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDesc if (struct.isSetResourceDescription()) { oprot.writeString(struct.resourceDescription); } + if (struct.isSetEnabled()) { + oprot.writeBool(struct.enabled); + } if (struct.isSetBatchQueues()) { { oprot.writeI32(struct.batchQueues.size()); @@ -1612,7 +1707,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr struct.setComputeResourceIdIsSet(true); struct.hostName = iprot.readString(); struct.setHostNameIsSet(true); - BitSet incoming = iprot.readBitSet(8); + BitSet incoming = iprot.readBitSet(9); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list57 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); @@ -1644,6 +1739,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr struct.setResourceDescriptionIsSet(true); } if (incoming.get(3)) { + struct.enabled = iprot.readBool(); + struct.setEnabledIsSet(true); + } + if (incoming.get(4)) { { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.batchQueues = new ArrayList(_list63.size); @@ -1657,7 +1756,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr } struct.setBatchQueuesIsSet(true); } - if (incoming.get(4)) { + if (incoming.get(5)) { { org.apache.thrift.protocol.TMap _map66 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.fileSystems = new HashMap(2*_map66.size); @@ -1672,7 +1771,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr } struct.setFileSystemsIsSet(true); } - if (incoming.get(5)) { + if (incoming.get(6)) { { org.apache.thrift.protocol.TList _list70 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.jobSubmissionInterfaces = new ArrayList(_list70.size); @@ -1686,7 +1785,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr } struct.setJobSubmissionInterfacesIsSet(true); } - if (incoming.get(6)) { + if (incoming.get(7)) { { org.apache.thrift.protocol.TList _list73 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.dataMovementInterfaces = new ArrayList(_list73.size); @@ -1700,7 +1799,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ComputeResourceDescr } struct.setDataMovementInterfacesIsSet(true); } - if (incoming.get(7)) { + if (incoming.get(8)) { struct.maxMemoryPerNode = iprot.readI32(); struct.setMaxMemoryPerNodeIsSet(true); } diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java index 9fb5cf95d6..1e7c83ef44 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java @@ -61,7 +61,7 @@ * Lower the numerical number, higher the priority * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class DataMovementInterface implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataMovementInterface"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java index b076c2c9cf..087160ffe8 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class GlobusJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GlobusJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java index adb164bf89..4b0ca9ce1e 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class GridFTPDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GridFTPDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java index f85b4fa37b..37b3fad7db 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java @@ -61,7 +61,7 @@ * Lower the numerical number, higher the priority * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobSubmissionInterface implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobSubmissionInterface"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java index 62e3d64981..8bb8b64ac2 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-defualt port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class LOCALDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LOCALDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java index ac474628d5..72e72fe771 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class LOCALSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LOCALSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java index 3f4b93e0d3..93a7dde441 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java @@ -68,7 +68,7 @@ * An enumeration of commonly used manager commands. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ResourceJobManager implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ResourceJobManager"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java index 24c10731a0..a9a6b7485b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class SCPDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SCPDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java index 2d1c6d7476..c093005ed5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class SSHJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SSHJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java index 2c0760c537..f927a5453e 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java @@ -57,7 +57,7 @@ * unicoreEndPointURL: * unicoreGateway End Point. The provider will query this service to fetch required service end points. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class UnicoreDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnicoreDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java index ea892e3164..3fe05ca600 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java @@ -59,7 +59,7 @@ * authenticationMode * The authenticationMode defines the way certificate is fetched. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class UnicoreJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnicoreJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java index 41a590a9b8..386e7d2f1a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java @@ -81,7 +81,7 @@ * account to be used has to be added to the allocation. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ComputeResourcePreference implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputeResourcePreference"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java index 0b7c87a2c1..ac77c29209 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java @@ -62,7 +62,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class GatewayResourceProfile implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GatewayResourceProfile"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java index d9c51b405d..66de03e009 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java @@ -77,7 +77,7 @@ * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class InputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java index 10463dbfcb..56e254b778 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java @@ -77,7 +77,7 @@ * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class OutputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java index f396fa59e1..4ed6a22835 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ErrorModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ErrorModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java index acc017847c..6bc7bda877 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ValidationResults implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidationResults"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java index bbccf5fb81..170347540b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java @@ -58,7 +58,7 @@ * during the experiment launch operation * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ValidatorResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidatorResult"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java index aacb331c49..87976a0934 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java @@ -66,7 +66,7 @@ * parameter: If the error applied to a particular input parameter, this will * indicate which parameter. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class AiravataClientException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AiravataClientException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java index 9eb059e981..85fb474fa0 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java @@ -61,7 +61,7 @@ * message: This may contain additional information about the error * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class AiravataSystemException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AiravataSystemException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java index 245f54bf96..16e15c74e2 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java @@ -56,7 +56,7 @@ * * message: contains the cause of the authorization failure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class AuthenticationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthenticationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java index 19ccc7b946..48f82be7c5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java @@ -56,7 +56,7 @@ * * message: contains the authorization failure message */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class AuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthorizationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java index ebdef9c0c6..614f9dd75a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java @@ -58,7 +58,7 @@ * * key: The value passed from the client in the identifier, which was not found. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentNotFoundException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentNotFoundException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java index 2b90fa9539..5316c124e1 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java @@ -57,7 +57,7 @@ * * message: contains the associated error message. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class InvalidRequestException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidRequestException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java index 4812a7c528..0daa9aa139 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class LaunchValidationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LaunchValidationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java index 43d1961e5f..56faf1df9c 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java @@ -56,7 +56,7 @@ * 2: optional string key * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProjectNotFoundException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProjectNotFoundException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java index 0a8a594ec1..a0e900474f 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java @@ -54,7 +54,7 @@ /** * This exception is thrown when RPC timeout gets exceeded. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TimedOutException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TimedOutException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java index c5d767793a..4eddc9d50d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ValidationResults implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidationResults"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java index c1494a36ec..aa785ef991 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ValidatorResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidatorResult"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java index 490afdc909..2c8d6a6ced 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java @@ -67,7 +67,7 @@ * experimentDescription: * The verbose description of the experiment. This is an optional parameter. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java index 4675be8cdc..3e29e1bbb7 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatistics"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java index d894420b16..e087960e31 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentSummaryModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentSummaryModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java index 0dfc39c0c1..55abd1a81d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class UserConfigurationDataModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserConfigurationDataModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java index e5361d59ba..f92661a221 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java index 864a7012fa..38d1b77062 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java index 734e5ae395..046fe9a1d5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java index c4dfa84c07..f100ccbf8a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java index f9373ed7a6..a664b1d9ae 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java index c1bbb1433d..fc37413320 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Message implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Message"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java index a779c3875d..a59b5afea1 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java index 4ccc48ebbf..d4e4f76523 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java index e6e5a4d097..975912ad12 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java index c140f1f015..4ba15f4950 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessSubmitEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessSubmitEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java index 5e94de4fd6..3f0ff64b3b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessTerminateEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessTerminateEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java index 4ab93935c8..6c5697e8eb 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java index 3ed828db55..c84dde447c 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskOutputChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskOutputChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java index ed530a4bd4..c6a50f5823 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java index 4d86b64ef4..644dcb12e8 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java index af7f461f67..d5d09f7704 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java @@ -60,7 +60,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java index 304e6f33c2..1fbaeea79d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ComputationalResourceSchedulingModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputationalResourceSchedulingModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java index 6c897e6fd3..2a6264d73d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class AuthzToken implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthzToken"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java index 157b67988c..fbdc394be5 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java @@ -64,7 +64,7 @@ * User friendly reason on how the state is inferred. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ExperimentStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java index d596d166f9..42a579d45f 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class JobStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java index 260d477fab..9b1fc3a58d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class ProcessStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java index 28307d6a31..0603a67d7b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java index 00e8c54dd1..52515208bc 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java @@ -58,7 +58,7 @@ * A friendly description of the task, usally used to communicate information to users. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class DataStagingTaskModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataStagingTaskModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java index 0e4ac39780..d7c35bcc8b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java @@ -60,7 +60,7 @@ * subTaskModel: * A generic byte object for the Task developer to store internal serialized data into registry catalogs. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class TaskModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java index 9845a2e057..e4d9466d8a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Gateway implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Gateway"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java index 973b79ab26..4ff7b33d8e 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Group implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Group"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java index 5fddda14ba..0ea46f7e09 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class Project implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Project"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java index cb451613b4..d0e10bcbcb 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-7-29") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") public class User implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User"); diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/model/ComputeResource.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/model/ComputeResource.java index 2c70f54836..faf15f7535 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/model/ComputeResource.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/model/ComputeResource.java @@ -21,15 +21,14 @@ package org.apache.airavata.registry.core.app.catalog.model; -import java.io.Serializable; -import java.sql.Timestamp; +import org.apache.openjpa.persistence.DataCache; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; - -import org.apache.openjpa.persistence.DataCache; +import java.io.Serializable; +import java.sql.Timestamp; @DataCache @Entity @@ -55,6 +54,9 @@ public class ComputeResource implements Serializable { @Column(name = "UPDATE_TIME") private Timestamp updateTime; + @Column(name = "ENABLED") + private boolean enabled; + public Timestamp getCreationTime() { return creationTime; } @@ -82,6 +84,14 @@ public String getResourceId() { public String getHostName() { return hostName; } + + public Boolean getEnabled() { + return enabled; + } + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } public void setResourceDescription(String resourceDescription) { this.resourceDescription=resourceDescription; diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/ComputeResourceResource.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/ComputeResourceResource.java index 956604f215..e10baba429 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/ComputeResourceResource.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/resources/ComputeResourceResource.java @@ -45,6 +45,7 @@ public class ComputeResourceResource extends AppCatAbstractResource { private Timestamp createdTime; private Timestamp updatedTime; private int maxMemoryPerNode; + private boolean enabled; public int getMaxMemoryPerNode() { return maxMemoryPerNode; @@ -70,6 +71,13 @@ public void setUpdatedTime(Timestamp updatedTime) { this.updatedTime = updatedTime; } + public boolean isEnabled() { + return enabled; + } + public void setEnabled(boolean enabled) { + this.enabled = enabled; + } + @Override public void remove(Object identifier) throws AppCatalogException { EntityManager em = null; @@ -283,7 +291,8 @@ public void save() throws AppCatalogException { computeResource.setResourceDescription(getResourceDescription()); computeResource.setResourceId(getResourceId()); computeResource.setHostName(getHostName()); - computeResource.setMaxMemoryPerNode(getMaxMemoryPerNode()); + computeResource.setEnabled(isEnabled()); + computeResource.setMaxMemoryPerNode(getMaxMemoryPerNode()); if (existingComputeResource == null) { em.persist(computeResource); } else { diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogJPAUtils.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogJPAUtils.java index 9e6dff07b4..4c5489b54b 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogJPAUtils.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogJPAUtils.java @@ -489,6 +489,7 @@ private static AppCatalogResource createComputeResource(ComputeResource o) { computeResourceResource.setResourceId(o.getResourceId()); computeResourceResource.setHostName(o.getHostName()); computeResourceResource.setCreatedTime(o.getCreationTime()); + computeResourceResource.setEnabled(o.getEnabled()); computeResourceResource.setMaxMemoryPerNode(o.getMaxMemoryPerNode()); if (o.getUpdateTime() != null){ computeResourceResource.setUpdatedTime(o.getUpdateTime()); diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogThriftConversion.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogThriftConversion.java index ea2f46b0cb..4b85765d9e 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogThriftConversion.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/util/AppCatalogThriftConversion.java @@ -53,6 +53,7 @@ public static ComputeResourceResource getComputeHostResource (ComputeResourceDes resource.setResourceDescription(description.getResourceDescription()); resource.setResourceId(description.getComputeResourceId()); resource.setMaxMemoryPerNode(description.getMaxMemoryPerNode()); + resource.setEnabled(description.isEnabled()); return resource; } @@ -62,6 +63,7 @@ public static ComputeResourceDescription getComputeHostDescription (ComputeResou description.setHostName(resource.getHostName()); description.setResourceDescription(resource.getResourceDescription()); description.setMaxMemoryPerNode(resource.getMaxMemoryPerNode()); + description.setEnabled(resource.isEnabled()); HostAliasAppResource aliasResource = new HostAliasAppResource(); List resources = aliasResource.get(AppCatAbstractResource.HostAliasConstants.RESOURCE_ID, resource.getResourceId()); if (resources != null && !resources.isEmpty()){ diff --git a/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql b/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql index fc24d835f7..0b0f0e4648 100644 --- a/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql +++ b/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql @@ -27,6 +27,7 @@ CREATE TABLE COMPUTE_RESOURCE CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', MAX_MEMORY_NODE INTEGER, + ENABLED SMALLINT, PRIMARY KEY (RESOURCE_ID) ); diff --git a/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql b/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql index 234a26a215..9599efc40e 100644 --- a/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql +++ b/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql @@ -26,6 +26,7 @@ CREATE TABLE COMPUTE_RESOURCE CREATION_TIME TIMESTAMP DEFAULT NOW(), UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', MAX_MEMORY_NODE INTEGER, + ENABLED SMALLINT, PRIMARY KEY (RESOURCE_ID) ); diff --git a/thrift-interface-descriptions/airavata-api/compute_resource_model.thrift b/thrift-interface-descriptions/airavata-api/compute_resource_model.thrift index c0ecd4c02d..c01a02820c 100644 --- a/thrift-interface-descriptions/airavata-api/compute_resource_model.thrift +++ b/thrift-interface-descriptions/airavata-api/compute_resource_model.thrift @@ -438,9 +438,10 @@ struct ComputeResourceDescription { 3: optional list hostAliases, 4: optional list ipAddresses, 5: optional string resourceDescription, - 6: optional list batchQueues, - 7: optional map fileSystems, - 8: optional list jobSubmissionInterfaces, - 9: optional list dataMovementInterfaces, - 10: optional i32 maxMemoryPerNode + 6: optional bool enabled, + 7: optional list batchQueues, + 8: optional map fileSystems, + 9: optional list jobSubmissionInterfaces, + 10: optional list dataMovementInterfaces, + 11: optional i32 maxMemoryPerNode } From 50e04f135b201c5f14c7a8bb909e63ff76475e76 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Sun, 2 Aug 2015 01:45:06 +0530 Subject: [PATCH 09/18] fixing test failures in AiravataServerHandlerTest --- .../handler/AiravataServerHandlerTest.java | 6 + .../src/test/resources/appcatalog-derby.sql | 461 ------------------ .../src/test/resources/expcatalog-derby.sql | 391 --------------- .../catalog/resources/WorkerResource.java | 2 +- .../src/main/resources/appcatalog-derby.sql | 2 +- .../src/main/resources/appcatalog-mysql.sql | 2 +- .../src/main/resources/expcatalog-derby.sql | 2 +- .../src/main/resources/expcatalog-mysql.sql | 2 +- 8 files changed, 11 insertions(+), 857 deletions(-) delete mode 100644 airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql delete mode 100644 airavata-api/airavata-api-server/src/test/resources/expcatalog-derby.sql diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java index 671298f9d2..48e27b3e2b 100644 --- a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java +++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java @@ -25,6 +25,7 @@ import org.apache.airavata.api.server.handler.utils.ExpCatInit; import org.apache.airavata.api.server.util.RegistryInitUtil; import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription; +import org.apache.airavata.model.application.io.DataType; import org.apache.airavata.model.application.io.InputDataObjectType; import org.apache.airavata.model.application.io.OutputDataObjectType; import org.apache.airavata.model.experiment.ExperimentModel; @@ -195,6 +196,7 @@ public void testExperiment(){ InputDataObjectType inputDataObjectType = new InputDataObjectType(); inputDataObjectType.setName("Input_to_Echo"); inputDataObjectType.setValue("Hello World"); + inputDataObjectType.setType(DataType.STRING); ComputationalResourceSchedulingModel scheduling = new ComputationalResourceSchedulingModel(); scheduling.setResourceHostId(computeResouceId); @@ -210,6 +212,7 @@ public void testExperiment(){ ExperimentModel experiment = new ExperimentModel(); experiment.setProjectId(projectId1); + experiment.setGatewayId(gatewayId); experiment.setUserName("TestUser" + TAG); experiment.setExperimentName("TestExperiment" + TAG); experiment.setDescription("experiment"); @@ -235,12 +238,14 @@ public void testExperiment(){ OutputDataObjectType outputDataObjectType = new OutputDataObjectType(); outputDataObjectType.setName("Output_to_Echo"); outputDataObjectType.setValue("Hello World"); + outputDataObjectType.setType(DataType.STRING); experiment.addToExperimentOutputs(outputDataObjectType); airavataServerHandler.updateExperiment(new AuthzToken(""), experimentId1, experiment); //creating more experiments experiment = new ExperimentModel(); experiment.setProjectId(projectId1); + experiment.setGatewayId(gatewayId); experiment.setUserName("TestUser" + TAG); experiment.setExperimentName("TestExperiment2" + TAG); experiment.setDescription("experiment"); @@ -253,6 +258,7 @@ public void testExperiment(){ experiment = new ExperimentModel(); experiment.setProjectId(projectId1); + experiment.setGatewayId(gatewayId); experiment.setUserName("TestUser" + TAG); experiment.setExperimentName("TestExperiment3" + TAG); experiment.setDescription("experiment"); diff --git a/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql b/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql deleted file mode 100644 index 0b0f0e4648..0000000000 --- a/airavata-api/airavata-api-server/src/test/resources/appcatalog-derby.sql +++ /dev/null @@ -1,461 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ - -CREATE TABLE COMPUTE_RESOURCE -( - RESOURCE_ID VARCHAR (255) NOT NULL, - HOST_NAME VARCHAR (255) NOT NULL, - RESOURCE_DESCRIPTION VARCHAR (255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - MAX_MEMORY_NODE INTEGER, - ENABLED SMALLINT, - PRIMARY KEY (RESOURCE_ID) -); - -CREATE TABLE HOST_ALIAS -( - RESOURCE_ID VARCHAR(255), - ALIAS VARCHAR(255), - PRIMARY KEY(RESOURCE_ID,ALIAS), - FOREIGN KEY (RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE -); - -CREATE TABLE HOST_IPADDRESS -( - RESOURCE_ID VARCHAR(255), - IP_ADDRESS VARCHAR(255), - PRIMARY KEY(RESOURCE_ID,IP_ADDRESS), - FOREIGN KEY (RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE -); - -CREATE TABLE GSISSH_SUBMISSION -( - SUBMISSION_ID VARCHAR(255), - RESOURCE_JOB_MANAGER VARCHAR(255), - SSH_PORT INTEGER, - INSTALLED_PATH VARCHAR(255), - MONITOR_MODE VARCHAR(255), - PRIMARY KEY(SUBMISSION_ID) -); - -CREATE TABLE GSISSH_EXPORT -( - SUBMISSION_ID VARCHAR(255), - EXPORT VARCHAR(255), - PRIMARY KEY(SUBMISSION_ID, EXPORT), - FOREIGN KEY (SUBMISSION_ID) REFERENCES GSISSH_SUBMISSION(SUBMISSION_ID) ON DELETE CASCADE -); - - - -CREATE TABLE GLOBUS_SUBMISSION -( - SUBMISSION_ID VARCHAR(255), - RESOURCE_JOB_MANAGER VARCHAR(255), - SECURITY_PROTOCAL VARCHAR(255), - PRIMARY KEY(SUBMISSION_ID) -); - -CREATE TABLE UNICORE_SUBMISSION -( - SUBMISSION_ID VARCHAR(255), - SECURITY_PROTOCAL VARCHAR(255), - UNICORE_ENDPOINT_URL VARCHAR(255), - PRIMARY KEY(SUBMISSION_ID) -); - -CREATE TABLE UNICORE_DATAMOVEMENT -( - DATAMOVEMENT_ID VARCHAR(255), - SECURITY_PROTOCAL VARCHAR(255), - UNICORE_ENDPOINT_URL VARCHAR(255), - PRIMARY KEY(DATAMOVEMENT_ID) -); - - -CREATE TABLE GLOBUS_GK_ENDPOINT -( - SUBMISSION_ID VARCHAR(255), - ENDPOINT VARCHAR(255), - PRIMARY KEY(SUBMISSION_ID, ENDPOINT), - FOREIGN KEY (SUBMISSION_ID) REFERENCES GLOBUS_SUBMISSION(SUBMISSION_ID) ON DELETE CASCADE -); - -CREATE TABLE RESOURCE_JOB_MANAGER -( - RESOURCE_JOB_MANAGER_ID VARCHAR (255) NOT NULL, - PUSH_MONITORING_ENDPOINT VARCHAR (255), - JOB_MANAGER_BIN_PATH VARCHAR (255), - RESOURCE_JOB_MANAGER_TYPE VARCHAR (255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (RESOURCE_JOB_MANAGER_ID) -); - - - -CREATE TABLE SSH_JOB_SUBMISSION -( - RESOURCE_JOB_MANAGER_ID VARCHAR (255) NOT NULL, - JOB_SUBMISSION_INTERFACE_ID VARCHAR (255) NOT NULL, - ALTERNATIVE_SSH_HOSTNAME VARCHAR (255), - SECURITY_PROTOCOL VARCHAR (255) NOT NULL, - SSH_PORT INTEGER, - MONITOR_MODE VARCHAR (255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (JOB_SUBMISSION_INTERFACE_ID), - FOREIGN KEY (RESOURCE_JOB_MANAGER_ID) REFERENCES RESOURCE_JOB_MANAGER(RESOURCE_JOB_MANAGER_ID) -); - -CREATE TABLE SCP_DATA_MOVEMENT -( - QUEUE_DESCRIPTION VARCHAR (255), - DATA_MOVEMENT_INTERFACE_ID VARCHAR (255) NOT NULL, - SECURITY_PROTOCOL VARCHAR (255) NOT NULL, - ALTERNATIVE_SCP_HOSTNAME VARCHAR (255), - SSH_PORT INTEGER, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (DATA_MOVEMENT_INTERFACE_ID) -); - -CREATE TABLE GRIDFTP_DATA_MOVEMENT -( - DATA_MOVEMENT_INTERFACE_ID VARCHAR (255) NOT NULL, - SECURITY_PROTOCOL VARCHAR (255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (DATA_MOVEMENT_INTERFACE_ID) -); - -CREATE TABLE GRIDFTP_ENDPOINT -( - ENDPOINT VARCHAR (255) NOT NULL, - DATA_MOVEMENT_INTERFACE_ID VARCHAR (255) NOT NULL, - PRIMARY KEY (DATA_MOVEMENT_INTERFACE_ID,ENDPOINT), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - FOREIGN KEY (DATA_MOVEMENT_INTERFACE_ID) REFERENCES GRIDFTP_DATA_MOVEMENT(DATA_MOVEMENT_INTERFACE_ID) ON DELETE CASCADE -); - ---CREATE TABLE JOB_SUBMISSION_PROTOCOL ---( --- RESOURCE_ID VARCHAR(255), --- SUBMISSION_ID VARCHAR(255), --- JOB_TYPE VARCHAR(255), --- CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, --- UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', --- PRIMARY KEY(RESOURCE_ID,SUBMISSION_ID,JOB_TYPE), --- FOREIGN KEY (RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE ---); --- ---CREATE TABLE DATA_MOVEMENT_PROTOCOL ---( --- RESOURCE_ID VARCHAR(255), --- DATA_MOVE_ID VARCHAR(255), --- DATA_MOVE_TYPE VARCHAR(255), --- CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, --- UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', --- PRIMARY KEY(RESOURCE_ID,DATA_MOVE_ID,DATA_MOVE_TYPE), --- FOREIGN KEY (RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE ---); - -CREATE TABLE APPLICATION_MODULE -( - MODULE_ID VARCHAR(255), - MODULE_NAME VARCHAR(255), - MODULE_VERSION VARCHAR(255), - MODULE_DESC VARCHAR(255), - GATEWAY_ID VARCHAR (255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY(MODULE_ID) -); - -CREATE TABLE APPLICATION_DEPLOYMENT -( - DEPLOYMENT_ID VARCHAR(255), - APP_MODULE_ID VARCHAR(255), - COMPUTE_HOSTID VARCHAR(255), - EXECUTABLE_PATH VARCHAR(255), - PARALLELISM VARCHAR(255), - APPLICATION_DESC VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - GATEWAY_ID VARCHAR(255), - PRIMARY KEY(DEPLOYMENT_ID), - FOREIGN KEY (COMPUTE_HOSTID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE, - FOREIGN KEY (APP_MODULE_ID) REFERENCES APPLICATION_MODULE(MODULE_ID) ON DELETE CASCADE -); - -CREATE TABLE MODULE_LOAD_CMD -( - CMD VARCHAR (255) NOT NULL, - APP_DEPLOYMENT_ID VARCHAR (255) NOT NULL, - PRIMARY KEY (APP_DEPLOYMENT_ID,CMD), - FOREIGN KEY (APP_DEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE PREJOB_COMMAND -( - APPDEPLOYMENT_ID VARCHAR(255), - COMMAND VARCHAR(255), - PRIMARY KEY(APPDEPLOYMENT_ID, COMMAND), - FOREIGN KEY (APPDEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE POSTJOB_COMMAND -( - APPDEPLOYMENT_ID VARCHAR(255), - COMMAND VARCHAR(255), - PRIMARY KEY(APPDEPLOYMENT_ID, COMMAND), - FOREIGN KEY (APPDEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE LIBRARY_PREPAND_PATH -( - DEPLOYMENT_ID VARCHAR(255), - NAME VARCHAR(255), - VALUE VARCHAR(255), - PRIMARY KEY(DEPLOYMENT_ID, NAME), - FOREIGN KEY (DEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE LIBRARY_APEND_PATH -( - DEPLOYMENT_ID VARCHAR(255), - NAME VARCHAR(255), - VALUE VARCHAR(255), - PRIMARY KEY(DEPLOYMENT_ID, NAME), - FOREIGN KEY (DEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE APP_ENVIRONMENT -( - DEPLOYMENT_ID VARCHAR(255), - NAME VARCHAR(255), - VALUE VARCHAR(255), - PRIMARY KEY(DEPLOYMENT_ID, NAME), - FOREIGN KEY (DEPLOYMENT_ID) REFERENCES APPLICATION_DEPLOYMENT(DEPLOYMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_INTERFACE -( - INTERFACE_ID VARCHAR(255), - APPLICATION_NAME VARCHAR(255), - APPLICATION_DESCRIPTION VARCHAR(255), - GATEWAY_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY(INTERFACE_ID) -); - -CREATE TABLE APP_MODULE_MAPPING -( - INTERFACE_ID VARCHAR(255), - MODULE_ID VARCHAR(255), - PRIMARY KEY(INTERFACE_ID, MODULE_ID), - FOREIGN KEY (INTERFACE_ID) REFERENCES APPLICATION_INTERFACE(INTERFACE_ID) ON DELETE CASCADE, - FOREIGN KEY (MODULE_ID) REFERENCES APPLICATION_MODULE(MODULE_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_INPUT -( - INTERFACE_ID VARCHAR(255), - INPUT_KEY VARCHAR(255), - INPUT_VALUE VARCHAR(255), - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - PRIMARY KEY(INTERFACE_ID,INPUT_KEY), - FOREIGN KEY (INTERFACE_ID) REFERENCES APPLICATION_INTERFACE(INTERFACE_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_OUTPUT -( - INTERFACE_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255), - OUTPUT_VALUE VARCHAR(255), - DATA_TYPE VARCHAR(255), - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(INTERFACE_ID,OUTPUT_KEY), - FOREIGN KEY (INTERFACE_ID) REFERENCES APPLICATION_INTERFACE(INTERFACE_ID) ON DELETE CASCADE -); - -CREATE TABLE GATEWAY_PROFILE -( - GATEWAY_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY(GATEWAY_ID) -); - -CREATE TABLE COMPUTE_RESOURCE_PREFERENCE -( - GATEWAY_ID VARCHAR(255), - RESOURCE_ID VARCHAR(255), - OVERRIDE_BY_AIRAVATA SMALLINT, - PREFERED_JOB_SUB_PROTOCOL VARCHAR(255), - PREFERED_DATA_MOVE_PROTOCOL VARCHAR(255), - PREFERED_BATCH_QUEUE VARCHAR(255), - SCRATCH_LOCATION VARCHAR(255), - ALLOCATION_PROJECT_NUMBER VARCHAR(255), - LOGIN_USERNAME VARCHAR(255), - PRIMARY KEY(GATEWAY_ID,RESOURCE_ID), - FOREIGN KEY (RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE, - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY_PROFILE(GATEWAY_ID) ON DELETE CASCADE -); - -CREATE TABLE BATCH_QUEUE -( - COMPUTE_RESOURCE_ID VARCHAR(255) NOT NULL, - MAX_RUNTIME INTEGER, - MAX_JOB_IN_QUEUE INTEGER, - QUEUE_DESCRIPTION VARCHAR(255), - QUEUE_NAME VARCHAR(255) NOT NULL, - MAX_PROCESSORS INTEGER, - MAX_NODES INTEGER, - MAX_MEMORY INTEGER, - PRIMARY KEY (COMPUTE_RESOURCE_ID,QUEUE_NAME), - FOREIGN KEY (COMPUTE_RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE -); - -CREATE TABLE COMPUTE_RESOURCE_FILE_SYSTEM -( - COMPUTE_RESOURCE_ID VARCHAR (255) NOT NULL, - PATH VARCHAR (255), - FILE_SYSTEM VARCHAR (255) NOT NULL, - PRIMARY KEY (COMPUTE_RESOURCE_ID,FILE_SYSTEM), - FOREIGN KEY (COMPUTE_RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE - ); - -CREATE TABLE JOB_SUBMISSION_INTERFACE -( - JOB_SUBMISSION_INTERFACE_ID VARCHAR (255) NOT NULL, - COMPUTE_RESOURCE_ID VARCHAR (255) NOT NULL, - JOB_SUBMISSION_PROTOCOL VARCHAR (255) NOT NULL, - PRIORITY_ORDER INTEGER, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (COMPUTE_RESOURCE_ID,JOB_SUBMISSION_INTERFACE_ID), - FOREIGN KEY (COMPUTE_RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE -); - -CREATE TABLE DATA_MOVEMENT_INTERFACE -( - COMPUTE_RESOURCE_ID VARCHAR (255) NOT NULL, - DATA_MOVEMENT_PROTOCOL VARCHAR (255) NOT NULL, - DATA_MOVEMENT_INTERFACE_ID VARCHAR (255) NOT NULL, - PRIORITY_ORDER INTEGER, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (COMPUTE_RESOURCE_ID,DATA_MOVEMENT_INTERFACE_ID), - FOREIGN KEY (COMPUTE_RESOURCE_ID) REFERENCES COMPUTE_RESOURCE(RESOURCE_ID) ON DELETE CASCADE -); - -CREATE TABLE JOB_MANAGER_COMMAND -( - RESOURCE_JOB_MANAGER_ID VARCHAR (255) NOT NULL, - COMMAND_TYPE VARCHAR (255) NOT NULL, - COMMAND VARCHAR (255), - PRIMARY KEY (RESOURCE_JOB_MANAGER_ID,COMMAND_TYPE), - FOREIGN KEY (RESOURCE_JOB_MANAGER_ID) REFERENCES RESOURCE_JOB_MANAGER(RESOURCE_JOB_MANAGER_ID) ON DELETE CASCADE -); - -CREATE TABLE LOCAL_SUBMISSION -( - RESOURCE_JOB_MANAGER_ID VARCHAR (255) NOT NULL, - JOB_SUBMISSION_INTERFACE_ID VARCHAR (255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (JOB_SUBMISSION_INTERFACE_ID), - FOREIGN KEY (RESOURCE_JOB_MANAGER_ID) REFERENCES RESOURCE_JOB_MANAGER(RESOURCE_JOB_MANAGER_ID) - ); - -CREATE TABLE LOCAL_DATA_MOVEMENT -( - DATA_MOVEMENT_INTERFACE_ID VARCHAR (255) NOT NULL, - PRIMARY KEY (DATA_MOVEMENT_INTERFACE_ID) -); - -CREATE TABLE WORKFLOW -( - WF_TEMPLATE_ID VARCHAR (255) NOT NULL, - WF_NAME VARCHAR (255) NOT NULL, - GRAPH CLOB, - OWNER VARCHAR(255), - GATEWAY_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - IMAGE BLOB, - PRIMARY KEY (WF_TEMPLATE_ID) -); - -CREATE TABLE WORKFLOW_INPUT -( - WF_TEMPLATE_ID VARCHAR(255), - INPUT_KEY VARCHAR(255), - INPUT_VALUE CLOB, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - PRIMARY KEY(WF_TEMPLATE_ID,INPUT_KEY), - FOREIGN KEY (WF_TEMPLATE_ID) REFERENCES WORKFLOW(WF_TEMPLATE_ID) ON DELETE CASCADE -); - -CREATE TABLE WORKFLOW_OUTPUT -( - WF_TEMPLATE_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255), - OUTPUT_VALUE CLOB, - DATA_TYPE VARCHAR(255), - PRIMARY KEY(WF_TEMPLATE_ID,OUTPUT_KEY), - FOREIGN KEY (WF_TEMPLATE_ID) REFERENCES WORKFLOW(WF_TEMPLATE_ID) ON DELETE CASCADE -); - - - -CREATE TABLE CONFIGURATION -( - CONFIG_KEY VARCHAR(255), - CONFIG_VAL VARCHAR(255), - PRIMARY KEY(CONFIG_KEY, CONFIG_VAL) -); - -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL) VALUES('app_catalog_version', '0.15'); - - - diff --git a/airavata-api/airavata-api-server/src/test/resources/expcatalog-derby.sql b/airavata-api/airavata-api-server/src/test/resources/expcatalog-derby.sql deleted file mode 100644 index 7ab3755c02..0000000000 --- a/airavata-api/airavata-api-server/src/test/resources/expcatalog-derby.sql +++ /dev/null @@ -1,391 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -CREATE TABLE GATEWAY -( - GATEWAY_ID VARCHAR (255), - GATEWAY_NAME VARCHAR(255), - DOMAIN VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY (GATEWAY_ID) -); - -CREATE TABLE CONFIGURATION -( - CONFIG_KEY VARCHAR(255), - CONFIG_VAL VARCHAR(255), - EXPIRE_DATE TIMESTAMP DEFAULT '0000-00-00 00:00:00', - CATEGORY_ID VARCHAR (255), - PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) -); - -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); - -CREATE TABLE USERS -( - USER_NAME VARCHAR(255), - PASSWORD VARCHAR(255), - PRIMARY KEY(USER_NAME) -); - -CREATE TABLE GATEWAY_WORKER -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (GATEWAY_ID, USER_NAME), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT -( - GATEWAY_ID VARCHAR(255), - USER_NAME VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255), - PROJECT_NAME VARCHAR(255) NOT NULL, - DESCRIPTION VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (PROJECT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE PROJECT_USER -( - PROJECT_ID VARCHAR(255), - USER_NAME VARCHAR(255), - PRIMARY KEY (PROJECT_ID,USER_NAME), - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE, - FOREIGN KEY (USER_NAME) REFERENCES USERS(USER_NAME) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT -( - EXPERIMENT_ID VARCHAR(255), - GATEWAY_ID VARCHAR(255), - EXECUTION_USER VARCHAR(255) NOT NULL, - PROJECT_ID VARCHAR(255) NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - EXPERIMENT_NAME VARCHAR(255) NOT NULL, - EXPERIMENT_DESCRIPTION VARCHAR(255), - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - WORKFLOW_TEMPLATE_ID VARCHAR(255), - WORKFLOW_TEMPLATE_VERSION VARCHAR(255), - WORKFLOW_EXECUTION_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - GATEWAY_EXECUTION_ID VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID), - FOREIGN KEY (GATEWAY_ID) REFERENCES GATEWAY(GATEWAY_ID) ON DELETE CASCADE, - FOREIGN KEY (EXECUTION_USER) REFERENCES USERS(USER_NAME) ON DELETE CASCADE, - FOREIGN KEY (PROJECT_ID) REFERENCES PROJECT(PROJECT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_INPUT -( - EXPERIMENT_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE CLOB, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(EXPERIMENT_ID,INPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE EXPERIMENT_OUTPUT -( - EXPERIMENT_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE CLOB, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(EXPERIMENT_ID,OUTPUT_KEY), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - - -CREATE TABLE WORKFLOW_NODE_DETAIL -( - EXPERIMENT_ID VARCHAR(255) NOT NULL, - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - NODE_NAME VARCHAR(255) NOT NULL, - EXECUTION_UNIT VARCHAR(255) NOT NULL, - EXECUTION_UNIT_DATA VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE -); - -CREATE TABLE TASK_DETAIL -( - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - APPLICATION_ID VARCHAR(255), - APPLICATION_VERSION VARCHAR(255), - APPLICATION_DEPLOYMENT_ID VARCHAR(255), - ALLOW_NOTIFICATION SMALLINT, - PRIMARY KEY(TASK_ID), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NOTIFICATION_EMAIL -( - EMAIL_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - EMAIL_ADDRESS VARCHAR(255), - PRIMARY KEY(EMAIL_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ERROR_DETAIL -( - ERROR_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - JOB_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - ACTUAL_ERROR_MESSAGE CLOB, - USER_FRIEDNLY_ERROR_MSG VARCHAR(255), - TRANSIENT_OR_PERSISTENT SMALLINT, - ERROR_CATEGORY VARCHAR(255), - CORRECTIVE_ACTION VARCHAR(255), - ACTIONABLE_GROUP VARCHAR(255), - PRIMARY KEY(ERROR_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_INPUT -( - TASK_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE CLOB, - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(TASK_ID,INPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE APPLICATION_OUTPUT -( - TASK_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE CLOB, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(TASK_ID,OUTPUT_KEY), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_INPUT -( - NODE_INSTANCE_ID VARCHAR(255), - INPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - METADATA VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - STANDARD_INPUT SMALLINT, - USER_FRIENDLY_DESC VARCHAR(255), - VALUE VARCHAR(255), - INPUT_ORDER INTEGER, - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_STAGED SMALLINT, - PRIMARY KEY(NODE_INSTANCE_ID,INPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE NODE_OUTPUT -( - NODE_INSTANCE_ID VARCHAR(255), - OUTPUT_KEY VARCHAR(255) NOT NULL, - DATA_TYPE VARCHAR(255), - VALUE VARCHAR(255), - IS_REQUIRED SMALLINT, - REQUIRED_TO_COMMANDLINE SMALLINT, - DATA_MOVEMENT SMALLINT, - DATA_NAME_LOCATION VARCHAR(255), - SEARCH_QUERY VARCHAR(255), - APP_ARGUMENT VARCHAR(255), - PRIMARY KEY(NODE_INSTANCE_ID,OUTPUT_KEY), - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE -); - -CREATE TABLE JOB_DETAIL -( - JOB_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_DESCRIPTION CLOB NOT NULL, - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - COMPUTE_RESOURCE_CONSUMED VARCHAR(255), - JOBNAME VARCHAR (255), - WORKING_DIR VARCHAR(255), - PRIMARY KEY (TASK_ID, JOB_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE DATA_TRANSFER_DETAIL -( - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - CREATION_TIME TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - TRANSFER_DESC VARCHAR(255) NOT NULL, - PRIMARY KEY(TRANSFER_ID), - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE STATUS -( - STATUS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - NODE_INSTANCE_ID VARCHAR(255), - TRANSFER_ID VARCHAR(255), - TASK_ID VARCHAR(255), - JOB_ID VARCHAR(255), - STATE VARCHAR(255), - STATUS_UPDATE_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - STATUS_TYPE VARCHAR(255), - PRIMARY KEY(STATUS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE, - FOREIGN KEY (NODE_INSTANCE_ID) REFERENCES WORKFLOW_NODE_DETAIL(NODE_INSTANCE_ID) ON DELETE CASCADE, - FOREIGN KEY (TRANSFER_ID) REFERENCES DATA_TRANSFER_DETAIL(TRANSFER_ID) ON DELETE CASCADE -); - -CREATE TABLE CONFIG_DATA -( - EXPERIMENT_ID VARCHAR(255), - AIRAVATA_AUTO_SCHEDULE SMALLINT NOT NULL, - OVERRIDE_MANUAL_SCHEDULE_PARAMS SMALLINT NOT NULL, - SHARE_EXPERIMENT SMALLINT, - USER_DN VARCHAR(255), - GENERATE_CERT SMALLINT, - PRIMARY KEY(EXPERIMENT_ID) -); - -CREATE TABLE COMPUTATIONAL_RESOURCE_SCHEDULING -( - RESOURCE_SCHEDULING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - RESOURCE_HOST_ID VARCHAR(255), - CPU_COUNT INTEGER, - NODE_COUNT INTEGER, - NO_OF_THREADS INTEGER, - QUEUE_NAME VARCHAR(255), - WALLTIME_LIMIT INTEGER, - JOB_START_TIME TIMESTAMP DEFAULT '0000-00-00 00:00:00', - TOTAL_PHYSICAL_MEMORY INTEGER, - COMPUTATIONAL_PROJECT_ACCOUNT VARCHAR(255), - CHESSIS_NAME VARCHAR(255), - PRIMARY KEY(RESOURCE_SCHEDULING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_INPUT_DATA_HANDLING -( - INPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - WORKING_DIR_PARENT VARCHAR(255), - UNIQUE_WORKING_DIR VARCHAR(255), - STAGE_INPUT_FILES_TO_WORKING_DIR SMALLINT, - CLEAN_AFTER_JOB SMALLINT, - PRIMARY KEY(INPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE ADVANCE_OUTPUT_DATA_HANDLING -( - OUTPUT_DATA_HANDLING_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - OUTPUT_DATA_DIR VARCHAR(255), - DATA_REG_URL VARCHAR (255), - PERSIST_OUTPUT_DATA SMALLINT, - PRIMARY KEY(OUTPUT_DATA_HANDLING_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE QOS_PARAM -( - QOS_ID INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY, - EXPERIMENT_ID VARCHAR(255), - TASK_ID VARCHAR(255), - START_EXECUTION_AT VARCHAR(255), - EXECUTE_BEFORE VARCHAR(255), - NO_OF_RETRIES INTEGER, - PRIMARY KEY(QOS_ID), - FOREIGN KEY (EXPERIMENT_ID) REFERENCES EXPERIMENT(EXPERIMENT_ID) ON DELETE CASCADE, - FOREIGN KEY (TASK_ID) REFERENCES TASK_DETAIL(TASK_ID) ON DELETE CASCADE -); - -CREATE TABLE COMMUNITY_USER -( - GATEWAY_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_NAME VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - COMMUNITY_USER_EMAIL VARCHAR(256) NOT NULL, - PRIMARY KEY (GATEWAY_ID, COMMUNITY_USER_NAME, TOKEN_ID) -); - -CREATE TABLE CREDENTIALS -( - GATEWAY_ID VARCHAR(256) NOT NULL, - TOKEN_ID VARCHAR(256) NOT NULL, - CREDENTIAL BLOB NOT NULL, - PORTAL_USER_ID VARCHAR(256) NOT NULL, - TIME_PERSISTED TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (GATEWAY_ID, TOKEN_ID) -); - - diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java index 6488afbf54..6fc182219b 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/WorkerResource.java @@ -594,7 +594,7 @@ public List searchExperiments(Timestamp fromTime, Tim EntityManager em = null; try { String query = "SELECT e FROM ExperimentSummary e " + - "WHERE e.expId=s.expId AND "; + "WHERE "; if (filters.get(ExperimentStatusConstants.STATE) != null) { String experimentState = ExperimentState.valueOf(filters.get(ExperimentStatusConstants.STATE)).toString(); query += "e.state='" + experimentState + "' AND "; diff --git a/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql b/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql index 0b0f0e4648..b3af3f70aa 100644 --- a/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql +++ b/modules/registry/registry-core/src/main/resources/appcatalog-derby.sql @@ -455,7 +455,7 @@ CREATE TABLE CONFIGURATION PRIMARY KEY(CONFIG_KEY, CONFIG_VAL) ); -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL) VALUES('app_catalog_version', '0.15'); +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL) VALUES('app_catalog_version', '0.16'); diff --git a/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql b/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql index 9599efc40e..5e869dff63 100644 --- a/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql +++ b/modules/registry/registry-core/src/main/resources/appcatalog-mysql.sql @@ -450,5 +450,5 @@ CREATE TABLE CONFIGURATION PRIMARY KEY(CONFIG_KEY, CONFIG_VAL) ); -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL) VALUES('app_catalog_version', '0.15'); +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL) VALUES('app_catalog_version', '0.16'); diff --git a/modules/registry/registry-core/src/main/resources/expcatalog-derby.sql b/modules/registry/registry-core/src/main/resources/expcatalog-derby.sql index ac8c91343b..80334e5bb2 100644 --- a/modules/registry/registry-core/src/main/resources/expcatalog-derby.sql +++ b/modules/registry/registry-core/src/main/resources/expcatalog-derby.sql @@ -329,4 +329,4 @@ CREATE TABLE CONFIGURATION PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) ); -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', CURRENT_TIMESTAMP ,'SYSTEM'); \ No newline at end of file +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.16', CURRENT_TIMESTAMP ,'SYSTEM'); \ No newline at end of file diff --git a/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql b/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql index ffb5d1658b..1c8dc48d3b 100644 --- a/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql +++ b/modules/registry/registry-core/src/main/resources/expcatalog-mysql.sql @@ -332,4 +332,4 @@ CREATE TABLE CONFIGURATION PRIMARY KEY(CONFIG_KEY, CONFIG_VAL, CATEGORY_ID) ); -INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.15', NOW() ,'SYSTEM'); \ No newline at end of file +INSERT INTO CONFIGURATION (CONFIG_KEY, CONFIG_VAL, EXPIRE_DATE, CATEGORY_ID) VALUES('registry.version', '0.16', NOW() ,'SYSTEM'); \ No newline at end of file From 053bb9f223b60e4cedcb5cca49e61811dda758d7 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Sun, 2 Aug 2015 23:41:18 +0530 Subject: [PATCH 10/18] fixing gatewayId not set for ExperimentSummaryModel --- .../registry/core/experiment/catalog/resources/Utils.java | 2 +- .../experiment/catalog/utils/ThriftDataModelConversion.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java index 14d54247e4..d7def012b3 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/Utils.java @@ -397,7 +397,7 @@ private static ExperimentCatResource createExperimentSummary(ExperimentSummary o experimentSummaryResource.setExperimentId(o.getExperimentId()); experimentSummaryResource.setProjectId(o.getProjectId()); experimentSummaryResource.setUserName(o.getUserName()); - experimentSummaryResource.setUserName(o.getUserName()); + experimentSummaryResource.setGatewayId(o.getGatewayId()); experimentSummaryResource.setExecutionId(o.getExecutionId()); experimentSummaryResource.setExperimentName(o.getExperimentName()); experimentSummaryResource.setCreationTime(o.getCreationTime()); diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java index ec9e287826..e7ebad1f84 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java @@ -101,9 +101,7 @@ public static ExperimentSummaryModel getExperimentSummary(ExperimentSummaryResou experimentSummary.setUserName(experimentSummaryResource.getUserName()); experimentSummary.setName(experimentSummaryResource.getExperimentName()); experimentSummary.setDescription(experimentSummaryResource.getDescription()); - ExperimentState experimentState = ExperimentState.valueOf(experimentSummaryResource.getState()); -// FIXME : Experiment Summary resource is incomplete at this point -// experimentSummary.setExperimentStatus(experimentSummaryResource.getState()); + experimentSummary.setExperimentStatus(experimentSummaryResource.getState()); return experimentSummary; } return null; From bd97f809ccf457ff3aa284016970ea85396a6430 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 3 Aug 2015 00:35:28 +0530 Subject: [PATCH 11/18] Adding missing executionId field to ExperimentSummary model --- .../core/experiment/catalog/utils/ThriftDataModelConversion.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java index e7ebad1f84..e1ebdeb06f 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/utils/ThriftDataModelConversion.java @@ -97,6 +97,7 @@ public static ExperimentSummaryModel getExperimentSummary(ExperimentSummaryResou experimentSummary.setProjectId(experimentSummaryResource.getProjectId()); experimentSummary.setExperimentId(experimentSummaryResource.getExperimentId()); experimentSummary.setGatewayId(experimentSummaryResource.getGatewayId()); + experimentSummary.setExecutionId(experimentSummaryResource.getExecutionId()); experimentSummary.setCreationTime(experimentSummaryResource.getCreationTime().getTime()); experimentSummary.setUserName(experimentSummaryResource.getUserName()); experimentSummary.setName(experimentSummaryResource.getExperimentName()); From dc61c676067c8a08b8ddccf314fda3e9435089c0 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 3 Aug 2015 02:00:06 +0530 Subject: [PATCH 12/18] removing non paginated versions of API methods for project and experiment retrieval, from Airavata API --- .../server/handler/AiravataServerHandler.java | 206 +- .../org/apache/airavata/api/Airavata.java | 27024 ++++------------ .../airavata/api/airavata_apiConstants.java | 2 +- .../main/resources/lib/airavata/Airavata.cpp | 7956 +---- .../main/resources/lib/airavata/Airavata.h | 3388 +- .../lib/airavata/Airavata_server.skeleton.cpp | 244 +- .../lib/airavata/airavata_api_constants.cpp | 2 +- .../resources/lib/Airavata/API/Airavata.php | 6349 +--- .../main/resources/lib/Airavata/API/Types.php | 2 +- .../lib/apache/airavata/api/Airavata-remote | 136 +- .../lib/apache/airavata/api/Airavata.py | 5120 +-- .../lib/apache/airavata/api/constants.py | 2 +- .../client/samples/CreateLaunchBES.java | 14 +- .../samples/CreateLaunchExperiment.java | 14 +- .../org/apache/airavata/model/Workflow.java | 2 +- .../ApplicationDeploymentDescription.java | 2 +- .../appdeployment/ApplicationModule.java | 2 +- .../appcatalog/appdeployment/SetEnvPaths.java | 2 +- .../ApplicationInterfaceDescription.java | 2 +- .../computeresource/BatchQueue.java | 2 +- .../computeresource/CloudJobSubmission.java | 2 +- .../ComputeResourceDescription.java | 2 +- .../DataMovementInterface.java | 2 +- .../computeresource/GlobusJobSubmission.java | 2 +- .../computeresource/GridFTPDataMovement.java | 2 +- .../JobSubmissionInterface.java | 2 +- .../computeresource/LOCALDataMovement.java | 2 +- .../computeresource/LOCALSubmission.java | 2 +- .../computeresource/ResourceJobManager.java | 2 +- .../computeresource/SCPDataMovement.java | 2 +- .../computeresource/SSHJobSubmission.java | 2 +- .../computeresource/UnicoreDataMovement.java | 2 +- .../computeresource/UnicoreJobSubmission.java | 2 +- .../ComputeResourcePreference.java | 2 +- .../GatewayResourceProfile.java | 2 +- .../application/io/InputDataObjectType.java | 2 +- .../application/io/OutputDataObjectType.java | 2 +- .../airavata/model/commons/ErrorModel.java | 2 +- .../model/commons/ValidationResults.java | 2 +- .../model/commons/ValidatorResult.java | 2 +- .../model/error/AiravataClientException.java | 2 +- .../model/error/AiravataSystemException.java | 2 +- .../model/error/AuthenticationException.java | 2 +- .../model/error/AuthorizationException.java | 2 +- .../error/ExperimentNotFoundException.java | 2 +- .../model/error/InvalidRequestException.java | 2 +- .../error/LaunchValidationException.java | 2 +- .../model/error/ProjectNotFoundException.java | 2 +- .../model/error/TimedOutException.java | 2 +- .../model/error/ValidationResults.java | 2 +- .../airavata/model/error/ValidatorResult.java | 2 +- .../model/experiment/ExperimentModel.java | 2 +- .../experiment/ExperimentStatistics.java | 2 +- .../experiment/ExperimentSummaryModel.java | 2 +- .../UserConfigurationDataModel.java | 2 +- .../apache/airavata/model/job/JobModel.java | 2 +- .../event/ExperimentStatusChangeEvent.java | 2 +- .../model/messaging/event/JobIdentifier.java | 2 +- .../messaging/event/JobStatusChangeEvent.java | 2 +- .../event/JobStatusChangeRequestEvent.java | 2 +- .../model/messaging/event/Message.java | 2 +- .../messaging/event/ProcessIdentifier.java | 2 +- .../event/ProcessStatusChangeEvent.java | 2 +- .../ProcessStatusChangeRequestEvent.java | 2 +- .../messaging/event/ProcessSubmitEvent.java | 2 +- .../event/ProcessTerminateEvent.java | 2 +- .../model/messaging/event/TaskIdentifier.java | 2 +- .../event/TaskOutputChangeEvent.java | 2 +- .../event/TaskStatusChangeEvent.java | 2 +- .../event/TaskStatusChangeRequestEvent.java | 2 +- .../airavata/model/process/ProcessModel.java | 2 +- .../ComputationalResourceSchedulingModel.java | 2 +- .../airavata/model/security/AuthzToken.java | 2 +- .../model/status/ExperimentStatus.java | 2 +- .../airavata/model/status/JobStatus.java | 2 +- .../airavata/model/status/ProcessStatus.java | 2 +- .../airavata/model/status/TaskStatus.java | 2 +- .../model/task/DataStagingTaskModel.java | 2 +- .../apache/airavata/model/task/TaskModel.java | 2 +- .../airavata/model/workspace/Gateway.java | 2 +- .../airavata/model/workspace/Group.java | 2 +- .../airavata/model/workspace/Project.java | 2 +- .../apache/airavata/model/workspace/User.java | 2 +- .../airavata-api/airavata_api.thrift | 199 +- 84 files changed, 11247 insertions(+), 39549 deletions(-) diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index 56af29043c..50097a1963 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -357,21 +357,6 @@ public Project getProject(AuthzToken authzToken, String projectId) throws Invali } } - /** - * Get all Project by user - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @deprecated Instead use getAllUserProjectsWithPagination method - */ - @Deprecated - @Override - public List getAllUserProjects(String gatewayId, String userName) throws InvalidRequestException, - AiravataClientException, AiravataSystemException, TException { - return getAllUserProjectsWithPagination(new AuthzToken(""), gatewayId, userName, -1, -1); - } /** * Get all Project by user with pagination. Results will be ordered based @@ -388,7 +373,7 @@ public List getAllUserProjects(String gatewayId, String userName) throw **/ @Override @SecurityCheck - public List getAllUserProjectsWithPagination(AuthzToken authzToken, String gatewayId, String userName, + public List getUserProjects(AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ @@ -432,24 +417,6 @@ public List getAllUserProjectsWithPagination(AuthzToken authzToken, Str } } - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - */ - @Deprecated - @Override - public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) - throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchProjectsByProjectNameWithPagination(new AuthzToken(""), gatewayId, userName, projectName, -1, -1); - } - /** * Get all Project for user by project name with pagination. Results will be ordered based * on creation time DESC @@ -467,7 +434,7 @@ public List searchProjectsByProjectName(String gatewayId, String userNa */ @Override @SecurityCheck - public List searchProjectsByProjectNameWithPagination(AuthzToken authzToken, String gatewayId, String userName, + public List searchProjectsByProjectName(AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ @@ -510,25 +477,6 @@ public List searchProjectsByProjectNameWithPagination(AuthzToken authzT } } - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - */ - @Deprecated - @Override - public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws InvalidRequestException, - AiravataClientException, - AiravataSystemException, - TException { - return searchProjectsByProjectDescWithPagination(new AuthzToken(""), gatewayId, userName, description, -1, -1); - } - /** * Search and get all Projects for user by project description with pagination. Results * will be ordered based on creation time DESC @@ -546,7 +494,7 @@ public List searchProjectsByProjectDesc(String gatewayId, String userNa */ @Override @SecurityCheck - public List searchProjectsByProjectDescWithPagination(AuthzToken authzToken, String gatewayId, String userName, + public List searchProjectsByProjectDesc(AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ @@ -589,26 +537,6 @@ public List searchProjectsByProjectDescWithPagination(AuthzToken authzT } } - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - */ - @Deprecated - @Override - public List searchExperimentsByName(String gatewayId, String userName, String expName) - throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchExperimentsByNameWithPagination(new AuthzToken(""), gatewayId, userName, expName, -1, -1); - } - /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -626,7 +554,7 @@ public List searchExperimentsByName(String gatewayId, St */ @Override @SecurityCheck - public List searchExperimentsByNameWithPagination(AuthzToken authzToken, String gatewayId, String userName, + public List searchExperimentsByName(AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ @@ -669,25 +597,6 @@ public List searchExperimentsByNameWithPagination(AuthzT } } - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - */ - @Deprecated - @Override - public List searchExperimentsByDesc(String gatewayId, String userName, String description) - throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchExperimentsByDescWithPagination(new AuthzToken(""), gatewayId, userName, description, -1, -1); - } - /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -705,7 +614,7 @@ public List searchExperimentsByDesc(String gatewayId, St */ @Override @SecurityCheck - public List searchExperimentsByDescWithPagination(AuthzToken authzToken, String gatewayId, String userName, + public List searchExperimentsByDesc(AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ @@ -748,25 +657,6 @@ public List searchExperimentsByDescWithPagination(AuthzT } } - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplication - */ - @Deprecated - @Override - public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) - throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchExperimentsByApplicationWithPagination(new AuthzToken(""), gatewayId, userName, applicationId, -1, -1); - } - /** * Search Experiments by application id with pagination. Results will be sorted * based on creation time DESC @@ -784,7 +674,7 @@ public List searchExperimentsByApplication(String gatewa */ @Override @SecurityCheck - public List searchExperimentsByApplicationWithPagination(AuthzToken authzToken, String gatewayId, + public List searchExperimentsByApplication(AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { @@ -828,24 +718,6 @@ public List searchExperimentsByApplicationWithPagination } } - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiment state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - */ - @Deprecated - @Override - public List searchExperimentsByStatus(String gatewayId, String userName, ExperimentState experimentState) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchExperimentsByStatusWithPagination(new AuthzToken(""), gatewayId, userName, experimentState, -1, -1); - } - /** * Search Experiments by experiment status with pagination. Results will be sorted * based on creation time DESC @@ -863,7 +735,7 @@ public List searchExperimentsByStatus(String gatewayId, */ @Override @SecurityCheck - public List searchExperimentsByStatusWithPagination(AuthzToken authzToken, String gatewayId, + public List searchExperimentsByStatus(AuthzToken authzToken, String gatewayId, String userName, ExperimentState experimentState, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { @@ -907,26 +779,6 @@ public List searchExperimentsByStatusWithPagination(Auth } } - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTime - */ - @Deprecated - @Override - public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return searchExperimentsByCreationTimeWithPagination(new AuthzToken(""), gatewayId, userName, fromTime, toTime, -1, -1); - } - /** * Search Experiments by experiment creation time with pagination. Results will be sorted * based on creation time DESC @@ -946,7 +798,7 @@ public List searchExperimentsByCreationTime(String gatew */ @Override @SecurityCheck - public List searchExperimentsByCreationTimeWithPagination(AuthzToken authzToken, String gatewayId, + public List searchExperimentsByCreationTime(AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { @@ -1105,25 +957,7 @@ public ExperimentStatistics getExperimentStatistics(AuthzToken authzToken, Strin } /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - */ - @Deprecated - @Override - public List getAllExperimentsInProject(String projectId) throws InvalidRequestException, - AiravataClientException, - AiravataSystemException, - ProjectNotFoundException, - TException { - return getAllExperimentsInProjectWithPagination(new AuthzToken(""), projectId, -1, -1); - } - - /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -1135,7 +969,7 @@ public List getAllExperimentsInProject(String projectId) throws */ @Override @SecurityCheck - public List getAllExperimentsInProjectWithPagination(AuthzToken authzToken, String projectId, int limit, int offset) + public List getExperimentsInProject(AuthzToken authzToken, String projectId, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, ProjectNotFoundException, AuthorizationException, TException { if (!validateString(projectId)){ @@ -1173,23 +1007,7 @@ public List getAllExperimentsInProjectWithPagination(AuthzToken } /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - */ - @Deprecated - @Override - public List getAllUserExperiments(String gatewayId, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { - return getAllUserExperimentsWithPagination(new AuthzToken(""), gatewayId, userName, -1, -1); - } - - /** - * Get all Experiments by user pagination. Results will be sorted + * Get Experiments by user pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -1203,7 +1021,7 @@ public List getAllUserExperiments(String gatewayId, String user */ @Override @SecurityCheck - public List getAllUserExperimentsWithPagination(AuthzToken authzToken, String gatewayId, String userName, int limit, + public List getUserExperiments(AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { if (!validateString(userName)){ diff --git 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 index 062c4f3b8a..c52fe55cd7 100644 --- 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 @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Airavata { public interface Iface { @@ -138,22 +138,6 @@ public interface Iface { public boolean deleteProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException; - /** - * * Get all Project by user - * * - * * @param gatewayId - * * The identifier for the requested gateway. - * * - * * @param userName - * * The Project Object described in the workspace_model - * * @deprecated Instead use getAllUserProjectsWithPagination - * * - * - * @param gatewayId - * @param userName - */ - public List getAllUserProjects(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; - /** * * Get all Project by user with pagination. Results will be ordered based * * on creation time DESC @@ -174,24 +158,7 @@ public interface Iface { * @param limit * @param offset */ - public List getAllUserProjectsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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; - - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - * - * @param gatewayId - * @param userName - * @param projectName - */ - public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List getUserProjects(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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; /** * Get all Project for user by project name with pagination.Results will be ordered based @@ -215,23 +182,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchProjectsByProjectNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) 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; - - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchProjectsByProjectName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) 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; /** * Search and get all Projects for user by project description with pagination. Results @@ -255,26 +206,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchProjectsByProjectDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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; - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param useNname - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - * - * @param gatewayId - * @param userName - * @param expName - */ - public List searchExperimentsByName(String gatewayId, String userName, String expName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchProjectsByProjectDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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; /** * Search Experiments by experiment name with pagination. Results will be sorted @@ -298,25 +230,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchExperimentsByNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) 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; - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - public List searchExperimentsByDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchExperimentsByName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) 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; /** * Search Experiments by experiment name with pagination. Results will be sorted @@ -340,25 +254,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchExperimentsByDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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; - - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplicationWithPagination - * - * @param gatewayId - * @param userName - * @param applicationId - */ - public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchExperimentsByDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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; /** * Search Experiments by application id with pagination. Results will be sorted @@ -382,25 +278,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchExperimentsByApplicationWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) 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; - - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiement state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - * - * @param gatewayId - * @param userName - * @param experimentState - */ - public List searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchExperimentsByApplication(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) 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; /** * Search Experiments by experiment status with pagination. Results will be sorted @@ -424,28 +302,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchExperimentsByStatusWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) 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; - - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTimeWithPagination - * - * @param gatewayId - * @param userName - * @param fromTime - * @param toTime - */ - public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List searchExperimentsByStatus(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) 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; /** * Search Experiments by experiment creation time with pagination. Results will be sorted @@ -472,7 +329,7 @@ public interface Iface { * @param limit * @param offset */ - public List searchExperimentsByCreationTimeWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) 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; + public List searchExperimentsByCreationTime(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) 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; /** * Search Experiments by using multiple filter criteria with pagination. Results will be sorted @@ -516,19 +373,7 @@ public interface Iface { public org.apache.airavata.model.experiment.ExperimentStatistics getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime) 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; /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - * - * @param projectId - */ - public List getAllExperimentsInProject(String projectId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException; - - /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -543,25 +388,10 @@ public interface Iface { * @param limit * @param offset */ - public List getAllExperimentsInProjectWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException; - - /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - * - * @param gatewayId - * @param userName - */ - public List getAllUserExperiments(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public List getExperimentsInProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException; /** - * Get all Experiments by user pagination. Results will be sorted + * Get experiments by user with pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -579,7 +409,7 @@ public interface Iface { * @param limit * @param offset */ - public List getAllUserExperimentsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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; + public List getUserExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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; /** * Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed @@ -1946,49 +1776,29 @@ public interface AsyncIface { public void deleteProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllUserProjects(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserProjects(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllUserProjectsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchProjectsByProjectName(String gatewayId, String userName, String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchProjectsByProjectDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchProjectsByProjectNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchProjectsByProjectDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchProjectsByProjectDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByApplication(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchExperimentsByName(String gatewayId, String userName, String expName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByStatus(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void searchExperimentsByNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByApplication(String gatewayId, String userName, String applicationId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByApplicationWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByStatusWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void searchExperimentsByCreationTimeWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void searchExperimentsByCreationTime(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void searchExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, Map filters, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllExperimentsInProject(String projectId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void getAllExperimentsInProjectWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getExperimentsInProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllUserExperiments(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - - public void getAllUserExperimentsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getUserExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void createExperiment(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, org.apache.airavata.model.experiment.ExperimentModel experiment, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2691,24 +2501,27 @@ public boolean recv_deleteProject() throws org.apache.airavata.model.error.Inval throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteProject failed: unknown result"); } - public List getAllUserProjects(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List getUserProjects(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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_getAllUserProjects(gatewayId, userName); - return recv_getAllUserProjects(); + send_getUserProjects(authzToken, gatewayId, userName, limit, offset); + return recv_getUserProjects(); } - public void send_getAllUserProjects(String gatewayId, String userName) throws org.apache.thrift.TException + public void send_getUserProjects(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException { - getAllUserProjects_args args = new getAllUserProjects_args(); + getUserProjects_args args = new getUserProjects_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - sendBase("getAllUserProjects", args); + args.setLimit(limit); + args.setOffset(offset); + sendBase("getUserProjects", args); } - public List recv_getAllUserProjects() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_getUserProjects() 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 { - getAllUserProjects_result result = new getAllUserProjects_result(); - receiveBase(result, "getAllUserProjects"); + getUserProjects_result result = new getUserProjects_result(); + receiveBase(result, "getUserProjects"); if (result.isSetSuccess()) { return result.success; } @@ -2721,30 +2534,34 @@ public List recv_getAllUserProjects if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProjects failed: unknown result"); + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserProjects failed: unknown result"); } - public List getAllUserProjectsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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 + public List searchProjectsByProjectName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) 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_getAllUserProjectsWithPagination(authzToken, gatewayId, userName, limit, offset); - return recv_getAllUserProjectsWithPagination(); + send_searchProjectsByProjectName(authzToken, gatewayId, userName, projectName, limit, offset); + return recv_searchProjectsByProjectName(); } - public void send_getAllUserProjectsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException + public void send_searchProjectsByProjectName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) throws org.apache.thrift.TException { - getAllUserProjectsWithPagination_args args = new getAllUserProjectsWithPagination_args(); + searchProjectsByProjectName_args args = new searchProjectsByProjectName_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); + args.setProjectName(projectName); args.setLimit(limit); args.setOffset(offset); - sendBase("getAllUserProjectsWithPagination", args); + sendBase("searchProjectsByProjectName", args); } - public List recv_getAllUserProjectsWithPagination() 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 + public List recv_searchProjectsByProjectName() 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 { - getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); - receiveBase(result, "getAllUserProjectsWithPagination"); + searchProjectsByProjectName_result result = new searchProjectsByProjectName_result(); + receiveBase(result, "searchProjectsByProjectName"); if (result.isSetSuccess()) { return result.success; } @@ -2760,28 +2577,31 @@ public List recv_getAllUserProjects if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); } - public List searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List searchProjectsByProjectDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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_searchProjectsByProjectName(gatewayId, userName, projectName); - return recv_searchProjectsByProjectName(); + send_searchProjectsByProjectDesc(authzToken, gatewayId, userName, description, limit, offset); + return recv_searchProjectsByProjectDesc(); } - public void send_searchProjectsByProjectName(String gatewayId, String userName, String projectName) throws org.apache.thrift.TException + public void send_searchProjectsByProjectDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException { - searchProjectsByProjectName_args args = new searchProjectsByProjectName_args(); + searchProjectsByProjectDesc_args args = new searchProjectsByProjectDesc_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setProjectName(projectName); - sendBase("searchProjectsByProjectName", args); + args.setDescription(description); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchProjectsByProjectDesc", args); } - public List recv_searchProjectsByProjectName() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_searchProjectsByProjectDesc() 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 { - searchProjectsByProjectName_result result = new searchProjectsByProjectName_result(); - receiveBase(result, "searchProjectsByProjectName"); + searchProjectsByProjectDesc_result result = new searchProjectsByProjectDesc_result(); + receiveBase(result, "searchProjectsByProjectDesc"); if (result.isSetSuccess()) { return result.success; } @@ -2794,31 +2614,34 @@ public List recv_searchProjectsByPr if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); } - public List searchProjectsByProjectNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) 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 + public List searchExperimentsByName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) 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_searchProjectsByProjectNameWithPagination(authzToken, gatewayId, userName, projectName, limit, offset); - return recv_searchProjectsByProjectNameWithPagination(); + send_searchExperimentsByName(authzToken, gatewayId, userName, expName, limit, offset); + return recv_searchExperimentsByName(); } - public void send_searchProjectsByProjectNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset) throws org.apache.thrift.TException + public void send_searchExperimentsByName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) throws org.apache.thrift.TException { - searchProjectsByProjectNameWithPagination_args args = new searchProjectsByProjectNameWithPagination_args(); + searchExperimentsByName_args args = new searchExperimentsByName_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setProjectName(projectName); + args.setExpName(expName); args.setLimit(limit); args.setOffset(offset); - sendBase("searchProjectsByProjectNameWithPagination", args); + sendBase("searchExperimentsByName", args); } - public List recv_searchProjectsByProjectNameWithPagination() 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 + public List recv_searchExperimentsByName() 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 { - searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); - receiveBase(result, "searchProjectsByProjectNameWithPagination"); + searchExperimentsByName_result result = new searchExperimentsByName_result(); + receiveBase(result, "searchExperimentsByName"); if (result.isSetSuccess()) { return result.success; } @@ -2834,28 +2657,31 @@ public List recv_searchProjectsByPr if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); } - public List searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List searchExperimentsByDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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_searchProjectsByProjectDesc(gatewayId, userName, description); - return recv_searchProjectsByProjectDesc(); + send_searchExperimentsByDesc(authzToken, gatewayId, userName, description, limit, offset); + return recv_searchExperimentsByDesc(); } - public void send_searchProjectsByProjectDesc(String gatewayId, String userName, String description) throws org.apache.thrift.TException + public void send_searchExperimentsByDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException { - searchProjectsByProjectDesc_args args = new searchProjectsByProjectDesc_args(); + searchExperimentsByDesc_args args = new searchExperimentsByDesc_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); args.setDescription(description); - sendBase("searchProjectsByProjectDesc", args); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByDesc", args); } - public List recv_searchProjectsByProjectDesc() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_searchExperimentsByDesc() 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 { - searchProjectsByProjectDesc_result result = new searchProjectsByProjectDesc_result(); - receiveBase(result, "searchProjectsByProjectDesc"); + searchExperimentsByDesc_result result = new searchExperimentsByDesc_result(); + receiveBase(result, "searchExperimentsByDesc"); if (result.isSetSuccess()) { return result.success; } @@ -2868,31 +2694,34 @@ public List recv_searchProjectsByPr if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); } - public List searchProjectsByProjectDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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 + public List searchExperimentsByApplication(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) 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_searchProjectsByProjectDescWithPagination(authzToken, gatewayId, userName, description, limit, offset); - return recv_searchProjectsByProjectDescWithPagination(); + send_searchExperimentsByApplication(authzToken, gatewayId, userName, applicationId, limit, offset); + return recv_searchExperimentsByApplication(); } - public void send_searchProjectsByProjectDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException + public void send_searchExperimentsByApplication(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) throws org.apache.thrift.TException { - searchProjectsByProjectDescWithPagination_args args = new searchProjectsByProjectDescWithPagination_args(); + searchExperimentsByApplication_args args = new searchExperimentsByApplication_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setDescription(description); + args.setApplicationId(applicationId); args.setLimit(limit); args.setOffset(offset); - sendBase("searchProjectsByProjectDescWithPagination", args); + sendBase("searchExperimentsByApplication", args); } - public List recv_searchProjectsByProjectDescWithPagination() 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 + public List recv_searchExperimentsByApplication() 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 { - searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); - receiveBase(result, "searchProjectsByProjectDescWithPagination"); + searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); + receiveBase(result, "searchExperimentsByApplication"); if (result.isSetSuccess()) { return result.success; } @@ -2908,28 +2737,31 @@ public List recv_searchProjectsByPr if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); } - public List searchExperimentsByName(String gatewayId, String userName, String expName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List searchExperimentsByStatus(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) 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_searchExperimentsByName(gatewayId, userName, expName); - return recv_searchExperimentsByName(); + send_searchExperimentsByStatus(authzToken, gatewayId, userName, experimentState, limit, offset); + return recv_searchExperimentsByStatus(); } - public void send_searchExperimentsByName(String gatewayId, String userName, String expName) throws org.apache.thrift.TException + public void send_searchExperimentsByStatus(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) throws org.apache.thrift.TException { - searchExperimentsByName_args args = new searchExperimentsByName_args(); + searchExperimentsByStatus_args args = new searchExperimentsByStatus_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setExpName(expName); - sendBase("searchExperimentsByName", args); + args.setExperimentState(experimentState); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperimentsByStatus", args); } - public List recv_searchExperimentsByName() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_searchExperimentsByStatus() 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 { - searchExperimentsByName_result result = new searchExperimentsByName_result(); - receiveBase(result, "searchExperimentsByName"); + searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); + receiveBase(result, "searchExperimentsByStatus"); if (result.isSetSuccess()) { return result.success; } @@ -2942,31 +2774,35 @@ public List recv_se if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); } - public List searchExperimentsByNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) 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 + public List searchExperimentsByCreationTime(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) 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_searchExperimentsByNameWithPagination(authzToken, gatewayId, userName, expName, limit, offset); - return recv_searchExperimentsByNameWithPagination(); + send_searchExperimentsByCreationTime(authzToken, gatewayId, userName, fromTime, toTime, limit, offset); + return recv_searchExperimentsByCreationTime(); } - public void send_searchExperimentsByNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset) throws org.apache.thrift.TException + public void send_searchExperimentsByCreationTime(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws org.apache.thrift.TException { - searchExperimentsByNameWithPagination_args args = new searchExperimentsByNameWithPagination_args(); + searchExperimentsByCreationTime_args args = new searchExperimentsByCreationTime_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setExpName(expName); + args.setFromTime(fromTime); + args.setToTime(toTime); args.setLimit(limit); args.setOffset(offset); - sendBase("searchExperimentsByNameWithPagination", args); + sendBase("searchExperimentsByCreationTime", args); } - public List recv_searchExperimentsByNameWithPagination() 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 + public List recv_searchExperimentsByCreationTime() 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 { - searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); - receiveBase(result, "searchExperimentsByNameWithPagination"); + searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); + receiveBase(result, "searchExperimentsByCreationTime"); if (result.isSetSuccess()) { return result.success; } @@ -2982,28 +2818,31 @@ public List recv_se if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); } - public List searchExperimentsByDesc(String gatewayId, String userName, String description) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List searchExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, Map filters, int limit, int offset) 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_searchExperimentsByDesc(gatewayId, userName, description); - return recv_searchExperimentsByDesc(); + send_searchExperiments(authzToken, gatewayId, userName, filters, limit, offset); + return recv_searchExperiments(); } - public void send_searchExperimentsByDesc(String gatewayId, String userName, String description) throws org.apache.thrift.TException + public void send_searchExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, Map filters, int limit, int offset) throws org.apache.thrift.TException { - searchExperimentsByDesc_args args = new searchExperimentsByDesc_args(); + searchExperiments_args args = new searchExperiments_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setDescription(description); - sendBase("searchExperimentsByDesc", args); + args.setFilters(filters); + args.setLimit(limit); + args.setOffset(offset); + sendBase("searchExperiments", args); } - public List recv_searchExperimentsByDesc() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_searchExperiments() 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 { - searchExperimentsByDesc_result result = new searchExperimentsByDesc_result(); - receiveBase(result, "searchExperimentsByDesc"); + searchExperiments_result result = new searchExperiments_result(); + receiveBase(result, "searchExperiments"); if (result.isSetSuccess()) { return result.success; } @@ -3016,31 +2855,32 @@ public List recv_se if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperiments failed: unknown result"); } - public List searchExperimentsByDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) 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 + public org.apache.airavata.model.experiment.ExperimentStatistics getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime) 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_searchExperimentsByDescWithPagination(authzToken, gatewayId, userName, description, limit, offset); - return recv_searchExperimentsByDescWithPagination(); + send_getExperimentStatistics(authzToken, gatewayId, fromTime, toTime); + return recv_getExperimentStatistics(); } - public void send_searchExperimentsByDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset) throws org.apache.thrift.TException + public void send_getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime) throws org.apache.thrift.TException { - searchExperimentsByDescWithPagination_args args = new searchExperimentsByDescWithPagination_args(); + getExperimentStatistics_args args = new getExperimentStatistics_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setDescription(description); - args.setLimit(limit); - args.setOffset(offset); - sendBase("searchExperimentsByDescWithPagination", args); + args.setFromTime(fromTime); + args.setToTime(toTime); + sendBase("getExperimentStatistics", args); } - public List recv_searchExperimentsByDescWithPagination() 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 + public org.apache.airavata.model.experiment.ExperimentStatistics recv_getExperimentStatistics() 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 { - searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); - receiveBase(result, "searchExperimentsByDescWithPagination"); + getExperimentStatistics_result result = new getExperimentStatistics_result(); + receiveBase(result, "getExperimentStatistics"); if (result.isSetSuccess()) { return result.success; } @@ -3056,28 +2896,29 @@ public List recv_se if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExperimentStatistics failed: unknown result"); } - public List searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List getExperimentsInProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException { - send_searchExperimentsByApplication(gatewayId, userName, applicationId); - return recv_searchExperimentsByApplication(); + send_getExperimentsInProject(authzToken, projectId, limit, offset); + return recv_getExperimentsInProject(); } - public void send_searchExperimentsByApplication(String gatewayId, String userName, String applicationId) throws org.apache.thrift.TException + public void send_getExperimentsInProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.thrift.TException { - searchExperimentsByApplication_args args = new searchExperimentsByApplication_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setApplicationId(applicationId); - sendBase("searchExperimentsByApplication", args); + getExperimentsInProject_args args = new getExperimentsInProject_args(); + args.setAuthzToken(authzToken); + args.setProjectId(projectId); + args.setLimit(limit); + args.setOffset(offset); + sendBase("getExperimentsInProject", args); } - public List recv_searchExperimentsByApplication() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public List recv_getExperimentsInProject() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException { - searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); - receiveBase(result, "searchExperimentsByApplication"); + getExperimentsInProject_result result = new getExperimentsInProject_result(); + receiveBase(result, "getExperimentsInProject"); if (result.isSetSuccess()) { return result.success; } @@ -3090,31 +2931,36 @@ public List recv_se if (result.ase != null) { throw result.ase; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); + if (result.pnfe != null) { + throw result.pnfe; + } + if (result.ae != null) { + throw result.ae; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getExperimentsInProject failed: unknown result"); } - public List searchExperimentsByApplicationWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) 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 + public List getUserExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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_searchExperimentsByApplicationWithPagination(authzToken, gatewayId, userName, applicationId, limit, offset); - return recv_searchExperimentsByApplicationWithPagination(); + send_getUserExperiments(authzToken, gatewayId, userName, limit, offset); + return recv_getUserExperiments(); } - public void send_searchExperimentsByApplicationWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset) throws org.apache.thrift.TException + public void send_getUserExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException { - searchExperimentsByApplicationWithPagination_args args = new searchExperimentsByApplicationWithPagination_args(); + getUserExperiments_args args = new getUserExperiments_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); - args.setApplicationId(applicationId); args.setLimit(limit); args.setOffset(offset); - sendBase("searchExperimentsByApplicationWithPagination", args); + sendBase("getUserExperiments", args); } - public List recv_searchExperimentsByApplicationWithPagination() 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 + public List recv_getUserExperiments() 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 { - searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); - receiveBase(result, "searchExperimentsByApplicationWithPagination"); + getUserExperiments_result result = new getUserExperiments_result(); + receiveBase(result, "getUserExperiments"); if (result.isSetSuccess()) { return result.success; } @@ -3130,383 +2976,7 @@ public List recv_se if (result.ae != null) { throw result.ae; } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); - } - - public List searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - send_searchExperimentsByStatus(gatewayId, userName, experimentState); - return recv_searchExperimentsByStatus(); - } - - public void send_searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState) throws org.apache.thrift.TException - { - searchExperimentsByStatus_args args = new searchExperimentsByStatus_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setExperimentState(experimentState); - sendBase("searchExperimentsByStatus", args); - } - - public List recv_searchExperimentsByStatus() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); - receiveBase(result, "searchExperimentsByStatus"); - 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; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); - } - - public List searchExperimentsByStatusWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) 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_searchExperimentsByStatusWithPagination(authzToken, gatewayId, userName, experimentState, limit, offset); - return recv_searchExperimentsByStatusWithPagination(); - } - - public void send_searchExperimentsByStatusWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset) throws org.apache.thrift.TException - { - searchExperimentsByStatusWithPagination_args args = new searchExperimentsByStatusWithPagination_args(); - args.setAuthzToken(authzToken); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setExperimentState(experimentState); - args.setLimit(limit); - args.setOffset(offset); - sendBase("searchExperimentsByStatusWithPagination", args); - } - - public List recv_searchExperimentsByStatusWithPagination() 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 - { - searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); - receiveBase(result, "searchExperimentsByStatusWithPagination"); - 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, "searchExperimentsByStatusWithPagination failed: unknown result"); - } - - public List searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime); - return recv_searchExperimentsByCreationTime(); - } - - public void send_searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime) throws org.apache.thrift.TException - { - searchExperimentsByCreationTime_args args = new searchExperimentsByCreationTime_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setFromTime(fromTime); - args.setToTime(toTime); - sendBase("searchExperimentsByCreationTime", args); - } - - public List recv_searchExperimentsByCreationTime() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); - receiveBase(result, "searchExperimentsByCreationTime"); - 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; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); - } - - public List searchExperimentsByCreationTimeWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) 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_searchExperimentsByCreationTimeWithPagination(authzToken, gatewayId, userName, fromTime, toTime, limit, offset); - return recv_searchExperimentsByCreationTimeWithPagination(); - } - - public void send_searchExperimentsByCreationTimeWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset) throws org.apache.thrift.TException - { - searchExperimentsByCreationTimeWithPagination_args args = new searchExperimentsByCreationTimeWithPagination_args(); - args.setAuthzToken(authzToken); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setFromTime(fromTime); - args.setToTime(toTime); - args.setLimit(limit); - args.setOffset(offset); - sendBase("searchExperimentsByCreationTimeWithPagination", args); - } - - public List recv_searchExperimentsByCreationTimeWithPagination() 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 - { - searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); - receiveBase(result, "searchExperimentsByCreationTimeWithPagination"); - 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, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); - } - - public List searchExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, Map filters, int limit, int offset) 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_searchExperiments(authzToken, gatewayId, userName, filters, limit, offset); - return recv_searchExperiments(); - } - - public void send_searchExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, Map filters, int limit, int offset) throws org.apache.thrift.TException - { - searchExperiments_args args = new searchExperiments_args(); - args.setAuthzToken(authzToken); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setFilters(filters); - args.setLimit(limit); - args.setOffset(offset); - sendBase("searchExperiments", args); - } - - public List recv_searchExperiments() 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 - { - searchExperiments_result result = new searchExperiments_result(); - receiveBase(result, "searchExperiments"); - 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, "searchExperiments failed: unknown result"); - } - - public org.apache.airavata.model.experiment.ExperimentStatistics getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime) 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_getExperimentStatistics(authzToken, gatewayId, fromTime, toTime); - return recv_getExperimentStatistics(); - } - - public void send_getExperimentStatistics(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, long fromTime, long toTime) throws org.apache.thrift.TException - { - getExperimentStatistics_args args = new getExperimentStatistics_args(); - args.setAuthzToken(authzToken); - args.setGatewayId(gatewayId); - args.setFromTime(fromTime); - args.setToTime(toTime); - sendBase("getExperimentStatistics", args); - } - - public org.apache.airavata.model.experiment.ExperimentStatistics recv_getExperimentStatistics() 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 - { - getExperimentStatistics_result result = new getExperimentStatistics_result(); - receiveBase(result, "getExperimentStatistics"); - 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, "getExperimentStatistics failed: unknown result"); - } - - public List getAllExperimentsInProject(String projectId) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException - { - send_getAllExperimentsInProject(projectId); - return recv_getAllExperimentsInProject(); - } - - public void send_getAllExperimentsInProject(String projectId) throws org.apache.thrift.TException - { - getAllExperimentsInProject_args args = new getAllExperimentsInProject_args(); - args.setProjectId(projectId); - sendBase("getAllExperimentsInProject", args); - } - - public List recv_getAllExperimentsInProject() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.thrift.TException - { - getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); - receiveBase(result, "getAllExperimentsInProject"); - 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.pnfe != null) { - throw result.pnfe; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); - } - - public List getAllExperimentsInProjectWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException - { - send_getAllExperimentsInProjectWithPagination(authzToken, projectId, limit, offset); - return recv_getAllExperimentsInProjectWithPagination(); - } - - public void send_getAllExperimentsInProjectWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset) throws org.apache.thrift.TException - { - getAllExperimentsInProjectWithPagination_args args = new getAllExperimentsInProjectWithPagination_args(); - args.setAuthzToken(authzToken); - args.setProjectId(projectId); - args.setLimit(limit); - args.setOffset(offset); - sendBase("getAllExperimentsInProjectWithPagination", args); - } - - public List recv_getAllExperimentsInProjectWithPagination() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.airavata.model.error.ProjectNotFoundException, org.apache.airavata.model.error.AuthorizationException, org.apache.thrift.TException - { - getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); - receiveBase(result, "getAllExperimentsInProjectWithPagination"); - 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.pnfe != null) { - throw result.pnfe; - } - if (result.ae != null) { - throw result.ae; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); - } - - public List getAllUserExperiments(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - send_getAllUserExperiments(gatewayId, userName); - return recv_getAllUserExperiments(); - } - - public void send_getAllUserExperiments(String gatewayId, String userName) throws org.apache.thrift.TException - { - getAllUserExperiments_args args = new getAllUserExperiments_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - sendBase("getAllUserExperiments", args); - } - - public List recv_getAllUserExperiments() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException - { - getAllUserExperiments_result result = new getAllUserExperiments_result(); - receiveBase(result, "getAllUserExperiments"); - 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; - } - throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUserExperiments failed: unknown result"); - } - - public List getAllUserExperimentsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) 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_getAllUserExperimentsWithPagination(authzToken, gatewayId, userName, limit, offset); - return recv_getAllUserExperimentsWithPagination(); - } - - public void send_getAllUserExperimentsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset) throws org.apache.thrift.TException - { - getAllUserExperimentsWithPagination_args args = new getAllUserExperimentsWithPagination_args(); - args.setAuthzToken(authzToken); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setLimit(limit); - args.setOffset(offset); - sendBase("getAllUserExperimentsWithPagination", args); - } - - public List recv_getAllUserExperimentsWithPagination() 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 - { - getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); - receiveBase(result, "getAllUserExperimentsWithPagination"); - 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, "getAllUserExperimentsWithPagination failed: unknown result"); + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserExperiments failed: unknown result"); } public String createExperiment(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, org.apache.airavata.model.experiment.ExperimentModel experiment) 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 @@ -7335,55 +6805,20 @@ public boolean getResult() throws org.apache.airavata.model.error.InvalidRequest } } - public void getAllUserProjects(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserProjects(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllUserProjects_call method_call = new getAllUserProjects_call(gatewayId, userName, resultHandler, this, ___protocolFactory, ___transport); + getUserProjects_call method_call = new getUserProjects_call(authzToken, gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllUserProjects_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - public getAllUserProjects_call(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProjects", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllUserProjects_args args = new getAllUserProjects_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_getAllUserProjects(); - } - } - - public void getAllUserProjectsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getAllUserProjectsWithPagination_call method_call = new getAllUserProjectsWithPagination_call(authzToken, gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getAllUserProjectsWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getUserProjects_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private int limit; private int offset; - public getAllUserProjectsWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getUserProjects_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7393,8 +6828,8 @@ public getAllUserProjectsWithPagination_call(org.apache.airavata.model.security. } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserProjectsWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllUserProjectsWithPagination_args args = new getAllUserProjectsWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserProjects", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getUserProjects_args args = new getUserProjects_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7410,63 +6845,25 @@ public List getResult() throws org. } 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_getAllUserProjectsWithPagination(); + return (new Client(prot)).recv_getUserProjects(); } } - public void searchProjectsByProjectName(String gatewayId, String userName, String projectName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchProjectsByProjectName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchProjectsByProjectName_call method_call = new searchProjectsByProjectName_call(gatewayId, userName, projectName, resultHandler, this, ___protocolFactory, ___transport); + searchProjectsByProjectName_call method_call = new searchProjectsByProjectName_call(authzToken, gatewayId, userName, projectName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchProjectsByProjectName_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private String projectName; - public searchProjectsByProjectName_call(String gatewayId, String userName, String projectName, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.projectName = projectName; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectName", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchProjectsByProjectName_args args = new searchProjectsByProjectName_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setProjectName(projectName); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchProjectsByProjectName(); - } - } - - public void searchProjectsByProjectNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchProjectsByProjectNameWithPagination_call method_call = new searchProjectsByProjectNameWithPagination_call(authzToken, gatewayId, userName, projectName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchProjectsByProjectNameWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private String projectName; private int limit; private int offset; - public searchProjectsByProjectNameWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchProjectsByProjectName_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String projectName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7477,8 +6874,8 @@ public searchProjectsByProjectNameWithPagination_call(org.apache.airavata.model. } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectNameWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchProjectsByProjectNameWithPagination_args args = new searchProjectsByProjectNameWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectName", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchProjectsByProjectName_args args = new searchProjectsByProjectName_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7495,63 +6892,25 @@ public List getResult() throws org. } 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_searchProjectsByProjectNameWithPagination(); + return (new Client(prot)).recv_searchProjectsByProjectName(); } } - public void searchProjectsByProjectDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchProjectsByProjectDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchProjectsByProjectDesc_call method_call = new searchProjectsByProjectDesc_call(gatewayId, userName, description, resultHandler, this, ___protocolFactory, ___transport); + searchProjectsByProjectDesc_call method_call = new searchProjectsByProjectDesc_call(authzToken, gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchProjectsByProjectDesc_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private String description; - public searchProjectsByProjectDesc_call(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.description = description; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectDesc", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchProjectsByProjectDesc_args args = new searchProjectsByProjectDesc_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setDescription(description); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchProjectsByProjectDesc(); - } - } - - public void searchProjectsByProjectDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchProjectsByProjectDescWithPagination_call method_call = new searchProjectsByProjectDescWithPagination_call(authzToken, gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchProjectsByProjectDescWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private String description; private int limit; private int offset; - public searchProjectsByProjectDescWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchProjectsByProjectDesc_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7562,8 +6921,8 @@ public searchProjectsByProjectDescWithPagination_call(org.apache.airavata.model. } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectDescWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchProjectsByProjectDescWithPagination_args args = new searchProjectsByProjectDescWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchProjectsByProjectDesc", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchProjectsByProjectDesc_args args = new searchProjectsByProjectDesc_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7580,63 +6939,25 @@ public List getResult() throws org. } 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_searchProjectsByProjectDescWithPagination(); + return (new Client(prot)).recv_searchProjectsByProjectDesc(); } } - public void searchExperimentsByName(String gatewayId, String userName, String expName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchExperimentsByName(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchExperimentsByName_call method_call = new searchExperimentsByName_call(gatewayId, userName, expName, resultHandler, this, ___protocolFactory, ___transport); + searchExperimentsByName_call method_call = new searchExperimentsByName_call(authzToken, gatewayId, userName, expName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchExperimentsByName_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private String expName; - public searchExperimentsByName_call(String gatewayId, String userName, String expName, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.expName = expName; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByName", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByName_args args = new searchExperimentsByName_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setExpName(expName); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchExperimentsByName(); - } - } - - public void searchExperimentsByNameWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchExperimentsByNameWithPagination_call method_call = new searchExperimentsByNameWithPagination_call(authzToken, gatewayId, userName, expName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchExperimentsByNameWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private String expName; private int limit; private int offset; - public searchExperimentsByNameWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchExperimentsByName_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String expName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7647,8 +6968,8 @@ public searchExperimentsByNameWithPagination_call(org.apache.airavata.model.secu } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByNameWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByNameWithPagination_args args = new searchExperimentsByNameWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByName", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByName_args args = new searchExperimentsByName_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7665,63 +6986,25 @@ public List getResu } 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_searchExperimentsByNameWithPagination(); + return (new Client(prot)).recv_searchExperimentsByName(); } } - public void searchExperimentsByDesc(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchExperimentsByDesc(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchExperimentsByDesc_call method_call = new searchExperimentsByDesc_call(gatewayId, userName, description, resultHandler, this, ___protocolFactory, ___transport); + searchExperimentsByDesc_call method_call = new searchExperimentsByDesc_call(authzToken, gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchExperimentsByDesc_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private String description; - public searchExperimentsByDesc_call(String gatewayId, String userName, String description, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.description = description; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByDesc", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByDesc_args args = new searchExperimentsByDesc_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setDescription(description); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchExperimentsByDesc(); - } - } - - public void searchExperimentsByDescWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchExperimentsByDescWithPagination_call method_call = new searchExperimentsByDescWithPagination_call(authzToken, gatewayId, userName, description, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchExperimentsByDescWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private String description; private int limit; private int offset; - public searchExperimentsByDescWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchExperimentsByDesc_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String description, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7732,8 +7015,8 @@ public searchExperimentsByDescWithPagination_call(org.apache.airavata.model.secu } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByDescWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByDescWithPagination_args args = new searchExperimentsByDescWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByDesc", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByDesc_args args = new searchExperimentsByDesc_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7750,63 +7033,25 @@ public List getResu } 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_searchExperimentsByDescWithPagination(); + return (new Client(prot)).recv_searchExperimentsByDesc(); } } - public void searchExperimentsByApplication(String gatewayId, String userName, String applicationId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchExperimentsByApplication(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchExperimentsByApplication_call method_call = new searchExperimentsByApplication_call(gatewayId, userName, applicationId, resultHandler, this, ___protocolFactory, ___transport); + searchExperimentsByApplication_call method_call = new searchExperimentsByApplication_call(authzToken, gatewayId, userName, applicationId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchExperimentsByApplication_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private String applicationId; - public searchExperimentsByApplication_call(String gatewayId, String userName, String applicationId, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.applicationId = applicationId; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByApplication", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByApplication_args args = new searchExperimentsByApplication_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setApplicationId(applicationId); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchExperimentsByApplication(); - } - } - - public void searchExperimentsByApplicationWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchExperimentsByApplicationWithPagination_call method_call = new searchExperimentsByApplicationWithPagination_call(authzToken, gatewayId, userName, applicationId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchExperimentsByApplicationWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private String applicationId; private int limit; private int offset; - public searchExperimentsByApplicationWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchExperimentsByApplication_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, String applicationId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7817,8 +7062,8 @@ public searchExperimentsByApplicationWithPagination_call(org.apache.airavata.mod } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByApplicationWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByApplicationWithPagination_args args = new searchExperimentsByApplicationWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByApplication", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByApplication_args args = new searchExperimentsByApplication_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7835,63 +7080,25 @@ public List getResu } 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_searchExperimentsByApplicationWithPagination(); + return (new Client(prot)).recv_searchExperimentsByApplication(); } } - public void searchExperimentsByStatus(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchExperimentsByStatus(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchExperimentsByStatus_call method_call = new searchExperimentsByStatus_call(gatewayId, userName, experimentState, resultHandler, this, ___protocolFactory, ___transport); + searchExperimentsByStatus_call method_call = new searchExperimentsByStatus_call(authzToken, gatewayId, userName, experimentState, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchExperimentsByStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private org.apache.airavata.model.status.ExperimentState experimentState; - public searchExperimentsByStatus_call(String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.experimentState = experimentState; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByStatus_args args = new searchExperimentsByStatus_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setExperimentState(experimentState); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchExperimentsByStatus(); - } - } - - public void searchExperimentsByStatusWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchExperimentsByStatusWithPagination_call method_call = new searchExperimentsByStatusWithPagination_call(authzToken, gatewayId, userName, experimentState, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchExperimentsByStatusWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private org.apache.airavata.model.status.ExperimentState experimentState; private int limit; private int offset; - public searchExperimentsByStatusWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchExperimentsByStatus_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.airavata.model.status.ExperimentState experimentState, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7902,8 +7109,8 @@ public searchExperimentsByStatusWithPagination_call(org.apache.airavata.model.se } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByStatusWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByStatusWithPagination_args args = new searchExperimentsByStatusWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByStatus", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByStatus_args args = new searchExperimentsByStatus_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -7920,59 +7127,18 @@ public List getResu } 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_searchExperimentsByStatusWithPagination(); + return (new Client(prot)).recv_searchExperimentsByStatus(); } } - public void searchExperimentsByCreationTime(String gatewayId, String userName, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void searchExperimentsByCreationTime(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - searchExperimentsByCreationTime_call method_call = new searchExperimentsByCreationTime_call(gatewayId, userName, fromTime, toTime, resultHandler, this, ___protocolFactory, ___transport); + searchExperimentsByCreationTime_call method_call = new searchExperimentsByCreationTime_call(authzToken, gatewayId, userName, fromTime, toTime, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class searchExperimentsByCreationTime_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - private long fromTime; - private long toTime; - public searchExperimentsByCreationTime_call(String gatewayId, String userName, long fromTime, long toTime, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - this.fromTime = fromTime; - this.toTime = toTime; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByCreationTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByCreationTime_args args = new searchExperimentsByCreationTime_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.setFromTime(fromTime); - args.setToTime(toTime); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_searchExperimentsByCreationTime(); - } - } - - public void searchExperimentsByCreationTimeWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - searchExperimentsByCreationTimeWithPagination_call method_call = new searchExperimentsByCreationTimeWithPagination_call(authzToken, gatewayId, userName, fromTime, toTime, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class searchExperimentsByCreationTimeWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; @@ -7980,7 +7146,7 @@ public static class searchExperimentsByCreationTimeWithPagination_call extends o private long toTime; private int limit; private int offset; - public searchExperimentsByCreationTimeWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public searchExperimentsByCreationTime_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, long fromTime, long toTime, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -7992,8 +7158,8 @@ public searchExperimentsByCreationTimeWithPagination_call(org.apache.airavata.mo } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByCreationTimeWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - searchExperimentsByCreationTimeWithPagination_args args = new searchExperimentsByCreationTimeWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchExperimentsByCreationTime", org.apache.thrift.protocol.TMessageType.CALL, 0)); + searchExperimentsByCreationTime_args args = new searchExperimentsByCreationTime_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -8011,7 +7177,7 @@ public List getResu } 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_searchExperimentsByCreationTimeWithPagination(); + return (new Client(prot)).recv_searchExperimentsByCreationTime(); } } @@ -8103,51 +7269,19 @@ public org.apache.airavata.model.experiment.ExperimentStatistics getResult() thr } } - public void getAllExperimentsInProject(String projectId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getExperimentsInProject(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllExperimentsInProject_call method_call = new getAllExperimentsInProject_call(projectId, resultHandler, this, ___protocolFactory, ___transport); + getExperimentsInProject_call method_call = new getExperimentsInProject_call(authzToken, projectId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllExperimentsInProject_call extends org.apache.thrift.async.TAsyncMethodCall { - private String projectId; - public getAllExperimentsInProject_call(String projectId, org.apache.thrift.async.AsyncMethodCallback 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.projectId = projectId; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllExperimentsInProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllExperimentsInProject_args args = new getAllExperimentsInProject_args(); - args.setProjectId(projectId); - args.write(prot); - prot.writeMessageEnd(); - } - - public List 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.ProjectNotFoundException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_getAllExperimentsInProject(); - } - } - - public void getAllExperimentsInProjectWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getAllExperimentsInProjectWithPagination_call method_call = new getAllExperimentsInProjectWithPagination_call(authzToken, projectId, limit, offset, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getAllExperimentsInProjectWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getExperimentsInProject_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String projectId; private int limit; private int offset; - public getAllExperimentsInProjectWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getExperimentsInProject_call(org.apache.airavata.model.security.AuthzToken authzToken, String projectId, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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.projectId = projectId; @@ -8156,8 +7290,8 @@ public getAllExperimentsInProjectWithPagination_call(org.apache.airavata.model.s } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllExperimentsInProjectWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllExperimentsInProjectWithPagination_args args = new getAllExperimentsInProjectWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getExperimentsInProject", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getExperimentsInProject_args args = new getExperimentsInProject_args(); args.setAuthzToken(authzToken); args.setProjectId(projectId); args.setLimit(limit); @@ -8172,59 +7306,24 @@ public List getResult() th } 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_getAllExperimentsInProjectWithPagination(); - } - } - - public void getAllUserExperiments(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { - checkReady(); - getAllUserExperiments_call method_call = new getAllUserExperiments_call(gatewayId, userName, resultHandler, this, ___protocolFactory, ___transport); - this.___currentMethod = method_call; - ___manager.call(method_call); - } - - public static class getAllUserExperiments_call extends org.apache.thrift.async.TAsyncMethodCall { - private String gatewayId; - private String userName; - public getAllUserExperiments_call(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback 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.gatewayId = gatewayId; - this.userName = userName; - } - - public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserExperiments", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllUserExperiments_args args = new getAllUserExperiments_args(); - args.setGatewayId(gatewayId); - args.setUserName(userName); - args.write(prot); - prot.writeMessageEnd(); - } - - public List getResult() throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { - throw new 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_getAllUserExperiments(); + return (new Client(prot)).recv_getExperimentsInProject(); } } - public void getAllUserExperimentsWithPagination(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getUserExperiments(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllUserExperimentsWithPagination_call method_call = new getAllUserExperimentsWithPagination_call(authzToken, gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); + getUserExperiments_call method_call = new getUserExperiments_call(authzToken, gatewayId, userName, limit, offset, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } - public static class getAllUserExperimentsWithPagination_call extends org.apache.thrift.async.TAsyncMethodCall { + public static class getUserExperiments_call extends org.apache.thrift.async.TAsyncMethodCall { private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; private int limit; private int offset; - public getAllUserExperimentsWithPagination_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getUserExperiments_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, int limit, int offset, org.apache.thrift.async.AsyncMethodCallback 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; @@ -8234,8 +7333,8 @@ public getAllUserExperimentsWithPagination_call(org.apache.airavata.model.securi } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { - prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserExperimentsWithPagination", org.apache.thrift.protocol.TMessageType.CALL, 0)); - getAllUserExperimentsWithPagination_args args = new getAllUserExperimentsWithPagination_args(); + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserExperiments", org.apache.thrift.protocol.TMessageType.CALL, 0)); + getUserExperiments_args args = new getUserExperiments_args(); args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); @@ -8251,7 +7350,7 @@ public List getResult() th } 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_getAllUserExperimentsWithPagination(); + return (new Client(prot)).recv_getUserExperiments(); } } @@ -11620,28 +10719,18 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { - public getAllUserProjects() { - super("getAllUserProjects"); + public static class getUserProjects extends org.apache.thrift.ProcessFunction { + public getUserProjects() { + super("getUserProjects"); } - public getAllUserProjects_args getEmptyArgsInstance() { - return new getAllUserProjects_args(); + public getUserProjects_args getEmptyArgsInstance() { + return new getUserProjects_args(); } protected boolean isOneway() { return false; } - public getAllUserProjects_result getResult(I iface, getAllUserProjects_args args) throws org.apache.thrift.TException { - getAllUserProjects_result result = new getAllUserProjects_result(); + public getUserProjects_result getResult(I iface, getUserProjects_args args) throws org.apache.thrift.TException { + getUserProjects_result result = new getUserProjects_result(); try { - result.success = iface.getAllUserProjects(args.gatewayId, args.userName); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class getAllUserProjectsWithPagination extends org.apache.thrift.ProcessFunction { - public getAllUserProjectsWithPagination() { - super("getAllUserProjectsWithPagination"); - } - - public getAllUserProjectsWithPagination_args getEmptyArgsInstance() { - return new getAllUserProjectsWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public getAllUserProjectsWithPagination_result getResult(I iface, getAllUserProjectsWithPagination_args args) throws org.apache.thrift.TException { - getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); - try { - result.success = iface.getAllUserProjectsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); + result.success = iface.getUserProjects(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12233,35 +11294,7 @@ protected boolean isOneway() { public searchProjectsByProjectName_result getResult(I iface, searchProjectsByProjectName_args args) throws org.apache.thrift.TException { searchProjectsByProjectName_result result = new searchProjectsByProjectName_result(); try { - result.success = iface.searchProjectsByProjectName(args.gatewayId, args.userName, args.projectName); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchProjectsByProjectNameWithPagination extends org.apache.thrift.ProcessFunction { - public searchProjectsByProjectNameWithPagination() { - super("searchProjectsByProjectNameWithPagination"); - } - - public searchProjectsByProjectNameWithPagination_args getEmptyArgsInstance() { - return new searchProjectsByProjectNameWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchProjectsByProjectNameWithPagination_result getResult(I iface, searchProjectsByProjectNameWithPagination_args args) throws org.apache.thrift.TException { - searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); - try { - result.success = iface.searchProjectsByProjectNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset); + result.success = iface.searchProjectsByProjectName(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12291,35 +11324,7 @@ protected boolean isOneway() { public searchProjectsByProjectDesc_result getResult(I iface, searchProjectsByProjectDesc_args args) throws org.apache.thrift.TException { searchProjectsByProjectDesc_result result = new searchProjectsByProjectDesc_result(); try { - result.success = iface.searchProjectsByProjectDesc(args.gatewayId, args.userName, args.description); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchProjectsByProjectDescWithPagination extends org.apache.thrift.ProcessFunction { - public searchProjectsByProjectDescWithPagination() { - super("searchProjectsByProjectDescWithPagination"); - } - - public searchProjectsByProjectDescWithPagination_args getEmptyArgsInstance() { - return new searchProjectsByProjectDescWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchProjectsByProjectDescWithPagination_result getResult(I iface, searchProjectsByProjectDescWithPagination_args args) throws org.apache.thrift.TException { - searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); - try { - result.success = iface.searchProjectsByProjectDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); + result.success = iface.searchProjectsByProjectDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12349,35 +11354,7 @@ protected boolean isOneway() { public searchExperimentsByName_result getResult(I iface, searchExperimentsByName_args args) throws org.apache.thrift.TException { searchExperimentsByName_result result = new searchExperimentsByName_result(); try { - result.success = iface.searchExperimentsByName(args.gatewayId, args.userName, args.expName); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchExperimentsByNameWithPagination extends org.apache.thrift.ProcessFunction { - public searchExperimentsByNameWithPagination() { - super("searchExperimentsByNameWithPagination"); - } - - public searchExperimentsByNameWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByNameWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchExperimentsByNameWithPagination_result getResult(I iface, searchExperimentsByNameWithPagination_args args) throws org.apache.thrift.TException { - searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); - try { - result.success = iface.searchExperimentsByNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset); + result.success = iface.searchExperimentsByName(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12407,35 +11384,7 @@ protected boolean isOneway() { public searchExperimentsByDesc_result getResult(I iface, searchExperimentsByDesc_args args) throws org.apache.thrift.TException { searchExperimentsByDesc_result result = new searchExperimentsByDesc_result(); try { - result.success = iface.searchExperimentsByDesc(args.gatewayId, args.userName, args.description); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchExperimentsByDescWithPagination extends org.apache.thrift.ProcessFunction { - public searchExperimentsByDescWithPagination() { - super("searchExperimentsByDescWithPagination"); - } - - public searchExperimentsByDescWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByDescWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchExperimentsByDescWithPagination_result getResult(I iface, searchExperimentsByDescWithPagination_args args) throws org.apache.thrift.TException { - searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); - try { - result.success = iface.searchExperimentsByDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); + result.success = iface.searchExperimentsByDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12465,35 +11414,7 @@ protected boolean isOneway() { public searchExperimentsByApplication_result getResult(I iface, searchExperimentsByApplication_args args) throws org.apache.thrift.TException { searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); try { - result.success = iface.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchExperimentsByApplicationWithPagination extends org.apache.thrift.ProcessFunction { - public searchExperimentsByApplicationWithPagination() { - super("searchExperimentsByApplicationWithPagination"); - } - - public searchExperimentsByApplicationWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByApplicationWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchExperimentsByApplicationWithPagination_result getResult(I iface, searchExperimentsByApplicationWithPagination_args args) throws org.apache.thrift.TException { - searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); - try { - result.success = iface.searchExperimentsByApplicationWithPagination(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); + result.success = iface.searchExperimentsByApplication(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12523,35 +11444,7 @@ protected boolean isOneway() { public searchExperimentsByStatus_result getResult(I iface, searchExperimentsByStatus_args args) throws org.apache.thrift.TException { searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); try { - result.success = iface.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchExperimentsByStatusWithPagination extends org.apache.thrift.ProcessFunction { - public searchExperimentsByStatusWithPagination() { - super("searchExperimentsByStatusWithPagination"); - } - - public searchExperimentsByStatusWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByStatusWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchExperimentsByStatusWithPagination_result getResult(I iface, searchExperimentsByStatusWithPagination_args args) throws org.apache.thrift.TException { - searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); - try { - result.success = iface.searchExperimentsByStatusWithPagination(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); + result.success = iface.searchExperimentsByStatus(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12581,35 +11474,7 @@ protected boolean isOneway() { public searchExperimentsByCreationTime_result getResult(I iface, searchExperimentsByCreationTime_args args) throws org.apache.thrift.TException { searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); try { - result.success = iface.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class searchExperimentsByCreationTimeWithPagination extends org.apache.thrift.ProcessFunction { - public searchExperimentsByCreationTimeWithPagination() { - super("searchExperimentsByCreationTimeWithPagination"); - } - - public searchExperimentsByCreationTimeWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByCreationTimeWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public searchExperimentsByCreationTimeWithPagination_result getResult(I iface, searchExperimentsByCreationTimeWithPagination_args args) throws org.apache.thrift.TException { - searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); - try { - result.success = iface.searchExperimentsByCreationTimeWithPagination(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); + result.success = iface.searchExperimentsByCreationTime(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12683,53 +11548,23 @@ public getExperimentStatistics_result getResult(I iface, getExperimentStatistics } } - public static class getAllExperimentsInProject extends org.apache.thrift.ProcessFunction { - public getAllExperimentsInProject() { - super("getAllExperimentsInProject"); + public static class getExperimentsInProject extends org.apache.thrift.ProcessFunction { + public getExperimentsInProject() { + super("getExperimentsInProject"); } - public getAllExperimentsInProject_args getEmptyArgsInstance() { - return new getAllExperimentsInProject_args(); + public getExperimentsInProject_args getEmptyArgsInstance() { + return new getExperimentsInProject_args(); } protected boolean isOneway() { return false; } - public getAllExperimentsInProject_result getResult(I iface, getAllExperimentsInProject_args args) throws org.apache.thrift.TException { - getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); + public getExperimentsInProject_result getResult(I iface, getExperimentsInProject_args args) throws org.apache.thrift.TException { + getExperimentsInProject_result result = new getExperimentsInProject_result(); try { - result.success = iface.getAllExperimentsInProject(args.projectId); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } catch (org.apache.airavata.model.error.ProjectNotFoundException pnfe) { - result.pnfe = pnfe; - } - return result; - } - } - - public static class getAllExperimentsInProjectWithPagination extends org.apache.thrift.ProcessFunction { - public getAllExperimentsInProjectWithPagination() { - super("getAllExperimentsInProjectWithPagination"); - } - - public getAllExperimentsInProjectWithPagination_args getEmptyArgsInstance() { - return new getAllExperimentsInProjectWithPagination_args(); - } - - protected boolean isOneway() { - return false; - } - - public getAllExperimentsInProjectWithPagination_result getResult(I iface, getAllExperimentsInProjectWithPagination_args args) throws org.apache.thrift.TException { - getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); - try { - result.success = iface.getAllExperimentsInProjectWithPagination(args.authzToken, args.projectId, args.limit, args.offset); + result.success = iface.getExperimentsInProject(args.authzToken, args.projectId, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -12745,51 +11580,23 @@ public getAllExperimentsInProjectWithPagination_result getResult(I iface, getAll } } - public static class getAllUserExperiments extends org.apache.thrift.ProcessFunction { - public getAllUserExperiments() { - super("getAllUserExperiments"); - } - - public getAllUserExperiments_args getEmptyArgsInstance() { - return new getAllUserExperiments_args(); - } - - protected boolean isOneway() { - return false; - } - - public getAllUserExperiments_result getResult(I iface, getAllUserExperiments_args args) throws org.apache.thrift.TException { - getAllUserExperiments_result result = new getAllUserExperiments_result(); - try { - result.success = iface.getAllUserExperiments(args.gatewayId, args.userName); - } catch (org.apache.airavata.model.error.InvalidRequestException ire) { - result.ire = ire; - } catch (org.apache.airavata.model.error.AiravataClientException ace) { - result.ace = ace; - } catch (org.apache.airavata.model.error.AiravataSystemException ase) { - result.ase = ase; - } - return result; - } - } - - public static class getAllUserExperimentsWithPagination extends org.apache.thrift.ProcessFunction { - public getAllUserExperimentsWithPagination() { - super("getAllUserExperimentsWithPagination"); + public static class getUserExperiments extends org.apache.thrift.ProcessFunction { + public getUserExperiments() { + super("getUserExperiments"); } - public getAllUserExperimentsWithPagination_args getEmptyArgsInstance() { - return new getAllUserExperimentsWithPagination_args(); + public getUserExperiments_args getEmptyArgsInstance() { + return new getUserExperiments_args(); } protected boolean isOneway() { return false; } - public getAllUserExperimentsWithPagination_result getResult(I iface, getAllUserExperimentsWithPagination_args args) throws org.apache.thrift.TException { - getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); + public getUserExperiments_result getResult(I iface, getUserExperiments_args args) throws org.apache.thrift.TException { + getUserExperiments_result result = new getUserExperiments_result(); try { - result.success = iface.getAllUserExperimentsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); + result.success = iface.getUserExperiments(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -15602,28 +14409,18 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction> { - public getAllUserProjects() { - super("getAllUserProjects"); - } - - public getAllUserProjects_args getEmptyArgsInstance() { - return new getAllUserProjects_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllUserProjects_result result = new getAllUserProjects_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getAllUserProjects_result result = new getAllUserProjects_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getAllUserProjects_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllUserProjects(args.gatewayId, args.userName,resultHandler); - } - } - - public static class getAllUserProjectsWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public getAllUserProjectsWithPagination() { - super("getAllUserProjectsWithPagination"); + public static class getUserProjects extends org.apache.thrift.AsyncProcessFunction> { + public getUserProjects() { + super("getUserProjects"); } - public getAllUserProjectsWithPagination_args getEmptyArgsInstance() { - return new getAllUserProjectsWithPagination_args(); + public getUserProjects_args getEmptyArgsInstance() { + return new getUserProjects_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + getUserProjects_result result = new getUserProjects_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -16820,7 +15550,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllUserProjectsWithPagination_result result = new getAllUserProjectsWithPagination_result(); + getUserProjects_result result = new getUserProjects_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -16861,8 +15591,8 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllUserProjectsWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllUserProjectsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset,resultHandler); + public void start(I iface, getUserProjects_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUserProjects(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset,resultHandler); } } @@ -16903,73 +15633,6 @@ else if (e instanceof org.apache.airavata.model.error.AiravataClient 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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, searchProjectsByProjectName_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchProjectsByProjectName(args.gatewayId, args.userName, args.projectName,resultHandler); - } - } - - public static class searchProjectsByProjectNameWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchProjectsByProjectNameWithPagination() { - super("searchProjectsByProjectNameWithPagination"); - } - - public searchProjectsByProjectNameWithPagination_args getEmptyArgsInstance() { - return new searchProjectsByProjectNameWithPagination_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - searchProjectsByProjectNameWithPagination_result result = new searchProjectsByProjectNameWithPagination_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); @@ -17000,8 +15663,8 @@ protected boolean isOneway() { return false; } - public void start(I iface, searchProjectsByProjectNameWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchProjectsByProjectNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset,resultHandler); + public void start(I iface, searchProjectsByProjectName_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchProjectsByProjectName(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset,resultHandler); } } @@ -17042,73 +15705,6 @@ else if (e instanceof org.apache.airavata.model.error.AiravataClient 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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, searchProjectsByProjectDesc_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchProjectsByProjectDesc(args.gatewayId, args.userName, args.description,resultHandler); - } - } - - public static class searchProjectsByProjectDescWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchProjectsByProjectDescWithPagination() { - super("searchProjectsByProjectDescWithPagination"); - } - - public searchProjectsByProjectDescWithPagination_args getEmptyArgsInstance() { - return new searchProjectsByProjectDescWithPagination_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - searchProjectsByProjectDescWithPagination_result result = new searchProjectsByProjectDescWithPagination_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); @@ -17139,8 +15735,8 @@ protected boolean isOneway() { return false; } - public void start(I iface, searchProjectsByProjectDescWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchProjectsByProjectDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); + public void start(I iface, searchProjectsByProjectDesc_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchProjectsByProjectDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); } } @@ -17181,73 +15777,6 @@ else if (e instanceof org.apache.airavata.model.error.AiravataClient 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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, searchExperimentsByName_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchExperimentsByName(args.gatewayId, args.userName, args.expName,resultHandler); - } - } - - public static class searchExperimentsByNameWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByNameWithPagination() { - super("searchExperimentsByNameWithPagination"); - } - - public searchExperimentsByNameWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByNameWithPagination_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - searchExperimentsByNameWithPagination_result result = new searchExperimentsByNameWithPagination_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); @@ -17278,8 +15807,8 @@ protected boolean isOneway() { return false; } - public void start(I iface, searchExperimentsByNameWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchExperimentsByNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset,resultHandler); + public void start(I iface, searchExperimentsByName_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByName(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset,resultHandler); } } @@ -17324,6 +15853,11 @@ else if (e instanceof org.apache.airavata.model.error.AiravataSystem 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 { @@ -17346,24 +15880,24 @@ protected boolean isOneway() { } public void start(I iface, searchExperimentsByDesc_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchExperimentsByDesc(args.gatewayId, args.userName, args.description,resultHandler); + iface.searchExperimentsByDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByDescWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByDescWithPagination() { - super("searchExperimentsByDescWithPagination"); + public static class searchExperimentsByApplication extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByApplication() { + super("searchExperimentsByApplication"); } - public searchExperimentsByDescWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByDescWithPagination_args(); + public searchExperimentsByApplication_args getEmptyArgsInstance() { + return new searchExperimentsByApplication_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByDescWithPagination_result result = new searchExperimentsByDescWithPagination_result(); + searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17376,7 +15910,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset,resultHandler); + public void start(I iface, searchExperimentsByApplication_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByApplication(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByApplication extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByApplication() { - super("searchExperimentsByApplication"); + public static class searchExperimentsByStatus extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByStatus() { + super("searchExperimentsByStatus"); } - public searchExperimentsByApplication_args getEmptyArgsInstance() { - return new searchExperimentsByApplication_args(); + public searchExperimentsByStatus_args getEmptyArgsInstance() { + return new searchExperimentsByStatus_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByApplication_result result = new searchExperimentsByApplication_result(); + searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17448,7 +15982,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId,resultHandler); + public void start(I iface, searchExperimentsByStatus_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByStatus(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByApplicationWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByApplicationWithPagination() { - super("searchExperimentsByApplicationWithPagination"); + public static class searchExperimentsByCreationTime extends org.apache.thrift.AsyncProcessFunction> { + public searchExperimentsByCreationTime() { + super("searchExperimentsByCreationTime"); } - public searchExperimentsByApplicationWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByApplicationWithPagination_args(); + public searchExperimentsByCreationTime_args getEmptyArgsInstance() { + return new searchExperimentsByCreationTime_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByApplicationWithPagination_result result = new searchExperimentsByApplicationWithPagination_result(); + searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17515,7 +16054,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByApplicationWithPagination(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset,resultHandler); + public void start(I iface, searchExperimentsByCreationTime_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperimentsByCreationTime(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByStatus extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByStatus() { - super("searchExperimentsByStatus"); + public static class searchExperiments extends org.apache.thrift.AsyncProcessFunction> { + public searchExperiments() { + super("searchExperiments"); } - public searchExperimentsByStatus_args getEmptyArgsInstance() { - return new searchExperimentsByStatus_args(); + public searchExperiments_args getEmptyArgsInstance() { + return new searchExperiments_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - searchExperimentsByStatus_result result = new searchExperimentsByStatus_result(); + searchExperiments_result result = new searchExperiments_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17587,7 +16126,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState,resultHandler); + public void start(I iface, searchExperiments_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.searchExperiments(args.authzToken, args.gatewayId, args.userName, args.filters, args.limit, args.offset,resultHandler); } } - public static class searchExperimentsByStatusWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByStatusWithPagination() { - super("searchExperimentsByStatusWithPagination"); + public static class getExperimentStatistics extends org.apache.thrift.AsyncProcessFunction { + public getExperimentStatistics() { + super("getExperimentStatistics"); } - public searchExperimentsByStatusWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByStatusWithPagination_args(); + public getExperimentStatistics_args getEmptyArgsInstance() { + return new getExperimentStatistics_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchExperimentsByStatusWithPagination_result result = new searchExperimentsByStatusWithPagination_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.experiment.ExperimentStatistics o) { + getExperimentStatistics_result result = new getExperimentStatistics_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17654,7 +16198,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByStatusWithPagination(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset,resultHandler); + public void start(I iface, getExperimentStatistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getExperimentStatistics(args.authzToken, args.gatewayId, args.fromTime, args.toTime,resultHandler); } } - public static class searchExperimentsByCreationTime extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByCreationTime() { - super("searchExperimentsByCreationTime"); + public static class getExperimentsInProject extends org.apache.thrift.AsyncProcessFunction> { + public getExperimentsInProject() { + super("getExperimentsInProject"); } - public searchExperimentsByCreationTime_args getEmptyArgsInstance() { - return new searchExperimentsByCreationTime_args(); + public getExperimentsInProject_args getEmptyArgsInstance() { + return new getExperimentsInProject_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchExperimentsByCreationTime_result result = new searchExperimentsByCreationTime_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getExperimentsInProject_result result = new getExperimentsInProject_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17726,7 +16270,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime,resultHandler); - } - } - - public static class searchExperimentsByCreationTimeWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public searchExperimentsByCreationTimeWithPagination() { - super("searchExperimentsByCreationTimeWithPagination"); - } - - public searchExperimentsByCreationTimeWithPagination_args getEmptyArgsInstance() { - return new searchExperimentsByCreationTimeWithPagination_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - searchExperimentsByCreationTimeWithPagination_result result = new searchExperimentsByCreationTimeWithPagination_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); + else if (e instanceof org.apache.airavata.model.error.ProjectNotFoundException) { + result.pnfe = (org.apache.airavata.model.error.ProjectNotFoundException) e; + result.setPnfeIsSet(true); msg = result; } else if (e instanceof org.apache.airavata.model.error.AuthorizationException) { @@ -17834,25 +16316,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, searchExperimentsByCreationTimeWithPagination_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.searchExperimentsByCreationTimeWithPagination(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset,resultHandler); + public void start(I iface, getExperimentsInProject_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getExperimentsInProject(args.authzToken, args.projectId, args.limit, args.offset,resultHandler); } } - public static class searchExperiments extends org.apache.thrift.AsyncProcessFunction> { - public searchExperiments() { - super("searchExperiments"); + public static class getUserExperiments extends org.apache.thrift.AsyncProcessFunction> { + public getUserExperiments() { + super("getUserExperiments"); } - public searchExperiments_args getEmptyArgsInstance() { - return new searchExperiments_args(); + public getUserExperiments_args getEmptyArgsInstance() { + return new getUserExperiments_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - searchExperiments_result result = new searchExperiments_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getUserExperiments_result result = new getUserExperiments_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17865,7 +16347,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.searchExperiments(args.authzToken, args.gatewayId, args.userName, args.filters, args.limit, args.offset,resultHandler); + public void start(I iface, getUserExperiments_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getUserExperiments(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset,resultHandler); } } - public static class getExperimentStatistics extends org.apache.thrift.AsyncProcessFunction { - public getExperimentStatistics() { - super("getExperimentStatistics"); + public static class createExperiment extends org.apache.thrift.AsyncProcessFunction { + public createExperiment() { + super("createExperiment"); } - public getExperimentStatistics_args getEmptyArgsInstance() { - return new getExperimentStatistics_args(); + public createExperiment_args getEmptyArgsInstance() { + return new createExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.experiment.ExperimentStatistics o) { - getExperimentStatistics_result result = new getExperimentStatistics_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + createExperiment_result result = new createExperiment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -17937,7 +16419,7 @@ public void onComplete(org.apache.airavata.model.experiment.ExperimentStatistics public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getExperimentStatistics_result result = new getExperimentStatistics_result(); + createExperiment_result result = new createExperiment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -17978,25 +16460,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getExperimentStatistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getExperimentStatistics(args.authzToken, args.gatewayId, args.fromTime, args.toTime,resultHandler); + public void start(I iface, createExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.createExperiment(args.authzToken, args.gatewayId, args.experiment,resultHandler); } } - public static class getAllExperimentsInProject extends org.apache.thrift.AsyncProcessFunction> { - public getAllExperimentsInProject() { - super("getAllExperimentsInProject"); + public static class getExperiment extends org.apache.thrift.AsyncProcessFunction { + public getExperiment() { + super("getExperiment"); } - public getAllExperimentsInProject_args getEmptyArgsInstance() { - return new getAllExperimentsInProject_args(); + public getExperiment_args getEmptyArgsInstance() { + return new getExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllExperimentsInProject_result result = new getAllExperimentsInProject_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.experiment.ExperimentModel o) { + getExperiment_result result = new getExperiment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18009,12 +16491,17 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllExperimentsInProject(args.projectId,resultHandler); + public void start(I iface, getExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getExperiment(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class getAllExperimentsInProjectWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public getAllExperimentsInProjectWithPagination() { - super("getAllExperimentsInProjectWithPagination"); + public static class updateExperiment extends org.apache.thrift.AsyncProcessFunction { + public updateExperiment() { + super("updateExperiment"); } - public getAllExperimentsInProjectWithPagination_args getEmptyArgsInstance() { - return new getAllExperimentsInProjectWithPagination_args(); + public updateExperiment_args getEmptyArgsInstance() { + return new updateExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllExperimentsInProjectWithPagination_result result = new getAllExperimentsInProjectWithPagination_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateExperiment_result result = new updateExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18081,12 +16567,17 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllExperimentsInProjectWithPagination(args.authzToken, args.projectId, args.limit, args.offset,resultHandler); + public void start(I iface, updateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateExperiment(args.authzToken, args.airavataExperimentId, args.experiment,resultHandler); } } - public static class getAllUserExperiments extends org.apache.thrift.AsyncProcessFunction> { - public getAllUserExperiments() { - super("getAllUserExperiments"); + public static class updateExperimentConfiguration extends org.apache.thrift.AsyncProcessFunction { + public updateExperimentConfiguration() { + super("updateExperimentConfiguration"); } - public getAllUserExperiments_args getEmptyArgsInstance() { - return new getAllUserExperiments_args(); + public updateExperimentConfiguration_args getEmptyArgsInstance() { + return new updateExperimentConfiguration_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllUserExperiments_result result = new getAllUserExperiments_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18158,20 +16643,10 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllUserExperiments(args.gatewayId, args.userName,resultHandler); + public void start(I iface, updateExperimentConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateExperimentConfiguration(args.authzToken, args.airavataExperimentId, args.userConfiguration,resultHandler); } } - public static class getAllUserExperimentsWithPagination extends org.apache.thrift.AsyncProcessFunction> { - public getAllUserExperimentsWithPagination() { - super("getAllUserExperimentsWithPagination"); + public static class updateResourceScheduleing extends org.apache.thrift.AsyncProcessFunction { + public updateResourceScheduleing() { + super("updateResourceScheduleing"); } - public getAllUserExperimentsWithPagination_args getEmptyArgsInstance() { - return new getAllUserExperimentsWithPagination_args(); + public updateResourceScheduleing_args getEmptyArgsInstance() { + return new updateResourceScheduleing_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllUserExperimentsWithPagination_result result = new getAllUserExperimentsWithPagination_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateResourceScheduleing_result result = new updateResourceScheduleing_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18225,23 +16699,8 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllUserExperimentsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset,resultHandler); + public void start(I iface, updateResourceScheduleing_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateResourceScheduleing(args.authzToken, args.airavataExperimentId, args.resourceScheduling,resultHandler); } } - public static class createExperiment extends org.apache.thrift.AsyncProcessFunction { - public createExperiment() { - super("createExperiment"); + public static class validateExperiment extends org.apache.thrift.AsyncProcessFunction { + public validateExperiment() { + super("validateExperiment"); } - public createExperiment_args getEmptyArgsInstance() { - return new createExperiment_args(); + public validateExperiment_args getEmptyArgsInstance() { + return new validateExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - createExperiment_result result = new createExperiment_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + validateExperiment_result result = new validateExperiment_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18297,12 +16757,17 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - createExperiment_result result = new createExperiment_result(); + validateExperiment_result result = new validateExperiment_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.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(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); @@ -18338,26 +16803,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, createExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.createExperiment(args.authzToken, args.gatewayId, args.experiment,resultHandler); + public void start(I iface, validateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.validateExperiment(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class getExperiment extends org.apache.thrift.AsyncProcessFunction { - public getExperiment() { - super("getExperiment"); + public static class launchExperiment extends org.apache.thrift.AsyncProcessFunction { + public launchExperiment() { + super("launchExperiment"); } - public getExperiment_args getEmptyArgsInstance() { - return new getExperiment_args(); + public launchExperiment_args getEmptyArgsInstance() { + return new launchExperiment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.experiment.ExperimentModel o) { - getExperiment_result result = new getExperiment_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + launchExperiment_result result = new launchExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18369,7 +16833,7 @@ public void onComplete(org.apache.airavata.model.experiment.ExperimentModel o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getExperiment_result result = new getExperiment_result(); + launchExperiment_result result = new launchExperiment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18415,25 +16879,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getExperiment(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, launchExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.launchExperiment(args.authzToken, args.airavataExperimentId, args.airavataCredStoreToken,resultHandler); } } - public static class updateExperiment extends org.apache.thrift.AsyncProcessFunction { - public updateExperiment() { - super("updateExperiment"); + public static class getExperimentStatus extends org.apache.thrift.AsyncProcessFunction { + public getExperimentStatus() { + super("getExperimentStatus"); } - public updateExperiment_args getEmptyArgsInstance() { - return new updateExperiment_args(); + public getExperimentStatus_args getEmptyArgsInstance() { + return new getExperimentStatus_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateExperiment_result result = new updateExperiment_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.status.ExperimentStatus o) { + getExperimentStatus_result result = new getExperimentStatus_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18445,7 +16910,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateExperiment_result result = new updateExperiment_result(); + getExperimentStatus_result result = new getExperimentStatus_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18491,25 +16956,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateExperiment(args.authzToken, args.airavataExperimentId, args.experiment,resultHandler); + public void start(I iface, getExperimentStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getExperimentStatus(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class updateExperimentConfiguration extends org.apache.thrift.AsyncProcessFunction { - public updateExperimentConfiguration() { - super("updateExperimentConfiguration"); + public static class getExperimentOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getExperimentOutputs() { + super("getExperimentOutputs"); } - public updateExperimentConfiguration_args getEmptyArgsInstance() { - return new updateExperimentConfiguration_args(); + public getExperimentOutputs_args getEmptyArgsInstance() { + return new getExperimentOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getExperimentOutputs_result result = new getExperimentOutputs_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18521,64 +16987,28 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateExperimentConfiguration_result result = new updateExperimentConfiguration_result(); - if (e instanceof org.apache.airavata.model.error.AuthorizationException) { - result.ae = (org.apache.airavata.model.error.AuthorizationException) e; - result.setAeIsSet(true); + getExperimentOutputs_result result = new getExperimentOutputs_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + else if (e instanceof org.apache.airavata.model.error.ExperimentNotFoundException) { + result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; + result.setEnfIsSet(true); + msg = result; } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); + else if (e instanceof org.apache.airavata.model.error.AiravataClientException) { + result.ace = (org.apache.airavata.model.error.AiravataClientException) e; + result.setAceIsSet(true); + msg = result; } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, updateExperimentConfiguration_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateExperimentConfiguration(args.authzToken, args.airavataExperimentId, args.userConfiguration,resultHandler); - } - } - - public static class updateResourceScheduleing extends org.apache.thrift.AsyncProcessFunction { - public updateResourceScheduleing() { - super("updateResourceScheduleing"); - } - - public updateResourceScheduleing_args getEmptyArgsInstance() { - return new updateResourceScheduleing_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateResourceScheduleing_result result = new updateResourceScheduleing_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); + else if (e instanceof org.apache.airavata.model.error.AiravataSystemException) { + result.ase = (org.apache.airavata.model.error.AiravataSystemException) e; + result.setAseIsSet(true); + msg = result; } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - updateResourceScheduleing_result result = new updateResourceScheduleing_result(); - if (e instanceof org.apache.airavata.model.error.AuthorizationException) { + else if (e instanceof org.apache.airavata.model.error.AuthorizationException) { result.ae = (org.apache.airavata.model.error.AuthorizationException) e; result.setAeIsSet(true); msg = result; @@ -18603,27 +17033,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateResourceScheduleing_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateResourceScheduleing(args.authzToken, args.airavataExperimentId, args.resourceScheduling,resultHandler); + public void start(I iface, getExperimentOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getExperimentOutputs(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class validateExperiment extends org.apache.thrift.AsyncProcessFunction { - public validateExperiment() { - super("validateExperiment"); + public static class getIntermediateOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getIntermediateOutputs() { + super("getIntermediateOutputs"); } - public validateExperiment_args getEmptyArgsInstance() { - return new validateExperiment_args(); + public getIntermediateOutputs_args getEmptyArgsInstance() { + return new getIntermediateOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - validateExperiment_result result = new validateExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getIntermediateOutputs_result result = new getIntermediateOutputs_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18635,7 +17064,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - validateExperiment_result result = new validateExperiment_result(); + getIntermediateOutputs_result result = new getIntermediateOutputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18681,25 +17110,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, validateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.validateExperiment(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, getIntermediateOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getIntermediateOutputs(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class launchExperiment extends org.apache.thrift.AsyncProcessFunction { - public launchExperiment() { - super("launchExperiment"); + public static class getJobStatuses extends org.apache.thrift.AsyncProcessFunction> { + public getJobStatuses() { + super("getJobStatuses"); } - public launchExperiment_args getEmptyArgsInstance() { - return new launchExperiment_args(); + public getJobStatuses_args getEmptyArgsInstance() { + return new getJobStatuses_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - launchExperiment_result result = new launchExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getJobStatuses_result result = new getJobStatuses_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18711,7 +17141,7 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - launchExperiment_result result = new launchExperiment_result(); + getJobStatuses_result result = new getJobStatuses_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18757,25 +17187,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, launchExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.launchExperiment(args.authzToken, args.airavataExperimentId, args.airavataCredStoreToken,resultHandler); + public void start(I iface, getJobStatuses_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getJobStatuses(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class getExperimentStatus extends org.apache.thrift.AsyncProcessFunction { - public getExperimentStatus() { - super("getExperimentStatus"); + public static class getJobDetails extends org.apache.thrift.AsyncProcessFunction> { + public getJobDetails() { + super("getJobDetails"); } - public getExperimentStatus_args getEmptyArgsInstance() { - return new getExperimentStatus_args(); + public getJobDetails_args getEmptyArgsInstance() { + return new getJobDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.status.ExperimentStatus o) { - getExperimentStatus_result result = new getExperimentStatus_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getJobDetails_result result = new getJobDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18788,7 +17218,7 @@ public void onComplete(org.apache.airavata.model.status.ExperimentStatus o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getExperimentStatus_result result = new getExperimentStatus_result(); + getJobDetails_result result = new getJobDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -18834,25 +17264,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getExperimentStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getExperimentStatus(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, getJobDetails_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getJobDetails(args.authzToken, args.airavataExperimentId,resultHandler); } } - public static class getExperimentOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getExperimentOutputs() { - super("getExperimentOutputs"); + public static class cloneExperiment extends org.apache.thrift.AsyncProcessFunction { + public cloneExperiment() { + super("cloneExperiment"); } - public getExperimentOutputs_args getEmptyArgsInstance() { - return new getExperimentOutputs_args(); + public cloneExperiment_args getEmptyArgsInstance() { + return new cloneExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getExperimentOutputs_result result = new getExperimentOutputs_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + cloneExperiment_result result = new cloneExperiment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18865,7 +17295,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getExperimentOutputs(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, cloneExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.cloneExperiment(args.authzToken, args.existingExperimentID, args.newExperimentName,resultHandler); } } - public static class getIntermediateOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getIntermediateOutputs() { - super("getIntermediateOutputs"); + public static class terminateExperiment extends org.apache.thrift.AsyncProcessFunction { + public terminateExperiment() { + super("terminateExperiment"); } - public getIntermediateOutputs_args getEmptyArgsInstance() { - return new getIntermediateOutputs_args(); + public terminateExperiment_args getEmptyArgsInstance() { + return new terminateExperiment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getIntermediateOutputs_result result = new getIntermediateOutputs_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + terminateExperiment_result result = new terminateExperiment_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18942,7 +17371,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getIntermediateOutputs(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, terminateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.terminateExperiment(args.authzToken, args.airavataExperimentId, args.tokenId,resultHandler); } } - public static class getJobStatuses extends org.apache.thrift.AsyncProcessFunction> { - public getJobStatuses() { - super("getJobStatuses"); + public static class registerApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationModule() { + super("registerApplicationModule"); } - public getJobStatuses_args getEmptyArgsInstance() { - return new getJobStatuses_args(); + public registerApplicationModule_args getEmptyArgsInstance() { + return new registerApplicationModule_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getJobStatuses_result result = new getJobStatuses_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerApplicationModule_result result = new registerApplicationModule_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19019,17 +17448,12 @@ public void onComplete(Map o) public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getJobStatuses_result result = new getJobStatuses_result(); + registerApplicationModule_result result = new registerApplicationModule_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.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(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); @@ -19065,25 +17489,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getJobStatuses_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getJobStatuses(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, registerApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationModule(args.authzToken, args.gatewayId, args.applicationModule,resultHandler); } } - public static class getJobDetails extends org.apache.thrift.AsyncProcessFunction> { - public getJobDetails() { - super("getJobDetails"); + public static class getApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public getApplicationModule() { + super("getApplicationModule"); } - public getJobDetails_args getEmptyArgsInstance() { - return new getJobDetails_args(); + public getApplicationModule_args getEmptyArgsInstance() { + return new getApplicationModule_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getJobDetails_result result = new getJobDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule o) { + getApplicationModule_result result = new getApplicationModule_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19096,17 +17520,12 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getJobDetails_result result = new getJobDetails_result(); + getApplicationModule_result result = new getApplicationModule_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.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(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); @@ -19142,26 +17561,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getJobDetails_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getJobDetails(args.authzToken, args.airavataExperimentId,resultHandler); + public void start(I iface, getApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationModule(args.authzToken, args.appModuleId,resultHandler); } } - public static class cloneExperiment extends org.apache.thrift.AsyncProcessFunction { - public cloneExperiment() { - super("cloneExperiment"); + public static class updateApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationModule() { + super("updateApplicationModule"); } - public cloneExperiment_args getEmptyArgsInstance() { - return new cloneExperiment_args(); + public updateApplicationModule_args getEmptyArgsInstance() { + return new updateApplicationModule_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - cloneExperiment_result result = new cloneExperiment_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateApplicationModule_result result = new updateApplicationModule_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19173,17 +17593,12 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - cloneExperiment_result result = new cloneExperiment_result(); + updateApplicationModule_result result = new updateApplicationModule_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.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(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); @@ -19219,25 +17634,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, cloneExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cloneExperiment(args.authzToken, args.existingExperimentID, args.newExperimentName,resultHandler); + public void start(I iface, updateApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationModule(args.authzToken, args.appModuleId, args.applicationModule,resultHandler); } } - public static class terminateExperiment extends org.apache.thrift.AsyncProcessFunction { - public terminateExperiment() { - super("terminateExperiment"); + public static class getAllAppModules extends org.apache.thrift.AsyncProcessFunction> { + public getAllAppModules() { + super("getAllAppModules"); } - public terminateExperiment_args getEmptyArgsInstance() { - return new terminateExperiment_args(); + public getAllAppModules_args getEmptyArgsInstance() { + return new getAllAppModules_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - terminateExperiment_result result = new terminateExperiment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllAppModules_result result = new getAllAppModules_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19249,17 +17665,12 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - terminateExperiment_result result = new terminateExperiment_result(); + getAllAppModules_result result = new getAllAppModules_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.ExperimentNotFoundException) { - result.enf = (org.apache.airavata.model.error.ExperimentNotFoundException) e; - result.setEnfIsSet(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); @@ -19295,26 +17706,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, terminateExperiment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.terminateExperiment(args.authzToken, args.airavataExperimentId, args.tokenId,resultHandler); + public void start(I iface, getAllAppModules_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllAppModules(args.authzToken, args.gatewayId,resultHandler); } } - public static class registerApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationModule() { - super("registerApplicationModule"); + public static class deleteApplicationModule extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationModule() { + super("deleteApplicationModule"); } - public registerApplicationModule_args getEmptyArgsInstance() { - return new registerApplicationModule_args(); + public deleteApplicationModule_args getEmptyArgsInstance() { + return new deleteApplicationModule_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerApplicationModule_result result = new registerApplicationModule_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteApplicationModule_result result = new deleteApplicationModule_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19326,7 +17738,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationModule_result result = new registerApplicationModule_result(); + deleteApplicationModule_result result = new deleteApplicationModule_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19367,25 +17779,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationModule(args.authzToken, args.gatewayId, args.applicationModule,resultHandler); + public void start(I iface, deleteApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationModule(args.authzToken, args.appModuleId,resultHandler); } } - public static class getApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public getApplicationModule() { - super("getApplicationModule"); + public static class registerApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationDeployment() { + super("registerApplicationDeployment"); } - public getApplicationModule_args getEmptyArgsInstance() { - return new getApplicationModule_args(); + public registerApplicationDeployment_args getEmptyArgsInstance() { + return new registerApplicationDeployment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule o) { - getApplicationModule_result result = new getApplicationModule_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerApplicationDeployment_result result = new registerApplicationDeployment_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19398,7 +17810,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.Applic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationModule_result result = new getApplicationModule_result(); + registerApplicationDeployment_result result = new registerApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19439,27 +17851,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationModule(args.authzToken, args.appModuleId,resultHandler); + public void start(I iface, registerApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationDeployment(args.authzToken, args.gatewayId, args.applicationDeployment,resultHandler); } } - public static class updateApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationModule() { - super("updateApplicationModule"); + public static class getApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public getApplicationDeployment() { + super("getApplicationDeployment"); } - public updateApplicationModule_args getEmptyArgsInstance() { - return new updateApplicationModule_args(); + public getApplicationDeployment_args getEmptyArgsInstance() { + return new getApplicationDeployment_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateApplicationModule_result result = new updateApplicationModule_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription o) { + getApplicationDeployment_result result = new getApplicationDeployment_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19471,7 +17882,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationModule_result result = new updateApplicationModule_result(); + getApplicationDeployment_result result = new getApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19512,26 +17923,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationModule(args.authzToken, args.appModuleId, args.applicationModule,resultHandler); + public void start(I iface, getApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationDeployment(args.authzToken, args.appDeploymentId,resultHandler); } } - public static class getAllAppModules extends org.apache.thrift.AsyncProcessFunction> { - public getAllAppModules() { - super("getAllAppModules"); + public static class updateApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationDeployment() { + super("updateApplicationDeployment"); } - public getAllAppModules_args getEmptyArgsInstance() { - return new getAllAppModules_args(); + public updateApplicationDeployment_args getEmptyArgsInstance() { + return new updateApplicationDeployment_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllAppModules_result result = new getAllAppModules_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateApplicationDeployment_result result = new updateApplicationDeployment_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19543,7 +17955,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllAppModules(args.authzToken, args.gatewayId,resultHandler); + public void start(I iface, updateApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationDeployment(args.authzToken, args.appDeploymentId, args.applicationDeployment,resultHandler); } } - public static class deleteApplicationModule extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationModule() { - super("deleteApplicationModule"); + public static class deleteApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationDeployment() { + super("deleteApplicationDeployment"); } - public deleteApplicationModule_args getEmptyArgsInstance() { - return new deleteApplicationModule_args(); + public deleteApplicationDeployment_args getEmptyArgsInstance() { + return new deleteApplicationDeployment_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteApplicationModule_result result = new deleteApplicationModule_result(); + deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19616,7 +18028,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationModule_result result = new deleteApplicationModule_result(); + deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19657,25 +18069,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationModule_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationModule(args.authzToken, args.appModuleId,resultHandler); + public void start(I iface, deleteApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationDeployment(args.authzToken, args.appDeploymentId,resultHandler); } } - public static class registerApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationDeployment() { - super("registerApplicationDeployment"); + public static class getAllApplicationDeployments extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationDeployments() { + super("getAllApplicationDeployments"); } - public registerApplicationDeployment_args getEmptyArgsInstance() { - return new registerApplicationDeployment_args(); + public getAllApplicationDeployments_args getEmptyArgsInstance() { + return new getAllApplicationDeployments_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerApplicationDeployment_result result = new registerApplicationDeployment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19688,7 +18100,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationDeployment_result result = new registerApplicationDeployment_result(); + getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19729,25 +18141,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationDeployment(args.authzToken, args.gatewayId, args.applicationDeployment,resultHandler); + public void start(I iface, getAllApplicationDeployments_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationDeployments(args.authzToken, args.gatewayId,resultHandler); } } - public static class getApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public getApplicationDeployment() { - super("getApplicationDeployment"); + public static class getAppModuleDeployedResources extends org.apache.thrift.AsyncProcessFunction> { + public getAppModuleDeployedResources() { + super("getAppModuleDeployedResources"); } - public getApplicationDeployment_args getEmptyArgsInstance() { - return new getApplicationDeployment_args(); + public getAppModuleDeployedResources_args getEmptyArgsInstance() { + return new getAppModuleDeployedResources_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription o) { - getApplicationDeployment_result result = new getApplicationDeployment_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -19760,7 +18172,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.appdeployment.Applic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationDeployment_result result = new getApplicationDeployment_result(); + getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19801,27 +18213,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationDeployment(args.authzToken, args.appDeploymentId,resultHandler); + public void start(I iface, getAppModuleDeployedResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAppModuleDeployedResources(args.authzToken, args.appModuleId,resultHandler); } } - public static class updateApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationDeployment() { - super("updateApplicationDeployment"); + public static class registerApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public registerApplicationInterface() { + super("registerApplicationInterface"); } - public updateApplicationDeployment_args getEmptyArgsInstance() { - return new updateApplicationDeployment_args(); + public registerApplicationInterface_args getEmptyArgsInstance() { + return new registerApplicationInterface_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateApplicationDeployment_result result = new updateApplicationDeployment_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerApplicationInterface_result result = new registerApplicationInterface_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19833,7 +18244,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationDeployment_result result = new updateApplicationDeployment_result(); + registerApplicationInterface_result result = new registerApplicationInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19874,25 +18285,97 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationDeployment(args.authzToken, args.appDeploymentId, args.applicationDeployment,resultHandler); + public void start(I iface, registerApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerApplicationInterface(args.authzToken, args.gatewayId, args.applicationInterface,resultHandler); } } - public static class deleteApplicationDeployment extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationDeployment() { - super("deleteApplicationDeployment"); + public static class getApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public getApplicationInterface() { + super("getApplicationInterface"); } - public deleteApplicationDeployment_args getEmptyArgsInstance() { - return new deleteApplicationDeployment_args(); + public getApplicationInterface_args getEmptyArgsInstance() { + return new getApplicationInterface_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription o) { + getApplicationInterface_result result = new getApplicationInterface_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + getApplicationInterface_result result = new getApplicationInterface_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 + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, getApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getApplicationInterface(args.authzToken, args.appInterfaceId,resultHandler); + } + } + + public static class updateApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public updateApplicationInterface() { + super("updateApplicationInterface"); + } + + public updateApplicationInterface_args getEmptyArgsInstance() { + return new updateApplicationInterface_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); + updateApplicationInterface_result result = new updateApplicationInterface_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -19906,7 +18389,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationDeployment_result result = new deleteApplicationDeployment_result(); + updateApplicationInterface_result result = new updateApplicationInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -19947,26 +18430,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationDeployment_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationDeployment(args.authzToken, args.appDeploymentId,resultHandler); + public void start(I iface, updateApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateApplicationInterface(args.authzToken, args.appInterfaceId, args.applicationInterface,resultHandler); } } - public static class getAllApplicationDeployments extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationDeployments() { - super("getAllApplicationDeployments"); + public static class deleteApplicationInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteApplicationInterface() { + super("deleteApplicationInterface"); } - public getAllApplicationDeployments_args getEmptyArgsInstance() { - return new getAllApplicationDeployments_args(); + public deleteApplicationInterface_args getEmptyArgsInstance() { + return new deleteApplicationInterface_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllApplicationDeployments_result result = new getAllApplicationDeployments_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteApplicationInterface_result result = new deleteApplicationInterface_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19978,7 +18462,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllApplicationDeployments(args.authzToken, args.gatewayId,resultHandler); + public void start(I iface, deleteApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteApplicationInterface(args.authzToken, args.appInterfaceId,resultHandler); } } - public static class getAppModuleDeployedResources extends org.apache.thrift.AsyncProcessFunction> { - public getAppModuleDeployedResources() { - super("getAppModuleDeployedResources"); + public static class getAllApplicationInterfaceNames extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationInterfaceNames() { + super("getAllApplicationInterfaceNames"); } - public getAppModuleDeployedResources_args getEmptyArgsInstance() { - return new getAppModuleDeployedResources_args(); + public getAllApplicationInterfaceNames_args getEmptyArgsInstance() { + return new getAllApplicationInterfaceNames_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20050,7 +18534,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAppModuleDeployedResources_result result = new getAppModuleDeployedResources_result(); + getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20091,25 +18575,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAppModuleDeployedResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAppModuleDeployedResources(args.authzToken, args.appModuleId,resultHandler); + public void start(I iface, getAllApplicationInterfaceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationInterfaceNames(args.authzToken, args.gatewayId,resultHandler); } } - public static class registerApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public registerApplicationInterface() { - super("registerApplicationInterface"); + public static class getAllApplicationInterfaces extends org.apache.thrift.AsyncProcessFunction> { + public getAllApplicationInterfaces() { + super("getAllApplicationInterfaces"); } - public registerApplicationInterface_args getEmptyArgsInstance() { - return new registerApplicationInterface_args(); + public getAllApplicationInterfaces_args getEmptyArgsInstance() { + return new getAllApplicationInterfaces_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerApplicationInterface_result result = new registerApplicationInterface_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20122,7 +18606,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerApplicationInterface_result result = new registerApplicationInterface_result(); + getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20163,25 +18647,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerApplicationInterface(args.authzToken, args.gatewayId, args.applicationInterface,resultHandler); + public void start(I iface, getAllApplicationInterfaces_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllApplicationInterfaces(args.authzToken, args.gatewayId,resultHandler); } } - public static class getApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public getApplicationInterface() { - super("getApplicationInterface"); + public static class getApplicationInputs extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationInputs() { + super("getApplicationInputs"); } - public getApplicationInterface_args getEmptyArgsInstance() { - return new getApplicationInterface_args(); + public getApplicationInputs_args getEmptyArgsInstance() { + return new getApplicationInputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription o) { - getApplicationInterface_result result = new getApplicationInterface_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getApplicationInputs_result result = new getApplicationInputs_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20194,7 +18678,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.appinterface.Applica public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getApplicationInterface_result result = new getApplicationInterface_result(); + getApplicationInputs_result result = new getApplicationInputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20235,27 +18719,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getApplicationInterface(args.authzToken, args.appInterfaceId,resultHandler); + public void start(I iface, getApplicationInputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationInputs(args.authzToken, args.appInterfaceId,resultHandler); } } - public static class updateApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public updateApplicationInterface() { - super("updateApplicationInterface"); + public static class getApplicationOutputs extends org.apache.thrift.AsyncProcessFunction> { + public getApplicationOutputs() { + super("getApplicationOutputs"); } - public updateApplicationInterface_args getEmptyArgsInstance() { - return new updateApplicationInterface_args(); + public getApplicationOutputs_args getEmptyArgsInstance() { + return new getApplicationOutputs_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateApplicationInterface_result result = new updateApplicationInterface_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getApplicationOutputs_result result = new getApplicationOutputs_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20267,7 +18750,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateApplicationInterface_result result = new updateApplicationInterface_result(); + getApplicationOutputs_result result = new getApplicationOutputs_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20308,27 +18791,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateApplicationInterface(args.authzToken, args.appInterfaceId, args.applicationInterface,resultHandler); + public void start(I iface, getApplicationOutputs_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getApplicationOutputs(args.authzToken, args.appInterfaceId,resultHandler); } } - public static class deleteApplicationInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteApplicationInterface() { - super("deleteApplicationInterface"); + public static class getAvailableAppInterfaceComputeResources extends org.apache.thrift.AsyncProcessFunction> { + public getAvailableAppInterfaceComputeResources() { + super("getAvailableAppInterfaceComputeResources"); } - public deleteApplicationInterface_args getEmptyArgsInstance() { - return new deleteApplicationInterface_args(); + public getAvailableAppInterfaceComputeResources_args getEmptyArgsInstance() { + return new getAvailableAppInterfaceComputeResources_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteApplicationInterface_result result = new deleteApplicationInterface_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20340,7 +18822,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteApplicationInterface_result result = new deleteApplicationInterface_result(); + getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20381,25 +18863,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteApplicationInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteApplicationInterface(args.authzToken, args.appInterfaceId,resultHandler); + public void start(I iface, getAvailableAppInterfaceComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAvailableAppInterfaceComputeResources(args.authzToken, args.appInterfaceId,resultHandler); } } - public static class getAllApplicationInterfaceNames extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationInterfaceNames() { - super("getAllApplicationInterfaceNames"); + public static class registerComputeResource extends org.apache.thrift.AsyncProcessFunction { + public registerComputeResource() { + super("registerComputeResource"); } - public getAllApplicationInterfaceNames_args getEmptyArgsInstance() { - return new getAllApplicationInterfaceNames_args(); + public registerComputeResource_args getEmptyArgsInstance() { + return new registerComputeResource_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerComputeResource_result result = new registerComputeResource_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20412,7 +18894,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllApplicationInterfaceNames_result result = new getAllApplicationInterfaceNames_result(); + registerComputeResource_result result = new registerComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20453,25 +18935,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllApplicationInterfaceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllApplicationInterfaceNames(args.authzToken, args.gatewayId,resultHandler); + public void start(I iface, registerComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerComputeResource(args.authzToken, args.computeResourceDescription,resultHandler); } } - public static class getAllApplicationInterfaces extends org.apache.thrift.AsyncProcessFunction> { - public getAllApplicationInterfaces() { - super("getAllApplicationInterfaces"); + public static class getComputeResource extends org.apache.thrift.AsyncProcessFunction { + public getComputeResource() { + super("getComputeResource"); } - public getAllApplicationInterfaces_args getEmptyArgsInstance() { - return new getAllApplicationInterfaces_args(); + public getComputeResource_args getEmptyArgsInstance() { + return new getComputeResource_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllApplicationInterfaces_result result = new getAllApplicationInterfaces_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription o) { + getComputeResource_result result = new getComputeResource_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20484,7 +18966,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllApplicationInterfaces(args.authzToken, args.gatewayId,resultHandler); + public void start(I iface, getComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getComputeResource(args.authzToken, args.computeResourceId,resultHandler); } } - public static class getApplicationInputs extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationInputs() { - super("getApplicationInputs"); + public static class getAllComputeResourceNames extends org.apache.thrift.AsyncProcessFunction> { + public getAllComputeResourceNames() { + super("getAllComputeResourceNames"); } - public getApplicationInputs_args getEmptyArgsInstance() { - return new getApplicationInputs_args(); + public getAllComputeResourceNames_args getEmptyArgsInstance() { + return new getAllComputeResourceNames_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getApplicationInputs_result result = new getApplicationInputs_result(); + return new AsyncMethodCallback>() { + public void onComplete(Map o) { + getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20556,7 +19038,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationInputs(args.authzToken, args.appInterfaceId,resultHandler); + public void start(I iface, getAllComputeResourceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllComputeResourceNames(args.authzToken,resultHandler); } } - public static class getApplicationOutputs extends org.apache.thrift.AsyncProcessFunction> { - public getApplicationOutputs() { - super("getApplicationOutputs"); + public static class updateComputeResource extends org.apache.thrift.AsyncProcessFunction { + public updateComputeResource() { + super("updateComputeResource"); } - public getApplicationOutputs_args getEmptyArgsInstance() { - return new getApplicationOutputs_args(); + public updateComputeResource_args getEmptyArgsInstance() { + return new updateComputeResource_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getApplicationOutputs_result result = new getApplicationOutputs_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateComputeResource_result result = new updateComputeResource_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20628,7 +19111,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getApplicationOutputs(args.authzToken, args.appInterfaceId,resultHandler); + public void start(I iface, updateComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateComputeResource(args.authzToken, args.computeResourceId, args.computeResourceDescription,resultHandler); } } - public static class getAvailableAppInterfaceComputeResources extends org.apache.thrift.AsyncProcessFunction> { - public getAvailableAppInterfaceComputeResources() { - super("getAvailableAppInterfaceComputeResources"); + public static class deleteComputeResource extends org.apache.thrift.AsyncProcessFunction { + public deleteComputeResource() { + super("deleteComputeResource"); } - public getAvailableAppInterfaceComputeResources_args getEmptyArgsInstance() { - return new getAvailableAppInterfaceComputeResources_args(); + public deleteComputeResource_args getEmptyArgsInstance() { + return new deleteComputeResource_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteComputeResource_result result = new deleteComputeResource_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20700,7 +19184,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAvailableAppInterfaceComputeResources_result result = new getAvailableAppInterfaceComputeResources_result(); + deleteComputeResource_result result = new deleteComputeResource_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20741,25 +19225,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAvailableAppInterfaceComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAvailableAppInterfaceComputeResources(args.authzToken, args.appInterfaceId,resultHandler); + public void start(I iface, deleteComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteComputeResource(args.authzToken, args.computeResourceId,resultHandler); } } - public static class registerComputeResource extends org.apache.thrift.AsyncProcessFunction { - public registerComputeResource() { - super("registerComputeResource"); + public static class addLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addLocalSubmissionDetails() { + super("addLocalSubmissionDetails"); } - public registerComputeResource_args getEmptyArgsInstance() { - return new registerComputeResource_args(); + public addLocalSubmissionDetails_args getEmptyArgsInstance() { + return new addLocalSubmissionDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - registerComputeResource_result result = new registerComputeResource_result(); + addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20772,7 +19256,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerComputeResource_result result = new registerComputeResource_result(); + addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20813,26 +19297,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerComputeResource(args.authzToken, args.computeResourceDescription,resultHandler); + public void start(I iface, addLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addLocalSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.localSubmission,resultHandler); } } - public static class getComputeResource extends org.apache.thrift.AsyncProcessFunction { - public getComputeResource() { - super("getComputeResource"); + public static class updateLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateLocalSubmissionDetails() { + super("updateLocalSubmissionDetails"); } - public getComputeResource_args getEmptyArgsInstance() { - return new getComputeResource_args(); + public updateLocalSubmissionDetails_args getEmptyArgsInstance() { + return new updateLocalSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription o) { - getComputeResource_result result = new getComputeResource_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20844,7 +19329,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Comp public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getComputeResource_result result = new getComputeResource_result(); + updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20885,25 +19370,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getComputeResource(args.authzToken, args.computeResourceId,resultHandler); + public void start(I iface, updateLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateLocalSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.localSubmission,resultHandler); } } - public static class getAllComputeResourceNames extends org.apache.thrift.AsyncProcessFunction> { - public getAllComputeResourceNames() { - super("getAllComputeResourceNames"); + public static class getLocalJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getLocalJobSubmission() { + super("getLocalJobSubmission"); } - public getAllComputeResourceNames_args getEmptyArgsInstance() { - return new getAllComputeResourceNames_args(); + public getLocalJobSubmission_args getEmptyArgsInstance() { + return new getLocalJobSubmission_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission o) { + getLocalJobSubmission_result result = new getLocalJobSubmission_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -20916,7 +19401,7 @@ public void onComplete(Map o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllComputeResourceNames_result result = new getAllComputeResourceNames_result(); + getLocalJobSubmission_result result = new getLocalJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -20957,27 +19442,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getAllComputeResourceNames_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllComputeResourceNames(args.authzToken,resultHandler); + public void start(I iface, getLocalJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLocalJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); } } - public static class updateComputeResource extends org.apache.thrift.AsyncProcessFunction { - public updateComputeResource() { - super("updateComputeResource"); + public static class addSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addSSHJobSubmissionDetails() { + super("addSSHJobSubmissionDetails"); } - public updateComputeResource_args getEmptyArgsInstance() { - return new updateComputeResource_args(); + public addSSHJobSubmissionDetails_args getEmptyArgsInstance() { + return new addSSHJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateComputeResource_result result = new updateComputeResource_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -20989,7 +19473,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateComputeResource_result result = new updateComputeResource_result(); + addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21030,27 +19514,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateComputeResource(args.authzToken, args.computeResourceId, args.computeResourceDescription,resultHandler); + public void start(I iface, addSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addSSHJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.sshJobSubmission,resultHandler); } } - public static class deleteComputeResource extends org.apache.thrift.AsyncProcessFunction { - public deleteComputeResource() { - super("deleteComputeResource"); + public static class getSSHJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getSSHJobSubmission() { + super("getSSHJobSubmission"); } - public deleteComputeResource_args getEmptyArgsInstance() { - return new deleteComputeResource_args(); + public getSSHJobSubmission_args getEmptyArgsInstance() { + return new getSSHJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteComputeResource_result result = new deleteComputeResource_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission o) { + getSSHJobSubmission_result result = new getSSHJobSubmission_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21062,7 +19545,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteComputeResource_result result = new deleteComputeResource_result(); + getSSHJobSubmission_result result = new getSSHJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21103,25 +19586,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteComputeResource_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteComputeResource(args.authzToken, args.computeResourceId,resultHandler); + public void start(I iface, getSSHJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getSSHJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); } } - public static class addLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addLocalSubmissionDetails() { - super("addLocalSubmissionDetails"); + public static class addUNICOREJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addUNICOREJobSubmissionDetails() { + super("addUNICOREJobSubmissionDetails"); } - public addLocalSubmissionDetails_args getEmptyArgsInstance() { - return new addLocalSubmissionDetails_args(); + public addUNICOREJobSubmissionDetails_args getEmptyArgsInstance() { + return new addUNICOREJobSubmissionDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); + addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -21134,7 +19617,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addLocalSubmissionDetails_result result = new addLocalSubmissionDetails_result(); + addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21175,27 +19658,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addLocalSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.localSubmission,resultHandler); + public void start(I iface, addUNICOREJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addUNICOREJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission,resultHandler); } } - public static class updateLocalSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateLocalSubmissionDetails() { - super("updateLocalSubmissionDetails"); + public static class getUnicoreJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getUnicoreJobSubmission() { + super("getUnicoreJobSubmission"); } - public updateLocalSubmissionDetails_args getEmptyArgsInstance() { - return new updateLocalSubmissionDetails_args(); + public getUnicoreJobSubmission_args getEmptyArgsInstance() { + return new getUnicoreJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission o) { + getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21207,7 +19689,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateLocalSubmissionDetails_result result = new updateLocalSubmissionDetails_result(); + getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21248,25 +19730,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateLocalSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLocalSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.localSubmission,resultHandler); + public void start(I iface, getUnicoreJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUnicoreJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); } } - public static class getLocalJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getLocalJobSubmission() { - super("getLocalJobSubmission"); + public static class addCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public addCloudJobSubmissionDetails() { + super("addCloudJobSubmissionDetails"); } - public getLocalJobSubmission_args getEmptyArgsInstance() { - return new getLocalJobSubmission_args(); + public addCloudJobSubmissionDetails_args getEmptyArgsInstance() { + return new addCloudJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALSubmission o) { - getLocalJobSubmission_result result = new getLocalJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -21279,7 +19761,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCA public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLocalJobSubmission_result result = new getLocalJobSubmission_result(); + addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21320,25 +19802,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLocalJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLocalJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); + public void start(I iface, addCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addCloudJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.cloudSubmission,resultHandler); } } - public static class addSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addSSHJobSubmissionDetails() { - super("addSSHJobSubmissionDetails"); + public static class getCloudJobSubmission extends org.apache.thrift.AsyncProcessFunction { + public getCloudJobSubmission() { + super("getCloudJobSubmission"); } - public addSSHJobSubmissionDetails_args getEmptyArgsInstance() { - return new addSSHJobSubmissionDetails_args(); + public getCloudJobSubmission_args getEmptyArgsInstance() { + return new getCloudJobSubmission_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission o) { + getCloudJobSubmission_result result = new getCloudJobSubmission_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -21351,7 +19833,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addSSHJobSubmissionDetails_result result = new addSSHJobSubmissionDetails_result(); + getCloudJobSubmission_result result = new getCloudJobSubmission_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21392,26 +19874,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, addSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addSSHJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.sshJobSubmission,resultHandler); + public void start(I iface, getCloudJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getCloudJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); } } - public static class getSSHJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getSSHJobSubmission() { - super("getSSHJobSubmission"); + public static class updateSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateSSHJobSubmissionDetails() { + super("updateSSHJobSubmissionDetails"); } - public getSSHJobSubmission_args getEmptyArgsInstance() { - return new getSSHJobSubmission_args(); + public updateSSHJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateSSHJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJobSubmission o) { - getSSHJobSubmission_result result = new getSSHJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21423,7 +19906,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SSHJ public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getSSHJobSubmission_result result = new getSSHJobSubmission_result(); + updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21464,26 +19947,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getSSHJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSSHJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); + public void start(I iface, updateSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateSSHJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); } } - public static class addUNICOREJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addUNICOREJobSubmissionDetails() { - super("addUNICOREJobSubmissionDetails"); + public static class updateCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateCloudJobSubmissionDetails() { + super("updateCloudJobSubmissionDetails"); } - public addUNICOREJobSubmissionDetails_args getEmptyArgsInstance() { - return new addUNICOREJobSubmissionDetails_args(); + public updateCloudJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateCloudJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21495,7 +19979,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addUNICOREJobSubmissionDetails_result result = new addUNICOREJobSubmissionDetails_result(); + updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21536,26 +20020,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, addUNICOREJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addUNICOREJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.unicoreJobSubmission,resultHandler); + public void start(I iface, updateCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateCloudJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); } } - public static class getUnicoreJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getUnicoreJobSubmission() { - super("getUnicoreJobSubmission"); + public static class updateUnicoreJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { + public updateUnicoreJobSubmissionDetails() { + super("updateUnicoreJobSubmissionDetails"); } - public getUnicoreJobSubmission_args getEmptyArgsInstance() { - return new getUnicoreJobSubmission_args(); + public updateUnicoreJobSubmissionDetails_args getEmptyArgsInstance() { + return new updateUnicoreJobSubmissionDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreJobSubmission o) { - getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21567,7 +20052,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Unic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUnicoreJobSubmission_result result = new getUnicoreJobSubmission_result(); + updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21608,25 +20093,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUnicoreJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUnicoreJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); + public void start(I iface, updateUnicoreJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateUnicoreJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.unicoreJobSubmission,resultHandler); } } - public static class addCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public addCloudJobSubmissionDetails() { - super("addCloudJobSubmissionDetails"); + public static class addLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addLocalDataMovementDetails() { + super("addLocalDataMovementDetails"); } - public addCloudJobSubmissionDetails_args getEmptyArgsInstance() { - return new addCloudJobSubmissionDetails_args(); + public addLocalDataMovementDetails_args getEmptyArgsInstance() { + return new addLocalDataMovementDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); + addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -21639,7 +20124,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addCloudJobSubmissionDetails_result result = new addCloudJobSubmissionDetails_result(); + addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21680,26 +20165,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, addCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addCloudJobSubmissionDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.cloudSubmission,resultHandler); + public void start(I iface, addLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addLocalDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.localDataMovement,resultHandler); } } - public static class getCloudJobSubmission extends org.apache.thrift.AsyncProcessFunction { - public getCloudJobSubmission() { - super("getCloudJobSubmission"); + public static class updateLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateLocalDataMovementDetails() { + super("updateLocalDataMovementDetails"); } - public getCloudJobSubmission_args getEmptyArgsInstance() { - return new getCloudJobSubmission_args(); + public updateLocalDataMovementDetails_args getEmptyArgsInstance() { + return new updateLocalDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.CloudJobSubmission o) { - getCloudJobSubmission_result result = new getCloudJobSubmission_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21711,7 +20197,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Clou public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getCloudJobSubmission_result result = new getCloudJobSubmission_result(); + updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21752,27 +20238,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getCloudJobSubmission_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getCloudJobSubmission(args.authzToken, args.jobSubmissionId,resultHandler); + public void start(I iface, updateLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateLocalDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.localDataMovement,resultHandler); } } - public static class updateSSHJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateSSHJobSubmissionDetails() { - super("updateSSHJobSubmissionDetails"); + public static class getLocalDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getLocalDataMovement() { + super("getLocalDataMovement"); } - public updateSSHJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateSSHJobSubmissionDetails_args(); + public getLocalDataMovement_args getEmptyArgsInstance() { + return new getLocalDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALDataMovement o) { + getLocalDataMovement_result result = new getLocalDataMovement_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21784,7 +20269,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateSSHJobSubmissionDetails_result result = new updateSSHJobSubmissionDetails_result(); + getLocalDataMovement_result result = new getLocalDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21825,27 +20310,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateSSHJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateSSHJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); + public void start(I iface, getLocalDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getLocalDataMovement(args.authzToken, args.dataMovementId,resultHandler); } } - public static class updateCloudJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateCloudJobSubmissionDetails() { - super("updateCloudJobSubmissionDetails"); + public static class addSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addSCPDataMovementDetails() { + super("addSCPDataMovementDetails"); } - public updateCloudJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateCloudJobSubmissionDetails_args(); + public addSCPDataMovementDetails_args getEmptyArgsInstance() { + return new addSCPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -21857,7 +20341,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateCloudJobSubmissionDetails_result result = new updateCloudJobSubmissionDetails_result(); + addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21898,25 +20382,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateCloudJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateCloudJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.sshJobSubmission,resultHandler); + public void start(I iface, addSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addSCPDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.scpDataMovement,resultHandler); } } - public static class updateUnicoreJobSubmissionDetails extends org.apache.thrift.AsyncProcessFunction { - public updateUnicoreJobSubmissionDetails() { - super("updateUnicoreJobSubmissionDetails"); + public static class updateSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateSCPDataMovementDetails() { + super("updateSCPDataMovementDetails"); } - public updateUnicoreJobSubmissionDetails_args getEmptyArgsInstance() { - return new updateUnicoreJobSubmissionDetails_args(); + public updateSCPDataMovementDetails_args getEmptyArgsInstance() { + return new updateSCPDataMovementDetails_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); + updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -21930,7 +20414,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateUnicoreJobSubmissionDetails_result result = new updateUnicoreJobSubmissionDetails_result(); + updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -21971,25 +20455,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateUnicoreJobSubmissionDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateUnicoreJobSubmissionDetails(args.authzToken, args.jobSubmissionInterfaceId, args.unicoreJobSubmission,resultHandler); + public void start(I iface, updateSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateSCPDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.scpDataMovement,resultHandler); } } - public static class addLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addLocalDataMovementDetails() { - super("addLocalDataMovementDetails"); + public static class getSCPDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getSCPDataMovement() { + super("getSCPDataMovement"); } - public addLocalDataMovementDetails_args getEmptyArgsInstance() { - return new addLocalDataMovementDetails_args(); + public getSCPDataMovement_args getEmptyArgsInstance() { + return new getSCPDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPDataMovement o) { + getSCPDataMovement_result result = new getSCPDataMovement_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -22002,7 +20486,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addLocalDataMovementDetails_result result = new addLocalDataMovementDetails_result(); + getSCPDataMovement_result result = new getSCPDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22043,27 +20527,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addLocalDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.localDataMovement,resultHandler); + public void start(I iface, getSCPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getSCPDataMovement(args.authzToken, args.dataMovementId,resultHandler); } } - public static class updateLocalDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateLocalDataMovementDetails() { - super("updateLocalDataMovementDetails"); + public static class addUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addUnicoreDataMovementDetails() { + super("addUnicoreDataMovementDetails"); } - public updateLocalDataMovementDetails_args getEmptyArgsInstance() { - return new updateLocalDataMovementDetails_args(); + public addUnicoreDataMovementDetails_args getEmptyArgsInstance() { + return new addUnicoreDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22075,7 +20558,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateLocalDataMovementDetails_result result = new updateLocalDataMovementDetails_result(); + addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22116,26 +20599,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateLocalDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateLocalDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.localDataMovement,resultHandler); + public void start(I iface, addUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addUnicoreDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.unicoreDataMovement,resultHandler); } } - public static class getLocalDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getLocalDataMovement() { - super("getLocalDataMovement"); + public static class updateUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateUnicoreDataMovementDetails() { + super("updateUnicoreDataMovementDetails"); } - public getLocalDataMovement_args getEmptyArgsInstance() { - return new getLocalDataMovement_args(); + public updateUnicoreDataMovementDetails_args getEmptyArgsInstance() { + return new updateUnicoreDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCALDataMovement o) { - getLocalDataMovement_result result = new getLocalDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22147,7 +20631,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.LOCA public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getLocalDataMovement_result result = new getLocalDataMovement_result(); + updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22188,25 +20672,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getLocalDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getLocalDataMovement(args.authzToken, args.dataMovementId,resultHandler); + public void start(I iface, updateUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateUnicoreDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.unicoreDataMovement,resultHandler); } } - public static class addSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addSCPDataMovementDetails() { - super("addSCPDataMovementDetails"); + public static class getUnicoreDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getUnicoreDataMovement() { + super("getUnicoreDataMovement"); } - public addSCPDataMovementDetails_args getEmptyArgsInstance() { - return new addSCPDataMovementDetails_args(); + public getUnicoreDataMovement_args getEmptyArgsInstance() { + return new getUnicoreDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreDataMovement o) { + getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -22219,7 +20703,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addSCPDataMovementDetails_result result = new addSCPDataMovementDetails_result(); + getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22260,27 +20744,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, addSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addSCPDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.scpDataMovement,resultHandler); + public void start(I iface, getUnicoreDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getUnicoreDataMovement(args.authzToken, args.dataMovementId,resultHandler); } } - public static class updateSCPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateSCPDataMovementDetails() { - super("updateSCPDataMovementDetails"); + public static class addGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public addGridFTPDataMovementDetails() { + super("addGridFTPDataMovementDetails"); } - public updateSCPDataMovementDetails_args getEmptyArgsInstance() { - return new updateSCPDataMovementDetails_args(); + public addGridFTPDataMovementDetails_args getEmptyArgsInstance() { + return new addGridFTPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22292,7 +20775,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateSCPDataMovementDetails_result result = new updateSCPDataMovementDetails_result(); + addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22333,26 +20816,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateSCPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateSCPDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.scpDataMovement,resultHandler); + public void start(I iface, addGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addGridFTPDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement,resultHandler); } } - public static class getSCPDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getSCPDataMovement() { - super("getSCPDataMovement"); + public static class updateGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { + public updateGridFTPDataMovementDetails() { + super("updateGridFTPDataMovementDetails"); } - public getSCPDataMovement_args getEmptyArgsInstance() { - return new getSCPDataMovement_args(); + public updateGridFTPDataMovementDetails_args getEmptyArgsInstance() { + return new updateGridFTPDataMovementDetails_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPDataMovement o) { - getSCPDataMovement_result result = new getSCPDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22364,7 +20848,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.SCPD public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getSCPDataMovement_result result = new getSCPDataMovement_result(); + updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22405,25 +20889,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getSCPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSCPDataMovement(args.authzToken, args.dataMovementId,resultHandler); + public void start(I iface, updateGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGridFTPDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.gridFTPDataMovement,resultHandler); } } - public static class addUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addUnicoreDataMovementDetails() { - super("addUnicoreDataMovementDetails"); + public static class getGridFTPDataMovement extends org.apache.thrift.AsyncProcessFunction { + public getGridFTPDataMovement() { + super("getGridFTPDataMovement"); } - public addUnicoreDataMovementDetails_args getEmptyArgsInstance() { - return new addUnicoreDataMovementDetails_args(); + public getGridFTPDataMovement_args getEmptyArgsInstance() { + return new getGridFTPDataMovement_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.GridFTPDataMovement o) { + getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -22436,7 +20920,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addUnicoreDataMovementDetails_result result = new addUnicoreDataMovementDetails_result(); + getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22477,25 +20961,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addUnicoreDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.unicoreDataMovement,resultHandler); + public void start(I iface, getGridFTPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGridFTPDataMovement(args.authzToken, args.dataMovementId,resultHandler); } } - public static class updateUnicoreDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateUnicoreDataMovementDetails() { - super("updateUnicoreDataMovementDetails"); + public static class changeJobSubmissionPriority extends org.apache.thrift.AsyncProcessFunction { + public changeJobSubmissionPriority() { + super("changeJobSubmissionPriority"); } - public updateUnicoreDataMovementDetails_args getEmptyArgsInstance() { - return new updateUnicoreDataMovementDetails_args(); + public changeJobSubmissionPriority_args getEmptyArgsInstance() { + return new changeJobSubmissionPriority_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); + changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -22509,7 +20993,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateUnicoreDataMovementDetails_result result = new updateUnicoreDataMovementDetails_result(); + changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22550,26 +21034,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateUnicoreDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateUnicoreDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.unicoreDataMovement,resultHandler); + public void start(I iface, changeJobSubmissionPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeJobSubmissionPriority(args.authzToken, args.jobSubmissionInterfaceId, args.newPriorityOrder,resultHandler); } } - public static class getUnicoreDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getUnicoreDataMovement() { - super("getUnicoreDataMovement"); + public static class changeDataMovementPriority extends org.apache.thrift.AsyncProcessFunction { + public changeDataMovementPriority() { + super("changeDataMovementPriority"); } - public getUnicoreDataMovement_args getEmptyArgsInstance() { - return new getUnicoreDataMovement_args(); + public changeDataMovementPriority_args getEmptyArgsInstance() { + return new changeDataMovementPriority_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.UnicoreDataMovement o) { - getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + changeDataMovementPriority_result result = new changeDataMovementPriority_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22581,7 +21066,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Unic public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getUnicoreDataMovement_result result = new getUnicoreDataMovement_result(); + changeDataMovementPriority_result result = new changeDataMovementPriority_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22622,26 +21107,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, getUnicoreDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getUnicoreDataMovement(args.authzToken, args.dataMovementId,resultHandler); + public void start(I iface, changeDataMovementPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeDataMovementPriority(args.authzToken, args.dataMovementInterfaceId, args.newPriorityOrder,resultHandler); } } - public static class addGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public addGridFTPDataMovementDetails() { - super("addGridFTPDataMovementDetails"); + public static class changeJobSubmissionPriorities extends org.apache.thrift.AsyncProcessFunction { + public changeJobSubmissionPriorities() { + super("changeJobSubmissionPriorities"); } - public addGridFTPDataMovementDetails_args getEmptyArgsInstance() { - return new addGridFTPDataMovementDetails_args(); + public changeJobSubmissionPriorities_args getEmptyArgsInstance() { + return new changeJobSubmissionPriorities_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22653,7 +21139,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addGridFTPDataMovementDetails_result result = new addGridFTPDataMovementDetails_result(); + changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22694,25 +21180,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addGridFTPDataMovementDetails(args.authzToken, args.computeResourceId, args.priorityOrder, args.gridFTPDataMovement,resultHandler); + public void start(I iface, changeJobSubmissionPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeJobSubmissionPriorities(args.authzToken, args.jobSubmissionPriorityMap,resultHandler); } } - public static class updateGridFTPDataMovementDetails extends org.apache.thrift.AsyncProcessFunction { - public updateGridFTPDataMovementDetails() { - super("updateGridFTPDataMovementDetails"); + public static class changeDataMovementPriorities extends org.apache.thrift.AsyncProcessFunction { + public changeDataMovementPriorities() { + super("changeDataMovementPriorities"); } - public updateGridFTPDataMovementDetails_args getEmptyArgsInstance() { - return new updateGridFTPDataMovementDetails_args(); + public changeDataMovementPriorities_args getEmptyArgsInstance() { + return new changeDataMovementPriorities_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); + changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -22726,7 +21212,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGridFTPDataMovementDetails_result result = new updateGridFTPDataMovementDetails_result(); + changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22767,26 +21253,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGridFTPDataMovementDetails_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGridFTPDataMovementDetails(args.authzToken, args.dataMovementInterfaceId, args.gridFTPDataMovement,resultHandler); + public void start(I iface, changeDataMovementPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.changeDataMovementPriorities(args.authzToken, args.dataMovementPriorityMap,resultHandler); } } - public static class getGridFTPDataMovement extends org.apache.thrift.AsyncProcessFunction { - public getGridFTPDataMovement() { - super("getGridFTPDataMovement"); + public static class deleteJobSubmissionInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteJobSubmissionInterface() { + super("deleteJobSubmissionInterface"); } - public getGridFTPDataMovement_args getEmptyArgsInstance() { - return new getGridFTPDataMovement_args(); + public deleteJobSubmissionInterface_args getEmptyArgsInstance() { + return new deleteJobSubmissionInterface_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.GridFTPDataMovement o) { - getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22798,7 +21285,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Grid public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGridFTPDataMovement_result result = new getGridFTPDataMovement_result(); + deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22839,25 +21326,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGridFTPDataMovement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGridFTPDataMovement(args.authzToken, args.dataMovementId,resultHandler); + public void start(I iface, deleteJobSubmissionInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteJobSubmissionInterface(args.authzToken, args.computeResourceId, args.jobSubmissionInterfaceId,resultHandler); } } - public static class changeJobSubmissionPriority extends org.apache.thrift.AsyncProcessFunction { - public changeJobSubmissionPriority() { - super("changeJobSubmissionPriority"); + public static class deleteDataMovementInterface extends org.apache.thrift.AsyncProcessFunction { + public deleteDataMovementInterface() { + super("deleteDataMovementInterface"); } - public changeJobSubmissionPriority_args getEmptyArgsInstance() { - return new changeJobSubmissionPriority_args(); + public deleteDataMovementInterface_args getEmptyArgsInstance() { + return new deleteDataMovementInterface_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); + deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -22871,7 +21358,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeJobSubmissionPriority_result result = new changeJobSubmissionPriority_result(); + deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22912,27 +21399,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeJobSubmissionPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeJobSubmissionPriority(args.authzToken, args.jobSubmissionInterfaceId, args.newPriorityOrder,resultHandler); + public void start(I iface, deleteDataMovementInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteDataMovementInterface(args.authzToken, args.computeResourceId, args.dataMovementInterfaceId,resultHandler); } } - public static class changeDataMovementPriority extends org.apache.thrift.AsyncProcessFunction { - public changeDataMovementPriority() { - super("changeDataMovementPriority"); + public static class registerResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public registerResourceJobManager() { + super("registerResourceJobManager"); } - public changeDataMovementPriority_args getEmptyArgsInstance() { - return new changeDataMovementPriority_args(); + public registerResourceJobManager_args getEmptyArgsInstance() { + return new registerResourceJobManager_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - changeDataMovementPriority_result result = new changeDataMovementPriority_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerResourceJobManager_result result = new registerResourceJobManager_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -22944,7 +21430,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeDataMovementPriority_result result = new changeDataMovementPriority_result(); + registerResourceJobManager_result result = new registerResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -22985,25 +21471,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeDataMovementPriority_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeDataMovementPriority(args.authzToken, args.dataMovementInterfaceId, args.newPriorityOrder,resultHandler); + public void start(I iface, registerResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerResourceJobManager(args.authzToken, args.resourceJobManager,resultHandler); } } - public static class changeJobSubmissionPriorities extends org.apache.thrift.AsyncProcessFunction { - public changeJobSubmissionPriorities() { - super("changeJobSubmissionPriorities"); + public static class updateResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public updateResourceJobManager() { + super("updateResourceJobManager"); } - public changeJobSubmissionPriorities_args getEmptyArgsInstance() { - return new changeJobSubmissionPriorities_args(); + public updateResourceJobManager_args getEmptyArgsInstance() { + return new updateResourceJobManager_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); + updateResourceJobManager_result result = new updateResourceJobManager_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23017,7 +21503,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeJobSubmissionPriorities_result result = new changeJobSubmissionPriorities_result(); + updateResourceJobManager_result result = new updateResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23058,27 +21544,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeJobSubmissionPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeJobSubmissionPriorities(args.authzToken, args.jobSubmissionPriorityMap,resultHandler); + public void start(I iface, updateResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateResourceJobManager(args.authzToken, args.resourceJobManagerId, args.updatedResourceJobManager,resultHandler); } } - public static class changeDataMovementPriorities extends org.apache.thrift.AsyncProcessFunction { - public changeDataMovementPriorities() { - super("changeDataMovementPriorities"); + public static class getResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public getResourceJobManager() { + super("getResourceJobManager"); } - public changeDataMovementPriorities_args getEmptyArgsInstance() { - return new changeDataMovementPriorities_args(); + public getResourceJobManager_args getEmptyArgsInstance() { + return new getResourceJobManager_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager o) { + getResourceJobManager_result result = new getResourceJobManager_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23090,7 +21575,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - changeDataMovementPriorities_result result = new changeDataMovementPriorities_result(); + getResourceJobManager_result result = new getResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23131,25 +21616,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, changeDataMovementPriorities_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.changeDataMovementPriorities(args.authzToken, args.dataMovementPriorityMap,resultHandler); + public void start(I iface, getResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getResourceJobManager(args.authzToken, args.resourceJobManagerId,resultHandler); } } - public static class deleteJobSubmissionInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteJobSubmissionInterface() { - super("deleteJobSubmissionInterface"); + public static class deleteResourceJobManager extends org.apache.thrift.AsyncProcessFunction { + public deleteResourceJobManager() { + super("deleteResourceJobManager"); } - public deleteJobSubmissionInterface_args getEmptyArgsInstance() { - return new deleteJobSubmissionInterface_args(); + public deleteResourceJobManager_args getEmptyArgsInstance() { + return new deleteResourceJobManager_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); + deleteResourceJobManager_result result = new deleteResourceJobManager_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23163,7 +21648,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteJobSubmissionInterface_result result = new deleteJobSubmissionInterface_result(); + deleteResourceJobManager_result result = new deleteResourceJobManager_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23204,25 +21689,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteJobSubmissionInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteJobSubmissionInterface(args.authzToken, args.computeResourceId, args.jobSubmissionInterfaceId,resultHandler); + public void start(I iface, deleteResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteResourceJobManager(args.authzToken, args.resourceJobManagerId,resultHandler); } } - public static class deleteDataMovementInterface extends org.apache.thrift.AsyncProcessFunction { - public deleteDataMovementInterface() { - super("deleteDataMovementInterface"); + public static class deleteBatchQueue extends org.apache.thrift.AsyncProcessFunction { + public deleteBatchQueue() { + super("deleteBatchQueue"); } - public deleteDataMovementInterface_args getEmptyArgsInstance() { - return new deleteDataMovementInterface_args(); + public deleteBatchQueue_args getEmptyArgsInstance() { + return new deleteBatchQueue_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); + deleteBatchQueue_result result = new deleteBatchQueue_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23236,7 +21721,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteDataMovementInterface_result result = new deleteDataMovementInterface_result(); + deleteBatchQueue_result result = new deleteBatchQueue_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23277,25 +21762,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteDataMovementInterface_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteDataMovementInterface(args.authzToken, args.computeResourceId, args.dataMovementInterfaceId,resultHandler); + public void start(I iface, deleteBatchQueue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteBatchQueue(args.authzToken, args.computeResourceId, args.queueName,resultHandler); } } - public static class registerResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public registerResourceJobManager() { - super("registerResourceJobManager"); + public static class registerGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public registerGatewayResourceProfile() { + super("registerGatewayResourceProfile"); } - public registerResourceJobManager_args getEmptyArgsInstance() { - return new registerResourceJobManager_args(); + public registerGatewayResourceProfile_args getEmptyArgsInstance() { + return new registerGatewayResourceProfile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(String o) { - registerResourceJobManager_result result = new registerResourceJobManager_result(); + registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -23308,7 +21793,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerResourceJobManager_result result = new registerResourceJobManager_result(); + registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23349,27 +21834,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerResourceJobManager(args.authzToken, args.resourceJobManager,resultHandler); + public void start(I iface, registerGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerGatewayResourceProfile(args.authzToken, args.gatewayResourceProfile,resultHandler); } } - public static class updateResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public updateResourceJobManager() { - super("updateResourceJobManager"); + public static class getGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public getGatewayResourceProfile() { + super("getGatewayResourceProfile"); } - public updateResourceJobManager_args getEmptyArgsInstance() { - return new updateResourceJobManager_args(); + public getGatewayResourceProfile_args getEmptyArgsInstance() { + return new getGatewayResourceProfile_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateResourceJobManager_result result = new updateResourceJobManager_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile o) { + getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23381,7 +21865,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateResourceJobManager_result result = new updateResourceJobManager_result(); + getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23422,26 +21906,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateResourceJobManager(args.authzToken, args.resourceJobManagerId, args.updatedResourceJobManager,resultHandler); + public void start(I iface, getGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGatewayResourceProfile(args.authzToken, args.gatewayID,resultHandler); } } - public static class getResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public getResourceJobManager() { - super("getResourceJobManager"); + public static class updateGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public updateGatewayResourceProfile() { + super("updateGatewayResourceProfile"); } - public getResourceJobManager_args getEmptyArgsInstance() { - return new getResourceJobManager_args(); + public updateGatewayResourceProfile_args getEmptyArgsInstance() { + return new updateGatewayResourceProfile_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.computeresource.ResourceJobManager o) { - getResourceJobManager_result result = new getResourceJobManager_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23453,7 +21938,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.computeresource.Reso public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getResourceJobManager_result result = new getResourceJobManager_result(); + updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23494,25 +21979,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getResourceJobManager(args.authzToken, args.resourceJobManagerId,resultHandler); + public void start(I iface, updateGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGatewayResourceProfile(args.authzToken, args.gatewayID, args.gatewayResourceProfile,resultHandler); } } - public static class deleteResourceJobManager extends org.apache.thrift.AsyncProcessFunction { - public deleteResourceJobManager() { - super("deleteResourceJobManager"); + public static class deleteGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { + public deleteGatewayResourceProfile() { + super("deleteGatewayResourceProfile"); } - public deleteResourceJobManager_args getEmptyArgsInstance() { - return new deleteResourceJobManager_args(); + public deleteGatewayResourceProfile_args getEmptyArgsInstance() { + return new deleteGatewayResourceProfile_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteResourceJobManager_result result = new deleteResourceJobManager_result(); + deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23526,7 +22011,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteResourceJobManager_result result = new deleteResourceJobManager_result(); + deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23567,25 +22052,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteResourceJobManager_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteResourceJobManager(args.authzToken, args.resourceJobManagerId,resultHandler); + public void start(I iface, deleteGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteGatewayResourceProfile(args.authzToken, args.gatewayID,resultHandler); } } - public static class deleteBatchQueue extends org.apache.thrift.AsyncProcessFunction { - public deleteBatchQueue() { - super("deleteBatchQueue"); + public static class addGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public addGatewayComputeResourcePreference() { + super("addGatewayComputeResourcePreference"); } - public deleteBatchQueue_args getEmptyArgsInstance() { - return new deleteBatchQueue_args(); + public addGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new addGatewayComputeResourcePreference_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteBatchQueue_result result = new deleteBatchQueue_result(); + addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23599,7 +22084,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteBatchQueue_result result = new deleteBatchQueue_result(); + addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23640,25 +22125,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteBatchQueue_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteBatchQueue(args.authzToken, args.computeResourceId, args.queueName,resultHandler); + public void start(I iface, addGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.addGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); } } - public static class registerGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public registerGatewayResourceProfile() { - super("registerGatewayResourceProfile"); + public static class getGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public getGatewayComputeResourcePreference() { + super("getGatewayComputeResourcePreference"); } - public registerGatewayResourceProfile_args getEmptyArgsInstance() { - return new registerGatewayResourceProfile_args(); + public getGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new getGatewayComputeResourcePreference_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference o) { + getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -23671,7 +22156,7 @@ public void onComplete(String o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - registerGatewayResourceProfile_result result = new registerGatewayResourceProfile_result(); + getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23712,25 +22197,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, registerGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerGatewayResourceProfile(args.authzToken, args.gatewayResourceProfile,resultHandler); + public void start(I iface, getGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId,resultHandler); } } - public static class getGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public getGatewayResourceProfile() { - super("getGatewayResourceProfile"); + public static class getAllGatewayComputeResourcePreferences extends org.apache.thrift.AsyncProcessFunction> { + public getAllGatewayComputeResourcePreferences() { + super("getAllGatewayComputeResourcePreferences"); } - public getGatewayResourceProfile_args getEmptyArgsInstance() { - return new getGatewayResourceProfile_args(); + public getAllGatewayComputeResourcePreferences_args getEmptyArgsInstance() { + return new getAllGatewayComputeResourcePreferences_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile o) { - getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -23743,7 +22228,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.Gatew public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGatewayResourceProfile_result result = new getGatewayResourceProfile_result(); + getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23784,27 +22269,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGatewayResourceProfile(args.authzToken, args.gatewayID,resultHandler); + public void start(I iface, getAllGatewayComputeResourcePreferences_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllGatewayComputeResourcePreferences(args.authzToken, args.gatewayID,resultHandler); } } - public static class updateGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public updateGatewayResourceProfile() { - super("updateGatewayResourceProfile"); + public static class getAllGatewayComputeResources extends org.apache.thrift.AsyncProcessFunction> { + public getAllGatewayComputeResources() { + super("getAllGatewayComputeResources"); } - public updateGatewayResourceProfile_args getEmptyArgsInstance() { - return new updateGatewayResourceProfile_args(); + public getAllGatewayComputeResources_args getEmptyArgsInstance() { + return new getAllGatewayComputeResources_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -23816,7 +22300,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGatewayResourceProfile_result result = new updateGatewayResourceProfile_result(); + getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23857,25 +22341,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGatewayResourceProfile(args.authzToken, args.gatewayID, args.gatewayResourceProfile,resultHandler); + public void start(I iface, getAllGatewayComputeResources_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllGatewayComputeResources(args.authzToken,resultHandler); } } - public static class deleteGatewayResourceProfile extends org.apache.thrift.AsyncProcessFunction { - public deleteGatewayResourceProfile() { - super("deleteGatewayResourceProfile"); + public static class updateGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public updateGatewayComputeResourcePreference() { + super("updateGatewayComputeResourcePreference"); } - public deleteGatewayResourceProfile_args getEmptyArgsInstance() { - return new deleteGatewayResourceProfile_args(); + public updateGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new updateGatewayComputeResourcePreference_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); + updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23889,7 +22373,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteGatewayResourceProfile_result result = new deleteGatewayResourceProfile_result(); + updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -23930,25 +22414,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteGatewayResourceProfile_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteGatewayResourceProfile(args.authzToken, args.gatewayID,resultHandler); + public void start(I iface, updateGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); } } - public static class addGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public addGatewayComputeResourcePreference() { - super("addGatewayComputeResourcePreference"); + public static class deleteGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { + public deleteGatewayComputeResourcePreference() { + super("deleteGatewayComputeResourcePreference"); } - public addGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new addGatewayComputeResourcePreference_args(); + public deleteGatewayComputeResourcePreference_args getEmptyArgsInstance() { + return new deleteGatewayComputeResourcePreference_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Boolean o) { - addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); + deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); result.success = o; result.setSuccessIsSet(true); try { @@ -23962,7 +22446,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - addGatewayComputeResourcePreference_result result = new addGatewayComputeResourcePreference_result(); + deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -24003,25 +22487,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, addGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.addGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); + public void start(I iface, deleteGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId,resultHandler); } } - public static class getGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public getGatewayComputeResourcePreference() { - super("getGatewayComputeResourcePreference"); + public static class getAllWorkflows extends org.apache.thrift.AsyncProcessFunction> { + public getAllWorkflows() { + super("getAllWorkflows"); } - public getGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new getGatewayComputeResourcePreference_args(); + public getAllWorkflows_args getEmptyArgsInstance() { + return new getAllWorkflows_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference o) { - getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + getAllWorkflows_result result = new getAllWorkflows_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -24034,7 +22518,7 @@ public void onComplete(org.apache.airavata.model.appcatalog.gatewayprofile.Compu public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getGatewayComputeResourcePreference_result result = new getGatewayComputeResourcePreference_result(); + getAllWorkflows_result result = new getAllWorkflows_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -24075,25 +22559,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, getGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId,resultHandler); + public void start(I iface, getAllWorkflows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.getAllWorkflows(args.authzToken, args.gatewayId,resultHandler); } } - public static class getAllGatewayComputeResourcePreferences extends org.apache.thrift.AsyncProcessFunction> { - public getAllGatewayComputeResourcePreferences() { - super("getAllGatewayComputeResourcePreferences"); + public static class getWorkflow extends org.apache.thrift.AsyncProcessFunction { + public getWorkflow() { + super("getWorkflow"); } - public getAllGatewayComputeResourcePreferences_args getEmptyArgsInstance() { - return new getAllGatewayComputeResourcePreferences_args(); + public getWorkflow_args getEmptyArgsInstance() { + return new getWorkflow_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllGatewayComputeResourcePreferences_result result = new getAllGatewayComputeResourcePreferences_result(); + return new AsyncMethodCallback() { + public void onComplete(org.apache.airavata.model.Workflow o) { + getWorkflow_result result = new getWorkflow_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -24106,7 +22590,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllGatewayComputeResourcePreferences(args.authzToken, args.gatewayID,resultHandler); + public void start(I iface, getWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.getWorkflow(args.authzToken, args.workflowTemplateId,resultHandler); } } - public static class getAllGatewayComputeResources extends org.apache.thrift.AsyncProcessFunction> { - public getAllGatewayComputeResources() { - super("getAllGatewayComputeResources"); + public static class deleteWorkflow extends org.apache.thrift.AsyncProcessFunction { + public deleteWorkflow() { + super("deleteWorkflow"); } - public getAllGatewayComputeResources_args getEmptyArgsInstance() { - return new getAllGatewayComputeResources_args(); + public deleteWorkflow_args getEmptyArgsInstance() { + return new deleteWorkflow_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllGatewayComputeResources_result result = new getAllGatewayComputeResources_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + deleteWorkflow_result result = new deleteWorkflow_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -24178,7 +22661,7 @@ public void onComplete(List> resultHandler) throws TException { - iface.getAllGatewayComputeResources(args.authzToken,resultHandler); + public void start(I iface, deleteWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.deleteWorkflow(args.authzToken, args.workflowTemplateId,resultHandler); } } - public static class updateGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public updateGatewayComputeResourcePreference() { - super("updateGatewayComputeResourcePreference"); + public static class registerWorkflow extends org.apache.thrift.AsyncProcessFunction { + public registerWorkflow() { + super("registerWorkflow"); } - public updateGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new updateGatewayComputeResourcePreference_args(); + public registerWorkflow_args getEmptyArgsInstance() { + return new registerWorkflow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + registerWorkflow_result result = new registerWorkflow_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -24251,7 +22733,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - updateGatewayComputeResourcePreference_result result = new updateGatewayComputeResourcePreference_result(); + registerWorkflow_result result = new registerWorkflow_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -24292,27 +22774,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, updateGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId, args.computeResourcePreference,resultHandler); + public void start(I iface, registerWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.registerWorkflow(args.authzToken, args.gatewayId, args.workflow,resultHandler); } } - public static class deleteGatewayComputeResourcePreference extends org.apache.thrift.AsyncProcessFunction { - public deleteGatewayComputeResourcePreference() { - super("deleteGatewayComputeResourcePreference"); + public static class updateWorkflow extends org.apache.thrift.AsyncProcessFunction { + public updateWorkflow() { + super("updateWorkflow"); } - public deleteGatewayComputeResourcePreference_args getEmptyArgsInstance() { - return new deleteGatewayComputeResourcePreference_args(); + public updateWorkflow_args getEmptyArgsInstance() { + return new updateWorkflow_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); - result.success = o; - result.setSuccessIsSet(true); + return new AsyncMethodCallback() { + public void onComplete(Void o) { + updateWorkflow_result result = new updateWorkflow_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -24324,7 +22804,7 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - deleteGatewayComputeResourcePreference_result result = new deleteGatewayComputeResourcePreference_result(); + updateWorkflow_result result = new updateWorkflow_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -24365,25 +22845,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, deleteGatewayComputeResourcePreference_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteGatewayComputeResourcePreference(args.authzToken, args.gatewayID, args.computeResourceId,resultHandler); + public void start(I iface, updateWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.updateWorkflow(args.authzToken, args.workflowTemplateId, args.workflow,resultHandler); } } - public static class getAllWorkflows extends org.apache.thrift.AsyncProcessFunction> { - public getAllWorkflows() { - super("getAllWorkflows"); + public static class getWorkflowTemplateId extends org.apache.thrift.AsyncProcessFunction { + public getWorkflowTemplateId() { + super("getWorkflowTemplateId"); } - public getAllWorkflows_args getEmptyArgsInstance() { - return new getAllWorkflows_args(); + public getWorkflowTemplateId_args getEmptyArgsInstance() { + return new getWorkflowTemplateId_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - getAllWorkflows_result result = new getAllWorkflows_result(); + return new AsyncMethodCallback() { + public void onComplete(String o) { + getWorkflowTemplateId_result result = new getWorkflowTemplateId_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -24396,365 +22876,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - getAllWorkflows_result result = new getAllWorkflows_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getAllWorkflows_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllWorkflows(args.authzToken, args.gatewayId,resultHandler); - } - } - - public static class getWorkflow extends org.apache.thrift.AsyncProcessFunction { - public getWorkflow() { - super("getWorkflow"); - } - - public getWorkflow_args getEmptyArgsInstance() { - return new getWorkflow_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.airavata.model.Workflow o) { - getWorkflow_result result = new getWorkflow_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getWorkflow_result result = new getWorkflow_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, getWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getWorkflow(args.authzToken, args.workflowTemplateId,resultHandler); - } - } - - public static class deleteWorkflow extends org.apache.thrift.AsyncProcessFunction { - public deleteWorkflow() { - super("deleteWorkflow"); - } - - public deleteWorkflow_args getEmptyArgsInstance() { - return new deleteWorkflow_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - deleteWorkflow_result result = new deleteWorkflow_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - deleteWorkflow_result result = new deleteWorkflow_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, deleteWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.deleteWorkflow(args.authzToken, args.workflowTemplateId,resultHandler); - } - } - - public static class registerWorkflow extends org.apache.thrift.AsyncProcessFunction { - public registerWorkflow() { - super("registerWorkflow"); - } - - public registerWorkflow_args getEmptyArgsInstance() { - return new registerWorkflow_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - registerWorkflow_result result = new registerWorkflow_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - registerWorkflow_result result = new registerWorkflow_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, registerWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.registerWorkflow(args.authzToken, args.gatewayId, args.workflow,resultHandler); - } - } - - public static class updateWorkflow extends org.apache.thrift.AsyncProcessFunction { - public updateWorkflow() { - super("updateWorkflow"); - } - - public updateWorkflow_args getEmptyArgsInstance() { - return new updateWorkflow_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - updateWorkflow_result result = new updateWorkflow_result(); - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - updateWorkflow_result result = new updateWorkflow_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 - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, updateWorkflow_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.updateWorkflow(args.authzToken, args.workflowTemplateId, args.workflow,resultHandler); - } - } - - public static class getWorkflowTemplateId extends org.apache.thrift.AsyncProcessFunction { - public getWorkflowTemplateId() { - super("getWorkflowTemplateId"); - } - - public getWorkflowTemplateId_args getEmptyArgsInstance() { - return new getWorkflowTemplateId_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - getWorkflowTemplateId_result result = new getWorkflowTemplateId_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - getWorkflowTemplateId_result result = new getWorkflowTemplateId_result(); + getWorkflowTemplateId_result result = new getWorkflowTemplateId_result(); if (e instanceof org.apache.airavata.model.error.InvalidRequestException) { result.ire = (org.apache.airavata.model.error.InvalidRequestException) e; result.setIreIsSet(true); @@ -42171,25 +40293,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, deleteProject_result } - public static class getAllUserProjects_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjects_args"); + public static class getUserProjects_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserProjects_args"); - 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)1); - 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)2); + 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.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserProjects_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserProjects_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserProjects_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserProjects_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"), + LIMIT((short)4, "limit"), + OFFSET((short)5, "offset"); private static final Map byName = new HashMap(); @@ -42204,10 +40335,16 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; + case 4: // LIMIT + return LIMIT; + case 5: // OFFSET + return OFFSET; default: return null; } @@ -42248,56 +40385,108 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjects_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserProjects_args.class, metaDataMap); } - public getAllUserProjects_args() { + public getUserProjects_args() { } - public getAllUserProjects_args( + public getUserProjects_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, - String userName) + String userName, + int limit, + int offset) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public getAllUserProjects_args(getAllUserProjects_args other) { + public getUserProjects_args(getUserProjects_args other) { + __isset_bitfield = other.__isset_bitfield; + 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; } + this.limit = other.limit; + this.offset = other.offset; } - public getAllUserProjects_args deepCopy() { - return new getAllUserProjects_args(this); + public getUserProjects_args deepCopy() { + return new getUserProjects_args(this); } @Override public void clear() { + this.authzToken = null; this.gatewayId = null; this.userName = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public getUserProjects_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 String getGatewayId() { return this.gatewayId; } - public getAllUserProjects_args setGatewayId(String gatewayId) { + public getUserProjects_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -42321,7 +40510,7 @@ public String getUserName() { return this.userName; } - public getAllUserProjects_args setUserName(String userName) { + public getUserProjects_args setUserName(String userName) { this.userName = userName; return this; } @@ -42341,8 +40530,62 @@ public void setUserNameIsSet(boolean value) { } } + public int getLimit() { + return this.limit; + } + + public getUserProjects_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public getUserProjects_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, 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(); @@ -42359,17 +40602,42 @@ public void setFieldValue(_Fields field, Object value) { } break; + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case GATEWAY_ID: return getGatewayId(); case USER_NAME: return getUserName(); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + } throw new IllegalStateException(); } @@ -42381,10 +40649,16 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case GATEWAY_ID: return isSetGatewayId(); case USER_NAME: return isSetUserName(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -42393,15 +40667,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserProjects_args) - return this.equals((getAllUserProjects_args)that); + if (that instanceof getUserProjects_args) + return this.equals((getUserProjects_args)that); return false; } - public boolean equals(getAllUserProjects_args that) { + public boolean equals(getUserProjects_args that) { if (that == null) return false; + 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) { @@ -42420,6 +40703,24 @@ public boolean equals(getAllUserProjects_args that) { return false; } + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + return true; } @@ -42427,6 +40728,11 @@ public boolean equals(getAllUserProjects_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_gatewayId = true && (isSetGatewayId()); list.add(present_gatewayId); if (present_gatewayId) @@ -42437,17 +40743,37 @@ public int hashCode() { if (present_userName) list.add(userName); + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); + return list.hashCode(); } @Override - public int compareTo(getAllUserProjects_args other) { + public int compareTo(getUserProjects_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; @@ -42468,6 +40794,26 @@ public int compareTo(getAllUserProjects_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -42485,9 +40831,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserProjects_args("); + StringBuilder sb = new StringBuilder("getUserProjects_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"); @@ -42503,19 +40857,35 @@ public String toString() { sb.append(this.userName); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + 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()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -42528,21 +40898,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 getAllUserProjects_argsStandardSchemeFactory implements SchemeFactory { - public getAllUserProjects_argsStandardScheme getScheme() { - return new getAllUserProjects_argsStandardScheme(); + private static class getUserProjects_argsStandardSchemeFactory implements SchemeFactory { + public getUserProjects_argsStandardScheme getScheme() { + return new getUserProjects_argsStandardScheme(); } } - private static class getAllUserProjects_argsStandardScheme extends StandardScheme { + private static class getUserProjects_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProjects_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42552,7 +40924,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ break; } switch (schemeField.id) { - case 1: // GATEWAY_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); @@ -42560,7 +40941,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_NAME + case 3: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -42568,6 +40949,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42576,13 +40973,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProjects_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); @@ -42593,64 +41001,83 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects oprot.writeString(struct.userName); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllUserProjects_argsTupleSchemeFactory implements SchemeFactory { - public getAllUserProjects_argsTupleScheme getScheme() { - return new getAllUserProjects_argsTupleScheme(); + private static class getUserProjects_argsTupleSchemeFactory implements SchemeFactory { + public getUserProjects_argsTupleScheme getScheme() { + return new getUserProjects_argsTupleScheme(); } } - private static class getAllUserProjects_argsTupleScheme extends TupleScheme { + private static class getUserProjects_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserProjects_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class getAllUserProjects_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjects_result"); + public static class getUserProjects_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserProjects_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserProjects_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserProjects_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserProjects_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserProjects_resultTupleSchemeFactory()); } public List 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"); + ASE((short)3, "ase"), + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -42673,6 +41100,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // AE + return AE; default: return null; } @@ -42725,30 +41154,34 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjects_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserProjects_result.class, metaDataMap); } - public getAllUserProjects_result() { + public getUserProjects_result() { } - public getAllUserProjects_result( + public getUserProjects_result( List 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.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 other. */ - public getAllUserProjects_result(getAllUserProjects_result other) { + public getUserProjects_result(getUserProjects_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.Project other_element : other.success) { @@ -42765,10 +41198,13 @@ public getAllUserProjects_result(getAllUserProjects_result other) { 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 getAllUserProjects_result deepCopy() { - return new getAllUserProjects_result(this); + public getUserProjects_result deepCopy() { + return new getUserProjects_result(this); } @Override @@ -42777,6 +41213,7 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; + this.ae = null; } public int getSuccessSize() { @@ -42798,7 +41235,7 @@ public List getSuccess() { return this.success; } - public getAllUserProjects_result setSuccess(List success) { + public getUserProjects_result setSuccess(List success) { this.success = success; return this; } @@ -42822,7 +41259,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllUserProjects_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getUserProjects_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -42846,7 +41283,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllUserProjects_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getUserProjects_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -42870,7 +41307,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllUserProjects_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getUserProjects_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -42890,6 +41327,30 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; + } + + public getUserProjects_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, Object value) { switch (field) { case SUCCESS: @@ -42924,6 +41385,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case AE: + if (value == null) { + unsetAe(); + } else { + setAe((org.apache.airavata.model.error.AuthorizationException)value); + } + break; + } } @@ -42941,6 +41410,9 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case AE: + return getAe(); + } throw new IllegalStateException(); } @@ -42960,6 +41432,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -42968,12 +41442,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserProjects_result) - return this.equals((getAllUserProjects_result)that); + if (that instanceof getUserProjects_result) + return this.equals((getUserProjects_result)that); return false; } - public boolean equals(getAllUserProjects_result that) { + public boolean equals(getUserProjects_result that) { if (that == null) return false; @@ -43013,6 +41487,15 @@ public boolean equals(getAllUserProjects_result that) { 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; } @@ -43040,11 +41523,16 @@ public int hashCode() { if (present_ase) list.add(ase); + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); + return list.hashCode(); } @Override - public int compareTo(getAllUserProjects_result other) { + public int compareTo(getUserProjects_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43091,6 +41579,16 @@ public int compareTo(getAllUserProjects_result other) { return lastComparison; } } + lastComparison = 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; } @@ -43108,7 +41606,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserProjects_result("); + StringBuilder sb = new StringBuilder("getUserProjects_result("); boolean first = true; sb.append("success:"); @@ -43142,6 +41640,14 @@ public String toString() { 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(); } @@ -43167,15 +41673,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserProjects_resultStandardSchemeFactory implements SchemeFactory { - public getAllUserProjects_resultStandardScheme getScheme() { - return new getAllUserProjects_resultStandardScheme(); + private static class getUserProjects_resultStandardSchemeFactory implements SchemeFactory { + public getUserProjects_resultStandardScheme getScheme() { + return new getUserProjects_resultStandardScheme(); } } - private static class getAllUserProjects_resultStandardScheme extends StandardScheme { + private static class getUserProjects_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserProjects_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43231,6 +41737,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ 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); } @@ -43242,7 +41757,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjects_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserProjects_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43273,22 +41788,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects 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 getAllUserProjects_resultTupleSchemeFactory implements SchemeFactory { - public getAllUserProjects_resultTupleScheme getScheme() { - return new getAllUserProjects_resultTupleScheme(); + private static class getUserProjects_resultTupleSchemeFactory implements SchemeFactory { + public getUserProjects_resultTupleScheme getScheme() { + return new getUserProjects_resultTupleScheme(); } } - private static class getAllUserProjects_resultTupleScheme extends TupleScheme { + private static class getUserProjects_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -43303,7 +41823,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_ if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetAe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -43322,12 +41845,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_ if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetAe()) { + struct.ae.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserProjects_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list23 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); @@ -43357,29 +41883,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjects_r 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); + } } } } - public static class getAllUserProjectsWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjectsWithPagination_args"); + public static class searchProjectsByProjectName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_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.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)4); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserProjectsWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserProjectsWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectName_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectName_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required + public String projectName; // required public int limit; // required public int offset; // required @@ -43388,8 +41921,9 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTHZ_TOKEN((short)1, "authzToken"), GATEWAY_ID((short)2, "gatewayId"), USER_NAME((short)3, "userName"), - LIMIT((short)4, "limit"), - OFFSET((short)5, "offset"); + PROJECT_NAME((short)4, "projectName"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); private static final Map byName = new HashMap(); @@ -43410,9 +41944,11 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 3: // USER_NAME return USER_NAME; - case 4: // LIMIT + case 4: // PROJECT_NAME + return PROJECT_NAME; + case 5: // LIMIT return LIMIT; - case 5: // OFFSET + case 6: // OFFSET return OFFSET; default: return null; @@ -43466,21 +42002,24 @@ public String getFieldName() { 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))); + tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjectsWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_args.class, metaDataMap); } - public getAllUserProjectsWithPagination_args() { + public searchProjectsByProjectName_args() { } - public getAllUserProjectsWithPagination_args( + public searchProjectsByProjectName_args( org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, + String projectName, int limit, int offset) { @@ -43488,6 +42027,7 @@ public getAllUserProjectsWithPagination_args( this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; + this.projectName = projectName; this.limit = limit; setLimitIsSet(true); this.offset = offset; @@ -43497,7 +42037,7 @@ public getAllUserProjectsWithPagination_args( /** * Performs a deep copy on other. */ - public getAllUserProjectsWithPagination_args(getAllUserProjectsWithPagination_args other) { + public searchProjectsByProjectName_args(searchProjectsByProjectName_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); @@ -43508,12 +42048,15 @@ public getAllUserProjectsWithPagination_args(getAllUserProjectsWithPagination_ar if (other.isSetUserName()) { this.userName = other.userName; } + if (other.isSetProjectName()) { + this.projectName = other.projectName; + } this.limit = other.limit; this.offset = other.offset; } - public getAllUserProjectsWithPagination_args deepCopy() { - return new getAllUserProjectsWithPagination_args(this); + public searchProjectsByProjectName_args deepCopy() { + return new searchProjectsByProjectName_args(this); } @Override @@ -43521,6 +42064,7 @@ public void clear() { this.authzToken = null; this.gatewayId = null; this.userName = null; + this.projectName = null; setLimitIsSet(false); this.limit = 0; setOffsetIsSet(false); @@ -43531,7 +42075,7 @@ public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public getAllUserProjectsWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public searchProjectsByProjectName_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -43555,7 +42099,7 @@ public String getGatewayId() { return this.gatewayId; } - public getAllUserProjectsWithPagination_args setGatewayId(String gatewayId) { + public searchProjectsByProjectName_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -43579,7 +42123,7 @@ public String getUserName() { return this.userName; } - public getAllUserProjectsWithPagination_args setUserName(String userName) { + public searchProjectsByProjectName_args setUserName(String userName) { this.userName = userName; return this; } @@ -43599,11 +42143,35 @@ public void setUserNameIsSet(boolean value) { } } + public String getProjectName() { + return this.projectName; + } + + public searchProjectsByProjectName_args setProjectName(String projectName) { + this.projectName = projectName; + return this; + } + + public void unsetProjectName() { + this.projectName = null; + } + + /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectName() { + return this.projectName != null; + } + + public void setProjectNameIsSet(boolean value) { + if (!value) { + this.projectName = null; + } + } + public int getLimit() { return this.limit; } - public getAllUserProjectsWithPagination_args setLimit(int limit) { + public searchProjectsByProjectName_args setLimit(int limit) { this.limit = limit; setLimitIsSet(true); return this; @@ -43626,7 +42194,7 @@ public int getOffset() { return this.offset; } - public getAllUserProjectsWithPagination_args setOffset(int offset) { + public searchProjectsByProjectName_args setOffset(int offset) { this.offset = offset; setOffsetIsSet(true); return this; @@ -43671,6 +42239,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PROJECT_NAME: + if (value == null) { + unsetProjectName(); + } else { + setProjectName((String)value); + } + break; + case LIMIT: if (value == null) { unsetLimit(); @@ -43701,6 +42277,9 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); + case PROJECT_NAME: + return getProjectName(); + case LIMIT: return Integer.valueOf(getLimit()); @@ -43724,6 +42303,8 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); + case PROJECT_NAME: + return isSetProjectName(); case LIMIT: return isSetLimit(); case OFFSET: @@ -43736,12 +42317,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserProjectsWithPagination_args) - return this.equals((getAllUserProjectsWithPagination_args)that); + if (that instanceof searchProjectsByProjectName_args) + return this.equals((searchProjectsByProjectName_args)that); return false; } - public boolean equals(getAllUserProjectsWithPagination_args that) { + public boolean equals(searchProjectsByProjectName_args that) { if (that == null) return false; @@ -43772,6 +42353,15 @@ public boolean equals(getAllUserProjectsWithPagination_args that) { return false; } + boolean this_present_projectName = true && this.isSetProjectName(); + boolean that_present_projectName = true && that.isSetProjectName(); + if (this_present_projectName || that_present_projectName) { + if (!(this_present_projectName && that_present_projectName)) + return false; + if (!this.projectName.equals(that.projectName)) + return false; + } + boolean this_present_limit = true; boolean that_present_limit = true; if (this_present_limit || that_present_limit) { @@ -43812,6 +42402,11 @@ public int hashCode() { if (present_userName) list.add(userName); + boolean present_projectName = true && (isSetProjectName()); + list.add(present_projectName); + if (present_projectName) + list.add(projectName); + boolean present_limit = true; list.add(present_limit); if (present_limit) @@ -43826,7 +42421,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserProjectsWithPagination_args other) { + public int compareTo(searchProjectsByProjectName_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43863,6 +42458,16 @@ public int compareTo(getAllUserProjectsWithPagination_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetProjectName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); if (lastComparison != 0) { return lastComparison; @@ -43900,7 +42505,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserProjectsWithPagination_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectName_args("); boolean first = true; sb.append("authzToken:"); @@ -43927,6 +42532,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("projectName:"); + if (this.projectName == null) { + sb.append("null"); + } else { + sb.append(this.projectName); + } + first = false; + if (!first) sb.append(", "); sb.append("limit:"); sb.append(this.limit); first = false; @@ -43949,6 +42562,9 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } + if (projectName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); + } // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity @@ -43975,15 +42591,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserProjectsWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public getAllUserProjectsWithPagination_argsStandardScheme getScheme() { - return new getAllUserProjectsWithPagination_argsStandardScheme(); + private static class searchProjectsByProjectName_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_argsStandardScheme getScheme() { + return new searchProjectsByProjectName_argsStandardScheme(); } } - private static class getAllUserProjectsWithPagination_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectName_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44018,7 +42634,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsW org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // LIMIT + case 4: // PROJECT_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.limit = iprot.readI32(); struct.setLimitIsSet(true); @@ -44026,7 +42650,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsW org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // OFFSET + case 6: // OFFSET if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.offset = iprot.readI32(); struct.setOffsetIsSet(true); @@ -44051,7 +42675,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsW struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44070,6 +42694,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects oprot.writeString(struct.userName); oprot.writeFieldEnd(); } + if (struct.projectName != null) { + oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); + oprot.writeString(struct.projectName); + oprot.writeFieldEnd(); + } oprot.writeFieldBegin(LIMIT_FIELD_DESC); oprot.writeI32(struct.limit); oprot.writeFieldEnd(); @@ -44082,26 +42711,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects } - private static class getAllUserProjectsWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public getAllUserProjectsWithPagination_argsTupleScheme getScheme() { - return new getAllUserProjectsWithPagination_argsTupleScheme(); + private static class searchProjectsByProjectName_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_argsTupleScheme getScheme() { + return new searchProjectsByProjectName_argsTupleScheme(); } } - private static class getAllUserProjectsWithPagination_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectName_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); + oprot.writeString(struct.projectName); oprot.writeI32(struct.limit); oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); @@ -44110,6 +42740,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWi struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); + struct.projectName = iprot.readString(); + struct.setProjectNameIsSet(true); struct.limit = iprot.readI32(); struct.setLimitIsSet(true); struct.offset = iprot.readI32(); @@ -44119,8 +42751,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWi } - public static class getAllUserProjectsWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserProjectsWithPagination_result"); + public static class searchProjectsByProjectName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_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); @@ -44130,8 +42762,8 @@ public static class getAllUserProjectsWithPagination_result implements org.apach private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserProjectsWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserProjectsWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectName_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectName_resultTupleSchemeFactory()); } public List success; // required @@ -44226,13 +42858,13 @@ public String getFieldName() { tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserProjectsWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_result.class, metaDataMap); } - public getAllUserProjectsWithPagination_result() { + public searchProjectsByProjectName_result() { } - public getAllUserProjectsWithPagination_result( + public searchProjectsByProjectName_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -44250,7 +42882,7 @@ public getAllUserProjectsWithPagination_result( /** * Performs a deep copy on other. */ - public getAllUserProjectsWithPagination_result(getAllUserProjectsWithPagination_result other) { + public searchProjectsByProjectName_result(searchProjectsByProjectName_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.Project other_element : other.success) { @@ -44272,8 +42904,8 @@ public getAllUserProjectsWithPagination_result(getAllUserProjectsWithPagination_ } } - public getAllUserProjectsWithPagination_result deepCopy() { - return new getAllUserProjectsWithPagination_result(this); + public searchProjectsByProjectName_result deepCopy() { + return new searchProjectsByProjectName_result(this); } @Override @@ -44304,7 +42936,7 @@ public List getSuccess() { return this.success; } - public getAllUserProjectsWithPagination_result setSuccess(List success) { + public searchProjectsByProjectName_result setSuccess(List success) { this.success = success; return this; } @@ -44328,7 +42960,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllUserProjectsWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -44352,7 +42984,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllUserProjectsWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -44376,7 +43008,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllUserProjectsWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -44400,7 +43032,7 @@ public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public getAllUserProjectsWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public searchProjectsByProjectName_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -44511,12 +43143,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserProjectsWithPagination_result) - return this.equals((getAllUserProjectsWithPagination_result)that); + if (that instanceof searchProjectsByProjectName_result) + return this.equals((searchProjectsByProjectName_result)that); return false; } - public boolean equals(getAllUserProjectsWithPagination_result that) { + public boolean equals(searchProjectsByProjectName_result that) { if (that == null) return false; @@ -44601,7 +43233,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserProjectsWithPagination_result other) { + public int compareTo(searchProjectsByProjectName_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -44675,7 +43307,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserProjectsWithPagination_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectName_result("); boolean first = true; sb.append("success:"); @@ -44742,15 +43374,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserProjectsWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public getAllUserProjectsWithPagination_resultStandardScheme getScheme() { - return new getAllUserProjectsWithPagination_resultStandardScheme(); + private static class searchProjectsByProjectName_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_resultStandardScheme getScheme() { + return new searchProjectsByProjectName_resultStandardScheme(); } } - private static class getAllUserProjectsWithPagination_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectName_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44826,7 +43458,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserProjectsW struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44868,16 +43500,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserProjects } - private static class getAllUserProjectsWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public getAllUserProjectsWithPagination_resultTupleScheme getScheme() { - return new getAllUserProjectsWithPagination_resultTupleScheme(); + private static class searchProjectsByProjectName_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectName_resultTupleScheme getScheme() { + return new searchProjectsByProjectName_resultTupleScheme(); } } - private static class getAllUserProjectsWithPagination_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectName_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -44920,7 +43552,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsW } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { @@ -44962,28 +43594,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserProjectsWi } - public static class searchProjectsByProjectName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_args"); + public static class searchProjectsByProjectDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_args"); - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)3); + 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.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectName_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectName_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String projectName; // required + public String description; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - PROJECT_NAME((short)3, "projectName"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"), + DESCRIPTION((short)4, "description"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); private static final Map byName = new HashMap(); @@ -44998,12 +43639,18 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; - case 3: // PROJECT_NAME - return PROJECT_NAME; + case 4: // DESCRIPTION + return DESCRIPTION; + case 5: // LIMIT + return LIMIT; + case 6: // OFFSET + return OFFSET; default: return null; } @@ -45044,64 +43691,116 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_args.class, metaDataMap); } - public searchProjectsByProjectName_args() { + public searchProjectsByProjectDesc_args() { } - public searchProjectsByProjectName_args( + public searchProjectsByProjectDesc_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String projectName) + String description, + int limit, + int offset) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.projectName = projectName; + this.description = description; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchProjectsByProjectName_args(searchProjectsByProjectName_args other) { + public searchProjectsByProjectDesc_args(searchProjectsByProjectDesc_args other) { + __isset_bitfield = other.__isset_bitfield; + 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; } - if (other.isSetProjectName()) { - this.projectName = other.projectName; + if (other.isSetDescription()) { + this.description = other.description; } + this.limit = other.limit; + this.offset = other.offset; } - public searchProjectsByProjectName_args deepCopy() { - return new searchProjectsByProjectName_args(this); + public searchProjectsByProjectDesc_args deepCopy() { + return new searchProjectsByProjectDesc_args(this); } @Override public void clear() { + this.authzToken = null; this.gatewayId = null; this.userName = null; - this.projectName = null; + this.description = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public searchProjectsByProjectDesc_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 String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectName_args setGatewayId(String gatewayId) { + public searchProjectsByProjectDesc_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -45125,7 +43824,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectName_args setUserName(String userName) { + public searchProjectsByProjectDesc_args setUserName(String userName) { this.userName = userName; return this; } @@ -45145,32 +43844,86 @@ public void setUserNameIsSet(boolean value) { } } - public String getProjectName() { - return this.projectName; + public String getDescription() { + return this.description; } - public searchProjectsByProjectName_args setProjectName(String projectName) { - this.projectName = projectName; + public searchProjectsByProjectDesc_args setDescription(String description) { + this.description = description; return this; } - public void unsetProjectName() { - this.projectName = null; + public void unsetDescription() { + this.description = null; } - /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectName() { - return this.projectName != null; + /** Returns true if field description is set (has been assigned a value) and false otherwise */ + public boolean isSetDescription() { + return this.description != null; } - public void setProjectNameIsSet(boolean value) { + public void setDescriptionIsSet(boolean value) { if (!value) { - this.projectName = null; + this.description = null; } } + public int getLimit() { + return this.limit; + } + + public searchProjectsByProjectDesc_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchProjectsByProjectDesc_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, 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(); @@ -45187,11 +43940,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PROJECT_NAME: + case DESCRIPTION: if (value == null) { - unsetProjectName(); + unsetDescription(); } else { - setProjectName((String)value); + setDescription((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -45200,14 +43969,23 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case GATEWAY_ID: return getGatewayId(); case USER_NAME: return getUserName(); - case PROJECT_NAME: - return getProjectName(); + case DESCRIPTION: + return getDescription(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -45220,12 +43998,18 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case GATEWAY_ID: return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case PROJECT_NAME: - return isSetProjectName(); + case DESCRIPTION: + return isSetDescription(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -45234,15 +44018,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectName_args) - return this.equals((searchProjectsByProjectName_args)that); + if (that instanceof searchProjectsByProjectDesc_args) + return this.equals((searchProjectsByProjectDesc_args)that); return false; } - public boolean equals(searchProjectsByProjectName_args that) { + public boolean equals(searchProjectsByProjectDesc_args that) { if (that == null) return false; + 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) { @@ -45261,12 +44054,30 @@ public boolean equals(searchProjectsByProjectName_args that) { return false; } - boolean this_present_projectName = true && this.isSetProjectName(); - boolean that_present_projectName = true && that.isSetProjectName(); - if (this_present_projectName || that_present_projectName) { - if (!(this_present_projectName && that_present_projectName)) + boolean this_present_description = true && this.isSetDescription(); + boolean that_present_description = true && that.isSetDescription(); + if (this_present_description || that_present_description) { + if (!(this_present_description && that_present_description)) return false; - if (!this.projectName.equals(that.projectName)) + if (!this.description.equals(that.description)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -45277,6 +44088,11 @@ public boolean equals(searchProjectsByProjectName_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_gatewayId = true && (isSetGatewayId()); list.add(present_gatewayId); if (present_gatewayId) @@ -45287,22 +44103,42 @@ public int hashCode() { if (present_userName) list.add(userName); - boolean present_projectName = true && (isSetProjectName()); - list.add(present_projectName); - if (present_projectName) - list.add(projectName); + boolean present_description = true && (isSetDescription()); + list.add(present_description); + if (present_description) + list.add(description); + + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); return list.hashCode(); } @Override - public int compareTo(searchProjectsByProjectName_args other) { + public int compareTo(searchProjectsByProjectDesc_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; @@ -45323,12 +44159,32 @@ public int compareTo(searchProjectsByProjectName_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); + if (isSetDescription()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -45350,9 +44206,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectName_args("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_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"); @@ -45369,29 +44233,45 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("projectName:"); - if (this.projectName == null) { + sb.append("description:"); + if (this.description == null) { sb.append("null"); } else { - sb.append(this.projectName); + sb.append(this.description); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + 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()); } - if (projectName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); + if (description == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -45404,21 +44284,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 searchProjectsByProjectName_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_argsStandardScheme getScheme() { - return new searchProjectsByProjectName_argsStandardScheme(); + private static class searchProjectsByProjectDesc_argsStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_argsStandardScheme getScheme() { + return new searchProjectsByProjectDesc_argsStandardScheme(); } } - private static class searchProjectsByProjectName_argsStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDesc_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45428,7 +44310,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro break; } switch (schemeField.id) { - case 1: // GATEWAY_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); @@ -45436,7 +44327,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_NAME + case 3: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -45444,10 +44335,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PROJECT_NAME + case 4: // DESCRIPTION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45460,13 +44367,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_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); @@ -45477,72 +44395,91 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.projectName != null) { - oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); - oprot.writeString(struct.projectName); + if (struct.description != null) { + oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); + oprot.writeString(struct.description); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchProjectsByProjectName_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_argsTupleScheme getScheme() { - return new searchProjectsByProjectName_argsTupleScheme(); + private static class searchProjectsByProjectDesc_argsTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_argsTupleScheme getScheme() { + return new searchProjectsByProjectDesc_argsTupleScheme(); } } - private static class searchProjectsByProjectName_argsTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDesc_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.projectName); + oprot.writeString(struct.description); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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); - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + struct.description = iprot.readString(); + struct.setDescriptionIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchProjectsByProjectName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectName_result"); + public static class searchProjectsByProjectDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectName_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectName_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_resultTupleSchemeFactory()); } public List 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"); + ASE((short)3, "ase"), + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -45565,6 +44502,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // AE + return AE; default: return null; } @@ -45617,30 +44556,34 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectName_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_result.class, metaDataMap); } - public searchProjectsByProjectName_result() { + public searchProjectsByProjectDesc_result() { } - public searchProjectsByProjectName_result( + public searchProjectsByProjectDesc_result( List 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.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 other. */ - public searchProjectsByProjectName_result(searchProjectsByProjectName_result other) { + public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.workspace.Project other_element : other.success) { @@ -45657,10 +44600,13 @@ public searchProjectsByProjectName_result(searchProjectsByProjectName_result oth 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 searchProjectsByProjectName_result deepCopy() { - return new searchProjectsByProjectName_result(this); + public searchProjectsByProjectDesc_result deepCopy() { + return new searchProjectsByProjectDesc_result(this); } @Override @@ -45669,6 +44615,7 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; + this.ae = null; } public int getSuccessSize() { @@ -45690,7 +44637,7 @@ public List getSuccess() { return this.success; } - public searchProjectsByProjectName_result setSuccess(List success) { + public searchProjectsByProjectDesc_result setSuccess(List success) { this.success = success; return this; } @@ -45714,7 +44661,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchProjectsByProjectDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -45738,7 +44685,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchProjectsByProjectDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -45762,7 +44709,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchProjectsByProjectDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -45782,6 +44729,30 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; + } + + public searchProjectsByProjectDesc_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, Object value) { switch (field) { case SUCCESS: @@ -45816,6 +44787,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case AE: + if (value == null) { + unsetAe(); + } else { + setAe((org.apache.airavata.model.error.AuthorizationException)value); + } + break; + } } @@ -45833,6 +44812,9 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case AE: + return getAe(); + } throw new IllegalStateException(); } @@ -45852,6 +44834,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -45860,12 +44844,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectName_result) - return this.equals((searchProjectsByProjectName_result)that); + if (that instanceof searchProjectsByProjectDesc_result) + return this.equals((searchProjectsByProjectDesc_result)that); return false; } - public boolean equals(searchProjectsByProjectName_result that) { + public boolean equals(searchProjectsByProjectDesc_result that) { if (that == null) return false; @@ -45905,6 +44889,15 @@ public boolean equals(searchProjectsByProjectName_result that) { 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; } @@ -45932,11 +44925,16 @@ public int hashCode() { if (present_ase) list.add(ase); + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); + return list.hashCode(); } @Override - public int compareTo(searchProjectsByProjectName_result other) { + public int compareTo(searchProjectsByProjectDesc_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -45983,6 +44981,16 @@ public int compareTo(searchProjectsByProjectName_result other) { return lastComparison; } } + lastComparison = 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; } @@ -46000,7 +45008,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectName_result("); + StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_result("); boolean first = true; sb.append("success:"); @@ -46034,6 +45042,14 @@ public String toString() { 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(); } @@ -46059,15 +45075,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectName_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_resultStandardScheme getScheme() { - return new searchProjectsByProjectName_resultStandardScheme(); + private static class searchProjectsByProjectDesc_resultStandardSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_resultStandardScheme getScheme() { + return new searchProjectsByProjectDesc_resultStandardScheme(); } } - private static class searchProjectsByProjectName_resultStandardScheme extends StandardScheme { + private static class searchProjectsByProjectDesc_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46123,6 +45139,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro 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); } @@ -46134,7 +45159,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46165,22 +45190,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr 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 searchProjectsByProjectName_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectName_resultTupleScheme getScheme() { - return new searchProjectsByProjectName_resultTupleScheme(); + private static class searchProjectsByProjectDesc_resultTupleSchemeFactory implements SchemeFactory { + public searchProjectsByProjectDesc_resultTupleScheme getScheme() { + return new searchProjectsByProjectDesc_resultTupleScheme(); } } - private static class searchProjectsByProjectName_resultTupleScheme extends TupleScheme { + private static class searchProjectsByProjectDesc_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -46195,7 +45225,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetAe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -46214,12 +45247,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetAe()) { + struct.ae.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list39 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); @@ -46249,31 +45285,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj 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); + } } } } - public static class searchProjectsByProjectNameWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectNameWithPagination_args"); + public static class searchExperimentsByName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_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.protocol.TField PROJECT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("projectName", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectNameWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectNameWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByName_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByName_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String projectName; // required + public String expName; // required public int limit; // required public int offset; // required @@ -46282,7 +45323,7 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTHZ_TOKEN((short)1, "authzToken"), GATEWAY_ID((short)2, "gatewayId"), USER_NAME((short)3, "userName"), - PROJECT_NAME((short)4, "projectName"), + EXP_NAME((short)4, "expName"), LIMIT((short)5, "limit"), OFFSET((short)6, "offset"); @@ -46305,8 +45346,8 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 3: // USER_NAME return USER_NAME; - case 4: // PROJECT_NAME - return PROJECT_NAME; + case 4: // EXP_NAME + return EXP_NAME; case 5: // LIMIT return LIMIT; case 6: // OFFSET @@ -46363,24 +45404,24 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.PROJECT_NAME, new org.apache.thrift.meta_data.FieldMetaData("projectName", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectNameWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_args.class, metaDataMap); } - public searchProjectsByProjectNameWithPagination_args() { + public searchExperimentsByName_args() { } - public searchProjectsByProjectNameWithPagination_args( + public searchExperimentsByName_args( org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String projectName, + String expName, int limit, int offset) { @@ -46388,7 +45429,7 @@ public searchProjectsByProjectNameWithPagination_args( this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.projectName = projectName; + this.expName = expName; this.limit = limit; setLimitIsSet(true); this.offset = offset; @@ -46398,7 +45439,7 @@ public searchProjectsByProjectNameWithPagination_args( /** * Performs a deep copy on other. */ - public searchProjectsByProjectNameWithPagination_args(searchProjectsByProjectNameWithPagination_args other) { + public searchExperimentsByName_args(searchExperimentsByName_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); @@ -46409,15 +45450,15 @@ public searchProjectsByProjectNameWithPagination_args(searchProjectsByProjectNam if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetProjectName()) { - this.projectName = other.projectName; + if (other.isSetExpName()) { + this.expName = other.expName; } this.limit = other.limit; this.offset = other.offset; } - public searchProjectsByProjectNameWithPagination_args deepCopy() { - return new searchProjectsByProjectNameWithPagination_args(this); + public searchExperimentsByName_args deepCopy() { + return new searchExperimentsByName_args(this); } @Override @@ -46425,7 +45466,7 @@ public void clear() { this.authzToken = null; this.gatewayId = null; this.userName = null; - this.projectName = null; + this.expName = null; setLimitIsSet(false); this.limit = 0; setOffsetIsSet(false); @@ -46436,7 +45477,7 @@ public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public searchProjectsByProjectNameWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public searchExperimentsByName_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -46460,7 +45501,7 @@ public String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectNameWithPagination_args setGatewayId(String gatewayId) { + public searchExperimentsByName_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -46484,7 +45525,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectNameWithPagination_args setUserName(String userName) { + public searchExperimentsByName_args setUserName(String userName) { this.userName = userName; return this; } @@ -46504,27 +45545,27 @@ public void setUserNameIsSet(boolean value) { } } - public String getProjectName() { - return this.projectName; + public String getExpName() { + return this.expName; } - public searchProjectsByProjectNameWithPagination_args setProjectName(String projectName) { - this.projectName = projectName; + public searchExperimentsByName_args setExpName(String expName) { + this.expName = expName; return this; } - public void unsetProjectName() { - this.projectName = null; + public void unsetExpName() { + this.expName = null; } - /** Returns true if field projectName is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectName() { - return this.projectName != null; + /** Returns true if field expName is set (has been assigned a value) and false otherwise */ + public boolean isSetExpName() { + return this.expName != null; } - public void setProjectNameIsSet(boolean value) { + public void setExpNameIsSet(boolean value) { if (!value) { - this.projectName = null; + this.expName = null; } } @@ -46532,7 +45573,7 @@ public int getLimit() { return this.limit; } - public searchProjectsByProjectNameWithPagination_args setLimit(int limit) { + public searchExperimentsByName_args setLimit(int limit) { this.limit = limit; setLimitIsSet(true); return this; @@ -46555,7 +45596,7 @@ public int getOffset() { return this.offset; } - public searchProjectsByProjectNameWithPagination_args setOffset(int offset) { + public searchExperimentsByName_args setOffset(int offset) { this.offset = offset; setOffsetIsSet(true); return this; @@ -46600,11 +45641,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PROJECT_NAME: + case EXP_NAME: if (value == null) { - unsetProjectName(); + unsetExpName(); } else { - setProjectName((String)value); + setExpName((String)value); } break; @@ -46638,8 +45679,8 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case PROJECT_NAME: - return getProjectName(); + case EXP_NAME: + return getExpName(); case LIMIT: return Integer.valueOf(getLimit()); @@ -46664,8 +45705,8 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case PROJECT_NAME: - return isSetProjectName(); + case EXP_NAME: + return isSetExpName(); case LIMIT: return isSetLimit(); case OFFSET: @@ -46678,12 +45719,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectNameWithPagination_args) - return this.equals((searchProjectsByProjectNameWithPagination_args)that); + if (that instanceof searchExperimentsByName_args) + return this.equals((searchExperimentsByName_args)that); return false; } - public boolean equals(searchProjectsByProjectNameWithPagination_args that) { + public boolean equals(searchExperimentsByName_args that) { if (that == null) return false; @@ -46714,12 +45755,12 @@ public boolean equals(searchProjectsByProjectNameWithPagination_args that) { return false; } - boolean this_present_projectName = true && this.isSetProjectName(); - boolean that_present_projectName = true && that.isSetProjectName(); - if (this_present_projectName || that_present_projectName) { - if (!(this_present_projectName && that_present_projectName)) + boolean this_present_expName = true && this.isSetExpName(); + boolean that_present_expName = true && that.isSetExpName(); + if (this_present_expName || that_present_expName) { + if (!(this_present_expName && that_present_expName)) return false; - if (!this.projectName.equals(that.projectName)) + if (!this.expName.equals(that.expName)) return false; } @@ -46763,10 +45804,10 @@ public int hashCode() { if (present_userName) list.add(userName); - boolean present_projectName = true && (isSetProjectName()); - list.add(present_projectName); - if (present_projectName) - list.add(projectName); + boolean present_expName = true && (isSetExpName()); + list.add(present_expName); + if (present_expName) + list.add(expName); boolean present_limit = true; list.add(present_limit); @@ -46782,7 +45823,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectNameWithPagination_args other) { + public int compareTo(searchExperimentsByName_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -46819,12 +45860,12 @@ public int compareTo(searchProjectsByProjectNameWithPagination_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProjectName()).compareTo(other.isSetProjectName()); + lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectName, other.projectName); + if (isSetExpName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); if (lastComparison != 0) { return lastComparison; } @@ -46866,7 +45907,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectNameWithPagination_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByName_args("); boolean first = true; sb.append("authzToken:"); @@ -46893,11 +45934,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("projectName:"); - if (this.projectName == null) { + sb.append("expName:"); + if (this.expName == null) { sb.append("null"); } else { - sb.append(this.projectName); + sb.append(this.expName); } first = false; if (!first) sb.append(", "); @@ -46923,8 +45964,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (projectName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectName' was not present! Struct: " + toString()); + if (expName == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); } // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. @@ -46952,15 +45993,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectNameWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectNameWithPagination_argsStandardScheme getScheme() { - return new searchProjectsByProjectNameWithPagination_argsStandardScheme(); + private static class searchExperimentsByName_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByName_argsStandardScheme getScheme() { + return new searchExperimentsByName_argsStandardScheme(); } } - private static class searchProjectsByProjectNameWithPagination_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByName_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46995,10 +46036,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PROJECT_NAME + case 4: // EXP_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47036,7 +46077,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47055,9 +46096,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.projectName != null) { - oprot.writeFieldBegin(PROJECT_NAME_FIELD_DESC); - oprot.writeString(struct.projectName); + if (struct.expName != null) { + oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); + oprot.writeString(struct.expName); oprot.writeFieldEnd(); } oprot.writeFieldBegin(LIMIT_FIELD_DESC); @@ -47072,27 +46113,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectNameWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectNameWithPagination_argsTupleScheme getScheme() { - return new searchProjectsByProjectNameWithPagination_argsTupleScheme(); + private static class searchExperimentsByName_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByName_argsTupleScheme getScheme() { + return new searchExperimentsByName_argsTupleScheme(); } } - private static class searchProjectsByProjectNameWithPagination_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByName_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.projectName); + oprot.writeString(struct.expName); oprot.writeI32(struct.limit); oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); @@ -47101,8 +46142,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.projectName = iprot.readString(); - struct.setProjectNameIsSet(true); + struct.expName = iprot.readString(); + struct.setExpNameIsSet(true); struct.limit = iprot.readI32(); struct.setLimitIsSet(true); struct.offset = iprot.readI32(); @@ -47112,8 +46153,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchProjectsByProjectNameWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectNameWithPagination_result"); + public static class searchExperimentsByName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_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); @@ -47123,11 +46164,11 @@ public static class searchProjectsByProjectNameWithPagination_result implements private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectNameWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectNameWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByName_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByName_resultTupleSchemeFactory()); } - public List success; // required + public List 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 @@ -47209,7 +46250,7 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -47219,14 +46260,14 @@ public String getFieldName() { tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectNameWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_result.class, metaDataMap); } - public searchProjectsByProjectNameWithPagination_result() { + public searchExperimentsByName_result() { } - public searchProjectsByProjectNameWithPagination_result( - List success, + public searchExperimentsByName_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, org.apache.airavata.model.error.AiravataSystemException ase, @@ -47243,11 +46284,11 @@ public searchProjectsByProjectNameWithPagination_result( /** * Performs a deep copy on other. */ - public searchProjectsByProjectNameWithPagination_result(searchProjectsByProjectNameWithPagination_result other) { + public searchExperimentsByName_result(searchExperimentsByName_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.Project other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { + __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); } this.success = __this__success; } @@ -47265,8 +46306,8 @@ public searchProjectsByProjectNameWithPagination_result(searchProjectsByProjectN } } - public searchProjectsByProjectNameWithPagination_result deepCopy() { - return new searchProjectsByProjectNameWithPagination_result(this); + public searchExperimentsByName_result deepCopy() { + return new searchExperimentsByName_result(this); } @Override @@ -47282,22 +46323,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { + public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchProjectsByProjectNameWithPagination_result setSuccess(List success) { + public searchExperimentsByName_result setSuccess(List success) { this.success = success; return this; } @@ -47321,7 +46362,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectNameWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -47345,7 +46386,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectNameWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -47369,7 +46410,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectNameWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -47393,7 +46434,7 @@ public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public searchProjectsByProjectNameWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public searchExperimentsByName_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -47419,7 +46460,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -47504,12 +46545,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectNameWithPagination_result) - return this.equals((searchProjectsByProjectNameWithPagination_result)that); + if (that instanceof searchExperimentsByName_result) + return this.equals((searchExperimentsByName_result)that); return false; } - public boolean equals(searchProjectsByProjectNameWithPagination_result that) { + public boolean equals(searchExperimentsByName_result that) { if (that == null) return false; @@ -47594,7 +46635,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectNameWithPagination_result other) { + public int compareTo(searchExperimentsByName_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -47668,7 +46709,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectNameWithPagination_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByName_result("); boolean first = true; sb.append("success:"); @@ -47735,15 +46776,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectNameWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectNameWithPagination_resultStandardScheme getScheme() { - return new searchProjectsByProjectNameWithPagination_resultStandardScheme(); + private static class searchExperimentsByName_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByName_resultStandardScheme getScheme() { + return new searchExperimentsByName_resultStandardScheme(); } } - private static class searchProjectsByProjectNameWithPagination_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByName_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47757,11 +46798,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(); - struct.success = new ArrayList(_list42.size); - org.apache.airavata.model.workspace.Project _elem43; + struct.success = new ArrayList(_list42.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem43; for (int _i44 = 0; _i44 < _list42.size; ++_i44) { - _elem43 = new org.apache.airavata.model.workspace.Project(); + _elem43 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem43.read(iprot); struct.success.add(_elem43); } @@ -47819,7 +46860,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47827,7 +46868,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.Project _iter45 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter45 : struct.success) { _iter45.write(oprot); } @@ -47861,16 +46902,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectNameWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectNameWithPagination_resultTupleScheme getScheme() { - return new searchProjectsByProjectNameWithPagination_resultTupleScheme(); + private static class searchExperimentsByName_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByName_resultTupleScheme getScheme() { + return new searchExperimentsByName_resultTupleScheme(); } } - private static class searchProjectsByProjectNameWithPagination_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByName_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -47892,7 +46933,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.Project _iter46 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter46 : struct.success) { _iter46.write(oprot); } @@ -47913,17 +46954,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectNameWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list47 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list47.size); - org.apache.airavata.model.workspace.Project _elem48; + struct.success = new ArrayList(_list47.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem48; for (int _i49 = 0; _i49 < _list47.size; ++_i49) { - _elem48 = new org.apache.airavata.model.workspace.Project(); + _elem48 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem48.read(iprot); struct.success.add(_elem48); } @@ -47955,28 +46996,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchProjectsByProjectDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_args"); + public static class searchExperimentsByDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_args"); - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + 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.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByDesc_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDesc_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required public String description; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - DESCRIPTION((short)3, "description"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"), + DESCRIPTION((short)4, "description"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); private static final Map byName = new HashMap(); @@ -47991,12 +47041,18 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; - case 3: // DESCRIPTION + case 4: // DESCRIPTION return DESCRIPTION; + case 5: // LIMIT + return LIMIT; + case 6: // OFFSET + return OFFSET; default: return null; } @@ -48037,37 +47093,58 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_args.class, metaDataMap); } - public searchProjectsByProjectDesc_args() { + public searchExperimentsByDesc_args() { } - public searchProjectsByProjectDesc_args( + public searchExperimentsByDesc_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String description) + String description, + int limit, + int offset) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; this.description = description; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchProjectsByProjectDesc_args(searchProjectsByProjectDesc_args other) { + public searchExperimentsByDesc_args(searchExperimentsByDesc_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetAuthzToken()) { + this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); + } if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } @@ -48077,24 +47154,55 @@ public searchProjectsByProjectDesc_args(searchProjectsByProjectDesc_args other) if (other.isSetDescription()) { this.description = other.description; } + this.limit = other.limit; + this.offset = other.offset; } - public searchProjectsByProjectDesc_args deepCopy() { - return new searchProjectsByProjectDesc_args(this); + public searchExperimentsByDesc_args deepCopy() { + return new searchExperimentsByDesc_args(this); } @Override public void clear() { + this.authzToken = null; this.gatewayId = null; this.userName = null; this.description = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public searchExperimentsByDesc_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 String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectDesc_args setGatewayId(String gatewayId) { + public searchExperimentsByDesc_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -48118,7 +47226,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectDesc_args setUserName(String userName) { + public searchExperimentsByDesc_args setUserName(String userName) { this.userName = userName; return this; } @@ -48142,7 +47250,7 @@ public String getDescription() { return this.description; } - public searchProjectsByProjectDesc_args setDescription(String description) { + public searchExperimentsByDesc_args setDescription(String description) { this.description = description; return this; } @@ -48162,8 +47270,62 @@ public void setDescriptionIsSet(boolean value) { } } + public int getLimit() { + return this.limit; + } + + public searchExperimentsByDesc_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByDesc_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, 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(); @@ -48188,11 +47350,30 @@ public void setFieldValue(_Fields field, Object value) { } break; + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); + } + break; + } } public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case GATEWAY_ID: return getGatewayId(); @@ -48202,6 +47383,12 @@ public Object getFieldValue(_Fields field) { case DESCRIPTION: return getDescription(); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); + } throw new IllegalStateException(); } @@ -48213,12 +47400,18 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case GATEWAY_ID: return isSetGatewayId(); case USER_NAME: return isSetUserName(); case DESCRIPTION: return isSetDescription(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -48227,15 +47420,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDesc_args) - return this.equals((searchProjectsByProjectDesc_args)that); + if (that instanceof searchExperimentsByDesc_args) + return this.equals((searchExperimentsByDesc_args)that); return false; } - public boolean equals(searchProjectsByProjectDesc_args that) { + public boolean equals(searchExperimentsByDesc_args that) { if (that == null) return false; + 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) { @@ -48263,6 +47465,24 @@ public boolean equals(searchProjectsByProjectDesc_args that) { return false; } + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) + return false; + } + return true; } @@ -48270,6 +47490,11 @@ public boolean equals(searchProjectsByProjectDesc_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_gatewayId = true && (isSetGatewayId()); list.add(present_gatewayId); if (present_gatewayId) @@ -48285,17 +47510,37 @@ public int hashCode() { if (present_description) list.add(description); + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); + return list.hashCode(); } @Override - public int compareTo(searchProjectsByProjectDesc_args other) { + public int compareTo(searchExperimentsByDesc_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; @@ -48326,6 +47571,26 @@ public int compareTo(searchProjectsByProjectDesc_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -48343,9 +47608,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByDesc_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"); @@ -48369,12 +47642,23 @@ public String toString() { sb.append(this.description); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + 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()); } @@ -48384,7 +47668,12 @@ public void validate() throws org.apache.thrift.TException { if (description == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -48397,21 +47686,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 searchProjectsByProjectDesc_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_argsStandardScheme getScheme() { - return new searchProjectsByProjectDesc_argsStandardScheme(); + private static class searchExperimentsByDesc_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_argsStandardScheme getScheme() { + return new searchExperimentsByDesc_argsStandardScheme(); } } - private static class searchProjectsByProjectDesc_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByDesc_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48421,7 +47712,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro break; } switch (schemeField.id) { - case 1: // GATEWAY_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); @@ -48429,7 +47729,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_NAME + case 3: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -48437,7 +47737,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // DESCRIPTION + case 4: // DESCRIPTION if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.description = iprot.readString(); struct.setDescriptionIsSet(true); @@ -48445,6 +47745,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -48453,13 +47769,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_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); @@ -48475,67 +47802,86 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.description); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchProjectsByProjectDesc_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_argsTupleScheme getScheme() { - return new searchProjectsByProjectDesc_argsTupleScheme(); + private static class searchExperimentsByDesc_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_argsTupleScheme getScheme() { + return new searchExperimentsByDesc_argsTupleScheme(); } } - private static class searchProjectsByProjectDesc_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByDesc_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); oprot.writeString(struct.description); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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); struct.description = iprot.readString(); struct.setDescriptionIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchProjectsByProjectDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDesc_result"); + public static class searchExperimentsByDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDesc_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDesc_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByDesc_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByDesc_resultTupleSchemeFactory()); } - public List success; // required + public List 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"); + ASE((short)3, "ase"), + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -48558,6 +47904,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // AE + return AE; default: return null; } @@ -48603,41 +47951,45 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDesc_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_result.class, metaDataMap); } - public searchProjectsByProjectDesc_result() { + public searchExperimentsByDesc_result() { } - public searchProjectsByProjectDesc_result( - List success, + public searchExperimentsByDesc_result( + List 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.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 other. */ - public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result other) { + public searchExperimentsByDesc_result(searchExperimentsByDesc_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.Project other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { + __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); } this.success = __this__success; } @@ -48650,10 +48002,13 @@ public searchProjectsByProjectDesc_result(searchProjectsByProjectDesc_result oth 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 searchProjectsByProjectDesc_result deepCopy() { - return new searchProjectsByProjectDesc_result(this); + public searchExperimentsByDesc_result deepCopy() { + return new searchExperimentsByDesc_result(this); } @Override @@ -48662,28 +48017,29 @@ public void clear() { 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 getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { + public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchProjectsByProjectDesc_result setSuccess(List success) { + public searchExperimentsByDesc_result setSuccess(List success) { this.success = success; return this; } @@ -48707,7 +48063,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByDesc_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -48731,7 +48087,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByDesc_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -48755,7 +48111,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByDesc_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -48775,13 +48131,37 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; + } + + public searchExperimentsByDesc_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, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -48809,6 +48189,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case AE: + if (value == null) { + unsetAe(); + } else { + setAe((org.apache.airavata.model.error.AuthorizationException)value); + } + break; + } } @@ -48826,6 +48214,9 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case AE: + return getAe(); + } throw new IllegalStateException(); } @@ -48845,6 +48236,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -48853,12 +48246,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDesc_result) - return this.equals((searchProjectsByProjectDesc_result)that); + if (that instanceof searchExperimentsByDesc_result) + return this.equals((searchExperimentsByDesc_result)that); return false; } - public boolean equals(searchProjectsByProjectDesc_result that) { + public boolean equals(searchExperimentsByDesc_result that) { if (that == null) return false; @@ -48898,6 +48291,15 @@ public boolean equals(searchProjectsByProjectDesc_result that) { 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; } @@ -48925,11 +48327,16 @@ public int hashCode() { if (present_ase) list.add(ase); + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); + return list.hashCode(); } @Override - public int compareTo(searchProjectsByProjectDesc_result other) { + public int compareTo(searchExperimentsByDesc_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -48976,6 +48383,16 @@ public int compareTo(searchProjectsByProjectDesc_result other) { return lastComparison; } } + lastComparison = 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; } @@ -48993,7 +48410,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDesc_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByDesc_result("); boolean first = true; sb.append("success:"); @@ -49027,6 +48444,14 @@ public String toString() { 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(); } @@ -49052,15 +48477,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectDesc_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_resultStandardScheme getScheme() { - return new searchProjectsByProjectDesc_resultStandardScheme(); + private static class searchExperimentsByDesc_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_resultStandardScheme getScheme() { + return new searchExperimentsByDesc_resultStandardScheme(); } } - private static class searchProjectsByProjectDesc_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByDesc_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49074,11 +48499,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list50 = iprot.readListBegin(); - struct.success = new ArrayList(_list50.size); - org.apache.airavata.model.workspace.Project _elem51; + struct.success = new ArrayList(_list50.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem51; for (int _i52 = 0; _i52 < _list50.size; ++_i52) { - _elem51 = new org.apache.airavata.model.workspace.Project(); + _elem51 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem51.read(iprot); struct.success.add(_elem51); } @@ -49116,6 +48541,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro 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); } @@ -49127,7 +48561,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -49135,7 +48569,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.Project _iter53 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter53 : struct.success) { _iter53.write(oprot); } @@ -49158,22 +48592,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr 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 searchProjectsByProjectDesc_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDesc_resultTupleScheme getScheme() { - return new searchProjectsByProjectDesc_resultTupleScheme(); + private static class searchExperimentsByDesc_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByDesc_resultTupleScheme getScheme() { + return new searchExperimentsByDesc_resultTupleScheme(); } } - private static class searchProjectsByProjectDesc_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByDesc_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -49188,11 +48627,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetAe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.Project _iter54 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter54 : struct.success) { _iter54.write(oprot); } @@ -49207,20 +48649,23 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetAe()) { + struct.ae.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDesc_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list55 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list55.size); - org.apache.airavata.model.workspace.Project _elem56; + struct.success = new ArrayList(_list55.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem56; for (int _i57 = 0; _i57 < _list55.size; ++_i57) { - _elem56 = new org.apache.airavata.model.workspace.Project(); + _elem56 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem56.read(iprot); struct.success.add(_elem56); } @@ -49242,31 +48687,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj 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); + } } } } - public static class searchProjectsByProjectDescWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDescWithPagination_args"); + public static class searchExperimentsByApplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_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.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)4); private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDescWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDescWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByApplication_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplication_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String description; // required + public String applicationId; // required public int limit; // required public int offset; // required @@ -49275,7 +48725,7 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTHZ_TOKEN((short)1, "authzToken"), GATEWAY_ID((short)2, "gatewayId"), USER_NAME((short)3, "userName"), - DESCRIPTION((short)4, "description"), + APPLICATION_ID((short)4, "applicationId"), LIMIT((short)5, "limit"), OFFSET((short)6, "offset"); @@ -49298,8 +48748,8 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 3: // USER_NAME return USER_NAME; - case 4: // DESCRIPTION - return DESCRIPTION; + case 4: // APPLICATION_ID + return APPLICATION_ID; case 5: // LIMIT return LIMIT; case 6: // OFFSET @@ -49356,24 +48806,24 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, + tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDescWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_args.class, metaDataMap); } - public searchProjectsByProjectDescWithPagination_args() { + public searchExperimentsByApplication_args() { } - public searchProjectsByProjectDescWithPagination_args( + public searchExperimentsByApplication_args( org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String description, + String applicationId, int limit, int offset) { @@ -49381,7 +48831,7 @@ public searchProjectsByProjectDescWithPagination_args( this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.description = description; + this.applicationId = applicationId; this.limit = limit; setLimitIsSet(true); this.offset = offset; @@ -49391,7 +48841,7 @@ public searchProjectsByProjectDescWithPagination_args( /** * Performs a deep copy on other. */ - public searchProjectsByProjectDescWithPagination_args(searchProjectsByProjectDescWithPagination_args other) { + public searchExperimentsByApplication_args(searchExperimentsByApplication_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); @@ -49402,15 +48852,15 @@ public searchProjectsByProjectDescWithPagination_args(searchProjectsByProjectDes if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetDescription()) { - this.description = other.description; + if (other.isSetApplicationId()) { + this.applicationId = other.applicationId; } this.limit = other.limit; this.offset = other.offset; } - public searchProjectsByProjectDescWithPagination_args deepCopy() { - return new searchProjectsByProjectDescWithPagination_args(this); + public searchExperimentsByApplication_args deepCopy() { + return new searchExperimentsByApplication_args(this); } @Override @@ -49418,7 +48868,7 @@ public void clear() { this.authzToken = null; this.gatewayId = null; this.userName = null; - this.description = null; + this.applicationId = null; setLimitIsSet(false); this.limit = 0; setOffsetIsSet(false); @@ -49429,7 +48879,7 @@ public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public searchProjectsByProjectDescWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public searchExperimentsByApplication_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -49453,7 +48903,7 @@ public String getGatewayId() { return this.gatewayId; } - public searchProjectsByProjectDescWithPagination_args setGatewayId(String gatewayId) { + public searchExperimentsByApplication_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -49477,7 +48927,7 @@ public String getUserName() { return this.userName; } - public searchProjectsByProjectDescWithPagination_args setUserName(String userName) { + public searchExperimentsByApplication_args setUserName(String userName) { this.userName = userName; return this; } @@ -49497,27 +48947,27 @@ public void setUserNameIsSet(boolean value) { } } - public String getDescription() { - return this.description; + public String getApplicationId() { + return this.applicationId; } - public searchProjectsByProjectDescWithPagination_args setDescription(String description) { - this.description = description; + public searchExperimentsByApplication_args setApplicationId(String applicationId) { + this.applicationId = applicationId; return this; } - public void unsetDescription() { - this.description = null; + public void unsetApplicationId() { + this.applicationId = null; } - /** Returns true if field description is set (has been assigned a value) and false otherwise */ - public boolean isSetDescription() { - return this.description != null; + /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ + public boolean isSetApplicationId() { + return this.applicationId != null; } - public void setDescriptionIsSet(boolean value) { + public void setApplicationIdIsSet(boolean value) { if (!value) { - this.description = null; + this.applicationId = null; } } @@ -49525,7 +48975,7 @@ public int getLimit() { return this.limit; } - public searchProjectsByProjectDescWithPagination_args setLimit(int limit) { + public searchExperimentsByApplication_args setLimit(int limit) { this.limit = limit; setLimitIsSet(true); return this; @@ -49548,7 +48998,7 @@ public int getOffset() { return this.offset; } - public searchProjectsByProjectDescWithPagination_args setOffset(int offset) { + public searchExperimentsByApplication_args setOffset(int offset) { this.offset = offset; setOffsetIsSet(true); return this; @@ -49593,11 +49043,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case DESCRIPTION: + case APPLICATION_ID: if (value == null) { - unsetDescription(); + unsetApplicationId(); } else { - setDescription((String)value); + setApplicationId((String)value); } break; @@ -49631,8 +49081,8 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case DESCRIPTION: - return getDescription(); + case APPLICATION_ID: + return getApplicationId(); case LIMIT: return Integer.valueOf(getLimit()); @@ -49657,8 +49107,8 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case DESCRIPTION: - return isSetDescription(); + case APPLICATION_ID: + return isSetApplicationId(); case LIMIT: return isSetLimit(); case OFFSET: @@ -49671,12 +49121,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDescWithPagination_args) - return this.equals((searchProjectsByProjectDescWithPagination_args)that); + if (that instanceof searchExperimentsByApplication_args) + return this.equals((searchExperimentsByApplication_args)that); return false; } - public boolean equals(searchProjectsByProjectDescWithPagination_args that) { + public boolean equals(searchExperimentsByApplication_args that) { if (that == null) return false; @@ -49707,12 +49157,12 @@ public boolean equals(searchProjectsByProjectDescWithPagination_args that) { return false; } - boolean this_present_description = true && this.isSetDescription(); - boolean that_present_description = true && that.isSetDescription(); - if (this_present_description || that_present_description) { - if (!(this_present_description && that_present_description)) + boolean this_present_applicationId = true && this.isSetApplicationId(); + boolean that_present_applicationId = true && that.isSetApplicationId(); + if (this_present_applicationId || that_present_applicationId) { + if (!(this_present_applicationId && that_present_applicationId)) return false; - if (!this.description.equals(that.description)) + if (!this.applicationId.equals(that.applicationId)) return false; } @@ -49756,10 +49206,10 @@ public int hashCode() { if (present_userName) list.add(userName); - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); + boolean present_applicationId = true && (isSetApplicationId()); + list.add(present_applicationId); + if (present_applicationId) + list.add(applicationId); boolean present_limit = true; list.add(present_limit); @@ -49775,7 +49225,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectDescWithPagination_args other) { + public int compareTo(searchExperimentsByApplication_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -49812,12 +49262,12 @@ public int compareTo(searchProjectsByProjectDescWithPagination_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); if (lastComparison != 0) { return lastComparison; } - if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + if (isSetApplicationId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); if (lastComparison != 0) { return lastComparison; } @@ -49859,7 +49309,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDescWithPagination_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByApplication_args("); boolean first = true; sb.append("authzToken:"); @@ -49886,11 +49336,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("description:"); - if (this.description == null) { + sb.append("applicationId:"); + if (this.applicationId == null) { sb.append("null"); } else { - sb.append(this.description); + sb.append(this.applicationId); } first = false; if (!first) sb.append(", "); @@ -49916,8 +49366,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (description == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); + if (applicationId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); } // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. @@ -49945,15 +49395,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectDescWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDescWithPagination_argsStandardScheme getScheme() { - return new searchProjectsByProjectDescWithPagination_argsStandardScheme(); + private static class searchExperimentsByApplication_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_argsStandardScheme getScheme() { + return new searchExperimentsByApplication_argsStandardScheme(); } } - private static class searchProjectsByProjectDescWithPagination_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByApplication_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49988,10 +49438,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DESCRIPTION + case 4: // APPLICATION_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -50029,7 +49479,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50048,9 +49498,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.description != null) { - oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); - oprot.writeString(struct.description); + if (struct.applicationId != null) { + oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); + oprot.writeString(struct.applicationId); oprot.writeFieldEnd(); } oprot.writeFieldBegin(LIMIT_FIELD_DESC); @@ -50065,27 +49515,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectDescWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDescWithPagination_argsTupleScheme getScheme() { - return new searchProjectsByProjectDescWithPagination_argsTupleScheme(); + private static class searchExperimentsByApplication_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_argsTupleScheme getScheme() { + return new searchExperimentsByApplication_argsTupleScheme(); } } - private static class searchProjectsByProjectDescWithPagination_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByApplication_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.description); + oprot.writeString(struct.applicationId); oprot.writeI32(struct.limit); oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); @@ -50094,8 +49544,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); + struct.applicationId = iprot.readString(); + struct.setApplicationIdIsSet(true); struct.limit = iprot.readI32(); struct.setLimitIsSet(true); struct.offset = iprot.readI32(); @@ -50105,8 +49555,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchProjectsByProjectDescWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchProjectsByProjectDescWithPagination_result"); + public static class searchExperimentsByApplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_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); @@ -50116,11 +49566,11 @@ public static class searchProjectsByProjectDescWithPagination_result implements private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchProjectsByProjectDescWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchProjectsByProjectDescWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByApplication_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByApplication_resultTupleSchemeFactory()); } - public List success; // required + public List 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 @@ -50202,7 +49652,7 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.workspace.Project.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -50212,14 +49662,14 @@ public String getFieldName() { tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchProjectsByProjectDescWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_result.class, metaDataMap); } - public searchProjectsByProjectDescWithPagination_result() { + public searchExperimentsByApplication_result() { } - public searchProjectsByProjectDescWithPagination_result( - List success, + public searchExperimentsByApplication_result( + List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, org.apache.airavata.model.error.AiravataSystemException ase, @@ -50236,11 +49686,11 @@ public searchProjectsByProjectDescWithPagination_result( /** * Performs a deep copy on other. */ - public searchProjectsByProjectDescWithPagination_result(searchProjectsByProjectDescWithPagination_result other) { + public searchExperimentsByApplication_result(searchExperimentsByApplication_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.workspace.Project other_element : other.success) { - __this__success.add(new org.apache.airavata.model.workspace.Project(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { + __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); } this.success = __this__success; } @@ -50258,8 +49708,8 @@ public searchProjectsByProjectDescWithPagination_result(searchProjectsByProjectD } } - public searchProjectsByProjectDescWithPagination_result deepCopy() { - return new searchProjectsByProjectDescWithPagination_result(this); + public searchExperimentsByApplication_result deepCopy() { + return new searchExperimentsByApplication_result(this); } @Override @@ -50275,22 +49725,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.workspace.Project elem) { + public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public searchProjectsByProjectDescWithPagination_result setSuccess(List success) { + public searchExperimentsByApplication_result setSuccess(List success) { this.success = success; return this; } @@ -50314,7 +49764,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchProjectsByProjectDescWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByApplication_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -50338,7 +49788,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchProjectsByProjectDescWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByApplication_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -50362,7 +49812,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchProjectsByProjectDescWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByApplication_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -50386,7 +49836,7 @@ public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public searchProjectsByProjectDescWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public searchExperimentsByApplication_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -50412,7 +49862,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -50497,12 +49947,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchProjectsByProjectDescWithPagination_result) - return this.equals((searchProjectsByProjectDescWithPagination_result)that); + if (that instanceof searchExperimentsByApplication_result) + return this.equals((searchExperimentsByApplication_result)that); return false; } - public boolean equals(searchProjectsByProjectDescWithPagination_result that) { + public boolean equals(searchExperimentsByApplication_result that) { if (that == null) return false; @@ -50587,7 +50037,7 @@ public int hashCode() { } @Override - public int compareTo(searchProjectsByProjectDescWithPagination_result other) { + public int compareTo(searchExperimentsByApplication_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -50661,7 +50111,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchProjectsByProjectDescWithPagination_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByApplication_result("); boolean first = true; sb.append("success:"); @@ -50728,15 +50178,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchProjectsByProjectDescWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDescWithPagination_resultStandardScheme getScheme() { - return new searchProjectsByProjectDescWithPagination_resultStandardScheme(); + private static class searchExperimentsByApplication_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_resultStandardScheme getScheme() { + return new searchExperimentsByApplication_resultStandardScheme(); } } - private static class searchProjectsByProjectDescWithPagination_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByApplication_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50750,11 +50200,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { org.apache.thrift.protocol.TList _list58 = iprot.readListBegin(); - struct.success = new ArrayList(_list58.size); - org.apache.airavata.model.workspace.Project _elem59; + struct.success = new ArrayList(_list58.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem59; for (int _i60 = 0; _i60 < _list58.size; ++_i60) { - _elem59 = new org.apache.airavata.model.workspace.Project(); + _elem59 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem59.read(iprot); struct.success.add(_elem59); } @@ -50812,7 +50262,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchProjectsByPro struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -50820,7 +50270,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.workspace.Project _iter61 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter61 : struct.success) { _iter61.write(oprot); } @@ -50854,16 +50304,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchProjectsByPr } - private static class searchProjectsByProjectDescWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchProjectsByProjectDescWithPagination_resultTupleScheme getScheme() { - return new searchProjectsByProjectDescWithPagination_resultTupleScheme(); + private static class searchExperimentsByApplication_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByApplication_resultTupleScheme getScheme() { + return new searchExperimentsByApplication_resultTupleScheme(); } } - private static class searchProjectsByProjectDescWithPagination_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByApplication_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -50885,7 +50335,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.workspace.Project _iter62 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter62 : struct.success) { _iter62.write(oprot); } @@ -50906,17 +50356,17 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchProjectsByPro } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProjectDescWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list63.size); - org.apache.airavata.model.workspace.Project _elem64; + struct.success = new ArrayList(_list63.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem64; for (int _i65 = 0; _i65 < _list63.size; ++_i65) { - _elem64 = new org.apache.airavata.model.workspace.Project(); + _elem64 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); _elem64.read(iprot); struct.success.add(_elem64); } @@ -50948,28 +50398,45 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchProjectsByProj } - public static class searchExperimentsByName_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_args"); + public static class searchExperimentsByStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_args"); - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)3); + 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.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByName_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByName_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByStatus_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatus_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String expName; // required + /** + * + * @see org.apache.airavata.model.status.ExperimentState + */ + public org.apache.airavata.model.status.ExperimentState experimentState; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - EXP_NAME((short)3, "expName"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"), + /** + * + * @see org.apache.airavata.model.status.ExperimentState + */ + EXPERIMENT_STATE((short)4, "experimentState"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); private static final Map byName = new HashMap(); @@ -50984,12 +50451,18 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; - case 3: // EXP_NAME - return EXP_NAME; + case 4: // EXPERIMENT_STATE + return EXPERIMENT_STATE; + case 5: // LIMIT + return LIMIT; + case 6: // OFFSET + return OFFSET; default: return null; } @@ -51030,64 +50503,116 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.status.ExperimentState.class))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_args.class, metaDataMap); } - public searchExperimentsByName_args() { + public searchExperimentsByStatus_args() { } - public searchExperimentsByName_args( + public searchExperimentsByStatus_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String expName) + org.apache.airavata.model.status.ExperimentState experimentState, + int limit, + int offset) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.expName = expName; + this.experimentState = experimentState; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchExperimentsByName_args(searchExperimentsByName_args other) { + public searchExperimentsByStatus_args(searchExperimentsByStatus_args other) { + __isset_bitfield = other.__isset_bitfield; + 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; } - if (other.isSetExpName()) { - this.expName = other.expName; + if (other.isSetExperimentState()) { + this.experimentState = other.experimentState; } + this.limit = other.limit; + this.offset = other.offset; } - public searchExperimentsByName_args deepCopy() { - return new searchExperimentsByName_args(this); + public searchExperimentsByStatus_args deepCopy() { + return new searchExperimentsByStatus_args(this); } @Override public void clear() { + this.authzToken = null; this.gatewayId = null; this.userName = null; - this.expName = null; + this.experimentState = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public searchExperimentsByStatus_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 String getGatewayId() { return this.gatewayId; } - public searchExperimentsByName_args setGatewayId(String gatewayId) { + public searchExperimentsByStatus_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -51111,7 +50636,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByName_args setUserName(String userName) { + public searchExperimentsByStatus_args setUserName(String userName) { this.userName = userName; return this; } @@ -51131,32 +50656,94 @@ public void setUserNameIsSet(boolean value) { } } - public String getExpName() { - return this.expName; + /** + * + * @see org.apache.airavata.model.status.ExperimentState + */ + public org.apache.airavata.model.status.ExperimentState getExperimentState() { + return this.experimentState; } - public searchExperimentsByName_args setExpName(String expName) { - this.expName = expName; + /** + * + * @see org.apache.airavata.model.status.ExperimentState + */ + public searchExperimentsByStatus_args setExperimentState(org.apache.airavata.model.status.ExperimentState experimentState) { + this.experimentState = experimentState; return this; } - public void unsetExpName() { - this.expName = null; + public void unsetExperimentState() { + this.experimentState = null; } - /** Returns true if field expName is set (has been assigned a value) and false otherwise */ - public boolean isSetExpName() { - return this.expName != null; + /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ + public boolean isSetExperimentState() { + return this.experimentState != null; } - public void setExpNameIsSet(boolean value) { + public void setExperimentStateIsSet(boolean value) { if (!value) { - this.expName = null; + this.experimentState = null; } } + public int getLimit() { + return this.limit; + } + + public searchExperimentsByStatus_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public searchExperimentsByStatus_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, 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(); @@ -51173,11 +50760,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case EXP_NAME: + case EXPERIMENT_STATE: if (value == null) { - unsetExpName(); + unsetExperimentState(); } else { - setExpName((String)value); + setExperimentState((org.apache.airavata.model.status.ExperimentState)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -51186,14 +50789,23 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case GATEWAY_ID: return getGatewayId(); case USER_NAME: return getUserName(); - case EXP_NAME: - return getExpName(); + case EXPERIMENT_STATE: + return getExperimentState(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -51206,12 +50818,18 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case GATEWAY_ID: return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case EXP_NAME: - return isSetExpName(); + case EXPERIMENT_STATE: + return isSetExperimentState(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -51220,15 +50838,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByName_args) - return this.equals((searchExperimentsByName_args)that); + if (that instanceof searchExperimentsByStatus_args) + return this.equals((searchExperimentsByStatus_args)that); return false; } - public boolean equals(searchExperimentsByName_args that) { + public boolean equals(searchExperimentsByStatus_args that) { if (that == null) return false; + 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) { @@ -51247,12 +50874,30 @@ public boolean equals(searchExperimentsByName_args that) { return false; } - boolean this_present_expName = true && this.isSetExpName(); - boolean that_present_expName = true && that.isSetExpName(); - if (this_present_expName || that_present_expName) { - if (!(this_present_expName && that_present_expName)) + boolean this_present_experimentState = true && this.isSetExperimentState(); + boolean that_present_experimentState = true && that.isSetExperimentState(); + if (this_present_experimentState || that_present_experimentState) { + if (!(this_present_experimentState && that_present_experimentState)) return false; - if (!this.expName.equals(that.expName)) + if (!this.experimentState.equals(that.experimentState)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -51263,6 +50908,11 @@ public boolean equals(searchExperimentsByName_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_gatewayId = true && (isSetGatewayId()); list.add(present_gatewayId); if (present_gatewayId) @@ -51273,22 +50923,42 @@ public int hashCode() { if (present_userName) list.add(userName); - boolean present_expName = true && (isSetExpName()); - list.add(present_expName); - if (present_expName) - list.add(expName); + boolean present_experimentState = true && (isSetExperimentState()); + list.add(present_experimentState); + if (present_experimentState) + list.add(experimentState.getValue()); + + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); return list.hashCode(); } @Override - public int compareTo(searchExperimentsByName_args other) { + public int compareTo(searchExperimentsByStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; @@ -51309,12 +50979,32 @@ public int compareTo(searchExperimentsByName_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); + lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); + if (isSetExperimentState()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -51336,9 +51026,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByName_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByStatus_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"); @@ -51355,29 +51053,45 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("expName:"); - if (this.expName == null) { + sb.append("experimentState:"); + if (this.experimentState == null) { sb.append("null"); } else { - sb.append(this.expName); + sb.append(this.experimentState); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + 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()); } - if (expName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); + if (experimentState == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -51390,21 +51104,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 searchExperimentsByName_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByName_argsStandardScheme getScheme() { - return new searchExperimentsByName_argsStandardScheme(); + private static class searchExperimentsByStatus_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_argsStandardScheme getScheme() { + return new searchExperimentsByStatus_argsStandardScheme(); } } - private static class searchExperimentsByName_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByStatus_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51414,7 +51130,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy break; } switch (schemeField.id) { - case 1: // GATEWAY_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); @@ -51422,7 +51147,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_NAME + case 3: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -51430,10 +51155,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // EXP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + case 4: // EXPERIMENT_STATE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -51446,13 +51187,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_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); @@ -51463,72 +51215,91 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.expName != null) { - oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); - oprot.writeString(struct.expName); + if (struct.experimentState != null) { + oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); + oprot.writeI32(struct.experimentState.getValue()); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class searchExperimentsByName_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByName_argsTupleScheme getScheme() { - return new searchExperimentsByName_argsTupleScheme(); + private static class searchExperimentsByStatus_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_argsTupleScheme getScheme() { + return new searchExperimentsByStatus_argsTupleScheme(); } } - private static class searchExperimentsByName_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByStatus_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.expName); + oprot.writeI32(struct.experimentState.getValue()); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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); - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); + struct.setExperimentStateIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class searchExperimentsByName_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByName_result"); + public static class searchExperimentsByStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByName_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByName_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByStatus_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByStatus_resultTupleSchemeFactory()); } public List 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"); + ASE((short)3, "ase"), + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -51551,6 +51322,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // AE + return AE; default: return null; } @@ -51603,30 +51376,34 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByName_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_result.class, metaDataMap); } - public searchExperimentsByName_result() { + public searchExperimentsByStatus_result() { } - public searchExperimentsByName_result( + public searchExperimentsByStatus_result( List 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.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 other. */ - public searchExperimentsByName_result(searchExperimentsByName_result other) { + public searchExperimentsByStatus_result(searchExperimentsByStatus_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { @@ -51643,10 +51420,13 @@ public searchExperimentsByName_result(searchExperimentsByName_result other) { 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 searchExperimentsByName_result deepCopy() { - return new searchExperimentsByName_result(this); + public searchExperimentsByStatus_result deepCopy() { + return new searchExperimentsByStatus_result(this); } @Override @@ -51655,6 +51435,7 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; + this.ae = null; } public int getSuccessSize() { @@ -51676,7 +51457,7 @@ public List getSucc return this.success; } - public searchExperimentsByName_result setSuccess(List success) { + public searchExperimentsByStatus_result setSuccess(List success) { this.success = success; return this; } @@ -51700,7 +51481,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByName_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByStatus_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -51724,7 +51505,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByName_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByStatus_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -51748,7 +51529,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByName_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByStatus_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -51768,6 +51549,30 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; + } + + public searchExperimentsByStatus_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, Object value) { switch (field) { case SUCCESS: @@ -51802,6 +51607,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case AE: + if (value == null) { + unsetAe(); + } else { + setAe((org.apache.airavata.model.error.AuthorizationException)value); + } + break; + } } @@ -51819,6 +51632,9 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case AE: + return getAe(); + } throw new IllegalStateException(); } @@ -51838,6 +51654,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -51846,12 +51664,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByName_result) - return this.equals((searchExperimentsByName_result)that); + if (that instanceof searchExperimentsByStatus_result) + return this.equals((searchExperimentsByStatus_result)that); return false; } - public boolean equals(searchExperimentsByName_result that) { + public boolean equals(searchExperimentsByStatus_result that) { if (that == null) return false; @@ -51891,6 +51709,15 @@ public boolean equals(searchExperimentsByName_result that) { 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; } @@ -51918,11 +51745,16 @@ public int hashCode() { if (present_ase) list.add(ase); + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); + return list.hashCode(); } @Override - public int compareTo(searchExperimentsByName_result other) { + public int compareTo(searchExperimentsByStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -51969,6 +51801,16 @@ public int compareTo(searchExperimentsByName_result other) { return lastComparison; } } + lastComparison = 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; } @@ -51986,7 +51828,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByName_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByStatus_result("); boolean first = true; sb.append("success:"); @@ -52020,6 +51862,14 @@ public String toString() { 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(); } @@ -52045,15 +51895,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByName_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByName_resultStandardScheme getScheme() { - return new searchExperimentsByName_resultStandardScheme(); + private static class searchExperimentsByStatus_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_resultStandardScheme getScheme() { + return new searchExperimentsByStatus_resultStandardScheme(); } } - private static class searchExperimentsByName_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByStatus_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52109,6 +51959,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy 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); } @@ -52120,7 +51979,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -52151,22 +52010,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB 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 searchExperimentsByName_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByName_resultTupleScheme getScheme() { - return new searchExperimentsByName_resultTupleScheme(); + private static class searchExperimentsByStatus_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByStatus_resultTupleScheme getScheme() { + return new searchExperimentsByStatus_resultTupleScheme(); } } - private static class searchExperimentsByName_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByStatus_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -52181,7 +52045,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetAe()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); @@ -52200,12 +52067,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetAe()) { + struct.ae.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByName_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list71 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); @@ -52235,31 +52105,38 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByN 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); + } } } } - public static class searchExperimentsByNameWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByNameWithPagination_args"); + public static class searchExperimentsByCreationTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_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.protocol.TField EXP_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("expName", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); + private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)4); + private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)5); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)6); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)7); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByNameWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByNameWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String expName; // required + public long fromTime; // required + public long toTime; // required public int limit; // required public int offset; // required @@ -52268,9 +52145,10 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { AUTHZ_TOKEN((short)1, "authzToken"), GATEWAY_ID((short)2, "gatewayId"), USER_NAME((short)3, "userName"), - EXP_NAME((short)4, "expName"), - LIMIT((short)5, "limit"), - OFFSET((short)6, "offset"); + FROM_TIME((short)4, "fromTime"), + TO_TIME((short)5, "toTime"), + LIMIT((short)6, "limit"), + OFFSET((short)7, "offset"); private static final Map byName = new HashMap(); @@ -52291,11 +52169,13 @@ public static _Fields findByThriftId(int fieldId) { return GATEWAY_ID; case 3: // USER_NAME return USER_NAME; - case 4: // EXP_NAME - return EXP_NAME; - case 5: // LIMIT + case 4: // FROM_TIME + return FROM_TIME; + case 5: // TO_TIME + return TO_TIME; + case 6: // LIMIT return LIMIT; - case 6: // OFFSET + case 7: // OFFSET return OFFSET; default: return null; @@ -52337,8 +52217,10 @@ public String getFieldName() { } // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; + private static final int __FROMTIME_ISSET_ID = 0; + private static final int __TOTIME_ISSET_ID = 1; + private static final int __LIMIT_ISSET_ID = 2; + private static final int __OFFSET_ISSET_ID = 3; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { @@ -52349,24 +52231,27 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.EXP_NAME, new org.apache.thrift.meta_data.FieldMetaData("expName", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByNameWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_args.class, metaDataMap); } - public searchExperimentsByNameWithPagination_args() { + public searchExperimentsByCreationTime_args() { } - public searchExperimentsByNameWithPagination_args( + public searchExperimentsByCreationTime_args( org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String expName, + long fromTime, + long toTime, int limit, int offset) { @@ -52374,7 +52259,10 @@ public searchExperimentsByNameWithPagination_args( this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.expName = expName; + this.fromTime = fromTime; + setFromTimeIsSet(true); + this.toTime = toTime; + setToTimeIsSet(true); this.limit = limit; setLimitIsSet(true); this.offset = offset; @@ -52384,7 +52272,7 @@ public searchExperimentsByNameWithPagination_args( /** * Performs a deep copy on other. */ - public searchExperimentsByNameWithPagination_args(searchExperimentsByNameWithPagination_args other) { + public searchExperimentsByCreationTime_args(searchExperimentsByCreationTime_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); @@ -52395,15 +52283,14 @@ public searchExperimentsByNameWithPagination_args(searchExperimentsByNameWithPag if (other.isSetUserName()) { this.userName = other.userName; } - if (other.isSetExpName()) { - this.expName = other.expName; - } + this.fromTime = other.fromTime; + this.toTime = other.toTime; this.limit = other.limit; this.offset = other.offset; } - public searchExperimentsByNameWithPagination_args deepCopy() { - return new searchExperimentsByNameWithPagination_args(this); + public searchExperimentsByCreationTime_args deepCopy() { + return new searchExperimentsByCreationTime_args(this); } @Override @@ -52411,7 +52298,10 @@ public void clear() { this.authzToken = null; this.gatewayId = null; this.userName = null; - this.expName = null; + setFromTimeIsSet(false); + this.fromTime = 0; + setToTimeIsSet(false); + this.toTime = 0; setLimitIsSet(false); this.limit = 0; setOffsetIsSet(false); @@ -52422,7 +52312,7 @@ public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public searchExperimentsByNameWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public searchExperimentsByCreationTime_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -52446,7 +52336,7 @@ public String getGatewayId() { return this.gatewayId; } - public searchExperimentsByNameWithPagination_args setGatewayId(String gatewayId) { + public searchExperimentsByCreationTime_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -52470,7 +52360,7 @@ public String getUserName() { return this.userName; } - public searchExperimentsByNameWithPagination_args setUserName(String userName) { + public searchExperimentsByCreationTime_args setUserName(String userName) { this.userName = userName; return this; } @@ -52490,35 +52380,57 @@ public void setUserNameIsSet(boolean value) { } } - public String getExpName() { - return this.expName; + public long getFromTime() { + return this.fromTime; } - public searchExperimentsByNameWithPagination_args setExpName(String expName) { - this.expName = expName; + public searchExperimentsByCreationTime_args setFromTime(long fromTime) { + this.fromTime = fromTime; + setFromTimeIsSet(true); return this; } - public void unsetExpName() { - this.expName = null; + public void unsetFromTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); } - /** Returns true if field expName is set (has been assigned a value) and false otherwise */ - public boolean isSetExpName() { - return this.expName != null; + /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ + public boolean isSetFromTime() { + return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); } - public void setExpNameIsSet(boolean value) { - if (!value) { - this.expName = null; - } + public void setFromTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); + } + + public long getToTime() { + return this.toTime; + } + + public searchExperimentsByCreationTime_args setToTime(long toTime) { + this.toTime = toTime; + setToTimeIsSet(true); + return this; + } + + public void unsetToTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ + public boolean isSetToTime() { + return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); + } + + public void setToTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); } public int getLimit() { return this.limit; } - public searchExperimentsByNameWithPagination_args setLimit(int limit) { + public searchExperimentsByCreationTime_args setLimit(int limit) { this.limit = limit; setLimitIsSet(true); return this; @@ -52541,7 +52453,7 @@ public int getOffset() { return this.offset; } - public searchExperimentsByNameWithPagination_args setOffset(int offset) { + public searchExperimentsByCreationTime_args setOffset(int offset) { this.offset = offset; setOffsetIsSet(true); return this; @@ -52586,11 +52498,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case EXP_NAME: + case FROM_TIME: if (value == null) { - unsetExpName(); + unsetFromTime(); } else { - setExpName((String)value); + setFromTime((Long)value); + } + break; + + case TO_TIME: + if (value == null) { + unsetToTime(); + } else { + setToTime((Long)value); } break; @@ -52624,8 +52544,11 @@ public Object getFieldValue(_Fields field) { case USER_NAME: return getUserName(); - case EXP_NAME: - return getExpName(); + case FROM_TIME: + return Long.valueOf(getFromTime()); + + case TO_TIME: + return Long.valueOf(getToTime()); case LIMIT: return Integer.valueOf(getLimit()); @@ -52650,8 +52573,10 @@ public boolean isSet(_Fields field) { return isSetGatewayId(); case USER_NAME: return isSetUserName(); - case EXP_NAME: - return isSetExpName(); + case FROM_TIME: + return isSetFromTime(); + case TO_TIME: + return isSetToTime(); case LIMIT: return isSetLimit(); case OFFSET: @@ -52664,12 +52589,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByNameWithPagination_args) - return this.equals((searchExperimentsByNameWithPagination_args)that); + if (that instanceof searchExperimentsByCreationTime_args) + return this.equals((searchExperimentsByCreationTime_args)that); return false; } - public boolean equals(searchExperimentsByNameWithPagination_args that) { + public boolean equals(searchExperimentsByCreationTime_args that) { if (that == null) return false; @@ -52700,12 +52625,21 @@ public boolean equals(searchExperimentsByNameWithPagination_args that) { return false; } - boolean this_present_expName = true && this.isSetExpName(); - boolean that_present_expName = true && that.isSetExpName(); - if (this_present_expName || that_present_expName) { - if (!(this_present_expName && that_present_expName)) + boolean this_present_fromTime = true; + boolean that_present_fromTime = true; + if (this_present_fromTime || that_present_fromTime) { + if (!(this_present_fromTime && that_present_fromTime)) return false; - if (!this.expName.equals(that.expName)) + if (this.fromTime != that.fromTime) + return false; + } + + boolean this_present_toTime = true; + boolean that_present_toTime = true; + if (this_present_toTime || that_present_toTime) { + if (!(this_present_toTime && that_present_toTime)) + return false; + if (this.toTime != that.toTime) return false; } @@ -52749,10 +52683,15 @@ public int hashCode() { if (present_userName) list.add(userName); - boolean present_expName = true && (isSetExpName()); - list.add(present_expName); - if (present_expName) - list.add(expName); + boolean present_fromTime = true; + list.add(present_fromTime); + if (present_fromTime) + list.add(fromTime); + + boolean present_toTime = true; + list.add(present_toTime); + if (present_toTime) + list.add(toTime); boolean present_limit = true; list.add(present_limit); @@ -52768,7 +52707,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByNameWithPagination_args other) { + public int compareTo(searchExperimentsByCreationTime_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -52805,12 +52744,22 @@ public int compareTo(searchExperimentsByNameWithPagination_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpName()).compareTo(other.isSetExpName()); + lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); if (lastComparison != 0) { return lastComparison; } - if (isSetExpName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expName, other.expName); + if (isSetFromTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetToTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); if (lastComparison != 0) { return lastComparison; } @@ -52852,7 +52801,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByNameWithPagination_args("); + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_args("); boolean first = true; sb.append("authzToken:"); @@ -52879,12 +52828,12 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("expName:"); - if (this.expName == null) { - sb.append("null"); - } else { - sb.append(this.expName); - } + sb.append("fromTime:"); + sb.append(this.fromTime); + first = false; + if (!first) sb.append(", "); + sb.append("toTime:"); + sb.append(this.toTime); first = false; if (!first) sb.append(", "); sb.append("limit:"); @@ -52909,9 +52858,8 @@ public void validate() throws org.apache.thrift.TException { if (userName == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); } - if (expName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'expName' was not present! Struct: " + toString()); - } + // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity @@ -52938,15 +52886,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByNameWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByNameWithPagination_argsStandardScheme getScheme() { - return new searchExperimentsByNameWithPagination_argsStandardScheme(); + private static class searchExperimentsByCreationTime_argsStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_argsStandardScheme getScheme() { + return new searchExperimentsByCreationTime_argsStandardScheme(); } } - private static class searchExperimentsByNameWithPagination_argsStandardScheme extends StandardScheme { + private static class searchExperimentsByCreationTime_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52981,15 +52929,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // EXP_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + case 4: // FROM_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // LIMIT + case 5: // TO_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // LIMIT if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.limit = iprot.readI32(); struct.setLimitIsSet(true); @@ -52997,7 +52953,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 6: // OFFSET + case 7: // OFFSET if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.offset = iprot.readI32(); struct.setOffsetIsSet(true); @@ -53013,6 +52969,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetFromTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetToTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); + } if (!struct.isSetLimit()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); } @@ -53022,7 +52984,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -53041,11 +53003,12 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB oprot.writeString(struct.userName); oprot.writeFieldEnd(); } - if (struct.expName != null) { - oprot.writeFieldBegin(EXP_NAME_FIELD_DESC); - oprot.writeString(struct.expName); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(FROM_TIME_FIELD_DESC); + oprot.writeI64(struct.fromTime); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(TO_TIME_FIELD_DESC); + oprot.writeI64(struct.toTime); + oprot.writeFieldEnd(); oprot.writeFieldBegin(LIMIT_FIELD_DESC); oprot.writeI32(struct.limit); oprot.writeFieldEnd(); @@ -53058,27 +53021,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByNameWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByNameWithPagination_argsTupleScheme getScheme() { - return new searchExperimentsByNameWithPagination_argsTupleScheme(); + private static class searchExperimentsByCreationTime_argsTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_argsTupleScheme getScheme() { + return new searchExperimentsByCreationTime_argsTupleScheme(); } } - private static class searchExperimentsByNameWithPagination_argsTupleScheme extends TupleScheme { + private static class searchExperimentsByCreationTime_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); - oprot.writeString(struct.expName); + oprot.writeI64(struct.fromTime); + oprot.writeI64(struct.toTime); oprot.writeI32(struct.limit); oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); @@ -53087,8 +53051,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByN struct.setGatewayIdIsSet(true); struct.userName = iprot.readString(); struct.setUserNameIsSet(true); - struct.expName = iprot.readString(); - struct.setExpNameIsSet(true); + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); struct.limit = iprot.readI32(); struct.setLimitIsSet(true); struct.offset = iprot.readI32(); @@ -53098,8 +53064,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByN } - public static class searchExperimentsByNameWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByNameWithPagination_result"); + public static class searchExperimentsByCreationTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_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); @@ -53109,8 +53075,8 @@ public static class searchExperimentsByNameWithPagination_result implements org. private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByNameWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByNameWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_resultTupleSchemeFactory()); } public List success; // required @@ -53205,13 +53171,13 @@ public String getFieldName() { tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByNameWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_result.class, metaDataMap); } - public searchExperimentsByNameWithPagination_result() { + public searchExperimentsByCreationTime_result() { } - public searchExperimentsByNameWithPagination_result( + public searchExperimentsByCreationTime_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -53229,7 +53195,7 @@ public searchExperimentsByNameWithPagination_result( /** * Performs a deep copy on other. */ - public searchExperimentsByNameWithPagination_result(searchExperimentsByNameWithPagination_result other) { + public searchExperimentsByCreationTime_result(searchExperimentsByCreationTime_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { @@ -53251,8 +53217,8 @@ public searchExperimentsByNameWithPagination_result(searchExperimentsByNameWithP } } - public searchExperimentsByNameWithPagination_result deepCopy() { - return new searchExperimentsByNameWithPagination_result(this); + public searchExperimentsByCreationTime_result deepCopy() { + return new searchExperimentsByCreationTime_result(this); } @Override @@ -53283,7 +53249,7 @@ public List getSucc return this.success; } - public searchExperimentsByNameWithPagination_result setSuccess(List success) { + public searchExperimentsByCreationTime_result setSuccess(List success) { this.success = success; return this; } @@ -53307,7 +53273,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public searchExperimentsByNameWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperimentsByCreationTime_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -53331,7 +53297,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public searchExperimentsByNameWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperimentsByCreationTime_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -53355,7 +53321,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public searchExperimentsByNameWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperimentsByCreationTime_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -53379,7 +53345,7 @@ public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public searchExperimentsByNameWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public searchExperimentsByCreationTime_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -53490,12 +53456,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof searchExperimentsByNameWithPagination_result) - return this.equals((searchExperimentsByNameWithPagination_result)that); + if (that instanceof searchExperimentsByCreationTime_result) + return this.equals((searchExperimentsByCreationTime_result)that); return false; } - public boolean equals(searchExperimentsByNameWithPagination_result that) { + public boolean equals(searchExperimentsByCreationTime_result that) { if (that == null) return false; @@ -53580,7 +53546,7 @@ public int hashCode() { } @Override - public int compareTo(searchExperimentsByNameWithPagination_result other) { + public int compareTo(searchExperimentsByCreationTime_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -53654,7 +53620,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByNameWithPagination_result("); + StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_result("); boolean first = true; sb.append("success:"); @@ -53721,15 +53687,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class searchExperimentsByNameWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByNameWithPagination_resultStandardScheme getScheme() { - return new searchExperimentsByNameWithPagination_resultStandardScheme(); + private static class searchExperimentsByCreationTime_resultStandardSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_resultStandardScheme getScheme() { + return new searchExperimentsByCreationTime_resultStandardScheme(); } } - private static class searchExperimentsByNameWithPagination_resultStandardScheme extends StandardScheme { + private static class searchExperimentsByCreationTime_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53805,7 +53771,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsBy struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -53847,16 +53813,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsB } - private static class searchExperimentsByNameWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByNameWithPagination_resultTupleScheme getScheme() { - return new searchExperimentsByNameWithPagination_resultTupleScheme(); + private static class searchExperimentsByCreationTime_resultTupleSchemeFactory implements SchemeFactory { + public searchExperimentsByCreationTime_resultTupleScheme getScheme() { + return new searchExperimentsByCreationTime_resultTupleScheme(); } } - private static class searchExperimentsByNameWithPagination_resultTupleScheme extends TupleScheme { + private static class searchExperimentsByCreationTime_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -53899,7 +53865,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsBy } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByNameWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { @@ -53941,28 +53907,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByN } - public static class searchExperimentsByDesc_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_args"); + public static class searchExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperiments_args"); - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3); + 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.protocol.TField FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("filters", org.apache.thrift.protocol.TType.MAP, (short)4); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new searchExperimentsByDesc_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDesc_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperiments_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperiments_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public String userName; // required - public String description; // required + public Map filters; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - DESCRIPTION((short)3, "description"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"), + FILTERS((short)4, "filters"), + LIMIT((short)5, "limit"), + OFFSET((short)6, "offset"); private static final Map byName = new HashMap(); @@ -53977,12 +53952,18 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; - case 3: // DESCRIPTION - return DESCRIPTION; + case 4: // FILTERS + return FILTERS; + case 5: // LIMIT + return LIMIT; + case 6: // OFFSET + return OFFSET; default: return null; } @@ -54023,64 +54004,130 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FILTERS, new org.apache.thrift.meta_data.FieldMetaData("filters", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.experiment.ExperimentSearchFields.class), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperiments_args.class, metaDataMap); } - public searchExperimentsByDesc_args() { + public searchExperiments_args() { } - public searchExperimentsByDesc_args( + public searchExperiments_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, - String description) + Map filters, + int limit, + int offset) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; - this.description = description; + this.filters = filters; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public searchExperimentsByDesc_args(searchExperimentsByDesc_args other) { + public searchExperiments_args(searchExperiments_args other) { + __isset_bitfield = other.__isset_bitfield; + 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; } - if (other.isSetDescription()) { - this.description = other.description; + if (other.isSetFilters()) { + Map __this__filters = new HashMap(other.filters.size()); + for (Map.Entry other_element : other.filters.entrySet()) { + + org.apache.airavata.model.experiment.ExperimentSearchFields other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + org.apache.airavata.model.experiment.ExperimentSearchFields __this__filters_copy_key = other_element_key; + + String __this__filters_copy_value = other_element_value; + + __this__filters.put(__this__filters_copy_key, __this__filters_copy_value); + } + this.filters = __this__filters; } + this.limit = other.limit; + this.offset = other.offset; } - public searchExperimentsByDesc_args deepCopy() { - return new searchExperimentsByDesc_args(this); + public searchExperiments_args deepCopy() { + return new searchExperiments_args(this); } @Override public void clear() { + this.authzToken = null; this.gatewayId = null; this.userName = null; - this.description = null; + this.filters = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; + } + + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public searchExperiments_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 String getGatewayId() { return this.gatewayId; } - public searchExperimentsByDesc_args setGatewayId(String gatewayId) { + public searchExperiments_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -54104,14780 +54151,154 @@ public String getUserName() { return this.userName; } - public searchExperimentsByDesc_args setUserName(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 String getDescription() { - return this.description; - } - - public searchExperimentsByDesc_args setDescription(String description) { - this.description = description; - return this; - } - - public void unsetDescription() { - this.description = null; - } - - /** Returns true if field description is set (has been assigned a value) and false otherwise */ - public boolean isSetDescription() { - return this.description != null; - } - - public void setDescriptionIsSet(boolean value) { - if (!value) { - this.description = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case GATEWAY_ID: - if (value == null) { - unsetGatewayId(); - } else { - setGatewayId((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case DESCRIPTION: - if (value == null) { - unsetDescription(); - } else { - setDescription((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case DESCRIPTION: - return getDescription(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case DESCRIPTION: - return isSetDescription(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByDesc_args) - return this.equals((searchExperimentsByDesc_args)that); - return false; - } - - public boolean equals(searchExperimentsByDesc_args that) { - if (that == null) - 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; - } - - boolean this_present_description = true && this.isSetDescription(); - boolean that_present_description = true && that.isSetDescription(); - if (this_present_description || that_present_description) { - if (!(this_present_description && that_present_description)) - return false; - if (!this.description.equals(that.description)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByDesc_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDesc_args("); - boolean first = true; - - 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; - if (!first) sb.append(", "); - sb.append("description:"); - if (this.description == null) { - sb.append("null"); - } else { - sb.append(this.description); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - 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()); - } - if (description == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); - } - // 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, 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 searchExperimentsByDesc_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_argsStandardScheme getScheme() { - return new searchExperimentsByDesc_argsStandardScheme(); - } - } - - private static class searchExperimentsByDesc_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_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: // 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 2: // 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; - case 3: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(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, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - 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(); - } - if (struct.description != null) { - oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); - oprot.writeString(struct.description); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByDesc_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_argsTupleScheme getScheme() { - return new searchExperimentsByDesc_argsTupleScheme(); - } - } - - private static class searchExperimentsByDesc_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeString(struct.description); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } - } - - } - - public static class searchExperimentsByDesc_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDesc_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByDesc_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDesc_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDesc_result.class, metaDataMap); - } - - public searchExperimentsByDesc_result() { - } - - public searchExperimentsByDesc_result( - List 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 other. - */ - public searchExperimentsByDesc_result(searchExperimentsByDesc_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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); - } - } - - public searchExperimentsByDesc_result deepCopy() { - return new searchExperimentsByDesc_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ire = null; - this.ace = null; - this.ase = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByDesc_result setSuccess(List 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 searchExperimentsByDesc_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 searchExperimentsByDesc_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 searchExperimentsByDesc_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case IRE: - return getIre(); - - case ACE: - return getAce(); - - case ASE: - return getAse(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case IRE: - return isSetIre(); - case ACE: - return isSetAce(); - case ASE: - return isSetAse(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByDesc_result) - return this.equals((searchExperimentsByDesc_result)that); - return false; - } - - public boolean equals(searchExperimentsByDesc_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByDesc_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDesc_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, 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 searchExperimentsByDesc_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_resultStandardScheme getScheme() { - return new searchExperimentsByDesc_resultStandardScheme(); - } - } - - private static class searchExperimentsByDesc_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDesc_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.LIST) { - { - org.apache.thrift.protocol.TList _list82 = iprot.readListBegin(); - struct.success = new ArrayList(_list82.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem83; - for (int _i84 = 0; _i84 < _list82.size; ++_i84) - { - _elem83 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem83.read(iprot); - struct.success.add(_elem83); - } - iprot.readListEnd(); - } - 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, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter85 : struct.success) - { - _iter85.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByDesc_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDesc_resultTupleScheme getScheme() { - return new searchExperimentsByDesc_resultTupleScheme(); - } - } - - private static class searchExperimentsByDesc_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter86 : struct.success) - { - _iter86.write(oprot); - } - } - } - 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, searchExperimentsByDesc_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list87 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list87.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem88; - for (int _i89 = 0; _i89 < _list87.size; ++_i89) - { - _elem88 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem88.read(iprot); - struct.success.add(_elem88); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByDescWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDescWithPagination_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.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByDescWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDescWithPagination_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public String userName; // required - public String description; // required - public int limit; // required - public int offset; // 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"), - DESCRIPTION((short)4, "description"), - LIMIT((short)5, "limit"), - OFFSET((short)6, "offset"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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; - case 4: // DESCRIPTION - return DESCRIPTION; - case 5: // LIMIT - return LIMIT; - case 6: // OFFSET - return OFFSET; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDescWithPagination_args.class, metaDataMap); - } - - public searchExperimentsByDescWithPagination_args() { - } - - public searchExperimentsByDescWithPagination_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - String userName, - String description, - int limit, - int offset) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.userName = userName; - this.description = description; - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByDescWithPagination_args(searchExperimentsByDescWithPagination_args other) { - __isset_bitfield = other.__isset_bitfield; - 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; - } - if (other.isSetDescription()) { - this.description = other.description; - } - this.limit = other.limit; - this.offset = other.offset; - } - - public searchExperimentsByDescWithPagination_args deepCopy() { - return new searchExperimentsByDescWithPagination_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - this.userName = null; - this.description = null; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public searchExperimentsByDescWithPagination_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 String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByDescWithPagination_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByDescWithPagination_args setUserName(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 String getDescription() { - return this.description; - } - - public searchExperimentsByDescWithPagination_args setDescription(String description) { - this.description = description; - return this; - } - - public void unsetDescription() { - this.description = null; - } - - /** Returns true if field description is set (has been assigned a value) and false otherwise */ - public boolean isSetDescription() { - return this.description != null; - } - - public void setDescriptionIsSet(boolean value) { - if (!value) { - this.description = null; - } - } - - public int getLimit() { - return this.limit; - } - - public searchExperimentsByDescWithPagination_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); - return this; - } - - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); - } - - public int getOffset() { - return this.offset; - } - - public searchExperimentsByDescWithPagination_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); - return this; - } - - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case DESCRIPTION: - if (value == null) { - unsetDescription(); - } else { - setDescription((String)value); - } - break; - - case LIMIT: - if (value == null) { - unsetLimit(); - } else { - setLimit((Integer)value); - } - break; - - case OFFSET: - if (value == null) { - unsetOffset(); - } else { - setOffset((Integer)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case DESCRIPTION: - return getDescription(); - - case LIMIT: - return Integer.valueOf(getLimit()); - - case OFFSET: - return Integer.valueOf(getOffset()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case DESCRIPTION: - return isSetDescription(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByDescWithPagination_args) - return this.equals((searchExperimentsByDescWithPagination_args)that); - return false; - } - - public boolean equals(searchExperimentsByDescWithPagination_args that) { - if (that == null) - return false; - - 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; - } - - boolean this_present_description = true && this.isSetDescription(); - boolean that_present_description = true && that.isSetDescription(); - if (this_present_description || that_present_description) { - if (!(this_present_description && that_present_description)) - return false; - if (!this.description.equals(that.description)) - return false; - } - - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) - return false; - if (this.limit != that.limit) - return false; - } - - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) - return false; - if (this.offset != that.offset) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_description = true && (isSetDescription()); - list.add(present_description); - if (present_description) - list.add(description); - - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByDescWithPagination_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDescWithPagination_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; - if (!first) sb.append(", "); - sb.append("description:"); - if (this.description == null) { - sb.append("null"); - } else { - sb.append(this.description); - } - first = false; - if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); - first = false; - if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); - 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()); - } - if (description == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'description' was not present! Struct: " + toString()); - } - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperimentsByDescWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDescWithPagination_argsStandardScheme getScheme() { - return new searchExperimentsByDescWithPagination_argsStandardScheme(); - } - } - - private static class searchExperimentsByDescWithPagination_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDescWithPagination_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; - case 4: // DESCRIPTION - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(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 - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByDescWithPagination_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(); - } - if (struct.description != null) { - oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC); - oprot.writeString(struct.description); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByDescWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDescWithPagination_argsTupleScheme getScheme() { - return new searchExperimentsByDescWithPagination_argsTupleScheme(); - } - } - - private static class searchExperimentsByDescWithPagination_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeString(struct.description); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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); - struct.description = iprot.readString(); - struct.setDescriptionIsSet(true); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); - } - } - - } - - public static class searchExperimentsByDescWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByDescWithPagination_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByDescWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByDescWithPagination_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByDescWithPagination_result.class, metaDataMap); - } - - public searchExperimentsByDescWithPagination_result() { - } - - public searchExperimentsByDescWithPagination_result( - List 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 other. - */ - public searchExperimentsByDescWithPagination_result(searchExperimentsByDescWithPagination_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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 searchExperimentsByDescWithPagination_result deepCopy() { - return new searchExperimentsByDescWithPagination_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 getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByDescWithPagination_result setSuccess(List 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 searchExperimentsByDescWithPagination_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 searchExperimentsByDescWithPagination_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 searchExperimentsByDescWithPagination_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 searchExperimentsByDescWithPagination_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 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 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 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 IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByDescWithPagination_result) - return this.equals((searchExperimentsByDescWithPagination_result)that); - return false; - } - - public boolean equals(searchExperimentsByDescWithPagination_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByDescWithPagination_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByDescWithPagination_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, 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 searchExperimentsByDescWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByDescWithPagination_resultStandardScheme getScheme() { - return new searchExperimentsByDescWithPagination_resultStandardScheme(); - } - } - - private static class searchExperimentsByDescWithPagination_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByDescWithPagination_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.LIST) { - { - org.apache.thrift.protocol.TList _list90 = iprot.readListBegin(); - struct.success = new ArrayList(_list90.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem91; - for (int _i92 = 0; _i92 < _list90.size; ++_i92) - { - _elem91 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem91.read(iprot); - struct.success.add(_elem91); - } - iprot.readListEnd(); - } - 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, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter93 : struct.success) - { - _iter93.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByDescWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByDescWithPagination_resultTupleScheme getScheme() { - return new searchExperimentsByDescWithPagination_resultTupleScheme(); - } - } - - private static class searchExperimentsByDescWithPagination_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter94 : struct.success) - { - _iter94.write(oprot); - } - } - } - 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, searchExperimentsByDescWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list95 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list95.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem96; - for (int _i97 = 0; _i97 < _list95.size; ++_i97) - { - _elem96 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem96.read(iprot); - struct.success.add(_elem96); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByApplication_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_args"); - - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)3); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByApplication_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplication_argsTupleSchemeFactory()); - } - - public String gatewayId; // required - public String userName; // required - public String applicationId; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - APPLICATION_ID((short)3, "applicationId"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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: // GATEWAY_ID - return GATEWAY_ID; - case 2: // USER_NAME - return USER_NAME; - case 3: // APPLICATION_ID - return APPLICATION_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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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))); - tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_args.class, metaDataMap); - } - - public searchExperimentsByApplication_args() { - } - - public searchExperimentsByApplication_args( - String gatewayId, - String userName, - String applicationId) - { - this(); - this.gatewayId = gatewayId; - this.userName = userName; - this.applicationId = applicationId; - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByApplication_args(searchExperimentsByApplication_args other) { - if (other.isSetGatewayId()) { - this.gatewayId = other.gatewayId; - } - if (other.isSetUserName()) { - this.userName = other.userName; - } - if (other.isSetApplicationId()) { - this.applicationId = other.applicationId; - } - } - - public searchExperimentsByApplication_args deepCopy() { - return new searchExperimentsByApplication_args(this); - } - - @Override - public void clear() { - this.gatewayId = null; - this.userName = null; - this.applicationId = null; - } - - public String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByApplication_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByApplication_args setUserName(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 String getApplicationId() { - return this.applicationId; - } - - public searchExperimentsByApplication_args setApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - public void unsetApplicationId() { - this.applicationId = null; - } - - /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ - public boolean isSetApplicationId() { - return this.applicationId != null; - } - - public void setApplicationIdIsSet(boolean value) { - if (!value) { - this.applicationId = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case GATEWAY_ID: - if (value == null) { - unsetGatewayId(); - } else { - setGatewayId((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case APPLICATION_ID: - if (value == null) { - unsetApplicationId(); - } else { - setApplicationId((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case APPLICATION_ID: - return getApplicationId(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case APPLICATION_ID: - return isSetApplicationId(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByApplication_args) - return this.equals((searchExperimentsByApplication_args)that); - return false; - } - - public boolean equals(searchExperimentsByApplication_args that) { - if (that == null) - 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; - } - - boolean this_present_applicationId = true && this.isSetApplicationId(); - boolean that_present_applicationId = true && that.isSetApplicationId(); - if (this_present_applicationId || that_present_applicationId) { - if (!(this_present_applicationId && that_present_applicationId)) - return false; - if (!this.applicationId.equals(that.applicationId)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_applicationId = true && (isSetApplicationId()); - list.add(present_applicationId); - if (present_applicationId) - list.add(applicationId); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByApplication_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetApplicationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplication_args("); - boolean first = true; - - 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; - if (!first) sb.append(", "); - sb.append("applicationId:"); - if (this.applicationId == null) { - sb.append("null"); - } else { - sb.append(this.applicationId); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - 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()); - } - if (applicationId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); - } - // 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, 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 searchExperimentsByApplication_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_argsStandardScheme getScheme() { - return new searchExperimentsByApplication_argsStandardScheme(); - } - } - - private static class searchExperimentsByApplication_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_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: // 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 2: // 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; - case 3: // APPLICATION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(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, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - 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(); - } - if (struct.applicationId != null) { - oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); - oprot.writeString(struct.applicationId); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByApplication_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_argsTupleScheme getScheme() { - return new searchExperimentsByApplication_argsTupleScheme(); - } - } - - private static class searchExperimentsByApplication_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeString(struct.applicationId); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(true); - } - } - - } - - public static class searchExperimentsByApplication_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplication_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByApplication_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplication_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplication_result.class, metaDataMap); - } - - public searchExperimentsByApplication_result() { - } - - public searchExperimentsByApplication_result( - List 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 other. - */ - public searchExperimentsByApplication_result(searchExperimentsByApplication_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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); - } - } - - public searchExperimentsByApplication_result deepCopy() { - return new searchExperimentsByApplication_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ire = null; - this.ace = null; - this.ase = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByApplication_result setSuccess(List 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 searchExperimentsByApplication_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 searchExperimentsByApplication_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 searchExperimentsByApplication_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case IRE: - return getIre(); - - case ACE: - return getAce(); - - case ASE: - return getAse(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case IRE: - return isSetIre(); - case ACE: - return isSetAce(); - case ASE: - return isSetAse(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByApplication_result) - return this.equals((searchExperimentsByApplication_result)that); - return false; - } - - public boolean equals(searchExperimentsByApplication_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByApplication_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplication_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, 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 searchExperimentsByApplication_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_resultStandardScheme getScheme() { - return new searchExperimentsByApplication_resultStandardScheme(); - } - } - - private static class searchExperimentsByApplication_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplication_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.LIST) { - { - org.apache.thrift.protocol.TList _list98 = iprot.readListBegin(); - struct.success = new ArrayList(_list98.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem99; - for (int _i100 = 0; _i100 < _list98.size; ++_i100) - { - _elem99 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem99.read(iprot); - struct.success.add(_elem99); - } - iprot.readListEnd(); - } - 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, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter101 : struct.success) - { - _iter101.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByApplication_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplication_resultTupleScheme getScheme() { - return new searchExperimentsByApplication_resultTupleScheme(); - } - } - - private static class searchExperimentsByApplication_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter102 : struct.success) - { - _iter102.write(oprot); - } - } - } - 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, searchExperimentsByApplication_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list103.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem104; - for (int _i105 = 0; _i105 < _list103.size; ++_i105) - { - _elem104 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem104.read(iprot); - struct.success.add(_elem104); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByApplicationWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplicationWithPagination_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.protocol.TField APPLICATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("applicationId", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByApplicationWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplicationWithPagination_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public String userName; // required - public String applicationId; // required - public int limit; // required - public int offset; // 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"), - APPLICATION_ID((short)4, "applicationId"), - LIMIT((short)5, "limit"), - OFFSET((short)6, "offset"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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; - case 4: // APPLICATION_ID - return APPLICATION_ID; - case 5: // LIMIT - return LIMIT; - case 6: // OFFSET - return OFFSET; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.APPLICATION_ID, new org.apache.thrift.meta_data.FieldMetaData("applicationId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplicationWithPagination_args.class, metaDataMap); - } - - public searchExperimentsByApplicationWithPagination_args() { - } - - public searchExperimentsByApplicationWithPagination_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - String userName, - String applicationId, - int limit, - int offset) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.userName = userName; - this.applicationId = applicationId; - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByApplicationWithPagination_args(searchExperimentsByApplicationWithPagination_args other) { - __isset_bitfield = other.__isset_bitfield; - 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; - } - if (other.isSetApplicationId()) { - this.applicationId = other.applicationId; - } - this.limit = other.limit; - this.offset = other.offset; - } - - public searchExperimentsByApplicationWithPagination_args deepCopy() { - return new searchExperimentsByApplicationWithPagination_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - this.userName = null; - this.applicationId = null; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public searchExperimentsByApplicationWithPagination_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 String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByApplicationWithPagination_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByApplicationWithPagination_args setUserName(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 String getApplicationId() { - return this.applicationId; - } - - public searchExperimentsByApplicationWithPagination_args setApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - public void unsetApplicationId() { - this.applicationId = null; - } - - /** Returns true if field applicationId is set (has been assigned a value) and false otherwise */ - public boolean isSetApplicationId() { - return this.applicationId != null; - } - - public void setApplicationIdIsSet(boolean value) { - if (!value) { - this.applicationId = null; - } - } - - public int getLimit() { - return this.limit; - } - - public searchExperimentsByApplicationWithPagination_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); - return this; - } - - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); - } - - public int getOffset() { - return this.offset; - } - - public searchExperimentsByApplicationWithPagination_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); - return this; - } - - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case APPLICATION_ID: - if (value == null) { - unsetApplicationId(); - } else { - setApplicationId((String)value); - } - break; - - case LIMIT: - if (value == null) { - unsetLimit(); - } else { - setLimit((Integer)value); - } - break; - - case OFFSET: - if (value == null) { - unsetOffset(); - } else { - setOffset((Integer)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case APPLICATION_ID: - return getApplicationId(); - - case LIMIT: - return Integer.valueOf(getLimit()); - - case OFFSET: - return Integer.valueOf(getOffset()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case APPLICATION_ID: - return isSetApplicationId(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByApplicationWithPagination_args) - return this.equals((searchExperimentsByApplicationWithPagination_args)that); - return false; - } - - public boolean equals(searchExperimentsByApplicationWithPagination_args that) { - if (that == null) - return false; - - 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; - } - - boolean this_present_applicationId = true && this.isSetApplicationId(); - boolean that_present_applicationId = true && that.isSetApplicationId(); - if (this_present_applicationId || that_present_applicationId) { - if (!(this_present_applicationId && that_present_applicationId)) - return false; - if (!this.applicationId.equals(that.applicationId)) - return false; - } - - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) - return false; - if (this.limit != that.limit) - return false; - } - - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) - return false; - if (this.offset != that.offset) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_applicationId = true && (isSetApplicationId()); - list.add(present_applicationId); - if (present_applicationId) - list.add(applicationId); - - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByApplicationWithPagination_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetApplicationId()).compareTo(other.isSetApplicationId()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetApplicationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applicationId, other.applicationId); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplicationWithPagination_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; - if (!first) sb.append(", "); - sb.append("applicationId:"); - if (this.applicationId == null) { - sb.append("null"); - } else { - sb.append(this.applicationId); - } - first = false; - if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); - first = false; - if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); - 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()); - } - if (applicationId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'applicationId' was not present! Struct: " + toString()); - } - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperimentsByApplicationWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplicationWithPagination_argsStandardScheme getScheme() { - return new searchExperimentsByApplicationWithPagination_argsStandardScheme(); - } - } - - private static class searchExperimentsByApplicationWithPagination_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplicationWithPagination_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; - case 4: // APPLICATION_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(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 - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByApplicationWithPagination_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(); - } - if (struct.applicationId != null) { - oprot.writeFieldBegin(APPLICATION_ID_FIELD_DESC); - oprot.writeString(struct.applicationId); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByApplicationWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplicationWithPagination_argsTupleScheme getScheme() { - return new searchExperimentsByApplicationWithPagination_argsTupleScheme(); - } - } - - private static class searchExperimentsByApplicationWithPagination_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeString(struct.applicationId); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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); - struct.applicationId = iprot.readString(); - struct.setApplicationIdIsSet(true); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); - } - } - - } - - public static class searchExperimentsByApplicationWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByApplicationWithPagination_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByApplicationWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByApplicationWithPagination_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByApplicationWithPagination_result.class, metaDataMap); - } - - public searchExperimentsByApplicationWithPagination_result() { - } - - public searchExperimentsByApplicationWithPagination_result( - List 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 other. - */ - public searchExperimentsByApplicationWithPagination_result(searchExperimentsByApplicationWithPagination_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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 searchExperimentsByApplicationWithPagination_result deepCopy() { - return new searchExperimentsByApplicationWithPagination_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 getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByApplicationWithPagination_result setSuccess(List 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 searchExperimentsByApplicationWithPagination_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 searchExperimentsByApplicationWithPagination_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 searchExperimentsByApplicationWithPagination_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 searchExperimentsByApplicationWithPagination_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 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 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 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 IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByApplicationWithPagination_result) - return this.equals((searchExperimentsByApplicationWithPagination_result)that); - return false; - } - - public boolean equals(searchExperimentsByApplicationWithPagination_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByApplicationWithPagination_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByApplicationWithPagination_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, 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 searchExperimentsByApplicationWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByApplicationWithPagination_resultStandardScheme getScheme() { - return new searchExperimentsByApplicationWithPagination_resultStandardScheme(); - } - } - - private static class searchExperimentsByApplicationWithPagination_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByApplicationWithPagination_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.LIST) { - { - org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); - struct.success = new ArrayList(_list106.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem107; - for (int _i108 = 0; _i108 < _list106.size; ++_i108) - { - _elem107 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem107.read(iprot); - struct.success.add(_elem107); - } - iprot.readListEnd(); - } - 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, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter109 : struct.success) - { - _iter109.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByApplicationWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByApplicationWithPagination_resultTupleScheme getScheme() { - return new searchExperimentsByApplicationWithPagination_resultTupleScheme(); - } - } - - private static class searchExperimentsByApplicationWithPagination_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter110 : struct.success) - { - _iter110.write(oprot); - } - } - } - 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, searchExperimentsByApplicationWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list111 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list111.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem112; - for (int _i113 = 0; _i113 < _list111.size; ++_i113) - { - _elem112 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem112.read(iprot); - struct.success.add(_elem112); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_args"); - - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)3); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByStatus_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatus_argsTupleSchemeFactory()); - } - - public String gatewayId; // required - public String userName; // required - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public org.apache.airavata.model.status.ExperimentState experimentState; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - EXPERIMENT_STATE((short)3, "experimentState"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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: // GATEWAY_ID - return GATEWAY_ID; - case 2: // USER_NAME - return USER_NAME; - case 3: // EXPERIMENT_STATE - return EXPERIMENT_STATE; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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))); - tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.status.ExperimentState.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_args.class, metaDataMap); - } - - public searchExperimentsByStatus_args() { - } - - public searchExperimentsByStatus_args( - String gatewayId, - String userName, - org.apache.airavata.model.status.ExperimentState experimentState) - { - this(); - this.gatewayId = gatewayId; - this.userName = userName; - this.experimentState = experimentState; - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByStatus_args(searchExperimentsByStatus_args other) { - if (other.isSetGatewayId()) { - this.gatewayId = other.gatewayId; - } - if (other.isSetUserName()) { - this.userName = other.userName; - } - if (other.isSetExperimentState()) { - this.experimentState = other.experimentState; - } - } - - public searchExperimentsByStatus_args deepCopy() { - return new searchExperimentsByStatus_args(this); - } - - @Override - public void clear() { - this.gatewayId = null; - this.userName = null; - this.experimentState = null; - } - - public String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByStatus_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByStatus_args setUserName(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; - } - } - - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public org.apache.airavata.model.status.ExperimentState getExperimentState() { - return this.experimentState; - } - - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public searchExperimentsByStatus_args setExperimentState(org.apache.airavata.model.status.ExperimentState experimentState) { - this.experimentState = experimentState; - return this; - } - - public void unsetExperimentState() { - this.experimentState = null; - } - - /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ - public boolean isSetExperimentState() { - return this.experimentState != null; - } - - public void setExperimentStateIsSet(boolean value) { - if (!value) { - this.experimentState = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case GATEWAY_ID: - if (value == null) { - unsetGatewayId(); - } else { - setGatewayId((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case EXPERIMENT_STATE: - if (value == null) { - unsetExperimentState(); - } else { - setExperimentState((org.apache.airavata.model.status.ExperimentState)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case EXPERIMENT_STATE: - return getExperimentState(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case EXPERIMENT_STATE: - return isSetExperimentState(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByStatus_args) - return this.equals((searchExperimentsByStatus_args)that); - return false; - } - - public boolean equals(searchExperimentsByStatus_args that) { - if (that == null) - 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; - } - - boolean this_present_experimentState = true && this.isSetExperimentState(); - boolean that_present_experimentState = true && that.isSetExperimentState(); - if (this_present_experimentState || that_present_experimentState) { - if (!(this_present_experimentState && that_present_experimentState)) - return false; - if (!this.experimentState.equals(that.experimentState)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_experimentState = true && (isSetExperimentState()); - list.add(present_experimentState); - if (present_experimentState) - list.add(experimentState.getValue()); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByStatus_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetExperimentState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatus_args("); - boolean first = true; - - 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; - if (!first) sb.append(", "); - sb.append("experimentState:"); - if (this.experimentState == null) { - sb.append("null"); - } else { - sb.append(this.experimentState); - } - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - 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()); - } - if (experimentState == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); - } - // 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, 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 searchExperimentsByStatus_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_argsStandardScheme getScheme() { - return new searchExperimentsByStatus_argsStandardScheme(); - } - } - - private static class searchExperimentsByStatus_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_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: // 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 2: // 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; - case 3: // EXPERIMENT_STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(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, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - 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(); - } - if (struct.experimentState != null) { - oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); - oprot.writeI32(struct.experimentState.getValue()); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByStatus_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_argsTupleScheme getScheme() { - return new searchExperimentsByStatus_argsTupleScheme(); - } - } - - private static class searchExperimentsByStatus_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI32(struct.experimentState.getValue()); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); - struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(true); - } - } - - } - - public static class searchExperimentsByStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatus_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByStatus_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatus_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatus_result.class, metaDataMap); - } - - public searchExperimentsByStatus_result() { - } - - public searchExperimentsByStatus_result( - List 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 other. - */ - public searchExperimentsByStatus_result(searchExperimentsByStatus_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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); - } - } - - public searchExperimentsByStatus_result deepCopy() { - return new searchExperimentsByStatus_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ire = null; - this.ace = null; - this.ase = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByStatus_result setSuccess(List 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 searchExperimentsByStatus_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 searchExperimentsByStatus_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 searchExperimentsByStatus_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case IRE: - return getIre(); - - case ACE: - return getAce(); - - case ASE: - return getAse(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case IRE: - return isSetIre(); - case ACE: - return isSetAce(); - case ASE: - return isSetAse(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByStatus_result) - return this.equals((searchExperimentsByStatus_result)that); - return false; - } - - public boolean equals(searchExperimentsByStatus_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByStatus_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatus_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, 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 searchExperimentsByStatus_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_resultStandardScheme getScheme() { - return new searchExperimentsByStatus_resultStandardScheme(); - } - } - - private static class searchExperimentsByStatus_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatus_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.LIST) { - { - org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); - struct.success = new ArrayList(_list114.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem115; - for (int _i116 = 0; _i116 < _list114.size; ++_i116) - { - _elem115 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem115.read(iprot); - struct.success.add(_elem115); - } - iprot.readListEnd(); - } - 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, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter117 : struct.success) - { - _iter117.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByStatus_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatus_resultTupleScheme getScheme() { - return new searchExperimentsByStatus_resultTupleScheme(); - } - } - - private static class searchExperimentsByStatus_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter118 : struct.success) - { - _iter118.write(oprot); - } - } - } - 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, searchExperimentsByStatus_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list119 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list119.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem120; - for (int _i121 = 0; _i121 < _list119.size; ++_i121) - { - _elem120 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem120.read(iprot); - struct.success.add(_elem120); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByStatusWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatusWithPagination_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.protocol.TField EXPERIMENT_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("experimentState", org.apache.thrift.protocol.TType.I32, (short)4); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByStatusWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatusWithPagination_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public String userName; // required - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public org.apache.airavata.model.status.ExperimentState experimentState; // required - public int limit; // required - public int offset; // 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"), - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - EXPERIMENT_STATE((short)4, "experimentState"), - LIMIT((short)5, "limit"), - OFFSET((short)6, "offset"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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; - case 4: // EXPERIMENT_STATE - return EXPERIMENT_STATE; - case 5: // LIMIT - return LIMIT; - case 6: // OFFSET - return OFFSET; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.EXPERIMENT_STATE, new org.apache.thrift.meta_data.FieldMetaData("experimentState", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.status.ExperimentState.class))); - tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatusWithPagination_args.class, metaDataMap); - } - - public searchExperimentsByStatusWithPagination_args() { - } - - public searchExperimentsByStatusWithPagination_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - String userName, - org.apache.airavata.model.status.ExperimentState experimentState, - int limit, - int offset) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.userName = userName; - this.experimentState = experimentState; - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByStatusWithPagination_args(searchExperimentsByStatusWithPagination_args other) { - __isset_bitfield = other.__isset_bitfield; - 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; - } - if (other.isSetExperimentState()) { - this.experimentState = other.experimentState; - } - this.limit = other.limit; - this.offset = other.offset; - } - - public searchExperimentsByStatusWithPagination_args deepCopy() { - return new searchExperimentsByStatusWithPagination_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - this.userName = null; - this.experimentState = null; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public searchExperimentsByStatusWithPagination_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 String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByStatusWithPagination_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByStatusWithPagination_args setUserName(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; - } - } - - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public org.apache.airavata.model.status.ExperimentState getExperimentState() { - return this.experimentState; - } - - /** - * - * @see org.apache.airavata.model.status.ExperimentState - */ - public searchExperimentsByStatusWithPagination_args setExperimentState(org.apache.airavata.model.status.ExperimentState experimentState) { - this.experimentState = experimentState; - return this; - } - - public void unsetExperimentState() { - this.experimentState = null; - } - - /** Returns true if field experimentState is set (has been assigned a value) and false otherwise */ - public boolean isSetExperimentState() { - return this.experimentState != null; - } - - public void setExperimentStateIsSet(boolean value) { - if (!value) { - this.experimentState = null; - } - } - - public int getLimit() { - return this.limit; - } - - public searchExperimentsByStatusWithPagination_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); - return this; - } - - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); - } - - public int getOffset() { - return this.offset; - } - - public searchExperimentsByStatusWithPagination_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); - return this; - } - - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case EXPERIMENT_STATE: - if (value == null) { - unsetExperimentState(); - } else { - setExperimentState((org.apache.airavata.model.status.ExperimentState)value); - } - break; - - case LIMIT: - if (value == null) { - unsetLimit(); - } else { - setLimit((Integer)value); - } - break; - - case OFFSET: - if (value == null) { - unsetOffset(); - } else { - setOffset((Integer)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case EXPERIMENT_STATE: - return getExperimentState(); - - case LIMIT: - return Integer.valueOf(getLimit()); - - case OFFSET: - return Integer.valueOf(getOffset()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case EXPERIMENT_STATE: - return isSetExperimentState(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByStatusWithPagination_args) - return this.equals((searchExperimentsByStatusWithPagination_args)that); - return false; - } - - public boolean equals(searchExperimentsByStatusWithPagination_args that) { - if (that == null) - return false; - - 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; - } - - boolean this_present_experimentState = true && this.isSetExperimentState(); - boolean that_present_experimentState = true && that.isSetExperimentState(); - if (this_present_experimentState || that_present_experimentState) { - if (!(this_present_experimentState && that_present_experimentState)) - return false; - if (!this.experimentState.equals(that.experimentState)) - return false; - } - - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) - return false; - if (this.limit != that.limit) - return false; - } - - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) - return false; - if (this.offset != that.offset) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_experimentState = true && (isSetExperimentState()); - list.add(present_experimentState); - if (present_experimentState) - list.add(experimentState.getValue()); - - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByStatusWithPagination_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetExperimentState()).compareTo(other.isSetExperimentState()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetExperimentState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentState, other.experimentState); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatusWithPagination_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; - if (!first) sb.append(", "); - sb.append("experimentState:"); - if (this.experimentState == null) { - sb.append("null"); - } else { - sb.append(this.experimentState); - } - first = false; - if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); - first = false; - if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); - 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()); - } - if (experimentState == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentState' was not present! Struct: " + toString()); - } - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperimentsByStatusWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatusWithPagination_argsStandardScheme getScheme() { - return new searchExperimentsByStatusWithPagination_argsStandardScheme(); - } - } - - private static class searchExperimentsByStatusWithPagination_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatusWithPagination_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; - case 4: // EXPERIMENT_STATE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(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 - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByStatusWithPagination_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(); - } - if (struct.experimentState != null) { - oprot.writeFieldBegin(EXPERIMENT_STATE_FIELD_DESC); - oprot.writeI32(struct.experimentState.getValue()); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByStatusWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatusWithPagination_argsTupleScheme getScheme() { - return new searchExperimentsByStatusWithPagination_argsTupleScheme(); - } - } - - private static class searchExperimentsByStatusWithPagination_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI32(struct.experimentState.getValue()); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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); - struct.experimentState = org.apache.airavata.model.status.ExperimentState.findByValue(iprot.readI32()); - struct.setExperimentStateIsSet(true); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); - } - } - - } - - public static class searchExperimentsByStatusWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByStatusWithPagination_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByStatusWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByStatusWithPagination_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByStatusWithPagination_result.class, metaDataMap); - } - - public searchExperimentsByStatusWithPagination_result() { - } - - public searchExperimentsByStatusWithPagination_result( - List 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 other. - */ - public searchExperimentsByStatusWithPagination_result(searchExperimentsByStatusWithPagination_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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 searchExperimentsByStatusWithPagination_result deepCopy() { - return new searchExperimentsByStatusWithPagination_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 getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByStatusWithPagination_result setSuccess(List 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 searchExperimentsByStatusWithPagination_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 searchExperimentsByStatusWithPagination_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 searchExperimentsByStatusWithPagination_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 searchExperimentsByStatusWithPagination_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 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 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 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 IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByStatusWithPagination_result) - return this.equals((searchExperimentsByStatusWithPagination_result)that); - return false; - } - - public boolean equals(searchExperimentsByStatusWithPagination_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByStatusWithPagination_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByStatusWithPagination_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, 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 searchExperimentsByStatusWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByStatusWithPagination_resultStandardScheme getScheme() { - return new searchExperimentsByStatusWithPagination_resultStandardScheme(); - } - } - - private static class searchExperimentsByStatusWithPagination_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByStatusWithPagination_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.LIST) { - { - org.apache.thrift.protocol.TList _list122 = iprot.readListBegin(); - struct.success = new ArrayList(_list122.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem123; - for (int _i124 = 0; _i124 < _list122.size; ++_i124) - { - _elem123 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem123.read(iprot); - struct.success.add(_elem123); - } - iprot.readListEnd(); - } - 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, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter125 : struct.success) - { - _iter125.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByStatusWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByStatusWithPagination_resultTupleScheme getScheme() { - return new searchExperimentsByStatusWithPagination_resultTupleScheme(); - } - } - - private static class searchExperimentsByStatusWithPagination_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter126 : struct.success) - { - _iter126.write(oprot); - } - } - } - 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, searchExperimentsByStatusWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list127.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) - { - _elem128 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem128.read(iprot); - struct.success.add(_elem128); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByCreationTime_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_args"); - - 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)1); - 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)2); - private static final org.apache.thrift.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); - private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_argsTupleSchemeFactory()); - } - - public String gatewayId; // required - public String userName; // required - public long fromTime; // required - public long toTime; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"), - FROM_TIME((short)3, "fromTime"), - TO_TIME((short)4, "toTime"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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: // GATEWAY_ID - return GATEWAY_ID; - case 2: // USER_NAME - return USER_NAME; - case 3: // FROM_TIME - return FROM_TIME; - case 4: // TO_TIME - return TO_TIME; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __FROMTIME_ISSET_ID = 0; - private static final int __TOTIME_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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))); - tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_args.class, metaDataMap); - } - - public searchExperimentsByCreationTime_args() { - } - - public searchExperimentsByCreationTime_args( - String gatewayId, - String userName, - long fromTime, - long toTime) - { - this(); - this.gatewayId = gatewayId; - this.userName = userName; - this.fromTime = fromTime; - setFromTimeIsSet(true); - this.toTime = toTime; - setToTimeIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByCreationTime_args(searchExperimentsByCreationTime_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetGatewayId()) { - this.gatewayId = other.gatewayId; - } - if (other.isSetUserName()) { - this.userName = other.userName; - } - this.fromTime = other.fromTime; - this.toTime = other.toTime; - } - - public searchExperimentsByCreationTime_args deepCopy() { - return new searchExperimentsByCreationTime_args(this); - } - - @Override - public void clear() { - this.gatewayId = null; - this.userName = null; - setFromTimeIsSet(false); - this.fromTime = 0; - setToTimeIsSet(false); - this.toTime = 0; - } - - public String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByCreationTime_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByCreationTime_args setUserName(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 long getFromTime() { - return this.fromTime; - } - - public searchExperimentsByCreationTime_args setFromTime(long fromTime) { - this.fromTime = fromTime; - setFromTimeIsSet(true); - return this; - } - - public void unsetFromTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ - public boolean isSetFromTime() { - return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - public void setFromTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); - } - - public long getToTime() { - return this.toTime; - } - - public searchExperimentsByCreationTime_args setToTime(long toTime) { - this.toTime = toTime; - setToTimeIsSet(true); - return this; - } - - public void unsetToTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ - public boolean isSetToTime() { - return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - public void setToTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case GATEWAY_ID: - if (value == null) { - unsetGatewayId(); - } else { - setGatewayId((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case FROM_TIME: - if (value == null) { - unsetFromTime(); - } else { - setFromTime((Long)value); - } - break; - - case TO_TIME: - if (value == null) { - unsetToTime(); - } else { - setToTime((Long)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case FROM_TIME: - return Long.valueOf(getFromTime()); - - case TO_TIME: - return Long.valueOf(getToTime()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case FROM_TIME: - return isSetFromTime(); - case TO_TIME: - return isSetToTime(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByCreationTime_args) - return this.equals((searchExperimentsByCreationTime_args)that); - return false; - } - - public boolean equals(searchExperimentsByCreationTime_args that) { - if (that == null) - 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; - } - - boolean this_present_fromTime = true; - boolean that_present_fromTime = true; - if (this_present_fromTime || that_present_fromTime) { - if (!(this_present_fromTime && that_present_fromTime)) - return false; - if (this.fromTime != that.fromTime) - return false; - } - - boolean this_present_toTime = true; - boolean that_present_toTime = true; - if (this_present_toTime || that_present_toTime) { - if (!(this_present_toTime && that_present_toTime)) - return false; - if (this.toTime != that.toTime) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_fromTime = true; - list.add(present_fromTime); - if (present_fromTime) - list.add(fromTime); - - boolean present_toTime = true; - list.add(present_toTime); - if (present_toTime) - list.add(toTime); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByCreationTime_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFromTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetToTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_args("); - boolean first = true; - - 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; - if (!first) sb.append(", "); - sb.append("fromTime:"); - sb.append(this.fromTime); - first = false; - if (!first) sb.append(", "); - sb.append("toTime:"); - sb.append(this.toTime); - first = false; - sb.append(")"); - return sb.toString(); - } - - public void validate() throws org.apache.thrift.TException { - // check for required fields - 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()); - } - // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperimentsByCreationTime_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_argsStandardScheme getScheme() { - return new searchExperimentsByCreationTime_argsStandardScheme(); - } - } - - private static class searchExperimentsByCreationTime_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_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: // 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 2: // 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; - case 3: // FROM_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TO_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(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 - if (!struct.isSetFromTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetToTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - 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.writeFieldBegin(FROM_TIME_FIELD_DESC); - oprot.writeI64(struct.fromTime); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(TO_TIME_FIELD_DESC); - oprot.writeI64(struct.toTime); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByCreationTime_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_argsTupleScheme getScheme() { - return new searchExperimentsByCreationTime_argsTupleScheme(); - } - } - - private static class searchExperimentsByCreationTime_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI64(struct.fromTime); - oprot.writeI64(struct.toTime); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); - } - } - - } - - public static class searchExperimentsByCreationTime_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTime_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTime_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTime_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTime_result.class, metaDataMap); - } - - public searchExperimentsByCreationTime_result() { - } - - public searchExperimentsByCreationTime_result( - List 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 other. - */ - public searchExperimentsByCreationTime_result(searchExperimentsByCreationTime_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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); - } - } - - public searchExperimentsByCreationTime_result deepCopy() { - return new searchExperimentsByCreationTime_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ire = null; - this.ace = null; - this.ase = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByCreationTime_result setSuccess(List 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 searchExperimentsByCreationTime_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 searchExperimentsByCreationTime_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 searchExperimentsByCreationTime_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case IRE: - return getIre(); - - case ACE: - return getAce(); - - case ASE: - return getAse(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case IRE: - return isSetIre(); - case ACE: - return isSetAce(); - case ASE: - return isSetAse(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByCreationTime_result) - return this.equals((searchExperimentsByCreationTime_result)that); - return false; - } - - public boolean equals(searchExperimentsByCreationTime_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByCreationTime_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTime_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, 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 searchExperimentsByCreationTime_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_resultStandardScheme getScheme() { - return new searchExperimentsByCreationTime_resultStandardScheme(); - } - } - - private static class searchExperimentsByCreationTime_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTime_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.LIST) { - { - org.apache.thrift.protocol.TList _list130 = iprot.readListBegin(); - struct.success = new ArrayList(_list130.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem131; - for (int _i132 = 0; _i132 < _list130.size; ++_i132) - { - _elem131 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem131.read(iprot); - struct.success.add(_elem131); - } - iprot.readListEnd(); - } - 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, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter133 : struct.success) - { - _iter133.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByCreationTime_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTime_resultTupleScheme getScheme() { - return new searchExperimentsByCreationTime_resultTupleScheme(); - } - } - - private static class searchExperimentsByCreationTime_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter134 : struct.success) - { - _iter134.write(oprot); - } - } - } - 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, searchExperimentsByCreationTime_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list135.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem136; - for (int _i137 = 0; _i137 < _list135.size; ++_i137) - { - _elem136 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem136.read(iprot); - struct.success.add(_elem136); - } - } - 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); - } - } - } - - } - - public static class searchExperimentsByCreationTimeWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTimeWithPagination_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.protocol.TField FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)4); - private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)5); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)6); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)7); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTimeWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTimeWithPagination_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public String userName; // required - public long fromTime; // required - public long toTime; // required - public int limit; // required - public int offset; // 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"), - FROM_TIME((short)4, "fromTime"), - TO_TIME((short)5, "toTime"), - LIMIT((short)6, "limit"), - OFFSET((short)7, "offset"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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; - case 4: // FROM_TIME - return FROM_TIME; - case 5: // TO_TIME - return TO_TIME; - case 6: // LIMIT - return LIMIT; - case 7: // OFFSET - return OFFSET; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __FROMTIME_ISSET_ID = 0; - private static final int __TOTIME_ISSET_ID = 1; - private static final int __LIMIT_ISSET_ID = 2; - private static final int __OFFSET_ISSET_ID = 3; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTimeWithPagination_args.class, metaDataMap); - } - - public searchExperimentsByCreationTimeWithPagination_args() { - } - - public searchExperimentsByCreationTimeWithPagination_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - String userName, - long fromTime, - long toTime, - int limit, - int offset) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.userName = userName; - this.fromTime = fromTime; - setFromTimeIsSet(true); - this.toTime = toTime; - setToTimeIsSet(true); - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperimentsByCreationTimeWithPagination_args(searchExperimentsByCreationTimeWithPagination_args other) { - __isset_bitfield = other.__isset_bitfield; - 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; - } - this.fromTime = other.fromTime; - this.toTime = other.toTime; - this.limit = other.limit; - this.offset = other.offset; - } - - public searchExperimentsByCreationTimeWithPagination_args deepCopy() { - return new searchExperimentsByCreationTimeWithPagination_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - this.userName = null; - setFromTimeIsSet(false); - this.fromTime = 0; - setToTimeIsSet(false); - this.toTime = 0; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public searchExperimentsByCreationTimeWithPagination_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 String getGatewayId() { - return this.gatewayId; - } - - public searchExperimentsByCreationTimeWithPagination_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperimentsByCreationTimeWithPagination_args setUserName(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 long getFromTime() { - return this.fromTime; - } - - public searchExperimentsByCreationTimeWithPagination_args setFromTime(long fromTime) { - this.fromTime = fromTime; - setFromTimeIsSet(true); - return this; - } - - public void unsetFromTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ - public boolean isSetFromTime() { - return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - public void setFromTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); - } - - public long getToTime() { - return this.toTime; - } - - public searchExperimentsByCreationTimeWithPagination_args setToTime(long toTime) { - this.toTime = toTime; - setToTimeIsSet(true); - return this; - } - - public void unsetToTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ - public boolean isSetToTime() { - return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - public void setToTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); - } - - public int getLimit() { - return this.limit; - } - - public searchExperimentsByCreationTimeWithPagination_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); - return this; - } - - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); - } - - public int getOffset() { - return this.offset; - } - - public searchExperimentsByCreationTimeWithPagination_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); - return this; - } - - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case FROM_TIME: - if (value == null) { - unsetFromTime(); - } else { - setFromTime((Long)value); - } - break; - - case TO_TIME: - if (value == null) { - unsetToTime(); - } else { - setToTime((Long)value); - } - break; - - case LIMIT: - if (value == null) { - unsetLimit(); - } else { - setLimit((Integer)value); - } - break; - - case OFFSET: - if (value == null) { - unsetOffset(); - } else { - setOffset((Integer)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case FROM_TIME: - return Long.valueOf(getFromTime()); - - case TO_TIME: - return Long.valueOf(getToTime()); - - case LIMIT: - return Integer.valueOf(getLimit()); - - case OFFSET: - return Integer.valueOf(getOffset()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case FROM_TIME: - return isSetFromTime(); - case TO_TIME: - return isSetToTime(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByCreationTimeWithPagination_args) - return this.equals((searchExperimentsByCreationTimeWithPagination_args)that); - return false; - } - - public boolean equals(searchExperimentsByCreationTimeWithPagination_args that) { - if (that == null) - return false; - - 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; - } - - boolean this_present_fromTime = true; - boolean that_present_fromTime = true; - if (this_present_fromTime || that_present_fromTime) { - if (!(this_present_fromTime && that_present_fromTime)) - return false; - if (this.fromTime != that.fromTime) - return false; - } - - boolean this_present_toTime = true; - boolean that_present_toTime = true; - if (this_present_toTime || that_present_toTime) { - if (!(this_present_toTime && that_present_toTime)) - return false; - if (this.toTime != that.toTime) - return false; - } - - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) - return false; - if (this.limit != that.limit) - return false; - } - - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) - return false; - if (this.offset != that.offset) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_fromTime = true; - list.add(present_fromTime); - if (present_fromTime) - list.add(fromTime); - - boolean present_toTime = true; - list.add(present_toTime); - if (present_toTime) - list.add(toTime); - - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByCreationTimeWithPagination_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFromTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetToTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTimeWithPagination_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; - if (!first) sb.append(", "); - sb.append("fromTime:"); - sb.append(this.fromTime); - first = false; - if (!first) sb.append(", "); - sb.append("toTime:"); - sb.append(this.toTime); - first = false; - if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); - first = false; - if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); - 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()); - } - // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperimentsByCreationTimeWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTimeWithPagination_argsStandardScheme getScheme() { - return new searchExperimentsByCreationTimeWithPagination_argsStandardScheme(); - } - } - - private static class searchExperimentsByCreationTimeWithPagination_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTimeWithPagination_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; - case 4: // FROM_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // TO_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(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 - if (!struct.isSetFromTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetToTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperimentsByCreationTimeWithPagination_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.writeFieldBegin(FROM_TIME_FIELD_DESC); - oprot.writeI64(struct.fromTime); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(TO_TIME_FIELD_DESC); - oprot.writeI64(struct.toTime); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperimentsByCreationTimeWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTimeWithPagination_argsTupleScheme getScheme() { - return new searchExperimentsByCreationTimeWithPagination_argsTupleScheme(); - } - } - - private static class searchExperimentsByCreationTimeWithPagination_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI64(struct.fromTime); - oprot.writeI64(struct.toTime); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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); - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); - } - } - - } - - public static class searchExperimentsByCreationTimeWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperimentsByCreationTimeWithPagination_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperimentsByCreationTimeWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperimentsByCreationTimeWithPagination_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperimentsByCreationTimeWithPagination_result.class, metaDataMap); - } - - public searchExperimentsByCreationTimeWithPagination_result() { - } - - public searchExperimentsByCreationTimeWithPagination_result( - List 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 other. - */ - public searchExperimentsByCreationTimeWithPagination_result(searchExperimentsByCreationTimeWithPagination_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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 searchExperimentsByCreationTimeWithPagination_result deepCopy() { - return new searchExperimentsByCreationTimeWithPagination_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 getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperimentsByCreationTimeWithPagination_result setSuccess(List 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 searchExperimentsByCreationTimeWithPagination_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 searchExperimentsByCreationTimeWithPagination_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 searchExperimentsByCreationTimeWithPagination_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 searchExperimentsByCreationTimeWithPagination_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 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 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 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 IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperimentsByCreationTimeWithPagination_result) - return this.equals((searchExperimentsByCreationTimeWithPagination_result)that); - return false; - } - - public boolean equals(searchExperimentsByCreationTimeWithPagination_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperimentsByCreationTimeWithPagination_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperimentsByCreationTimeWithPagination_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, 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 searchExperimentsByCreationTimeWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTimeWithPagination_resultStandardScheme getScheme() { - return new searchExperimentsByCreationTimeWithPagination_resultStandardScheme(); - } - } - - private static class searchExperimentsByCreationTimeWithPagination_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperimentsByCreationTimeWithPagination_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.LIST) { - { - org.apache.thrift.protocol.TList _list138 = iprot.readListBegin(); - struct.success = new ArrayList(_list138.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem139; - for (int _i140 = 0; _i140 < _list138.size; ++_i140) - { - _elem139 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem139.read(iprot); - struct.success.add(_elem139); - } - iprot.readListEnd(); - } - 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, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter141 : struct.success) - { - _iter141.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperimentsByCreationTimeWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public searchExperimentsByCreationTimeWithPagination_resultTupleScheme getScheme() { - return new searchExperimentsByCreationTimeWithPagination_resultTupleScheme(); - } - } - - private static class searchExperimentsByCreationTimeWithPagination_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter142 : struct.success) - { - _iter142.write(oprot); - } - } - } - 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, searchExperimentsByCreationTimeWithPagination_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list143.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem144; - for (int _i145 = 0; _i145 < _list143.size; ++_i145) - { - _elem144 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem144.read(iprot); - struct.success.add(_elem144); - } - } - 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); - } - } - } - - } - - public static class searchExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperiments_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.protocol.TField FILTERS_FIELD_DESC = new org.apache.thrift.protocol.TField("filters", org.apache.thrift.protocol.TType.MAP, (short)4); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)5); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)6); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperiments_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperiments_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public String userName; // required - public Map filters; // required - public int limit; // required - public int offset; // 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"), - FILTERS((short)4, "filters"), - LIMIT((short)5, "limit"), - OFFSET((short)6, "offset"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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; - case 4: // FILTERS - return FILTERS; - case 5: // LIMIT - return LIMIT; - case 6: // OFFSET - return OFFSET; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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))); - tmpMap.put(_Fields.FILTERS, new org.apache.thrift.meta_data.FieldMetaData("filters", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, org.apache.airavata.model.experiment.ExperimentSearchFields.class), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperiments_args.class, metaDataMap); - } - - public searchExperiments_args() { - } - - public searchExperiments_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - String userName, - Map filters, - int limit, - int offset) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.userName = userName; - this.filters = filters; - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public searchExperiments_args(searchExperiments_args other) { - __isset_bitfield = other.__isset_bitfield; - 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; - } - if (other.isSetFilters()) { - Map __this__filters = new HashMap(other.filters.size()); - for (Map.Entry other_element : other.filters.entrySet()) { - - org.apache.airavata.model.experiment.ExperimentSearchFields other_element_key = other_element.getKey(); - String other_element_value = other_element.getValue(); - - org.apache.airavata.model.experiment.ExperimentSearchFields __this__filters_copy_key = other_element_key; - - String __this__filters_copy_value = other_element_value; - - __this__filters.put(__this__filters_copy_key, __this__filters_copy_value); - } - this.filters = __this__filters; - } - this.limit = other.limit; - this.offset = other.offset; - } - - public searchExperiments_args deepCopy() { - return new searchExperiments_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - this.userName = null; - this.filters = null; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public searchExperiments_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 String getGatewayId() { - return this.gatewayId; - } - - public searchExperiments_args setGatewayId(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 String getUserName() { - return this.userName; - } - - public searchExperiments_args setUserName(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 int getFiltersSize() { - return (this.filters == null) ? 0 : this.filters.size(); - } - - public void putToFilters(org.apache.airavata.model.experiment.ExperimentSearchFields key, String val) { - if (this.filters == null) { - this.filters = new HashMap(); - } - this.filters.put(key, val); - } - - public Map getFilters() { - return this.filters; - } - - public searchExperiments_args setFilters(Map filters) { - this.filters = filters; - return this; - } - - public void unsetFilters() { - this.filters = null; - } - - /** Returns true if field filters is set (has been assigned a value) and false otherwise */ - public boolean isSetFilters() { - return this.filters != null; - } - - public void setFiltersIsSet(boolean value) { - if (!value) { - this.filters = null; - } - } - - public int getLimit() { - return this.limit; - } - - public searchExperiments_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); - return this; - } - - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); - } - - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); - } - - public int getOffset() { - return this.offset; - } - - public searchExperiments_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); - return this; - } - - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); - } - - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUserName(); - } else { - setUserName((String)value); - } - break; - - case FILTERS: - if (value == null) { - unsetFilters(); - } else { - setFilters((Map)value); - } - break; - - case LIMIT: - if (value == null) { - unsetLimit(); - } else { - setLimit((Integer)value); - } - break; - - case OFFSET: - if (value == null) { - unsetOffset(); - } else { - setOffset((Integer)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case USER_NAME: - return getUserName(); - - case FILTERS: - return getFilters(); - - case LIMIT: - return Integer.valueOf(getLimit()); - - case OFFSET: - return Integer.valueOf(getOffset()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); - case FILTERS: - return isSetFilters(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperiments_args) - return this.equals((searchExperiments_args)that); - return false; - } - - public boolean equals(searchExperiments_args that) { - if (that == null) - return false; - - 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; - } - - boolean this_present_filters = true && this.isSetFilters(); - boolean that_present_filters = true && that.isSetFilters(); - if (this_present_filters || that_present_filters) { - if (!(this_present_filters && that_present_filters)) - return false; - if (!this.filters.equals(that.filters)) - return false; - } - - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) - return false; - if (this.limit != that.limit) - return false; - } - - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) - return false; - if (this.offset != that.offset) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); - - boolean present_filters = true && (isSetFilters()); - list.add(present_filters); - if (present_filters) - list.add(filters); - - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); - - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperiments_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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; - } - } - lastComparison = Boolean.valueOf(isSetFilters()).compareTo(other.isSetFilters()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filters, other.filters); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperiments_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; - if (!first) sb.append(", "); - sb.append("filters:"); - if (this.filters == null) { - sb.append("null"); - } else { - sb.append(this.filters); - } - first = false; - if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); - first = false; - if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); - 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()); - } - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. - // 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, 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 searchExperiments_argsStandardSchemeFactory implements SchemeFactory { - public searchExperiments_argsStandardScheme getScheme() { - return new searchExperiments_argsStandardScheme(); - } - } - - private static class searchExperiments_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperiments_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; - case 4: // FILTERS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map146 = iprot.readMapBegin(); - struct.filters = new HashMap(2*_map146.size); - org.apache.airavata.model.experiment.ExperimentSearchFields _key147; - String _val148; - for (int _i149 = 0; _i149 < _map146.size; ++_i149) - { - _key147 = org.apache.airavata.model.experiment.ExperimentSearchFields.findByValue(iprot.readI32()); - _val148 = iprot.readString(); - struct.filters.put(_key147, _val148); - } - iprot.readMapEnd(); - } - struct.setFiltersIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(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 - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperiments_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(); - } - if (struct.filters != null) { - oprot.writeFieldBegin(FILTERS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.filters.size())); - for (Map.Entry _iter150 : struct.filters.entrySet()) - { - oprot.writeI32(_iter150.getKey().getValue()); - oprot.writeString(_iter150.getValue()); - } - oprot.writeMapEnd(); - } - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class searchExperiments_argsTupleSchemeFactory implements SchemeFactory { - public searchExperiments_argsTupleScheme getScheme() { - return new searchExperiments_argsTupleScheme(); - } - } - - private static class searchExperiments_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperiments_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); - BitSet optionals = new BitSet(); - if (struct.isSetFilters()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetFilters()) { - { - oprot.writeI32(struct.filters.size()); - for (Map.Entry _iter151 : struct.filters.entrySet()) - { - oprot.writeI32(_iter151.getKey().getValue()); - oprot.writeString(_iter151.getValue()); - } - } - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, searchExperiments_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map152 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filters = new HashMap(2*_map152.size); - org.apache.airavata.model.experiment.ExperimentSearchFields _key153; - String _val154; - for (int _i155 = 0; _i155 < _map152.size; ++_i155) - { - _key153 = org.apache.airavata.model.experiment.ExperimentSearchFields.findByValue(iprot.readI32()); - _val154 = iprot.readString(); - struct.filters.put(_key153, _val154); - } - } - struct.setFiltersIsSet(true); - } - } - } - - } - - public static class searchExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperiments_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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new searchExperiments_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new searchExperiments_resultTupleSchemeFactory()); - } - - public List 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperiments_result.class, metaDataMap); - } - - public searchExperiments_result() { - } - - public searchExperiments_result( - List 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 other. - */ - public searchExperiments_result(searchExperiments_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); - } - 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 searchExperiments_result deepCopy() { - return new searchExperiments_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 getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public searchExperiments_result setSuccess(List 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 searchExperiments_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 searchExperiments_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 searchExperiments_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 searchExperiments_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, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)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 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 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 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 IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof searchExperiments_result) - return this.equals((searchExperiments_result)that); - return false; - } - - public boolean equals(searchExperiments_result that) { - if (that == null) - return false; - - 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() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); - - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); - - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); - - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); - - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); - - return list.hashCode(); - } - - @Override - public int compareTo(searchExperiments_result other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = 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 = 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 = 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("searchExperiments_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, 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 searchExperiments_resultStandardSchemeFactory implements SchemeFactory { - public searchExperiments_resultStandardScheme getScheme() { - return new searchExperiments_resultStandardScheme(); - } - } - - private static class searchExperiments_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperiments_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.LIST) { - { - org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); - struct.success = new ArrayList(_list156.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) - { - _elem157 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem157.read(iprot); - struct.success.add(_elem157); - } - iprot.readListEnd(); - } - 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, searchExperiments_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter159 : struct.success) - { - _iter159.write(oprot); - } - oprot.writeListEnd(); - } - 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 searchExperiments_resultTupleSchemeFactory implements SchemeFactory { - public searchExperiments_resultTupleScheme getScheme() { - return new searchExperiments_resultTupleScheme(); - } - } - - private static class searchExperiments_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, searchExperiments_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter160 : struct.success) - { - _iter160.write(oprot); - } - } - } - 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, searchExperiments_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list161.size); - org.apache.airavata.model.experiment.ExperimentSummaryModel _elem162; - for (int _i163 = 0; _i163 < _list161.size; ++_i163) - { - _elem162 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); - _elem162.read(iprot); - struct.success.add(_elem162); - } - } - 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); - } - } - } - - } - - public static class getExperimentStatistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentStatistics_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 FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); - private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getExperimentStatistics_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getExperimentStatistics_argsTupleSchemeFactory()); - } - - public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String gatewayId; // required - public long fromTime; // required - public long toTime; // 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"), - FROM_TIME((short)3, "fromTime"), - TO_TIME((short)4, "toTime"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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: // FROM_TIME - return FROM_TIME; - case 4: // TO_TIME - return TO_TIME; - 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - private static final int __FROMTIME_ISSET_ID = 0; - private static final int __TOTIME_ISSET_ID = 1; - private byte __isset_bitfield = 0; - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentStatistics_args.class, metaDataMap); - } - - public getExperimentStatistics_args() { - } - - public getExperimentStatistics_args( - org.apache.airavata.model.security.AuthzToken authzToken, - String gatewayId, - long fromTime, - long toTime) - { - this(); - this.authzToken = authzToken; - this.gatewayId = gatewayId; - this.fromTime = fromTime; - setFromTimeIsSet(true); - this.toTime = toTime; - setToTimeIsSet(true); - } - - /** - * Performs a deep copy on other. - */ - public getExperimentStatistics_args(getExperimentStatistics_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetAuthzToken()) { - this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); - } - if (other.isSetGatewayId()) { - this.gatewayId = other.gatewayId; - } - this.fromTime = other.fromTime; - this.toTime = other.toTime; - } - - public getExperimentStatistics_args deepCopy() { - return new getExperimentStatistics_args(this); - } - - @Override - public void clear() { - this.authzToken = null; - this.gatewayId = null; - setFromTimeIsSet(false); - this.fromTime = 0; - setToTimeIsSet(false); - this.toTime = 0; - } - - public org.apache.airavata.model.security.AuthzToken getAuthzToken() { - return this.authzToken; - } - - public getExperimentStatistics_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 String getGatewayId() { - return this.gatewayId; - } - - public getExperimentStatistics_args setGatewayId(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 long getFromTime() { - return this.fromTime; - } - - public getExperimentStatistics_args setFromTime(long fromTime) { - this.fromTime = fromTime; - setFromTimeIsSet(true); - return this; - } - - public void unsetFromTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ - public boolean isSetFromTime() { - return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); - } - - public void setFromTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); - } - - public long getToTime() { - return this.toTime; - } - - public getExperimentStatistics_args setToTime(long toTime) { - this.toTime = toTime; - setToTimeIsSet(true); - return this; - } - - public void unsetToTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ - public boolean isSetToTime() { - return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); - } - - public void setToTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); - } - - public void setFieldValue(_Fields field, 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((String)value); - } - break; - - case FROM_TIME: - if (value == null) { - unsetFromTime(); - } else { - setFromTime((Long)value); - } - break; - - case TO_TIME: - if (value == null) { - unsetToTime(); - } else { - setToTime((Long)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case AUTHZ_TOKEN: - return getAuthzToken(); - - case GATEWAY_ID: - return getGatewayId(); - - case FROM_TIME: - return Long.valueOf(getFromTime()); - - case TO_TIME: - return Long.valueOf(getToTime()); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case AUTHZ_TOKEN: - return isSetAuthzToken(); - case GATEWAY_ID: - return isSetGatewayId(); - case FROM_TIME: - return isSetFromTime(); - case TO_TIME: - return isSetToTime(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getExperimentStatistics_args) - return this.equals((getExperimentStatistics_args)that); - return false; - } - - public boolean equals(getExperimentStatistics_args that) { - if (that == null) - return false; - - 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_fromTime = true; - boolean that_present_fromTime = true; - if (this_present_fromTime || that_present_fromTime) { - if (!(this_present_fromTime && that_present_fromTime)) - return false; - if (this.fromTime != that.fromTime) - return false; - } - - boolean this_present_toTime = true; - boolean that_present_toTime = true; - if (this_present_toTime || that_present_toTime) { - if (!(this_present_toTime && that_present_toTime)) - return false; - if (this.toTime != that.toTime) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_authzToken = true && (isSetAuthzToken()); - list.add(present_authzToken); - if (present_authzToken) - list.add(authzToken); - - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); - - boolean present_fromTime = true; - list.add(present_fromTime); - if (present_fromTime) - list.add(fromTime); - - boolean present_toTime = true; - list.add(present_toTime); - if (present_toTime) - list.add(toTime); - - return list.hashCode(); - } - - @Override - public int compareTo(getExperimentStatistics_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = 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 = 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 = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFromTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetToTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); - 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getExperimentStatistics_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("fromTime:"); - sb.append(this.fromTime); - first = false; - if (!first) sb.append(", "); - sb.append("toTime:"); - sb.append(this.toTime); - 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()); - } - // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. - // 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, 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 getExperimentStatistics_argsStandardSchemeFactory implements SchemeFactory { - public getExperimentStatistics_argsStandardScheme getScheme() { - return new getExperimentStatistics_argsStandardScheme(); - } - } - - private static class getExperimentStatistics_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentStatistics_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: // FROM_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // TO_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I64) { - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(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 - if (!struct.isSetFromTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); - } - if (!struct.isSetToTime()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); - } - struct.validate(); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentStatistics_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.writeFieldBegin(FROM_TIME_FIELD_DESC); - oprot.writeI64(struct.fromTime); - oprot.writeFieldEnd(); - oprot.writeFieldBegin(TO_TIME_FIELD_DESC); - oprot.writeI64(struct.toTime); - oprot.writeFieldEnd(); - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class getExperimentStatistics_argsTupleSchemeFactory implements SchemeFactory { - public getExperimentStatistics_argsTupleScheme getScheme() { - return new getExperimentStatistics_argsTupleScheme(); - } - } - - private static class getExperimentStatistics_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - struct.authzToken.write(oprot); - oprot.writeString(struct.gatewayId); - oprot.writeI64(struct.fromTime); - oprot.writeI64(struct.toTime); - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (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.fromTime = iprot.readI64(); - struct.setFromTimeIsSet(true); - struct.toTime = iprot.readI64(); - struct.setToTimeIsSet(true); - } - } - - } - - public static class getExperimentStatistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentStatistics_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getExperimentStatistics_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getExperimentStatistics_resultTupleSchemeFactory()); - } - - public org.apache.airavata.model.experiment.ExperimentStatistics 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 Map byName = new HashMap(); - - static { - for (_Fields field : 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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentStatistics.class))); - tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentStatistics_result.class, metaDataMap); - } - - public getExperimentStatistics_result() { - } - - public getExperimentStatistics_result( - org.apache.airavata.model.experiment.ExperimentStatistics 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 other. - */ - public getExperimentStatistics_result(getExperimentStatistics_result other) { - if (other.isSetSuccess()) { - this.success = new org.apache.airavata.model.experiment.ExperimentStatistics(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 getExperimentStatistics_result deepCopy() { - return new getExperimentStatistics_result(this); - } - - @Override - public void clear() { - this.success = null; - this.ire = null; - this.ace = null; - this.ase = null; - this.ae = null; - } - - public org.apache.airavata.model.experiment.ExperimentStatistics getSuccess() { - return this.success; - } - - public getExperimentStatistics_result setSuccess(org.apache.airavata.model.experiment.ExperimentStatistics success) { - this.success = success; + public searchExperiments_args setUserName(String userName) { + this.userName = userName; return this; } - public void unsetSuccess() { - this.success = null; + public void unsetUserName() { + this.userName = null; } - /** Returns true if field success is set (has been assigned a value) and false otherwise */ - public boolean isSetSuccess() { - return this.success != 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 setSuccessIsSet(boolean value) { + public void setUserNameIsSet(boolean value) { if (!value) { - this.success = null; + this.userName = null; } } - public org.apache.airavata.model.error.InvalidRequestException getIre() { - return this.ire; - } - - public getExperimentStatistics_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 int getFiltersSize() { + return (this.filters == null) ? 0 : this.filters.size(); } - public void setIreIsSet(boolean value) { - if (!value) { - this.ire = null; + public void putToFilters(org.apache.airavata.model.experiment.ExperimentSearchFields key, String val) { + if (this.filters == null) { + this.filters = new HashMap(); } + this.filters.put(key, val); } - public org.apache.airavata.model.error.AiravataClientException getAce() { - return this.ace; + public Map getFilters() { + return this.filters; } - public getExperimentStatistics_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { - this.ace = ace; + public searchExperiments_args setFilters(Map filters) { + this.filters = filters; return this; } - public void unsetAce() { - this.ace = null; + public void unsetFilters() { + this.filters = null; } - /** Returns true if field ace is set (has been assigned a value) and false otherwise */ - public boolean isSetAce() { - return this.ace != null; + /** Returns true if field filters is set (has been assigned a value) and false otherwise */ + public boolean isSetFilters() { + return this.filters != null; } - public void setAceIsSet(boolean value) { + public void setFiltersIsSet(boolean value) { if (!value) { - this.ace = null; + this.filters = null; } } - public org.apache.airavata.model.error.AiravataSystemException getAse() { - return this.ase; + public int getLimit() { + return this.limit; } - public getExperimentStatistics_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { - this.ase = ase; + public searchExperiments_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); return this; } - public void unsetAse() { - this.ase = null; + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); } - /** Returns true if field ase is set (has been assigned a value) and false otherwise */ - public boolean isSetAse() { - return this.ase != null; + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); } - public void setAseIsSet(boolean value) { - if (!value) { - this.ase = null; - } + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); } - public org.apache.airavata.model.error.AuthorizationException getAe() { - return this.ae; + public int getOffset() { + return this.offset; } - public getExperimentStatistics_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { - this.ae = ae; + public searchExperiments_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); return this; } - public void unsetAe() { - this.ae = null; + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); } - /** Returns true if field ae is set (has been assigned a value) and false otherwise */ - public boolean isSetAe() { - return this.ae != null; + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); } - public void setAeIsSet(boolean value) { - if (!value) { - this.ae = null; - } + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: + case AUTHZ_TOKEN: if (value == null) { - unsetSuccess(); + unsetAuthzToken(); } else { - setSuccess((org.apache.airavata.model.experiment.ExperimentStatistics)value); + setAuthzToken((org.apache.airavata.model.security.AuthzToken)value); } break; - case IRE: + case GATEWAY_ID: if (value == null) { - unsetIre(); + unsetGatewayId(); } else { - setIre((org.apache.airavata.model.error.InvalidRequestException)value); + setGatewayId((String)value); } break; - case ACE: + case USER_NAME: if (value == null) { - unsetAce(); + unsetUserName(); } else { - setAce((org.apache.airavata.model.error.AiravataClientException)value); + setUserName((String)value); } break; - case ASE: + case FILTERS: if (value == null) { - unsetAse(); + unsetFilters(); } else { - setAse((org.apache.airavata.model.error.AiravataSystemException)value); + setFilters((Map)value); } break; - case AE: + case LIMIT: if (value == null) { - unsetAe(); + unsetLimit(); } else { - setAe((org.apache.airavata.model.error.AuthorizationException)value); + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -68886,20 +54307,23 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); + case AUTHZ_TOKEN: + return getAuthzToken(); - case IRE: - return getIre(); + case GATEWAY_ID: + return getGatewayId(); - case ACE: - return getAce(); + case USER_NAME: + return getUserName(); - case ASE: - return getAse(); + case FILTERS: + return getFilters(); - case AE: - return getAe(); + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -68912,16 +54336,18 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); - case IRE: - return isSetIre(); - case ACE: - return isSetAce(); - case ASE: - return isSetAse(); - case AE: - return isSetAe(); + case AUTHZ_TOKEN: + return isSetAuthzToken(); + case GATEWAY_ID: + return isSetGatewayId(); + case USER_NAME: + return isSetUserName(); + case FILTERS: + return isSetFilters(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -68930,57 +54356,66 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getExperimentStatistics_result) - return this.equals((getExperimentStatistics_result)that); + if (that instanceof searchExperiments_args) + return this.equals((searchExperiments_args)that); return false; } - public boolean equals(getExperimentStatistics_result that) { + public boolean equals(searchExperiments_args that) { if (that == null) return false; - 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)) + 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.success.equals(that.success)) + if (!this.authzToken.equals(that.authzToken)) 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)) + 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.ire.equals(that.ire)) + if (!this.gatewayId.equals(that.gatewayId)) 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)) + 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.ace.equals(that.ace)) + if (!this.userName.equals(that.userName)) 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)) + boolean this_present_filters = true && this.isSetFilters(); + boolean that_present_filters = true && that.isSetFilters(); + if (this_present_filters || that_present_filters) { + if (!(this_present_filters && that_present_filters)) return false; - if (!this.ase.equals(that.ase)) + if (!this.filters.equals(that.filters)) 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)) + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) return false; - if (!this.ae.equals(that.ae)) + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -68991,586 +54426,103 @@ public boolean equals(getExperimentStatistics_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); - boolean present_ire = true && (isSetIre()); - list.add(present_ire); - if (present_ire) - list.add(ire); + boolean present_gatewayId = true && (isSetGatewayId()); + list.add(present_gatewayId); + if (present_gatewayId) + list.add(gatewayId); - boolean present_ace = true && (isSetAce()); - list.add(present_ace); - if (present_ace) - list.add(ace); + boolean present_userName = true && (isSetUserName()); + list.add(present_userName); + if (present_userName) + list.add(userName); - boolean present_ase = true && (isSetAse()); - list.add(present_ase); - if (present_ase) - list.add(ase); + boolean present_filters = true && (isSetFilters()); + list.add(present_filters); + if (present_filters) + list.add(filters); - boolean present_ae = true && (isSetAe()); - list.add(present_ae); - if (present_ae) - list.add(ae); + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); return list.hashCode(); } @Override - public int compareTo(getExperimentStatistics_result other) { + public int compareTo(searchExperiments_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetAuthzToken()).compareTo(other.isSetAuthzToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetAuthzToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzToken, other.authzToken); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIre()).compareTo(other.isSetIre()); + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; } - if (isSetIre()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ire, other.ire); + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAce()).compareTo(other.isSetAce()); + lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); if (lastComparison != 0) { return lastComparison; } - if (isSetAce()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ace, other.ace); + if (isSetUserName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAse()).compareTo(other.isSetAse()); + lastComparison = Boolean.valueOf(isSetFilters()).compareTo(other.isSetFilters()); if (lastComparison != 0) { return lastComparison; } - if (isSetAse()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ase, other.ase); + if (isSetFilters()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filters, other.filters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAe()).compareTo(other.isSetAe()); + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); if (lastComparison != 0) { return lastComparison; } - if (isSetAe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ae, other.ae); + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); 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 { - schemes.get(iprot.getScheme()).getScheme().read(iprot, this); - } - - public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { - schemes.get(oprot.getScheme()).getScheme().write(oprot, this); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder("getExperimentStatistics_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 - if (success != null) { - success.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, 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 getExperimentStatistics_resultStandardSchemeFactory implements SchemeFactory { - public getExperimentStatistics_resultStandardScheme getScheme() { - return new getExperimentStatistics_resultStandardScheme(); - } - } - - private static class getExperimentStatistics_resultStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentStatistics_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.STRUCT) { - struct.success = new org.apache.airavata.model.experiment.ExperimentStatistics(); - struct.success.read(iprot); - 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, getExperimentStatistics_result struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - 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 getExperimentStatistics_resultTupleSchemeFactory implements SchemeFactory { - public getExperimentStatistics_resultTupleScheme getScheme() { - return new getExperimentStatistics_resultTupleScheme(); - } - } - - private static class getExperimentStatistics_resultTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_result struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new 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()) { - struct.success.write(oprot); - } - 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, getExperimentStatistics_result struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); - if (incoming.get(0)) { - struct.success = new org.apache.airavata.model.experiment.ExperimentStatistics(); - struct.success.read(iprot); - 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); - } - } - } - - } - - public static class getAllExperimentsInProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_args"); - - private static final org.apache.thrift.protocol.TField PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getAllExperimentsInProject_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProject_argsTupleSchemeFactory()); - } - - public String projectId; // 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 { - PROJECT_ID((short)1, "projectId"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : 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: // PROJECT_ID - return PROJECT_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 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(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_args.class, metaDataMap); - } - - public getAllExperimentsInProject_args() { - } - - public getAllExperimentsInProject_args( - String projectId) - { - this(); - this.projectId = projectId; - } - - /** - * Performs a deep copy on other. - */ - public getAllExperimentsInProject_args(getAllExperimentsInProject_args other) { - if (other.isSetProjectId()) { - this.projectId = other.projectId; - } - } - - public getAllExperimentsInProject_args deepCopy() { - return new getAllExperimentsInProject_args(this); - } - - @Override - public void clear() { - this.projectId = null; - } - - public String getProjectId() { - return this.projectId; - } - - public getAllExperimentsInProject_args setProjectId(String projectId) { - this.projectId = projectId; - return this; - } - - public void unsetProjectId() { - this.projectId = null; - } - - /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectId() { - return this.projectId != null; - } - - public void setProjectIdIsSet(boolean value) { - if (!value) { - this.projectId = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case PROJECT_ID: - if (value == null) { - unsetProjectId(); - } else { - setProjectId((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case PROJECT_ID: - return getProjectId(); - - } - throw new 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 IllegalArgumentException(); - } - - switch (field) { - case PROJECT_ID: - return isSetProjectId(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getAllExperimentsInProject_args) - return this.equals((getAllExperimentsInProject_args)that); - return false; - } - - public boolean equals(getAllExperimentsInProject_args that) { - if (that == null) - return false; - - boolean this_present_projectId = true && this.isSetProjectId(); - boolean that_present_projectId = true && that.isSetProjectId(); - if (this_present_projectId || that_present_projectId) { - if (!(this_present_projectId && that_present_projectId)) - return false; - if (!this.projectId.equals(that.projectId)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_projectId = true && (isSetProjectId()); - list.add(present_projectId); - if (present_projectId) - list.add(projectId); - - return list.hashCode(); - } - - @Override - public int compareTo(getAllExperimentsInProject_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -69592,26 +54544,69 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProject_args("); + StringBuilder sb = new StringBuilder("searchExperiments_args("); boolean first = true; - sb.append("projectId:"); - if (this.projectId == null) { + sb.append("authzToken:"); + if (this.authzToken == null) { sb.append("null"); } else { - sb.append(this.projectId); + 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; + if (!first) sb.append(", "); + sb.append("filters:"); + if (this.filters == null) { + sb.append("null"); + } else { + sb.append(this.filters); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields - if (projectId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); + 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()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -69624,21 +54619,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 getAllExperimentsInProject_argsStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_argsStandardScheme getScheme() { - return new getAllExperimentsInProject_argsStandardScheme(); + private static class searchExperiments_argsStandardSchemeFactory implements SchemeFactory { + public searchExperiments_argsStandardScheme getScheme() { + return new searchExperiments_argsStandardScheme(); } } - private static class getAllExperimentsInProject_argsStandardScheme extends StandardScheme { + private static class searchExperiments_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperiments_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69648,10 +54645,63 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn break; } switch (schemeField.id) { - case 1: // PROJECT_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.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); + 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; + case 4: // FILTERS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map82 = iprot.readMapBegin(); + struct.filters = new HashMap(2*_map82.size); + org.apache.airavata.model.experiment.ExperimentSearchFields _key83; + String _val84; + for (int _i85 = 0; _i85 < _map82.size; ++_i85) + { + _key83 = org.apache.airavata.model.experiment.ExperimentSearchFields.findByValue(iprot.readI32()); + _val84 = iprot.readString(); + struct.filters.put(_key83, _val84); + } + iprot.readMapEnd(); + } + struct.setFiltersIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -69664,68 +54714,147 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperiments_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.projectId != null) { - oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); - oprot.writeString(struct.projectId); + 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(); + } + if (struct.filters != null) { + oprot.writeFieldBegin(FILTERS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, struct.filters.size())); + for (Map.Entry _iter86 : struct.filters.entrySet()) + { + oprot.writeI32(_iter86.getKey().getValue()); + oprot.writeString(_iter86.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllExperimentsInProject_argsTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_argsTupleScheme getScheme() { - return new getAllExperimentsInProject_argsTupleScheme(); + private static class searchExperiments_argsTupleSchemeFactory implements SchemeFactory { + public searchExperiments_argsTupleScheme getScheme() { + return new searchExperiments_argsTupleScheme(); } } - private static class getAllExperimentsInProject_argsTupleScheme extends TupleScheme { + private static class searchExperiments_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.projectId); + struct.authzToken.write(oprot); + oprot.writeString(struct.gatewayId); + oprot.writeString(struct.userName); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); + BitSet optionals = new BitSet(); + if (struct.isSetFilters()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetFilters()) { + { + oprot.writeI32(struct.filters.size()); + for (Map.Entry _iter87 : struct.filters.entrySet()) + { + oprot.writeI32(_iter87.getKey().getValue()); + oprot.writeString(_iter87.getValue()); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); + 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); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filters = new HashMap(2*_map88.size); + org.apache.airavata.model.experiment.ExperimentSearchFields _key89; + String _val90; + for (int _i91 = 0; _i91 < _map88.size; ++_i91) + { + _key89 = org.apache.airavata.model.experiment.ExperimentSearchFields.findByValue(iprot.readI32()); + _val90 = iprot.readString(); + struct.filters.put(_key89, _val90); + } + } + struct.setFiltersIsSet(true); + } } } } - public static class getAllExperimentsInProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProject_result"); + public static class searchExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchExperiments_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 PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllExperimentsInProject_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProject_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new searchExperiments_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new searchExperiments_resultTupleSchemeFactory()); } - public List success; // required + public List 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.ProjectNotFoundException pnfe; // 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 { @@ -69733,7 +54862,7 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IRE((short)1, "ire"), ACE((short)2, "ace"), ASE((short)3, "ase"), - PNFE((short)4, "pnfe"); + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -69756,8 +54885,8 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; - case 4: // PNFE - return PNFE; + case 4: // AE + return AE; default: return null; } @@ -69803,45 +54932,45 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentModel.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentSummaryModel.class)))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProject_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchExperiments_result.class, metaDataMap); } - public getAllExperimentsInProject_result() { + public searchExperiments_result() { } - public getAllExperimentsInProject_result( - List success, + public searchExperiments_result( + List 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.ProjectNotFoundException pnfe) + org.apache.airavata.model.error.AuthorizationException ae) { this(); this.success = success; this.ire = ire; this.ace = ace; this.ase = ase; - this.pnfe = pnfe; + this.ae = ae; } /** * Performs a deep copy on other. */ - public getAllExperimentsInProject_result(getAllExperimentsInProject_result other) { + public searchExperiments_result(searchExperiments_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentModel(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (org.apache.airavata.model.experiment.ExperimentSummaryModel other_element : other.success) { + __this__success.add(new org.apache.airavata.model.experiment.ExperimentSummaryModel(other_element)); } this.success = __this__success; } @@ -69854,13 +54983,13 @@ public getAllExperimentsInProject_result(getAllExperimentsInProject_result other if (other.isSetAse()) { this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); } - if (other.isSetPnfe()) { - this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); + if (other.isSetAe()) { + this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae); } } - public getAllExperimentsInProject_result deepCopy() { - return new getAllExperimentsInProject_result(this); + public searchExperiments_result deepCopy() { + return new searchExperiments_result(this); } @Override @@ -69869,29 +54998,29 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; - this.pnfe = null; + this.ae = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentModel elem) { + public void addToSuccess(org.apache.airavata.model.experiment.ExperimentSummaryModel elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public getAllExperimentsInProject_result setSuccess(List success) { + public searchExperiments_result setSuccess(List success) { this.success = success; return this; } @@ -69915,7 +55044,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllExperimentsInProject_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public searchExperiments_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -69939,7 +55068,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllExperimentsInProject_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public searchExperiments_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -69963,7 +55092,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllExperimentsInProject_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public searchExperiments_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -69983,27 +55112,27 @@ public void setAseIsSet(boolean value) { } } - public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { - return this.pnfe; + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; } - public getAllExperimentsInProject_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { - this.pnfe = pnfe; + public searchExperiments_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + this.ae = ae; return this; } - public void unsetPnfe() { - this.pnfe = null; + public void unsetAe() { + this.ae = null; } - /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ - public boolean isSetPnfe() { - return this.pnfe != 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 setPnfeIsSet(boolean value) { + public void setAeIsSet(boolean value) { if (!value) { - this.pnfe = null; + this.ae = null; } } @@ -70013,7 +55142,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -70041,11 +55170,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PNFE: + case AE: if (value == null) { - unsetPnfe(); + unsetAe(); } else { - setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); + setAe((org.apache.airavata.model.error.AuthorizationException)value); } break; @@ -70066,8 +55195,8 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); - case PNFE: - return getPnfe(); + case AE: + return getAe(); } throw new IllegalStateException(); @@ -70088,8 +55217,8 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); - case PNFE: - return isSetPnfe(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -70098,12 +55227,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllExperimentsInProject_result) - return this.equals((getAllExperimentsInProject_result)that); + if (that instanceof searchExperiments_result) + return this.equals((searchExperiments_result)that); return false; } - public boolean equals(getAllExperimentsInProject_result that) { + public boolean equals(searchExperiments_result that) { if (that == null) return false; @@ -70143,12 +55272,12 @@ public boolean equals(getAllExperimentsInProject_result that) { return false; } - boolean this_present_pnfe = true && this.isSetPnfe(); - boolean that_present_pnfe = true && that.isSetPnfe(); - if (this_present_pnfe || that_present_pnfe) { - if (!(this_present_pnfe && that_present_pnfe)) + 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.pnfe.equals(that.pnfe)) + if (!this.ae.equals(that.ae)) return false; } @@ -70179,16 +55308,16 @@ public int hashCode() { if (present_ase) list.add(ase); - boolean present_pnfe = true && (isSetPnfe()); - list.add(present_pnfe); - if (present_pnfe) - list.add(pnfe); + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); return list.hashCode(); } @Override - public int compareTo(getAllExperimentsInProject_result other) { + public int compareTo(searchExperiments_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -70235,12 +55364,12 @@ public int compareTo(getAllExperimentsInProject_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); + lastComparison = Boolean.valueOf(isSetAe()).compareTo(other.isSetAe()); if (lastComparison != 0) { return lastComparison; } - if (isSetPnfe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); + if (isSetAe()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ae, other.ae); if (lastComparison != 0) { return lastComparison; } @@ -70262,7 +55391,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProject_result("); + StringBuilder sb = new StringBuilder("searchExperiments_result("); boolean first = true; sb.append("success:"); @@ -70297,11 +55426,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("pnfe:"); - if (this.pnfe == null) { + sb.append("ae:"); + if (this.ae == null) { sb.append("null"); } else { - sb.append(this.pnfe); + sb.append(this.ae); } first = false; sb.append(")"); @@ -70329,15 +55458,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllExperimentsInProject_resultStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_resultStandardScheme getScheme() { - return new getAllExperimentsInProject_resultStandardScheme(); + private static class searchExperiments_resultStandardSchemeFactory implements SchemeFactory { + public searchExperiments_resultStandardScheme getScheme() { + return new searchExperiments_resultStandardScheme(); } } - private static class getAllExperimentsInProject_resultStandardScheme extends StandardScheme { + private static class searchExperiments_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, searchExperiments_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -70350,14 +55479,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list164 = iprot.readListBegin(); - struct.success = new ArrayList(_list164.size); - org.apache.airavata.model.experiment.ExperimentModel _elem165; - for (int _i166 = 0; _i166 < _list164.size; ++_i166) + org.apache.thrift.protocol.TList _list92 = iprot.readListBegin(); + struct.success = new ArrayList(_list92.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem93; + for (int _i94 = 0; _i94 < _list92.size; ++_i94) { - _elem165 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem165.read(iprot); - struct.success.add(_elem165); + _elem93 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); + _elem93.read(iprot); + struct.success.add(_elem93); } iprot.readListEnd(); } @@ -70393,11 +55522,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PNFE + case 4: // AE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); + 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); } @@ -70413,7 +55542,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, searchExperiments_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -70421,9 +55550,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentModel _iter167 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter95 : struct.success) { - _iter167.write(oprot); + _iter95.write(oprot); } oprot.writeListEnd(); } @@ -70444,9 +55573,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI struct.ase.write(oprot); oprot.writeFieldEnd(); } - if (struct.pnfe != null) { - oprot.writeFieldBegin(PNFE_FIELD_DESC); - struct.pnfe.write(oprot); + if (struct.ae != null) { + oprot.writeFieldBegin(AE_FIELD_DESC); + struct.ae.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -70455,16 +55584,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI } - private static class getAllExperimentsInProject_resultTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProject_resultTupleScheme getScheme() { - return new getAllExperimentsInProject_resultTupleScheme(); + private static class searchExperiments_resultTupleSchemeFactory implements SchemeFactory { + public searchExperiments_resultTupleScheme getScheme() { + return new searchExperiments_resultTupleScheme(); } } - private static class getAllExperimentsInProject_resultTupleScheme extends TupleScheme { + private static class searchExperiments_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, searchExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -70479,16 +55608,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { optionals.set(3); } - if (struct.isSetPnfe()) { + if (struct.isSetAe()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel _iter168 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentSummaryModel _iter96 : struct.success) { - _iter168.write(oprot); + _iter96.write(oprot); } } } @@ -70501,25 +55630,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { struct.ase.write(oprot); } - if (struct.isSetPnfe()) { - struct.pnfe.write(oprot); + if (struct.isSetAe()) { + struct.ae.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProject_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, searchExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list169.size); - org.apache.airavata.model.experiment.ExperimentModel _elem170; - for (int _i171 = 0; _i171 < _list169.size; ++_i171) + org.apache.thrift.protocol.TList _list97 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list97.size); + org.apache.airavata.model.experiment.ExperimentSummaryModel _elem98; + for (int _i99 = 0; _i99 < _list97.size; ++_i99) { - _elem170 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem170.read(iprot); - struct.success.add(_elem170); + _elem98 = new org.apache.airavata.model.experiment.ExperimentSummaryModel(); + _elem98.read(iprot); + struct.success.add(_elem98); } } struct.setSuccessIsSet(true); @@ -70540,40 +55669,40 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInP struct.setAseIsSet(true); } if (incoming.get(4)) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); + struct.ae = new org.apache.airavata.model.error.AuthorizationException(); + struct.ae.read(iprot); + struct.setAeIsSet(true); } } } } - public static class getAllExperimentsInProjectWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProjectWithPagination_args"); + public static class getExperimentStatistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentStatistics_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 PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)3); - private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)4); + 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 FROM_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("fromTime", org.apache.thrift.protocol.TType.I64, (short)3); + private static final org.apache.thrift.protocol.TField TO_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("toTime", org.apache.thrift.protocol.TType.I64, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllExperimentsInProjectWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProjectWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getExperimentStatistics_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getExperimentStatistics_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required - public String projectId; // required - public int limit; // required - public int offset; // required + public String gatewayId; // required + public long fromTime; // required + public long toTime; // 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"), - PROJECT_ID((short)2, "projectId"), - LIMIT((short)3, "limit"), - OFFSET((short)4, "offset"); + GATEWAY_ID((short)2, "gatewayId"), + FROM_TIME((short)3, "fromTime"), + TO_TIME((short)4, "toTime"); private static final Map byName = new HashMap(); @@ -70590,12 +55719,12 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // AUTHZ_TOKEN return AUTHZ_TOKEN; - case 2: // PROJECT_ID - return PROJECT_ID; - case 3: // LIMIT - return LIMIT; - case 4: // OFFSET - return OFFSET; + case 2: // GATEWAY_ID + return GATEWAY_ID; + case 3: // FROM_TIME + return FROM_TIME; + case 4: // TO_TIME + return TO_TIME; default: return null; } @@ -70636,76 +55765,76 @@ public String getFieldName() { } // isset id assignments - private static final int __LIMIT_ISSET_ID = 0; - private static final int __OFFSET_ISSET_ID = 1; + private static final int __FROMTIME_ISSET_ID = 0; + private static final int __TOTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, + 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.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProjectWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentStatistics_args.class, metaDataMap); } - public getAllExperimentsInProjectWithPagination_args() { + public getExperimentStatistics_args() { } - public getAllExperimentsInProjectWithPagination_args( + public getExperimentStatistics_args( org.apache.airavata.model.security.AuthzToken authzToken, - String projectId, - int limit, - int offset) + String gatewayId, + long fromTime, + long toTime) { this(); this.authzToken = authzToken; - this.projectId = projectId; - this.limit = limit; - setLimitIsSet(true); - this.offset = offset; - setOffsetIsSet(true); + this.gatewayId = gatewayId; + this.fromTime = fromTime; + setFromTimeIsSet(true); + this.toTime = toTime; + setToTimeIsSet(true); } /** * Performs a deep copy on other. */ - public getAllExperimentsInProjectWithPagination_args(getAllExperimentsInProjectWithPagination_args other) { + public getExperimentStatistics_args(getExperimentStatistics_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); } - if (other.isSetProjectId()) { - this.projectId = other.projectId; + if (other.isSetGatewayId()) { + this.gatewayId = other.gatewayId; } - this.limit = other.limit; - this.offset = other.offset; + this.fromTime = other.fromTime; + this.toTime = other.toTime; } - public getAllExperimentsInProjectWithPagination_args deepCopy() { - return new getAllExperimentsInProjectWithPagination_args(this); + public getExperimentStatistics_args deepCopy() { + return new getExperimentStatistics_args(this); } @Override public void clear() { this.authzToken = null; - this.projectId = null; - setLimitIsSet(false); - this.limit = 0; - setOffsetIsSet(false); - this.offset = 0; + this.gatewayId = null; + setFromTimeIsSet(false); + this.fromTime = 0; + setToTimeIsSet(false); + this.toTime = 0; } public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public getAllExperimentsInProjectWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public getExperimentStatistics_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -70725,74 +55854,74 @@ public void setAuthzTokenIsSet(boolean value) { } } - public String getProjectId() { - return this.projectId; + public String getGatewayId() { + return this.gatewayId; } - public getAllExperimentsInProjectWithPagination_args setProjectId(String projectId) { - this.projectId = projectId; + public getExperimentStatistics_args setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; return this; } - public void unsetProjectId() { - this.projectId = null; + public void unsetGatewayId() { + this.gatewayId = null; } - /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ - public boolean isSetProjectId() { - return this.projectId != 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 setProjectIdIsSet(boolean value) { + public void setGatewayIdIsSet(boolean value) { if (!value) { - this.projectId = null; + this.gatewayId = null; } } - public int getLimit() { - return this.limit; + public long getFromTime() { + return this.fromTime; } - public getAllExperimentsInProjectWithPagination_args setLimit(int limit) { - this.limit = limit; - setLimitIsSet(true); + public getExperimentStatistics_args setFromTime(long fromTime) { + this.fromTime = fromTime; + setFromTimeIsSet(true); return this; } - public void unsetLimit() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + public void unsetFromTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __FROMTIME_ISSET_ID); } - /** Returns true if field limit is set (has been assigned a value) and false otherwise */ - public boolean isSetLimit() { - return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */ + public boolean isSetFromTime() { + return EncodingUtils.testBit(__isset_bitfield, __FROMTIME_ISSET_ID); } - public void setLimitIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + public void setFromTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __FROMTIME_ISSET_ID, value); } - public int getOffset() { - return this.offset; + public long getToTime() { + return this.toTime; } - public getAllExperimentsInProjectWithPagination_args setOffset(int offset) { - this.offset = offset; - setOffsetIsSet(true); + public getExperimentStatistics_args setToTime(long toTime) { + this.toTime = toTime; + setToTimeIsSet(true); return this; } - public void unsetOffset() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + public void unsetToTime() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TOTIME_ISSET_ID); } - /** Returns true if field offset is set (has been assigned a value) and false otherwise */ - public boolean isSetOffset() { - return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + /** Returns true if field toTime is set (has been assigned a value) and false otherwise */ + public boolean isSetToTime() { + return EncodingUtils.testBit(__isset_bitfield, __TOTIME_ISSET_ID); } - public void setOffsetIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + public void setToTimeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TOTIME_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -70805,27 +55934,27 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PROJECT_ID: + case GATEWAY_ID: if (value == null) { - unsetProjectId(); + unsetGatewayId(); } else { - setProjectId((String)value); + setGatewayId((String)value); } break; - case LIMIT: + case FROM_TIME: if (value == null) { - unsetLimit(); + unsetFromTime(); } else { - setLimit((Integer)value); + setFromTime((Long)value); } break; - case OFFSET: + case TO_TIME: if (value == null) { - unsetOffset(); + unsetToTime(); } else { - setOffset((Integer)value); + setToTime((Long)value); } break; @@ -70837,14 +55966,14 @@ public Object getFieldValue(_Fields field) { case AUTHZ_TOKEN: return getAuthzToken(); - case PROJECT_ID: - return getProjectId(); + case GATEWAY_ID: + return getGatewayId(); - case LIMIT: - return Integer.valueOf(getLimit()); + case FROM_TIME: + return Long.valueOf(getFromTime()); - case OFFSET: - return Integer.valueOf(getOffset()); + case TO_TIME: + return Long.valueOf(getToTime()); } throw new IllegalStateException(); @@ -70859,12 +55988,12 @@ public boolean isSet(_Fields field) { switch (field) { case AUTHZ_TOKEN: return isSetAuthzToken(); - case PROJECT_ID: - return isSetProjectId(); - case LIMIT: - return isSetLimit(); - case OFFSET: - return isSetOffset(); + case GATEWAY_ID: + return isSetGatewayId(); + case FROM_TIME: + return isSetFromTime(); + case TO_TIME: + return isSetToTime(); } throw new IllegalStateException(); } @@ -70873,12 +56002,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllExperimentsInProjectWithPagination_args) - return this.equals((getAllExperimentsInProjectWithPagination_args)that); + if (that instanceof getExperimentStatistics_args) + return this.equals((getExperimentStatistics_args)that); return false; } - public boolean equals(getAllExperimentsInProjectWithPagination_args that) { + public boolean equals(getExperimentStatistics_args that) { if (that == null) return false; @@ -70891,30 +56020,30 @@ public boolean equals(getAllExperimentsInProjectWithPagination_args that) { return false; } - boolean this_present_projectId = true && this.isSetProjectId(); - boolean that_present_projectId = true && that.isSetProjectId(); - if (this_present_projectId || that_present_projectId) { - if (!(this_present_projectId && that_present_projectId)) + 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.projectId.equals(that.projectId)) + if (!this.gatewayId.equals(that.gatewayId)) return false; } - boolean this_present_limit = true; - boolean that_present_limit = true; - if (this_present_limit || that_present_limit) { - if (!(this_present_limit && that_present_limit)) + boolean this_present_fromTime = true; + boolean that_present_fromTime = true; + if (this_present_fromTime || that_present_fromTime) { + if (!(this_present_fromTime && that_present_fromTime)) return false; - if (this.limit != that.limit) + if (this.fromTime != that.fromTime) return false; } - boolean this_present_offset = true; - boolean that_present_offset = true; - if (this_present_offset || that_present_offset) { - if (!(this_present_offset && that_present_offset)) + boolean this_present_toTime = true; + boolean that_present_toTime = true; + if (this_present_toTime || that_present_toTime) { + if (!(this_present_toTime && that_present_toTime)) return false; - if (this.offset != that.offset) + if (this.toTime != that.toTime) return false; } @@ -70930,26 +56059,26 @@ public int hashCode() { if (present_authzToken) list.add(authzToken); - boolean present_projectId = true && (isSetProjectId()); - list.add(present_projectId); - if (present_projectId) - list.add(projectId); + boolean present_gatewayId = true && (isSetGatewayId()); + list.add(present_gatewayId); + if (present_gatewayId) + list.add(gatewayId); - boolean present_limit = true; - list.add(present_limit); - if (present_limit) - list.add(limit); + boolean present_fromTime = true; + list.add(present_fromTime); + if (present_fromTime) + list.add(fromTime); - boolean present_offset = true; - list.add(present_offset); - if (present_offset) - list.add(offset); + boolean present_toTime = true; + list.add(present_toTime); + if (present_toTime) + list.add(toTime); return list.hashCode(); } @Override - public int compareTo(getAllExperimentsInProjectWithPagination_args other) { + public int compareTo(getExperimentStatistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -70966,32 +56095,32 @@ public int compareTo(getAllExperimentsInProjectWithPagination_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); + lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; } - if (isSetProjectId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (isSetGatewayId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(other.isSetFromTime()); if (lastComparison != 0) { return lastComparison; } - if (isSetLimit()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (isSetFromTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, other.fromTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + lastComparison = Boolean.valueOf(isSetToTime()).compareTo(other.isSetToTime()); if (lastComparison != 0) { return lastComparison; } - if (isSetOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); + if (isSetToTime()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, other.toTime); if (lastComparison != 0) { return lastComparison; } @@ -71013,7 +56142,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProjectWithPagination_args("); + StringBuilder sb = new StringBuilder("getExperimentStatistics_args("); boolean first = true; sb.append("authzToken:"); @@ -71024,20 +56153,20 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("projectId:"); - if (this.projectId == null) { + sb.append("gatewayId:"); + if (this.gatewayId == null) { sb.append("null"); } else { - sb.append(this.projectId); + sb.append(this.gatewayId); } first = false; if (!first) sb.append(", "); - sb.append("limit:"); - sb.append(this.limit); + sb.append("fromTime:"); + sb.append(this.fromTime); first = false; if (!first) sb.append(", "); - sb.append("offset:"); - sb.append(this.offset); + sb.append("toTime:"); + sb.append(this.toTime); first = false; sb.append(")"); return sb.toString(); @@ -71048,11 +56177,11 @@ public void validate() throws org.apache.thrift.TException { if (authzToken == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzToken' was not present! Struct: " + toString()); } - if (projectId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); + if (gatewayId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); } - // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. - // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'fromTime' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'toTime' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity if (authzToken != null) { authzToken.validate(); @@ -71077,15 +56206,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllExperimentsInProjectWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProjectWithPagination_argsStandardScheme getScheme() { - return new getAllExperimentsInProjectWithPagination_argsStandardScheme(); + private static class getExperimentStatistics_argsStandardSchemeFactory implements SchemeFactory { + public getExperimentStatistics_argsStandardScheme getScheme() { + return new getExperimentStatistics_argsStandardScheme(); } } - private static class getAllExperimentsInProjectWithPagination_argsStandardScheme extends StandardScheme { + private static class getExperimentStatistics_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71104,26 +56233,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PROJECT_ID + case 2: // GATEWAY_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // LIMIT - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); + case 3: // FROM_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // OFFSET - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); + case 4: // TO_TIME + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -71136,16 +56265,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method - if (!struct.isSetLimit()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + if (!struct.isSetFromTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'fromTime' was not found in serialized data! Struct: " + toString()); } - if (!struct.isSetOffset()) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + if (!struct.isSetToTime()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'toTime' was not found in serialized data! Struct: " + toString()); } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -71154,16 +56283,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI struct.authzToken.write(oprot); oprot.writeFieldEnd(); } - if (struct.projectId != null) { - oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); - oprot.writeString(struct.projectId); + if (struct.gatewayId != null) { + oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); + oprot.writeString(struct.gatewayId); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(LIMIT_FIELD_DESC); - oprot.writeI32(struct.limit); + oprot.writeFieldBegin(FROM_TIME_FIELD_DESC); + oprot.writeI64(struct.fromTime); oprot.writeFieldEnd(); - oprot.writeFieldBegin(OFFSET_FIELD_DESC); - oprot.writeI32(struct.offset); + oprot.writeFieldBegin(TO_TIME_FIELD_DESC); + oprot.writeI64(struct.toTime); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -71171,61 +56300,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI } - private static class getAllExperimentsInProjectWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProjectWithPagination_argsTupleScheme getScheme() { - return new getAllExperimentsInProjectWithPagination_argsTupleScheme(); + private static class getExperimentStatistics_argsTupleSchemeFactory implements SchemeFactory { + public getExperimentStatistics_argsTupleScheme getScheme() { + return new getExperimentStatistics_argsTupleScheme(); } } - private static class getAllExperimentsInProjectWithPagination_argsTupleScheme extends TupleScheme { + private static class getExperimentStatistics_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); - oprot.writeString(struct.projectId); - oprot.writeI32(struct.limit); - oprot.writeI32(struct.offset); + oprot.writeString(struct.gatewayId); + oprot.writeI64(struct.fromTime); + oprot.writeI64(struct.toTime); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); struct.setAuthzTokenIsSet(true); - struct.projectId = iprot.readString(); - struct.setProjectIdIsSet(true); - struct.limit = iprot.readI32(); - struct.setLimitIsSet(true); - struct.offset = iprot.readI32(); - struct.setOffsetIsSet(true); + struct.gatewayId = iprot.readString(); + struct.setGatewayIdIsSet(true); + struct.fromTime = iprot.readI64(); + struct.setFromTimeIsSet(true); + struct.toTime = iprot.readI64(); + struct.setToTimeIsSet(true); } } } - public static class getAllExperimentsInProjectWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllExperimentsInProjectWithPagination_result"); + public static class getExperimentStatistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentStatistics_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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (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 PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); - 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)5); + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllExperimentsInProjectWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllExperimentsInProjectWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getExperimentStatistics_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getExperimentStatistics_resultTupleSchemeFactory()); } - public List success; // required + public org.apache.airavata.model.experiment.ExperimentStatistics 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.ProjectNotFoundException pnfe; // 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. */ @@ -71234,8 +56361,7 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { IRE((short)1, "ire"), ACE((short)2, "ace"), ASE((short)3, "ase"), - PNFE((short)4, "pnfe"), - AE((short)5, "ae"); + AE((short)4, "ae"); private static final Map byName = new HashMap(); @@ -71258,9 +56384,7 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; - case 4: // PNFE - return PNFE; - case 5: // AE + case 4: // AE return AE; default: return null; @@ -71306,31 +56430,27 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentModel.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.airavata.model.experiment.ExperimentStatistics.class))); tmpMap.put(_Fields.IRE, new org.apache.thrift.meta_data.FieldMetaData("ire", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ACE, new org.apache.thrift.meta_data.FieldMetaData("ace", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllExperimentsInProjectWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentStatistics_result.class, metaDataMap); } - public getAllExperimentsInProjectWithPagination_result() { + public getExperimentStatistics_result() { } - public getAllExperimentsInProjectWithPagination_result( - List success, + public getExperimentStatistics_result( + org.apache.airavata.model.experiment.ExperimentStatistics 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.ProjectNotFoundException pnfe, org.apache.airavata.model.error.AuthorizationException ae) { this(); @@ -71338,20 +56458,15 @@ public getAllExperimentsInProjectWithPagination_result( this.ire = ire; this.ace = ace; this.ase = ase; - this.pnfe = pnfe; this.ae = ae; } /** * Performs a deep copy on other. */ - public getAllExperimentsInProjectWithPagination_result(getAllExperimentsInProjectWithPagination_result other) { + public getExperimentStatistics_result(getExperimentStatistics_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel other_element : other.success) { - __this__success.add(new org.apache.airavata.model.experiment.ExperimentModel(other_element)); - } - this.success = __this__success; + this.success = new org.apache.airavata.model.experiment.ExperimentStatistics(other.success); } if (other.isSetIre()) { this.ire = new org.apache.airavata.model.error.InvalidRequestException(other.ire); @@ -71362,16 +56477,13 @@ public getAllExperimentsInProjectWithPagination_result(getAllExperimentsInProjec if (other.isSetAse()) { this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); } - if (other.isSetPnfe()) { - this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); - } if (other.isSetAe()) { this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae); } } - public getAllExperimentsInProjectWithPagination_result deepCopy() { - return new getAllExperimentsInProjectWithPagination_result(this); + public getExperimentStatistics_result deepCopy() { + return new getExperimentStatistics_result(this); } @Override @@ -71380,30 +56492,14 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; - this.pnfe = null; this.ae = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(org.apache.airavata.model.experiment.ExperimentModel elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public org.apache.airavata.model.experiment.ExperimentStatistics getSuccess() { return this.success; } - public getAllExperimentsInProjectWithPagination_result setSuccess(List success) { + public getExperimentStatistics_result setSuccess(org.apache.airavata.model.experiment.ExperimentStatistics success) { this.success = success; return this; } @@ -71427,7 +56523,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllExperimentsInProjectWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getExperimentStatistics_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -71451,7 +56547,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllExperimentsInProjectWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getExperimentStatistics_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -71475,7 +56571,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllExperimentsInProjectWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getExperimentStatistics_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -71495,35 +56591,11 @@ public void setAseIsSet(boolean value) { } } - public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { - return this.pnfe; - } - - public getAllExperimentsInProjectWithPagination_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { - this.pnfe = pnfe; - return this; - } - - public void unsetPnfe() { - this.pnfe = null; - } - - /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ - public boolean isSetPnfe() { - return this.pnfe != null; - } - - public void setPnfeIsSet(boolean value) { - if (!value) { - this.pnfe = null; - } - } - public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public getAllExperimentsInProjectWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public getExperimentStatistics_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -71549,7 +56621,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((org.apache.airavata.model.experiment.ExperimentStatistics)value); } break; @@ -71577,14 +56649,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PNFE: - if (value == null) { - unsetPnfe(); - } else { - setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); - } - break; - case AE: if (value == null) { unsetAe(); @@ -71610,9 +56674,6 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); - case PNFE: - return getPnfe(); - case AE: return getAe(); @@ -71635,8 +56696,6 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); - case PNFE: - return isSetPnfe(); case AE: return isSetAe(); } @@ -71647,12 +56706,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllExperimentsInProjectWithPagination_result) - return this.equals((getAllExperimentsInProjectWithPagination_result)that); + if (that instanceof getExperimentStatistics_result) + return this.equals((getExperimentStatistics_result)that); return false; } - public boolean equals(getAllExperimentsInProjectWithPagination_result that) { + public boolean equals(getExperimentStatistics_result that) { if (that == null) return false; @@ -71692,15 +56751,6 @@ public boolean equals(getAllExperimentsInProjectWithPagination_result that) { return false; } - boolean this_present_pnfe = true && this.isSetPnfe(); - boolean that_present_pnfe = true && that.isSetPnfe(); - if (this_present_pnfe || that_present_pnfe) { - if (!(this_present_pnfe && that_present_pnfe)) - return false; - if (!this.pnfe.equals(that.pnfe)) - return false; - } - boolean this_present_ae = true && this.isSetAe(); boolean that_present_ae = true && that.isSetAe(); if (this_present_ae || that_present_ae) { @@ -71737,11 +56787,6 @@ public int hashCode() { if (present_ase) list.add(ase); - boolean present_pnfe = true && (isSetPnfe()); - list.add(present_pnfe); - if (present_pnfe) - list.add(pnfe); - boolean present_ae = true && (isSetAe()); list.add(present_ae); if (present_ae) @@ -71751,7 +56796,7 @@ public int hashCode() { } @Override - public int compareTo(getAllExperimentsInProjectWithPagination_result other) { + public int compareTo(getExperimentStatistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -71798,16 +56843,6 @@ public int compareTo(getAllExperimentsInProjectWithPagination_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPnfe()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetAe()).compareTo(other.isSetAe()); if (lastComparison != 0) { return lastComparison; @@ -71835,7 +56870,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllExperimentsInProjectWithPagination_result("); + StringBuilder sb = new StringBuilder("getExperimentStatistics_result("); boolean first = true; sb.append("success:"); @@ -71870,14 +56905,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("pnfe:"); - if (this.pnfe == null) { - sb.append("null"); - } else { - sb.append(this.pnfe); - } - first = false; - if (!first) sb.append(", "); sb.append("ae:"); if (this.ae == null) { sb.append("null"); @@ -71892,6 +56919,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -71910,15 +56940,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllExperimentsInProjectWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public getAllExperimentsInProjectWithPagination_resultStandardScheme getScheme() { - return new getAllExperimentsInProjectWithPagination_resultStandardScheme(); + private static class getExperimentStatistics_resultStandardSchemeFactory implements SchemeFactory { + public getExperimentStatistics_resultStandardScheme getScheme() { + return new getExperimentStatistics_resultStandardScheme(); } } - private static class getAllExperimentsInProjectWithPagination_resultStandardScheme extends StandardScheme { + private static class getExperimentStatistics_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentStatistics_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71929,19 +56959,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); - struct.success = new ArrayList(_list172.size); - org.apache.airavata.model.experiment.ExperimentModel _elem173; - for (int _i174 = 0; _i174 < _list172.size; ++_i174) - { - _elem173 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem173.read(iprot); - struct.success.add(_elem173); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new org.apache.airavata.model.experiment.ExperimentStatistics(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -71974,16 +56994,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PNFE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // AE + 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); @@ -72003,20 +57014,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllExperimentsIn struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentStatistics_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentModel _iter175 : struct.success) - { - _iter175.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.ire != null) { @@ -72034,11 +57038,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI struct.ase.write(oprot); oprot.writeFieldEnd(); } - if (struct.pnfe != null) { - oprot.writeFieldBegin(PNFE_FIELD_DESC); - struct.pnfe.write(oprot); - oprot.writeFieldEnd(); - } if (struct.ae != null) { oprot.writeFieldBegin(AE_FIELD_DESC); struct.ae.write(oprot); @@ -72050,16 +57049,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllExperimentsI } - private static class getAllExperimentsInProjectWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public getAllExperimentsInProjectWithPagination_resultTupleScheme getScheme() { - return new getAllExperimentsInProjectWithPagination_resultTupleScheme(); + private static class getExperimentStatistics_resultTupleSchemeFactory implements SchemeFactory { + public getExperimentStatistics_resultTupleScheme getScheme() { + return new getExperimentStatistics_resultTupleScheme(); } } - private static class getAllExperimentsInProjectWithPagination_resultTupleScheme extends TupleScheme { + private static class getExperimentStatistics_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -72074,21 +57073,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { optionals.set(3); } - if (struct.isSetPnfe()) { - optionals.set(4); - } if (struct.isSetAe()) { - optionals.set(5); + optionals.set(4); } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel _iter176 : struct.success) - { - _iter176.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetIre()) { struct.ire.write(oprot); @@ -72099,30 +57089,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsIn if (struct.isSetAse()) { struct.ase.write(oprot); } - if (struct.isSetPnfe()) { - struct.pnfe.write(oprot); - } if (struct.isSetAe()) { struct.ae.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInProjectWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentStatistics_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list177.size); - org.apache.airavata.model.experiment.ExperimentModel _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) - { - _elem178 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem178.read(iprot); - struct.success.add(_elem178); - } - } + struct.success = new org.apache.airavata.model.experiment.ExperimentStatistics(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -72141,11 +57119,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInP struct.setAseIsSet(true); } if (incoming.get(4)) { - struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); - struct.pnfe.read(iprot); - struct.setPnfeIsSet(true); - } - if (incoming.get(5)) { struct.ae = new org.apache.airavata.model.error.AuthorizationException(); struct.ae.read(iprot); struct.setAeIsSet(true); @@ -72155,25 +57128,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllExperimentsInP } - public static class getAllUserExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_args"); + public static class getExperimentsInProject_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentsInProject_args"); - 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)1); - 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)2); + 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 PROJECT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("projectId", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I32, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperiments_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperiments_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getExperimentsInProject_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getExperimentsInProject_argsTupleSchemeFactory()); } - public String gatewayId; // required - public String userName; // required + public org.apache.airavata.model.security.AuthzToken authzToken; // required + public String projectId; // required + public int limit; // required + public int offset; // 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"); + AUTHZ_TOKEN((short)1, "authzToken"), + PROJECT_ID((short)2, "projectId"), + LIMIT((short)3, "limit"), + OFFSET((short)4, "offset"); private static final Map byName = new HashMap(); @@ -72188,10 +57167,14 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID - return GATEWAY_ID; - case 2: // USER_NAME - return USER_NAME; + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // PROJECT_ID + return PROJECT_ID; + case 3: // LIMIT + return LIMIT; + case 4: // OFFSET + return OFFSET; default: return null; } @@ -72232,114 +57215,196 @@ public String getFieldName() { } // isset id assignments + private static final int __LIMIT_ISSET_ID = 0; + private static final int __OFFSET_ISSET_ID = 1; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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, + 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.PROJECT_ID, new org.apache.thrift.meta_data.FieldMetaData("projectId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentsInProject_args.class, metaDataMap); } - public getAllUserExperiments_args() { + public getExperimentsInProject_args() { } - public getAllUserExperiments_args( - String gatewayId, - String userName) + public getExperimentsInProject_args( + org.apache.airavata.model.security.AuthzToken authzToken, + String projectId, + int limit, + int offset) { this(); - this.gatewayId = gatewayId; - this.userName = userName; + this.authzToken = authzToken; + this.projectId = projectId; + this.limit = limit; + setLimitIsSet(true); + this.offset = offset; + setOffsetIsSet(true); } /** * Performs a deep copy on other. */ - public getAllUserExperiments_args(getAllUserExperiments_args other) { - if (other.isSetGatewayId()) { - this.gatewayId = other.gatewayId; + public getExperimentsInProject_args(getExperimentsInProject_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetAuthzToken()) { + this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); } - if (other.isSetUserName()) { - this.userName = other.userName; + if (other.isSetProjectId()) { + this.projectId = other.projectId; } + this.limit = other.limit; + this.offset = other.offset; } - public getAllUserExperiments_args deepCopy() { - return new getAllUserExperiments_args(this); + public getExperimentsInProject_args deepCopy() { + return new getExperimentsInProject_args(this); } @Override public void clear() { - this.gatewayId = null; - this.userName = null; + this.authzToken = null; + this.projectId = null; + setLimitIsSet(false); + this.limit = 0; + setOffsetIsSet(false); + this.offset = 0; } - public String getGatewayId() { - return this.gatewayId; + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; } - public getAllUserExperiments_args setGatewayId(String gatewayId) { - this.gatewayId = gatewayId; + public getExperimentsInProject_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + this.authzToken = authzToken; return this; } - public void unsetGatewayId() { - this.gatewayId = null; + public void unsetAuthzToken() { + this.authzToken = null; } - /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */ - public boolean isSetGatewayId() { - return this.gatewayId != 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 setGatewayIdIsSet(boolean value) { + public void setAuthzTokenIsSet(boolean value) { if (!value) { - this.gatewayId = null; + this.authzToken = null; } } - public String getUserName() { - return this.userName; + public String getProjectId() { + return this.projectId; } - public getAllUserExperiments_args setUserName(String userName) { - this.userName = userName; + public getExperimentsInProject_args setProjectId(String projectId) { + this.projectId = projectId; return this; } - public void unsetUserName() { - this.userName = null; + public void unsetProjectId() { + this.projectId = null; } - /** Returns true if field userName is set (has been assigned a value) and false otherwise */ - public boolean isSetUserName() { - return this.userName != null; + /** Returns true if field projectId is set (has been assigned a value) and false otherwise */ + public boolean isSetProjectId() { + return this.projectId != null; } - public void setUserNameIsSet(boolean value) { + public void setProjectIdIsSet(boolean value) { if (!value) { - this.userName = null; + this.projectId = null; } } + public int getLimit() { + return this.limit; + } + + public getExperimentsInProject_args setLimit(int limit) { + this.limit = limit; + setLimitIsSet(true); + return this; + } + + public void unsetLimit() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + /** Returns true if field limit is set (has been assigned a value) and false otherwise */ + public boolean isSetLimit() { + return EncodingUtils.testBit(__isset_bitfield, __LIMIT_ISSET_ID); + } + + public void setLimitIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LIMIT_ISSET_ID, value); + } + + public int getOffset() { + return this.offset; + } + + public getExperimentsInProject_args setOffset(int offset) { + this.offset = offset; + setOffsetIsSet(true); + return this; + } + + public void unsetOffset() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + /** Returns true if field offset is set (has been assigned a value) and false otherwise */ + public boolean isSetOffset() { + return EncodingUtils.testBit(__isset_bitfield, __OFFSET_ISSET_ID); + } + + public void setOffsetIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OFFSET_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case GATEWAY_ID: + case AUTHZ_TOKEN: if (value == null) { - unsetGatewayId(); + unsetAuthzToken(); } else { - setGatewayId((String)value); + setAuthzToken((org.apache.airavata.model.security.AuthzToken)value); } break; - case USER_NAME: + case PROJECT_ID: if (value == null) { - unsetUserName(); + unsetProjectId(); } else { - setUserName((String)value); + setProjectId((String)value); + } + break; + + case LIMIT: + if (value == null) { + unsetLimit(); + } else { + setLimit((Integer)value); + } + break; + + case OFFSET: + if (value == null) { + unsetOffset(); + } else { + setOffset((Integer)value); } break; @@ -72348,11 +57413,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case GATEWAY_ID: - return getGatewayId(); + case AUTHZ_TOKEN: + return getAuthzToken(); - case USER_NAME: - return getUserName(); + case PROJECT_ID: + return getProjectId(); + + case LIMIT: + return Integer.valueOf(getLimit()); + + case OFFSET: + return Integer.valueOf(getOffset()); } throw new IllegalStateException(); @@ -72365,10 +57436,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case GATEWAY_ID: - return isSetGatewayId(); - case USER_NAME: - return isSetUserName(); + case AUTHZ_TOKEN: + return isSetAuthzToken(); + case PROJECT_ID: + return isSetProjectId(); + case LIMIT: + return isSetLimit(); + case OFFSET: + return isSetOffset(); } throw new IllegalStateException(); } @@ -72377,30 +57452,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperiments_args) - return this.equals((getAllUserExperiments_args)that); + if (that instanceof getExperimentsInProject_args) + return this.equals((getExperimentsInProject_args)that); return false; } - public boolean equals(getAllUserExperiments_args that) { + public boolean equals(getExperimentsInProject_args that) { if (that == null) 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)) + 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.gatewayId.equals(that.gatewayId)) + if (!this.authzToken.equals(that.authzToken)) 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)) + boolean this_present_projectId = true && this.isSetProjectId(); + boolean that_present_projectId = true && that.isSetProjectId(); + if (this_present_projectId || that_present_projectId) { + if (!(this_present_projectId && that_present_projectId)) return false; - if (!this.userName.equals(that.userName)) + if (!this.projectId.equals(that.projectId)) + return false; + } + + boolean this_present_limit = true; + boolean that_present_limit = true; + if (this_present_limit || that_present_limit) { + if (!(this_present_limit && that_present_limit)) + return false; + if (this.limit != that.limit) + return false; + } + + boolean this_present_offset = true; + boolean that_present_offset = true; + if (this_present_offset || that_present_offset) { + if (!(this_present_offset && that_present_offset)) + return false; + if (this.offset != that.offset) return false; } @@ -72411,43 +57504,73 @@ public boolean equals(getAllUserExperiments_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_gatewayId = true && (isSetGatewayId()); - list.add(present_gatewayId); - if (present_gatewayId) - list.add(gatewayId); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); - boolean present_userName = true && (isSetUserName()); - list.add(present_userName); - if (present_userName) - list.add(userName); + boolean present_projectId = true && (isSetProjectId()); + list.add(present_projectId); + if (present_projectId) + list.add(projectId); + + boolean present_limit = true; + list.add(present_limit); + if (present_limit) + list.add(limit); + + boolean present_offset = true; + list.add(present_offset); + if (present_offset) + list.add(offset); return list.hashCode(); } @Override - public int compareTo(getAllUserExperiments_args other) { + public int compareTo(getExperimentsInProject_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); + lastComparison = Boolean.valueOf(isSetAuthzToken()).compareTo(other.isSetAuthzToken()); if (lastComparison != 0) { return lastComparison; } - if (isSetGatewayId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, other.gatewayId); + if (isSetAuthzToken()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authzToken, other.authzToken); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); + lastComparison = Boolean.valueOf(isSetProjectId()).compareTo(other.isSetProjectId()); if (lastComparison != 0) { return lastComparison; } - if (isSetUserName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userName, other.userName); + if (isSetProjectId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.projectId, other.projectId); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetLimit()).compareTo(other.isSetLimit()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetLimit()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, other.limit); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetOffset()).compareTo(other.isSetOffset()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetOffset()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, other.offset); if (lastComparison != 0) { return lastComparison; } @@ -72469,37 +57592,50 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperiments_args("); + StringBuilder sb = new StringBuilder("getExperimentsInProject_args("); boolean first = true; - sb.append("gatewayId:"); - if (this.gatewayId == null) { + sb.append("authzToken:"); + if (this.authzToken == null) { sb.append("null"); } else { - sb.append(this.gatewayId); + sb.append(this.authzToken); } first = false; if (!first) sb.append(", "); - sb.append("userName:"); - if (this.userName == null) { + sb.append("projectId:"); + if (this.projectId == null) { sb.append("null"); } else { - sb.append(this.userName); + sb.append(this.projectId); } first = false; + if (!first) sb.append(", "); + sb.append("limit:"); + sb.append(this.limit); + first = false; + if (!first) sb.append(", "); + sb.append("offset:"); + sb.append(this.offset); + first = false; sb.append(")"); return sb.toString(); } public void validate() throws org.apache.thrift.TException { // check for required fields - if (gatewayId == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' was not present! Struct: " + toString()); + if (authzToken == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'authzToken' was not present! Struct: " + toString()); } - if (userName == null) { - throw new org.apache.thrift.protocol.TProtocolException("Required field 'userName' was not present! Struct: " + toString()); + if (projectId == null) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'projectId' was not present! Struct: " + toString()); } + // alas, we cannot check 'limit' because it's a primitive and you chose the non-beans generator. + // alas, we cannot check 'offset' because it's a primitive and you chose the non-beans generator. // check for sub-struct validity + if (authzToken != null) { + authzToken.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -72512,21 +57648,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, 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 getAllUserExperiments_argsStandardSchemeFactory implements SchemeFactory { - public getAllUserExperiments_argsStandardScheme getScheme() { - return new getAllUserExperiments_argsStandardScheme(); + private static class getExperimentsInProject_argsStandardSchemeFactory implements SchemeFactory { + public getExperimentsInProject_argsStandardScheme getScheme() { + return new getExperimentsInProject_argsStandardScheme(); } } - private static class getAllUserExperiments_argsStandardScheme extends StandardScheme { + private static class getExperimentsInProject_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentsInProject_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -72536,18 +57674,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen break; } switch (schemeField.id) { - case 1: // GATEWAY_ID - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); + 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: // USER_NAME + case 2: // PROJECT_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // LIMIT + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // OFFSET + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -72560,81 +57715,106 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method + if (!struct.isSetLimit()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'limit' was not found in serialized data! Struct: " + toString()); + } + if (!struct.isSetOffset()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'offset' was not found in serialized data! Struct: " + toString()); + } struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentsInProject_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.gatewayId != null) { - oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC); - oprot.writeString(struct.gatewayId); + if (struct.authzToken != null) { + oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC); + struct.authzToken.write(oprot); oprot.writeFieldEnd(); } - if (struct.userName != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.userName); + if (struct.projectId != null) { + oprot.writeFieldBegin(PROJECT_ID_FIELD_DESC); + oprot.writeString(struct.projectId); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(LIMIT_FIELD_DESC); + oprot.writeI32(struct.limit); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(OFFSET_FIELD_DESC); + oprot.writeI32(struct.offset); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class getAllUserExperiments_argsTupleSchemeFactory implements SchemeFactory { - public getAllUserExperiments_argsTupleScheme getScheme() { - return new getAllUserExperiments_argsTupleScheme(); + private static class getExperimentsInProject_argsTupleSchemeFactory implements SchemeFactory { + public getExperimentsInProject_argsTupleScheme getScheme() { + return new getExperimentsInProject_argsTupleScheme(); } } - private static class getAllUserExperiments_argsTupleScheme extends TupleScheme { + private static class getExperimentsInProject_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentsInProject_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - oprot.writeString(struct.gatewayId); - oprot.writeString(struct.userName); + struct.authzToken.write(oprot); + oprot.writeString(struct.projectId); + oprot.writeI32(struct.limit); + oprot.writeI32(struct.offset); } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentsInProject_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.gatewayId = iprot.readString(); - struct.setGatewayIdIsSet(true); - struct.userName = iprot.readString(); - struct.setUserNameIsSet(true); + struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); + struct.authzToken.read(iprot); + struct.setAuthzTokenIsSet(true); + struct.projectId = iprot.readString(); + struct.setProjectIdIsSet(true); + struct.limit = iprot.readI32(); + struct.setLimitIsSet(true); + struct.offset = iprot.readI32(); + struct.setOffsetIsSet(true); } } } - public static class getAllUserExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperiments_result"); + public static class getExperimentsInProject_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getExperimentsInProject_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 PNFE_FIELD_DESC = new org.apache.thrift.protocol.TField("pnfe", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperiments_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperiments_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getExperimentsInProject_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getExperimentsInProject_resultTupleSchemeFactory()); } public List 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.ProjectNotFoundException pnfe; // 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"); + ASE((short)3, "ase"), + PNFE((short)4, "pnfe"), + AE((short)5, "ae"); private static final Map byName = new HashMap(); @@ -72657,6 +57837,10 @@ public static _Fields findByThriftId(int fieldId) { return ACE; case 3: // ASE return ASE; + case 4: // PNFE + return PNFE; + case 5: // AE + return AE; default: return null; } @@ -72709,30 +57893,38 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.ASE, new org.apache.thrift.meta_data.FieldMetaData("ase", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.PNFE, new org.apache.thrift.meta_data.FieldMetaData("pnfe", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperiments_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getExperimentsInProject_result.class, metaDataMap); } - public getAllUserExperiments_result() { + public getExperimentsInProject_result() { } - public getAllUserExperiments_result( + public getExperimentsInProject_result( List 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.AiravataSystemException ase, + org.apache.airavata.model.error.ProjectNotFoundException pnfe, + org.apache.airavata.model.error.AuthorizationException ae) { this(); this.success = success; this.ire = ire; this.ace = ace; this.ase = ase; + this.pnfe = pnfe; + this.ae = ae; } /** * Performs a deep copy on other. */ - public getAllUserExperiments_result(getAllUserExperiments_result other) { + public getExperimentsInProject_result(getExperimentsInProject_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.experiment.ExperimentModel other_element : other.success) { @@ -72749,10 +57941,16 @@ public getAllUserExperiments_result(getAllUserExperiments_result other) { if (other.isSetAse()) { this.ase = new org.apache.airavata.model.error.AiravataSystemException(other.ase); } + if (other.isSetPnfe()) { + this.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(other.pnfe); + } + if (other.isSetAe()) { + this.ae = new org.apache.airavata.model.error.AuthorizationException(other.ae); + } } - public getAllUserExperiments_result deepCopy() { - return new getAllUserExperiments_result(this); + public getExperimentsInProject_result deepCopy() { + return new getExperimentsInProject_result(this); } @Override @@ -72761,6 +57959,8 @@ public void clear() { this.ire = null; this.ace = null; this.ase = null; + this.pnfe = null; + this.ae = null; } public int getSuccessSize() { @@ -72782,7 +57982,7 @@ public List getSuccess() { return this.success; } - public getAllUserExperiments_result setSuccess(List success) { + public getExperimentsInProject_result setSuccess(List success) { this.success = success; return this; } @@ -72806,7 +58006,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllUserExperiments_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getExperimentsInProject_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -72830,7 +58030,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllUserExperiments_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getExperimentsInProject_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -72854,7 +58054,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllUserExperiments_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getExperimentsInProject_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -72874,6 +58074,54 @@ public void setAseIsSet(boolean value) { } } + public org.apache.airavata.model.error.ProjectNotFoundException getPnfe() { + return this.pnfe; + } + + public getExperimentsInProject_result setPnfe(org.apache.airavata.model.error.ProjectNotFoundException pnfe) { + this.pnfe = pnfe; + return this; + } + + public void unsetPnfe() { + this.pnfe = null; + } + + /** Returns true if field pnfe is set (has been assigned a value) and false otherwise */ + public boolean isSetPnfe() { + return this.pnfe != null; + } + + public void setPnfeIsSet(boolean value) { + if (!value) { + this.pnfe = null; + } + } + + public org.apache.airavata.model.error.AuthorizationException getAe() { + return this.ae; + } + + public getExperimentsInProject_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, Object value) { switch (field) { case SUCCESS: @@ -72908,6 +58156,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PNFE: + if (value == null) { + unsetPnfe(); + } else { + setPnfe((org.apache.airavata.model.error.ProjectNotFoundException)value); + } + break; + + case AE: + if (value == null) { + unsetAe(); + } else { + setAe((org.apache.airavata.model.error.AuthorizationException)value); + } + break; + } } @@ -72925,6 +58189,12 @@ public Object getFieldValue(_Fields field) { case ASE: return getAse(); + case PNFE: + return getPnfe(); + + case AE: + return getAe(); + } throw new IllegalStateException(); } @@ -72944,6 +58214,10 @@ public boolean isSet(_Fields field) { return isSetAce(); case ASE: return isSetAse(); + case PNFE: + return isSetPnfe(); + case AE: + return isSetAe(); } throw new IllegalStateException(); } @@ -72952,12 +58226,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperiments_result) - return this.equals((getAllUserExperiments_result)that); + if (that instanceof getExperimentsInProject_result) + return this.equals((getExperimentsInProject_result)that); return false; } - public boolean equals(getAllUserExperiments_result that) { + public boolean equals(getExperimentsInProject_result that) { if (that == null) return false; @@ -72997,6 +58271,24 @@ public boolean equals(getAllUserExperiments_result that) { return false; } + boolean this_present_pnfe = true && this.isSetPnfe(); + boolean that_present_pnfe = true && that.isSetPnfe(); + if (this_present_pnfe || that_present_pnfe) { + if (!(this_present_pnfe && that_present_pnfe)) + return false; + if (!this.pnfe.equals(that.pnfe)) + 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; } @@ -73024,11 +58316,21 @@ public int hashCode() { if (present_ase) list.add(ase); + boolean present_pnfe = true && (isSetPnfe()); + list.add(present_pnfe); + if (present_pnfe) + list.add(pnfe); + + boolean present_ae = true && (isSetAe()); + list.add(present_ae); + if (present_ae) + list.add(ae); + return list.hashCode(); } @Override - public int compareTo(getAllUserExperiments_result other) { + public int compareTo(getExperimentsInProject_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -73075,6 +58377,26 @@ public int compareTo(getAllUserExperiments_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetPnfe()).compareTo(other.isSetPnfe()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPnfe()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pnfe, other.pnfe); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = 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; } @@ -73092,7 +58414,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperiments_result("); + StringBuilder sb = new StringBuilder("getExperimentsInProject_result("); boolean first = true; sb.append("success:"); @@ -73126,6 +58448,22 @@ public String toString() { sb.append(this.ase); } first = false; + if (!first) sb.append(", "); + sb.append("pnfe:"); + if (this.pnfe == null) { + sb.append("null"); + } else { + sb.append(this.pnfe); + } + 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(); } @@ -73151,15 +58489,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserExperiments_resultStandardSchemeFactory implements SchemeFactory { - public getAllUserExperiments_resultStandardScheme getScheme() { - return new getAllUserExperiments_resultStandardScheme(); + private static class getExperimentsInProject_resultStandardSchemeFactory implements SchemeFactory { + public getExperimentsInProject_resultStandardScheme getScheme() { + return new getExperimentsInProject_resultStandardScheme(); } } - private static class getAllUserExperiments_resultStandardScheme extends StandardScheme { + private static class getExperimentsInProject_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentsInProject_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73172,14 +58510,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list180 = iprot.readListBegin(); - struct.success = new ArrayList(_list180.size); - org.apache.airavata.model.experiment.ExperimentModel _elem181; - for (int _i182 = 0; _i182 < _list180.size; ++_i182) + org.apache.thrift.protocol.TList _list100 = iprot.readListBegin(); + struct.success = new ArrayList(_list100.size); + org.apache.airavata.model.experiment.ExperimentModel _elem101; + for (int _i102 = 0; _i102 < _list100.size; ++_i102) { - _elem181 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem181.read(iprot); - struct.success.add(_elem181); + _elem101 = new org.apache.airavata.model.experiment.ExperimentModel(); + _elem101.read(iprot); + struct.success.add(_elem101); } iprot.readListEnd(); } @@ -73215,6 +58553,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // PNFE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // 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); } @@ -73226,7 +58582,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentsInProject_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -73234,9 +58590,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentModel _iter183 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentModel _iter103 : struct.success) { - _iter183.write(oprot); + _iter103.write(oprot); } oprot.writeListEnd(); } @@ -73257,22 +58613,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime struct.ase.write(oprot); oprot.writeFieldEnd(); } + if (struct.pnfe != null) { + oprot.writeFieldBegin(PNFE_FIELD_DESC); + struct.pnfe.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 getAllUserExperiments_resultTupleSchemeFactory implements SchemeFactory { - public getAllUserExperiments_resultTupleScheme getScheme() { - return new getAllUserExperiments_resultTupleScheme(); + private static class getExperimentsInProject_resultTupleSchemeFactory implements SchemeFactory { + public getExperimentsInProject_resultTupleScheme getScheme() { + return new getExperimentsInProject_resultTupleScheme(); } } - private static class getAllUserExperiments_resultTupleScheme extends TupleScheme { + private static class getExperimentsInProject_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentsInProject_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -73287,13 +58653,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen if (struct.isSetAse()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetPnfe()) { + optionals.set(4); + } + if (struct.isSetAe()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel _iter184 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentModel _iter104 : struct.success) { - _iter184.write(oprot); + _iter104.write(oprot); } } } @@ -73306,22 +58678,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen if (struct.isSetAse()) { struct.ase.write(oprot); } + if (struct.isSetPnfe()) { + struct.pnfe.write(oprot); + } + if (struct.isSetAe()) { + struct.ae.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiments_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentsInProject_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list185.size); - org.apache.airavata.model.experiment.ExperimentModel _elem186; - for (int _i187 = 0; _i187 < _list185.size; ++_i187) + org.apache.thrift.protocol.TList _list105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list105.size); + org.apache.airavata.model.experiment.ExperimentModel _elem106; + for (int _i107 = 0; _i107 < _list105.size; ++_i107) { - _elem186 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem186.read(iprot); - struct.success.add(_elem186); + _elem106 = new org.apache.airavata.model.experiment.ExperimentModel(); + _elem106.read(iprot); + struct.success.add(_elem106); } } struct.setSuccessIsSet(true); @@ -73341,13 +58719,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiment struct.ase.read(iprot); struct.setAseIsSet(true); } + if (incoming.get(4)) { + struct.pnfe = new org.apache.airavata.model.error.ProjectNotFoundException(); + struct.pnfe.read(iprot); + struct.setPnfeIsSet(true); + } + if (incoming.get(5)) { + struct.ae = new org.apache.airavata.model.error.AuthorizationException(); + struct.ae.read(iprot); + struct.setAeIsSet(true); + } } } } - public static class getAllUserExperimentsWithPagination_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperimentsWithPagination_args"); + public static class getUserExperiments_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserExperiments_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); @@ -73357,8 +58745,8 @@ public static class getAllUserExperimentsWithPagination_args implements org.apac private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperimentsWithPagination_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperimentsWithPagination_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserExperiments_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserExperiments_argsTupleSchemeFactory()); } public org.apache.airavata.model.security.AuthzToken authzToken; // required @@ -73455,13 +58843,13 @@ public String getFieldName() { tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperimentsWithPagination_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserExperiments_args.class, metaDataMap); } - public getAllUserExperimentsWithPagination_args() { + public getUserExperiments_args() { } - public getAllUserExperimentsWithPagination_args( + public getUserExperiments_args( org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, @@ -73481,7 +58869,7 @@ public getAllUserExperimentsWithPagination_args( /** * Performs a deep copy on other. */ - public getAllUserExperimentsWithPagination_args(getAllUserExperimentsWithPagination_args other) { + public getUserExperiments_args(getUserExperiments_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetAuthzToken()) { this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); @@ -73496,8 +58884,8 @@ public getAllUserExperimentsWithPagination_args(getAllUserExperimentsWithPaginat this.offset = other.offset; } - public getAllUserExperimentsWithPagination_args deepCopy() { - return new getAllUserExperimentsWithPagination_args(this); + public getUserExperiments_args deepCopy() { + return new getUserExperiments_args(this); } @Override @@ -73515,7 +58903,7 @@ public org.apache.airavata.model.security.AuthzToken getAuthzToken() { return this.authzToken; } - public getAllUserExperimentsWithPagination_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { + public getUserExperiments_args setAuthzToken(org.apache.airavata.model.security.AuthzToken authzToken) { this.authzToken = authzToken; return this; } @@ -73539,7 +58927,7 @@ public String getGatewayId() { return this.gatewayId; } - public getAllUserExperimentsWithPagination_args setGatewayId(String gatewayId) { + public getUserExperiments_args setGatewayId(String gatewayId) { this.gatewayId = gatewayId; return this; } @@ -73563,7 +58951,7 @@ public String getUserName() { return this.userName; } - public getAllUserExperimentsWithPagination_args setUserName(String userName) { + public getUserExperiments_args setUserName(String userName) { this.userName = userName; return this; } @@ -73587,7 +58975,7 @@ public int getLimit() { return this.limit; } - public getAllUserExperimentsWithPagination_args setLimit(int limit) { + public getUserExperiments_args setLimit(int limit) { this.limit = limit; setLimitIsSet(true); return this; @@ -73610,7 +58998,7 @@ public int getOffset() { return this.offset; } - public getAllUserExperimentsWithPagination_args setOffset(int offset) { + public getUserExperiments_args setOffset(int offset) { this.offset = offset; setOffsetIsSet(true); return this; @@ -73720,12 +59108,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperimentsWithPagination_args) - return this.equals((getAllUserExperimentsWithPagination_args)that); + if (that instanceof getUserExperiments_args) + return this.equals((getUserExperiments_args)that); return false; } - public boolean equals(getAllUserExperimentsWithPagination_args that) { + public boolean equals(getUserExperiments_args that) { if (that == null) return false; @@ -73810,7 +59198,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserExperimentsWithPagination_args other) { + public int compareTo(getUserExperiments_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -73884,7 +59272,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperimentsWithPagination_args("); + StringBuilder sb = new StringBuilder("getUserExperiments_args("); boolean first = true; sb.append("authzToken:"); @@ -73959,15 +59347,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserExperimentsWithPagination_argsStandardSchemeFactory implements SchemeFactory { - public getAllUserExperimentsWithPagination_argsStandardScheme getScheme() { - return new getAllUserExperimentsWithPagination_argsStandardScheme(); + private static class getUserExperiments_argsStandardSchemeFactory implements SchemeFactory { + public getUserExperiments_argsStandardScheme getScheme() { + return new getUserExperiments_argsStandardScheme(); } } - private static class getAllUserExperimentsWithPagination_argsStandardScheme extends StandardScheme { + private static class getUserExperiments_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserExperiments_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74035,7 +59423,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserExperiments_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74066,16 +59454,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime } - private static class getAllUserExperimentsWithPagination_argsTupleSchemeFactory implements SchemeFactory { - public getAllUserExperimentsWithPagination_argsTupleScheme getScheme() { - return new getAllUserExperimentsWithPagination_argsTupleScheme(); + private static class getUserExperiments_argsTupleSchemeFactory implements SchemeFactory { + public getUserExperiments_argsTupleScheme getScheme() { + return new getUserExperiments_argsTupleScheme(); } } - private static class getAllUserExperimentsWithPagination_argsTupleScheme extends TupleScheme { + private static class getUserExperiments_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); @@ -74085,7 +59473,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserExperiments_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.authzToken = new org.apache.airavata.model.security.AuthzToken(); struct.authzToken.read(iprot); @@ -74103,8 +59491,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperiment } - public static class getAllUserExperimentsWithPagination_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserExperimentsWithPagination_result"); + public static class getUserExperiments_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserExperiments_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); @@ -74114,8 +59502,8 @@ public static class getAllUserExperimentsWithPagination_result implements org.ap private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new getAllUserExperimentsWithPagination_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getAllUserExperimentsWithPagination_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new getUserExperiments_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getUserExperiments_resultTupleSchemeFactory()); } public List success; // required @@ -74210,13 +59598,13 @@ public String getFieldName() { tmpMap.put(_Fields.AE, new org.apache.thrift.meta_data.FieldMetaData("ae", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUserExperimentsWithPagination_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserExperiments_result.class, metaDataMap); } - public getAllUserExperimentsWithPagination_result() { + public getUserExperiments_result() { } - public getAllUserExperimentsWithPagination_result( + public getUserExperiments_result( List success, org.apache.airavata.model.error.InvalidRequestException ire, org.apache.airavata.model.error.AiravataClientException ace, @@ -74234,7 +59622,7 @@ public getAllUserExperimentsWithPagination_result( /** * Performs a deep copy on other. */ - public getAllUserExperimentsWithPagination_result(getAllUserExperimentsWithPagination_result other) { + public getUserExperiments_result(getUserExperiments_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (org.apache.airavata.model.experiment.ExperimentModel other_element : other.success) { @@ -74256,8 +59644,8 @@ public getAllUserExperimentsWithPagination_result(getAllUserExperimentsWithPagin } } - public getAllUserExperimentsWithPagination_result deepCopy() { - return new getAllUserExperimentsWithPagination_result(this); + public getUserExperiments_result deepCopy() { + return new getUserExperiments_result(this); } @Override @@ -74288,7 +59676,7 @@ public List getSuccess() { return this.success; } - public getAllUserExperimentsWithPagination_result setSuccess(List success) { + public getUserExperiments_result setSuccess(List success) { this.success = success; return this; } @@ -74312,7 +59700,7 @@ public org.apache.airavata.model.error.InvalidRequestException getIre() { return this.ire; } - public getAllUserExperimentsWithPagination_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { + public getUserExperiments_result setIre(org.apache.airavata.model.error.InvalidRequestException ire) { this.ire = ire; return this; } @@ -74336,7 +59724,7 @@ public org.apache.airavata.model.error.AiravataClientException getAce() { return this.ace; } - public getAllUserExperimentsWithPagination_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { + public getUserExperiments_result setAce(org.apache.airavata.model.error.AiravataClientException ace) { this.ace = ace; return this; } @@ -74360,7 +59748,7 @@ public org.apache.airavata.model.error.AiravataSystemException getAse() { return this.ase; } - public getAllUserExperimentsWithPagination_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { + public getUserExperiments_result setAse(org.apache.airavata.model.error.AiravataSystemException ase) { this.ase = ase; return this; } @@ -74384,7 +59772,7 @@ public org.apache.airavata.model.error.AuthorizationException getAe() { return this.ae; } - public getAllUserExperimentsWithPagination_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { + public getUserExperiments_result setAe(org.apache.airavata.model.error.AuthorizationException ae) { this.ae = ae; return this; } @@ -74495,12 +59883,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof getAllUserExperimentsWithPagination_result) - return this.equals((getAllUserExperimentsWithPagination_result)that); + if (that instanceof getUserExperiments_result) + return this.equals((getUserExperiments_result)that); return false; } - public boolean equals(getAllUserExperimentsWithPagination_result that) { + public boolean equals(getUserExperiments_result that) { if (that == null) return false; @@ -74585,7 +59973,7 @@ public int hashCode() { } @Override - public int compareTo(getAllUserExperimentsWithPagination_result other) { + public int compareTo(getUserExperiments_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -74659,7 +60047,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("getAllUserExperimentsWithPagination_result("); + StringBuilder sb = new StringBuilder("getUserExperiments_result("); boolean first = true; sb.append("success:"); @@ -74726,15 +60114,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class getAllUserExperimentsWithPagination_resultStandardSchemeFactory implements SchemeFactory { - public getAllUserExperimentsWithPagination_resultStandardScheme getScheme() { - return new getAllUserExperimentsWithPagination_resultStandardScheme(); + private static class getUserExperiments_resultStandardSchemeFactory implements SchemeFactory { + public getUserExperiments_resultStandardScheme getScheme() { + return new getUserExperiments_resultStandardScheme(); } } - private static class getAllUserExperimentsWithPagination_resultStandardScheme extends StandardScheme { + private static class getUserExperiments_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, getUserExperiments_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74747,14 +60135,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list188 = iprot.readListBegin(); - struct.success = new ArrayList(_list188.size); - org.apache.airavata.model.experiment.ExperimentModel _elem189; - for (int _i190 = 0; _i190 < _list188.size; ++_i190) + org.apache.thrift.protocol.TList _list108 = iprot.readListBegin(); + struct.success = new ArrayList(_list108.size); + org.apache.airavata.model.experiment.ExperimentModel _elem109; + for (int _i110 = 0; _i110 < _list108.size; ++_i110) { - _elem189 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem189.read(iprot); - struct.success.add(_elem189); + _elem109 = new org.apache.airavata.model.experiment.ExperimentModel(); + _elem109.read(iprot); + struct.success.add(_elem109); } iprot.readListEnd(); } @@ -74810,7 +60198,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserExperimen struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, getUserExperiments_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74818,9 +60206,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.experiment.ExperimentModel _iter191 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentModel _iter111 : struct.success) { - _iter191.write(oprot); + _iter111.write(oprot); } oprot.writeListEnd(); } @@ -74852,16 +60240,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserExperime } - private static class getAllUserExperimentsWithPagination_resultTupleSchemeFactory implements SchemeFactory { - public getAllUserExperimentsWithPagination_resultTupleScheme getScheme() { - return new getAllUserExperimentsWithPagination_resultTupleScheme(); + private static class getUserExperiments_resultTupleSchemeFactory implements SchemeFactory { + public getUserExperiments_resultTupleScheme getScheme() { + return new getUserExperiments_resultTupleScheme(); } } - private static class getAllUserExperimentsWithPagination_resultTupleScheme extends TupleScheme { + private static class getUserExperiments_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, getUserExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -74883,9 +60271,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.experiment.ExperimentModel _iter192 : struct.success) + for (org.apache.airavata.model.experiment.ExperimentModel _iter112 : struct.success) { - _iter192.write(oprot); + _iter112.write(oprot); } } } @@ -74904,19 +60292,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimen } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getAllUserExperimentsWithPagination_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, getUserExperiments_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list193.size); - org.apache.airavata.model.experiment.ExperimentModel _elem194; - for (int _i195 = 0; _i195 < _list193.size; ++_i195) + org.apache.thrift.protocol.TList _list113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list113.size); + org.apache.airavata.model.experiment.ExperimentModel _elem114; + for (int _i115 = 0; _i115 < _list113.size; ++_i115) { - _elem194 = new org.apache.airavata.model.experiment.ExperimentModel(); - _elem194.read(iprot); - struct.success.add(_elem194); + _elem114 = new org.apache.airavata.model.experiment.ExperimentModel(); + _elem114.read(iprot); + struct.success.add(_elem114); } } struct.setSuccessIsSet(true); @@ -86132,14 +71520,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getExperimentOutput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list196 = iprot.readListBegin(); - struct.success = new ArrayList(_list196.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem197; - for (int _i198 = 0; _i198 < _list196.size; ++_i198) + org.apache.thrift.protocol.TList _list116 = iprot.readListBegin(); + struct.success = new ArrayList(_list116.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem117; + for (int _i118 = 0; _i118 < _list116.size; ++_i118) { - _elem197 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem197.read(iprot); - struct.success.add(_elem197); + _elem117 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem117.read(iprot); + struct.success.add(_elem117); } iprot.readListEnd(); } @@ -86212,9 +71600,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getExperimentOutpu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter199 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter119 : struct.success) { - _iter199.write(oprot); + _iter119.write(oprot); } oprot.writeListEnd(); } @@ -86285,9 +71673,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getExperimentOutput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter200 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter120 : struct.success) { - _iter200.write(oprot); + _iter120.write(oprot); } } } @@ -86314,14 +71702,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getExperimentOutputs BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list201.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem202; - for (int _i203 = 0; _i203 < _list201.size; ++_i203) + org.apache.thrift.protocol.TList _list121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list121.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem122; + for (int _i123 = 0; _i123 < _list121.size; ++_i123) { - _elem202 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem202.read(iprot); - struct.success.add(_elem202); + _elem122 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem122.read(iprot); + struct.success.add(_elem122); } } struct.setSuccessIsSet(true); @@ -87542,14 +72930,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getIntermediateOutp case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list204 = iprot.readListBegin(); - struct.success = new ArrayList(_list204.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem205; - for (int _i206 = 0; _i206 < _list204.size; ++_i206) + org.apache.thrift.protocol.TList _list124 = iprot.readListBegin(); + struct.success = new ArrayList(_list124.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem125; + for (int _i126 = 0; _i126 < _list124.size; ++_i126) { - _elem205 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem205.read(iprot); - struct.success.add(_elem205); + _elem125 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem125.read(iprot); + struct.success.add(_elem125); } iprot.readListEnd(); } @@ -87622,9 +73010,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getIntermediateOut oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter207 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter127 : struct.success) { - _iter207.write(oprot); + _iter127.write(oprot); } oprot.writeListEnd(); } @@ -87695,9 +73083,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getIntermediateOutp if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter208 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter128 : struct.success) { - _iter208.write(oprot); + _iter128.write(oprot); } } } @@ -87724,14 +73112,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getIntermediateOutpu BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list209 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list209.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem210; - for (int _i211 = 0; _i211 < _list209.size; ++_i211) + org.apache.thrift.protocol.TList _list129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list129.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem130; + for (int _i131 = 0; _i131 < _list129.size; ++_i131) { - _elem210 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem210.read(iprot); - struct.success.add(_elem210); + _elem130 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem130.read(iprot); + struct.success.add(_elem130); } } struct.setSuccessIsSet(true); @@ -88957,16 +74345,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getJobStatuses_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map212 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map212.size); - String _key213; - org.apache.airavata.model.status.JobStatus _val214; - for (int _i215 = 0; _i215 < _map212.size; ++_i215) + org.apache.thrift.protocol.TMap _map132 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map132.size); + String _key133; + org.apache.airavata.model.status.JobStatus _val134; + for (int _i135 = 0; _i135 < _map132.size; ++_i135) { - _key213 = iprot.readString(); - _val214 = new org.apache.airavata.model.status.JobStatus(); - _val214.read(iprot); - struct.success.put(_key213, _val214); + _key133 = iprot.readString(); + _val134 = new org.apache.airavata.model.status.JobStatus(); + _val134.read(iprot); + struct.success.put(_key133, _val134); } iprot.readMapEnd(); } @@ -89039,10 +74427,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getJobStatuses_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter216 : struct.success.entrySet()) + for (Map.Entry _iter136 : struct.success.entrySet()) { - oprot.writeString(_iter216.getKey()); - _iter216.getValue().write(oprot); + oprot.writeString(_iter136.getKey()); + _iter136.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -89113,10 +74501,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getJobStatuses_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter217 : struct.success.entrySet()) + for (Map.Entry _iter137 : struct.success.entrySet()) { - oprot.writeString(_iter217.getKey()); - _iter217.getValue().write(oprot); + oprot.writeString(_iter137.getKey()); + _iter137.getValue().write(oprot); } } } @@ -89143,16 +74531,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getJobStatuses_resul BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map218 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map218.size); - String _key219; - org.apache.airavata.model.status.JobStatus _val220; - for (int _i221 = 0; _i221 < _map218.size; ++_i221) + org.apache.thrift.protocol.TMap _map138 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map138.size); + String _key139; + org.apache.airavata.model.status.JobStatus _val140; + for (int _i141 = 0; _i141 < _map138.size; ++_i141) { - _key219 = iprot.readString(); - _val220 = new org.apache.airavata.model.status.JobStatus(); - _val220.read(iprot); - struct.success.put(_key219, _val220); + _key139 = iprot.readString(); + _val140 = new org.apache.airavata.model.status.JobStatus(); + _val140.read(iprot); + struct.success.put(_key139, _val140); } } struct.setSuccessIsSet(true); @@ -90373,14 +75761,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getJobDetails_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list222 = iprot.readListBegin(); - struct.success = new ArrayList(_list222.size); - org.apache.airavata.model.job.JobModel _elem223; - for (int _i224 = 0; _i224 < _list222.size; ++_i224) + org.apache.thrift.protocol.TList _list142 = iprot.readListBegin(); + struct.success = new ArrayList(_list142.size); + org.apache.airavata.model.job.JobModel _elem143; + for (int _i144 = 0; _i144 < _list142.size; ++_i144) { - _elem223 = new org.apache.airavata.model.job.JobModel(); - _elem223.read(iprot); - struct.success.add(_elem223); + _elem143 = new org.apache.airavata.model.job.JobModel(); + _elem143.read(iprot); + struct.success.add(_elem143); } iprot.readListEnd(); } @@ -90453,9 +75841,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getJobDetails_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.job.JobModel _iter225 : struct.success) + for (org.apache.airavata.model.job.JobModel _iter145 : struct.success) { - _iter225.write(oprot); + _iter145.write(oprot); } oprot.writeListEnd(); } @@ -90526,9 +75914,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getJobDetails_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.job.JobModel _iter226 : struct.success) + for (org.apache.airavata.model.job.JobModel _iter146 : struct.success) { - _iter226.write(oprot); + _iter146.write(oprot); } } } @@ -90555,14 +75943,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getJobDetails_result BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list227.size); - org.apache.airavata.model.job.JobModel _elem228; - for (int _i229 = 0; _i229 < _list227.size; ++_i229) + org.apache.thrift.protocol.TList _list147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list147.size); + org.apache.airavata.model.job.JobModel _elem148; + for (int _i149 = 0; _i149 < _list147.size; ++_i149) { - _elem228 = new org.apache.airavata.model.job.JobModel(); - _elem228.read(iprot); - struct.success.add(_elem228); + _elem148 = new org.apache.airavata.model.job.JobModel(); + _elem148.read(iprot); + struct.success.add(_elem148); } } struct.setSuccessIsSet(true); @@ -98496,14 +83884,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllAppModules_re case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list230 = iprot.readListBegin(); - struct.success = new ArrayList(_list230.size); - org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem231; - for (int _i232 = 0; _i232 < _list230.size; ++_i232) + org.apache.thrift.protocol.TList _list150 = iprot.readListBegin(); + struct.success = new ArrayList(_list150.size); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem151; + for (int _i152 = 0; _i152 < _list150.size; ++_i152) { - _elem231 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); - _elem231.read(iprot); - struct.success.add(_elem231); + _elem151 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); + _elem151.read(iprot); + struct.success.add(_elem151); } iprot.readListEnd(); } @@ -98567,9 +83955,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllAppModules_r oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter233 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter153 : struct.success) { - _iter233.write(oprot); + _iter153.write(oprot); } oprot.writeListEnd(); } @@ -98632,9 +84020,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllAppModules_re if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter234 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _iter154 : struct.success) { - _iter234.write(oprot); + _iter154.write(oprot); } } } @@ -98658,14 +84046,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllAppModules_res BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list235 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list235.size); - org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem236; - for (int _i237 = 0; _i237 < _list235.size; ++_i237) + org.apache.thrift.protocol.TList _list155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list155.size); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule _elem156; + for (int _i157 = 0; _i157 < _list155.size; ++_i157) { - _elem236 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); - _elem236.read(iprot); - struct.success.add(_elem236); + _elem156 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationModule(); + _elem156.read(iprot); + struct.success.add(_elem156); } } struct.setSuccessIsSet(true); @@ -106261,14 +91649,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationDe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list238 = iprot.readListBegin(); - struct.success = new ArrayList(_list238.size); - org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem239; - for (int _i240 = 0; _i240 < _list238.size; ++_i240) + org.apache.thrift.protocol.TList _list158 = iprot.readListBegin(); + struct.success = new ArrayList(_list158.size); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem159; + for (int _i160 = 0; _i160 < _list158.size; ++_i160) { - _elem239 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); - _elem239.read(iprot); - struct.success.add(_elem239); + _elem159 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); + _elem159.read(iprot); + struct.success.add(_elem159); } iprot.readListEnd(); } @@ -106332,9 +91720,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationD oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter241 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter161 : struct.success) { - _iter241.write(oprot); + _iter161.write(oprot); } oprot.writeListEnd(); } @@ -106397,9 +91785,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationDe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter242 : struct.success) + for (org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _iter162 : struct.success) { - _iter242.write(oprot); + _iter162.write(oprot); } } } @@ -106423,14 +91811,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationDep BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list243 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list243.size); - org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem244; - for (int _i245 = 0; _i245 < _list243.size; ++_i245) + org.apache.thrift.protocol.TList _list163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list163.size); + org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription _elem164; + for (int _i165 = 0; _i165 < _list163.size; ++_i165) { - _elem244 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); - _elem244.read(iprot); - struct.success.add(_elem244); + _elem164 = new org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription(); + _elem164.read(iprot); + struct.success.add(_elem164); } } struct.setSuccessIsSet(true); @@ -107561,13 +92949,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAppModuleDeploye case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list246 = iprot.readListBegin(); - struct.success = new ArrayList(_list246.size); - String _elem247; - for (int _i248 = 0; _i248 < _list246.size; ++_i248) + org.apache.thrift.protocol.TList _list166 = iprot.readListBegin(); + struct.success = new ArrayList(_list166.size); + String _elem167; + for (int _i168 = 0; _i168 < _list166.size; ++_i168) { - _elem247 = iprot.readString(); - struct.success.add(_elem247); + _elem167 = iprot.readString(); + struct.success.add(_elem167); } iprot.readListEnd(); } @@ -107631,9 +93019,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAppModuleDeploy oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter249 : struct.success) + for (String _iter169 : struct.success) { - oprot.writeString(_iter249); + oprot.writeString(_iter169); } oprot.writeListEnd(); } @@ -107696,9 +93084,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAppModuleDeploye if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter250 : struct.success) + for (String _iter170 : struct.success) { - oprot.writeString(_iter250); + oprot.writeString(_iter170); } } } @@ -107722,13 +93110,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAppModuleDeployed BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list251.size); - String _elem252; - for (int _i253 = 0; _i253 < _list251.size; ++_i253) + org.apache.thrift.protocol.TList _list171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list171.size); + String _elem172; + for (int _i173 = 0; _i173 < _list171.size; ++_i173) { - _elem252 = iprot.readString(); - struct.success.add(_elem252); + _elem172 = iprot.readString(); + struct.success.add(_elem172); } } struct.setSuccessIsSet(true); @@ -114069,15 +99457,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map254 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map254.size); - String _key255; - String _val256; - for (int _i257 = 0; _i257 < _map254.size; ++_i257) + org.apache.thrift.protocol.TMap _map174 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map174.size); + String _key175; + String _val176; + for (int _i177 = 0; _i177 < _map174.size; ++_i177) { - _key255 = iprot.readString(); - _val256 = iprot.readString(); - struct.success.put(_key255, _val256); + _key175 = iprot.readString(); + _val176 = iprot.readString(); + struct.success.put(_key175, _val176); } iprot.readMapEnd(); } @@ -114141,10 +99529,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter258 : struct.success.entrySet()) + for (Map.Entry _iter178 : struct.success.entrySet()) { - oprot.writeString(_iter258.getKey()); - oprot.writeString(_iter258.getValue()); + oprot.writeString(_iter178.getKey()); + oprot.writeString(_iter178.getValue()); } oprot.writeMapEnd(); } @@ -114207,10 +99595,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationIn if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter259 : struct.success.entrySet()) + for (Map.Entry _iter179 : struct.success.entrySet()) { - oprot.writeString(_iter259.getKey()); - oprot.writeString(_iter259.getValue()); + oprot.writeString(_iter179.getKey()); + oprot.writeString(_iter179.getValue()); } } } @@ -114234,15 +99622,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationInt BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map260 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map260.size); - String _key261; - String _val262; - for (int _i263 = 0; _i263 < _map260.size; ++_i263) + org.apache.thrift.protocol.TMap _map180 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map180.size); + String _key181; + String _val182; + for (int _i183 = 0; _i183 < _map180.size; ++_i183) { - _key261 = iprot.readString(); - _val262 = iprot.readString(); - struct.success.put(_key261, _val262); + _key181 = iprot.readString(); + _val182 = iprot.readString(); + struct.success.put(_key181, _val182); } } struct.setSuccessIsSet(true); @@ -115376,14 +100764,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllApplicationIn case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list264 = iprot.readListBegin(); - struct.success = new ArrayList(_list264.size); - org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem265; - for (int _i266 = 0; _i266 < _list264.size; ++_i266) + org.apache.thrift.protocol.TList _list184 = iprot.readListBegin(); + struct.success = new ArrayList(_list184.size); + org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem185; + for (int _i186 = 0; _i186 < _list184.size; ++_i186) { - _elem265 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); - _elem265.read(iprot); - struct.success.add(_elem265); + _elem185 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); + _elem185.read(iprot); + struct.success.add(_elem185); } iprot.readListEnd(); } @@ -115447,9 +100835,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllApplicationI oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter267 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter187 : struct.success) { - _iter267.write(oprot); + _iter187.write(oprot); } oprot.writeListEnd(); } @@ -115512,9 +100900,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllApplicationIn if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter268 : struct.success) + for (org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _iter188 : struct.success) { - _iter268.write(oprot); + _iter188.write(oprot); } } } @@ -115538,14 +100926,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllApplicationInt BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list269.size); - org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem270; - for (int _i271 = 0; _i271 < _list269.size; ++_i271) + org.apache.thrift.protocol.TList _list189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list189.size); + org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription _elem190; + for (int _i191 = 0; _i191 < _list189.size; ++_i191) { - _elem270 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); - _elem270.read(iprot); - struct.success.add(_elem270); + _elem190 = new org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription(); + _elem190.read(iprot); + struct.success.add(_elem190); } } struct.setSuccessIsSet(true); @@ -116679,14 +102067,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationInput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(); - struct.success = new ArrayList(_list272.size); - org.apache.airavata.model.application.io.InputDataObjectType _elem273; - for (int _i274 = 0; _i274 < _list272.size; ++_i274) + org.apache.thrift.protocol.TList _list192 = iprot.readListBegin(); + struct.success = new ArrayList(_list192.size); + org.apache.airavata.model.application.io.InputDataObjectType _elem193; + for (int _i194 = 0; _i194 < _list192.size; ++_i194) { - _elem273 = new org.apache.airavata.model.application.io.InputDataObjectType(); - _elem273.read(iprot); - struct.success.add(_elem273); + _elem193 = new org.apache.airavata.model.application.io.InputDataObjectType(); + _elem193.read(iprot); + struct.success.add(_elem193); } iprot.readListEnd(); } @@ -116750,9 +102138,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getApplicationInpu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.application.io.InputDataObjectType _iter275 : struct.success) + for (org.apache.airavata.model.application.io.InputDataObjectType _iter195 : struct.success) { - _iter275.write(oprot); + _iter195.write(oprot); } oprot.writeListEnd(); } @@ -116815,9 +102203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getApplicationInput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.application.io.InputDataObjectType _iter276 : struct.success) + for (org.apache.airavata.model.application.io.InputDataObjectType _iter196 : struct.success) { - _iter276.write(oprot); + _iter196.write(oprot); } } } @@ -116841,14 +102229,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationInputs BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list277.size); - org.apache.airavata.model.application.io.InputDataObjectType _elem278; - for (int _i279 = 0; _i279 < _list277.size; ++_i279) + org.apache.thrift.protocol.TList _list197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list197.size); + org.apache.airavata.model.application.io.InputDataObjectType _elem198; + for (int _i199 = 0; _i199 < _list197.size; ++_i199) { - _elem278 = new org.apache.airavata.model.application.io.InputDataObjectType(); - _elem278.read(iprot); - struct.success.add(_elem278); + _elem198 = new org.apache.airavata.model.application.io.InputDataObjectType(); + _elem198.read(iprot); + struct.success.add(_elem198); } } struct.setSuccessIsSet(true); @@ -117982,14 +103370,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getApplicationOutpu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list280 = iprot.readListBegin(); - struct.success = new ArrayList(_list280.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem281; - for (int _i282 = 0; _i282 < _list280.size; ++_i282) + org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); + struct.success = new ArrayList(_list200.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem201; + for (int _i202 = 0; _i202 < _list200.size; ++_i202) { - _elem281 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem281.read(iprot); - struct.success.add(_elem281); + _elem201 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem201.read(iprot); + struct.success.add(_elem201); } iprot.readListEnd(); } @@ -118053,9 +103441,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getApplicationOutp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter283 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter203 : struct.success) { - _iter283.write(oprot); + _iter203.write(oprot); } oprot.writeListEnd(); } @@ -118118,9 +103506,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getApplicationOutpu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.application.io.OutputDataObjectType _iter284 : struct.success) + for (org.apache.airavata.model.application.io.OutputDataObjectType _iter204 : struct.success) { - _iter284.write(oprot); + _iter204.write(oprot); } } } @@ -118144,14 +103532,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getApplicationOutput BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list285.size); - org.apache.airavata.model.application.io.OutputDataObjectType _elem286; - for (int _i287 = 0; _i287 < _list285.size; ++_i287) + org.apache.thrift.protocol.TList _list205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list205.size); + org.apache.airavata.model.application.io.OutputDataObjectType _elem206; + for (int _i207 = 0; _i207 < _list205.size; ++_i207) { - _elem286 = new org.apache.airavata.model.application.io.OutputDataObjectType(); - _elem286.read(iprot); - struct.success.add(_elem286); + _elem206 = new org.apache.airavata.model.application.io.OutputDataObjectType(); + _elem206.read(iprot); + struct.success.add(_elem206); } } struct.setSuccessIsSet(true); @@ -119279,15 +104667,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAvailableAppInte case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map288 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map288.size); - String _key289; - String _val290; - for (int _i291 = 0; _i291 < _map288.size; ++_i291) + org.apache.thrift.protocol.TMap _map208 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map208.size); + String _key209; + String _val210; + for (int _i211 = 0; _i211 < _map208.size; ++_i211) { - _key289 = iprot.readString(); - _val290 = iprot.readString(); - struct.success.put(_key289, _val290); + _key209 = iprot.readString(); + _val210 = iprot.readString(); + struct.success.put(_key209, _val210); } iprot.readMapEnd(); } @@ -119351,10 +104739,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAvailableAppInt oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter292 : struct.success.entrySet()) + for (Map.Entry _iter212 : struct.success.entrySet()) { - oprot.writeString(_iter292.getKey()); - oprot.writeString(_iter292.getValue()); + oprot.writeString(_iter212.getKey()); + oprot.writeString(_iter212.getValue()); } oprot.writeMapEnd(); } @@ -119417,10 +104805,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAvailableAppInte if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter293 : struct.success.entrySet()) + for (Map.Entry _iter213 : struct.success.entrySet()) { - oprot.writeString(_iter293.getKey()); - oprot.writeString(_iter293.getValue()); + oprot.writeString(_iter213.getKey()); + oprot.writeString(_iter213.getValue()); } } } @@ -119444,15 +104832,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAvailableAppInter BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map294 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map294.size); - String _key295; - String _val296; - for (int _i297 = 0; _i297 < _map294.size; ++_i297) + org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map214.size); + String _key215; + String _val216; + for (int _i217 = 0; _i217 < _map214.size; ++_i217) { - _key295 = iprot.readString(); - _val296 = iprot.readString(); - struct.success.put(_key295, _val296); + _key215 = iprot.readString(); + _val216 = iprot.readString(); + struct.success.put(_key215, _val216); } } struct.setSuccessIsSet(true); @@ -122987,15 +108375,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllComputeResour case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map298 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map298.size); - String _key299; - String _val300; - for (int _i301 = 0; _i301 < _map298.size; ++_i301) + org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map218.size); + String _key219; + String _val220; + for (int _i221 = 0; _i221 < _map218.size; ++_i221) { - _key299 = iprot.readString(); - _val300 = iprot.readString(); - struct.success.put(_key299, _val300); + _key219 = iprot.readString(); + _val220 = iprot.readString(); + struct.success.put(_key219, _val220); } iprot.readMapEnd(); } @@ -123059,10 +108447,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllComputeResou oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter302 : struct.success.entrySet()) + for (Map.Entry _iter222 : struct.success.entrySet()) { - oprot.writeString(_iter302.getKey()); - oprot.writeString(_iter302.getValue()); + oprot.writeString(_iter222.getKey()); + oprot.writeString(_iter222.getValue()); } oprot.writeMapEnd(); } @@ -123125,10 +108513,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllComputeResour if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter303 : struct.success.entrySet()) + for (Map.Entry _iter223 : struct.success.entrySet()) { - oprot.writeString(_iter303.getKey()); - oprot.writeString(_iter303.getValue()); + oprot.writeString(_iter223.getKey()); + oprot.writeString(_iter223.getValue()); } } } @@ -123152,15 +108540,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllComputeResourc BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map304 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map304.size); - String _key305; - String _val306; - for (int _i307 = 0; _i307 < _map304.size; ++_i307) + org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map224.size); + String _key225; + String _val226; + for (int _i227 = 0; _i227 < _map224.size; ++_i227) { - _key305 = iprot.readString(); - _val306 = iprot.readString(); - struct.success.put(_key305, _val306); + _key225 = iprot.readString(); + _val226 = iprot.readString(); + struct.success.put(_key225, _val226); } } struct.setSuccessIsSet(true); @@ -161414,15 +146802,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, changeJobSubmission case 2: // JOB_SUBMISSION_PRIORITY_MAP if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map308 = iprot.readMapBegin(); - struct.jobSubmissionPriorityMap = new HashMap(2*_map308.size); - String _key309; - int _val310; - for (int _i311 = 0; _i311 < _map308.size; ++_i311) + org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin(); + struct.jobSubmissionPriorityMap = new HashMap(2*_map228.size); + String _key229; + int _val230; + for (int _i231 = 0; _i231 < _map228.size; ++_i231) { - _key309 = iprot.readString(); - _val310 = iprot.readI32(); - struct.jobSubmissionPriorityMap.put(_key309, _val310); + _key229 = iprot.readString(); + _val230 = iprot.readI32(); + struct.jobSubmissionPriorityMap.put(_key229, _val230); } iprot.readMapEnd(); } @@ -161455,10 +146843,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, changeJobSubmissio oprot.writeFieldBegin(JOB_SUBMISSION_PRIORITY_MAP_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.jobSubmissionPriorityMap.size())); - for (Map.Entry _iter312 : struct.jobSubmissionPriorityMap.entrySet()) + for (Map.Entry _iter232 : struct.jobSubmissionPriorityMap.entrySet()) { - oprot.writeString(_iter312.getKey()); - oprot.writeI32(_iter312.getValue()); + oprot.writeString(_iter232.getKey()); + oprot.writeI32(_iter232.getValue()); } oprot.writeMapEnd(); } @@ -161484,10 +146872,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeJobSubmission struct.authzToken.write(oprot); { oprot.writeI32(struct.jobSubmissionPriorityMap.size()); - for (Map.Entry _iter313 : struct.jobSubmissionPriorityMap.entrySet()) + for (Map.Entry _iter233 : struct.jobSubmissionPriorityMap.entrySet()) { - oprot.writeString(_iter313.getKey()); - oprot.writeI32(_iter313.getValue()); + oprot.writeString(_iter233.getKey()); + oprot.writeI32(_iter233.getValue()); } } } @@ -161499,15 +146887,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, changeJobSubmissionP struct.authzToken.read(iprot); struct.setAuthzTokenIsSet(true); { - org.apache.thrift.protocol.TMap _map314 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.jobSubmissionPriorityMap = new HashMap(2*_map314.size); - String _key315; - int _val316; - for (int _i317 = 0; _i317 < _map314.size; ++_i317) + org.apache.thrift.protocol.TMap _map234 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.jobSubmissionPriorityMap = new HashMap(2*_map234.size); + String _key235; + int _val236; + for (int _i237 = 0; _i237 < _map234.size; ++_i237) { - _key315 = iprot.readString(); - _val316 = iprot.readI32(); - struct.jobSubmissionPriorityMap.put(_key315, _val316); + _key235 = iprot.readString(); + _val236 = iprot.readI32(); + struct.jobSubmissionPriorityMap.put(_key235, _val236); } } struct.setJobSubmissionPriorityMapIsSet(true); @@ -162715,15 +148103,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, changeDataMovementP case 2: // DATA_MOVEMENT_PRIORITY_MAP if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map318 = iprot.readMapBegin(); - struct.dataMovementPriorityMap = new HashMap(2*_map318.size); - String _key319; - int _val320; - for (int _i321 = 0; _i321 < _map318.size; ++_i321) + org.apache.thrift.protocol.TMap _map238 = iprot.readMapBegin(); + struct.dataMovementPriorityMap = new HashMap(2*_map238.size); + String _key239; + int _val240; + for (int _i241 = 0; _i241 < _map238.size; ++_i241) { - _key319 = iprot.readString(); - _val320 = iprot.readI32(); - struct.dataMovementPriorityMap.put(_key319, _val320); + _key239 = iprot.readString(); + _val240 = iprot.readI32(); + struct.dataMovementPriorityMap.put(_key239, _val240); } iprot.readMapEnd(); } @@ -162756,10 +148144,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, changeDataMovement oprot.writeFieldBegin(DATA_MOVEMENT_PRIORITY_MAP_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, struct.dataMovementPriorityMap.size())); - for (Map.Entry _iter322 : struct.dataMovementPriorityMap.entrySet()) + for (Map.Entry _iter242 : struct.dataMovementPriorityMap.entrySet()) { - oprot.writeString(_iter322.getKey()); - oprot.writeI32(_iter322.getValue()); + oprot.writeString(_iter242.getKey()); + oprot.writeI32(_iter242.getValue()); } oprot.writeMapEnd(); } @@ -162785,10 +148173,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, changeDataMovementP struct.authzToken.write(oprot); { oprot.writeI32(struct.dataMovementPriorityMap.size()); - for (Map.Entry _iter323 : struct.dataMovementPriorityMap.entrySet()) + for (Map.Entry _iter243 : struct.dataMovementPriorityMap.entrySet()) { - oprot.writeString(_iter323.getKey()); - oprot.writeI32(_iter323.getValue()); + oprot.writeString(_iter243.getKey()); + oprot.writeI32(_iter243.getValue()); } } } @@ -162800,15 +148188,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, changeDataMovementPr struct.authzToken.read(iprot); struct.setAuthzTokenIsSet(true); { - org.apache.thrift.protocol.TMap _map324 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.dataMovementPriorityMap = new HashMap(2*_map324.size); - String _key325; - int _val326; - for (int _i327 = 0; _i327 < _map324.size; ++_i327) + org.apache.thrift.protocol.TMap _map244 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.dataMovementPriorityMap = new HashMap(2*_map244.size); + String _key245; + int _val246; + for (int _i247 = 0; _i247 < _map244.size; ++_i247) { - _key325 = iprot.readString(); - _val326 = iprot.readI32(); - struct.dataMovementPriorityMap.put(_key325, _val326); + _key245 = iprot.readString(); + _val246 = iprot.readI32(); + struct.dataMovementPriorityMap.put(_key245, _val246); } } struct.setDataMovementPriorityMapIsSet(true); @@ -181795,14 +167183,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllGatewayComput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list328 = iprot.readListBegin(); - struct.success = new ArrayList(_list328.size); - org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem329; - for (int _i330 = 0; _i330 < _list328.size; ++_i330) + org.apache.thrift.protocol.TList _list248 = iprot.readListBegin(); + struct.success = new ArrayList(_list248.size); + org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem249; + for (int _i250 = 0; _i250 < _list248.size; ++_i250) { - _elem329 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); - _elem329.read(iprot); - struct.success.add(_elem329); + _elem249 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); + _elem249.read(iprot); + struct.success.add(_elem249); } iprot.readListEnd(); } @@ -181866,9 +167254,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllGatewayCompu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter331 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter251 : struct.success) { - _iter331.write(oprot); + _iter251.write(oprot); } oprot.writeListEnd(); } @@ -181931,9 +167319,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllGatewayComput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter332 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _iter252 : struct.success) { - _iter332.write(oprot); + _iter252.write(oprot); } } } @@ -181957,14 +167345,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllGatewayCompute BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list333 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list333.size); - org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem334; - for (int _i335 = 0; _i335 < _list333.size; ++_i335) + org.apache.thrift.protocol.TList _list253 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list253.size); + org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference _elem254; + for (int _i255 = 0; _i255 < _list253.size; ++_i255) { - _elem334 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); - _elem334.read(iprot); - struct.success.add(_elem334); + _elem254 = new org.apache.airavata.model.appcatalog.gatewayprofile.ComputeResourcePreference(); + _elem254.read(iprot); + struct.success.add(_elem254); } } struct.setSuccessIsSet(true); @@ -182997,14 +168385,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllGatewayComput case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list336 = iprot.readListBegin(); - struct.success = new ArrayList(_list336.size); - org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem337; - for (int _i338 = 0; _i338 < _list336.size; ++_i338) + org.apache.thrift.protocol.TList _list256 = iprot.readListBegin(); + struct.success = new ArrayList(_list256.size); + org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem257; + for (int _i258 = 0; _i258 < _list256.size; ++_i258) { - _elem337 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); - _elem337.read(iprot); - struct.success.add(_elem337); + _elem257 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); + _elem257.read(iprot); + struct.success.add(_elem257); } iprot.readListEnd(); } @@ -183068,9 +168456,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllGatewayCompu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter339 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter259 : struct.success) { - _iter339.write(oprot); + _iter259.write(oprot); } oprot.writeListEnd(); } @@ -183133,9 +168521,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllGatewayComput if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter340 : struct.success) + for (org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _iter260 : struct.success) { - _iter340.write(oprot); + _iter260.write(oprot); } } } @@ -183159,14 +168547,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllGatewayCompute BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list341 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list341.size); - org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem342; - for (int _i343 = 0; _i343 < _list341.size; ++_i343) + org.apache.thrift.protocol.TList _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list261.size); + org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile _elem262; + for (int _i263 = 0; _i263 < _list261.size; ++_i263) { - _elem342 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); - _elem342.read(iprot); - struct.success.add(_elem342); + _elem262 = new org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile(); + _elem262.read(iprot); + struct.success.add(_elem262); } } struct.setSuccessIsSet(true); @@ -187103,13 +172491,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllWorkflows_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list344 = iprot.readListBegin(); - struct.success = new ArrayList(_list344.size); - String _elem345; - for (int _i346 = 0; _i346 < _list344.size; ++_i346) + org.apache.thrift.protocol.TList _list264 = iprot.readListBegin(); + struct.success = new ArrayList(_list264.size); + String _elem265; + for (int _i266 = 0; _i266 < _list264.size; ++_i266) { - _elem345 = iprot.readString(); - struct.success.add(_elem345); + _elem265 = iprot.readString(); + struct.success.add(_elem265); } iprot.readListEnd(); } @@ -187173,9 +172561,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllWorkflows_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter347 : struct.success) + for (String _iter267 : struct.success) { - oprot.writeString(_iter347); + oprot.writeString(_iter267); } oprot.writeListEnd(); } @@ -187238,9 +172626,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, getAllWorkflows_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter348 : struct.success) + for (String _iter268 : struct.success) { - oprot.writeString(_iter348); + oprot.writeString(_iter268); } } } @@ -187264,13 +172652,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getAllWorkflows_resu BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list349 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list349.size); - String _elem350; - for (int _i351 = 0; _i351 < _list349.size; ++_i351) + org.apache.thrift.protocol.TList _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list269.size); + String _elem270; + for (int _i271 = 0; _i271 < _list269.size; ++_i271) { - _elem350 = iprot.readString(); - struct.success.add(_elem350); + _elem270 = iprot.readString(); + struct.success.add(_elem270); } } struct.setSuccessIsSet(true); diff --git a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavata_apiConstants.java b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavata_apiConstants.java index 6a01675547..b159499321 100644 --- a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavata_apiConstants.java +++ b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavata_apiConstants.java @@ -67,6 +67,6 @@ public class airavata_apiConstants { * in a change to major/minor version numbers. * */ - public static final String AIRAVATA_API_VERSION = "0.15.0"; + public static final String AIRAVATA_API_VERSION = "0.16.0"; } diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp index 17cc59c58c..e1f991b08f 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.cpp @@ -4070,11 +4070,11 @@ uint32_t Airavata_deleteProject_presult::read(::apache::thrift::protocol::TProto } -Airavata_getAllUserProjects_args::~Airavata_getAllUserProjects_args() throw() { +Airavata_getUserProjects_args::~Airavata_getUserProjects_args() throw() { } -uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserProjects_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4085,8 +4085,11 @@ uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TPro using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -4097,6 +4100,14 @@ uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TPro switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -4104,7 +4115,7 @@ uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -4112,6 +4123,22 @@ uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TPro xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4121,26 +4148,44 @@ uint32_t Airavata_getAllUserProjects_args::read(::apache::thrift::protocol::TPro xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_getAllUserProjects_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserProjects_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserProjects_args"); + xfer += oprot->writeStructBegin("Airavata_getUserProjects_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->offset); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); oprot->decrementRecursionDepth(); @@ -4148,23 +4193,35 @@ uint32_t Airavata_getAllUserProjects_args::write(::apache::thrift::protocol::TPr } -Airavata_getAllUserProjects_pargs::~Airavata_getAllUserProjects_pargs() throw() { +Airavata_getUserProjects_pargs::~Airavata_getUserProjects_pargs() throw() { } -uint32_t Airavata_getAllUserProjects_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserProjects_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserProjects_pargs"); + xfer += oprot->writeStructBegin("Airavata_getUserProjects_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->offset))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); oprot->decrementRecursionDepth(); @@ -4172,11 +4229,11 @@ uint32_t Airavata_getAllUserProjects_pargs::write(::apache::thrift::protocol::TP } -Airavata_getAllUserProjects_result::~Airavata_getAllUserProjects_result() throw() { +Airavata_getUserProjects_result::~Airavata_getUserProjects_result() throw() { } -uint32_t Airavata_getAllUserProjects_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserProjects_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4240,6 +4297,14 @@ uint32_t Airavata_getAllUserProjects_result::read(::apache::thrift::protocol::TP xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4252,11 +4317,11 @@ uint32_t Airavata_getAllUserProjects_result::read(::apache::thrift::protocol::TP return xfer; } -uint32_t Airavata_getAllUserProjects_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserProjects_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserProjects_result"); + xfer += oprot->writeStructBegin("Airavata_getUserProjects_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); @@ -4282,6 +4347,10 @@ uint32_t Airavata_getAllUserProjects_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -4289,11 +4358,11 @@ uint32_t Airavata_getAllUserProjects_result::write(::apache::thrift::protocol::T } -Airavata_getAllUserProjects_presult::~Airavata_getAllUserProjects_presult() throw() { +Airavata_getUserProjects_presult::~Airavata_getUserProjects_presult() throw() { } -uint32_t Airavata_getAllUserProjects_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserProjects_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4357,6 +4426,14 @@ uint32_t Airavata_getAllUserProjects_presult::read(::apache::thrift::protocol::T xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4370,11 +4447,11 @@ uint32_t Airavata_getAllUserProjects_presult::read(::apache::thrift::protocol::T } -Airavata_getAllUserProjectsWithPagination_args::~Airavata_getAllUserProjectsWithPagination_args() throw() { +Airavata_searchProjectsByProjectName_args::~Airavata_searchProjectsByProjectName_args() throw() { } -uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4388,6 +4465,7 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift:: bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; + bool isset_projectName = false; bool isset_limit = false; bool isset_offset = false; @@ -4424,6 +4502,14 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift:: } break; case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->projectName); + isset_projectName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->limit); isset_limit = true; @@ -4431,7 +4517,7 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift:: xfer += iprot->skip(ftype); } break; - case 5: + case 6: if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->offset); isset_offset = true; @@ -4454,6 +4540,8 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift:: throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_projectName) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_limit) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_offset) @@ -4461,10 +4549,10 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::read(::apache::thrift:: return xfer; } -uint32_t Airavata_getAllUserProjectsWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -4478,11 +4566,15 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::write(::apache::thrift: xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->projectName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); xfer += oprot->writeI32(this->limit); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); @@ -4493,14 +4585,14 @@ uint32_t Airavata_getAllUserProjectsWithPagination_args::write(::apache::thrift: } -Airavata_getAllUserProjectsWithPagination_pargs::~Airavata_getAllUserProjectsWithPagination_pargs() throw() { +Airavata_searchProjectsByProjectName_pargs::~Airavata_searchProjectsByProjectName_pargs() throw() { } -uint32_t Airavata_getAllUserProjectsWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -4514,11 +4606,15 @@ uint32_t Airavata_getAllUserProjectsWithPagination_pargs::write(::apache::thrift xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->projectName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); xfer += oprot->writeI32((*(this->limit))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); @@ -4529,11 +4625,11 @@ uint32_t Airavata_getAllUserProjectsWithPagination_pargs::write(::apache::thrift } -Airavata_getAllUserProjectsWithPagination_result::~Airavata_getAllUserProjectsWithPagination_result() throw() { +Airavata_searchProjectsByProjectName_result::~Airavata_searchProjectsByProjectName_result() throw() { } -uint32_t Airavata_getAllUserProjectsWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4617,11 +4713,11 @@ uint32_t Airavata_getAllUserProjectsWithPagination_result::read(::apache::thrift return xfer; } -uint32_t Airavata_getAllUserProjectsWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserProjectsWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); @@ -4658,11 +4754,11 @@ uint32_t Airavata_getAllUserProjectsWithPagination_result::write(::apache::thrif } -Airavata_getAllUserProjectsWithPagination_presult::~Airavata_getAllUserProjectsWithPagination_presult() throw() { +Airavata_searchProjectsByProjectName_presult::~Airavata_searchProjectsByProjectName_presult() throw() { } -uint32_t Airavata_getAllUserProjectsWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4747,11 +4843,11 @@ uint32_t Airavata_getAllUserProjectsWithPagination_presult::read(::apache::thrif } -Airavata_searchProjectsByProjectName_args::~Airavata_searchProjectsByProjectName_args() throw() { +Airavata_searchProjectsByProjectDesc_args::~Airavata_searchProjectsByProjectDesc_args() throw() { } -uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4762,9 +4858,12 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_projectName = false; + bool isset_description = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -4775,6 +4874,14 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -4782,7 +4889,7 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -4790,10 +4897,26 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectName); - isset_projectName = true; + xfer += iprot->readString(this->description); + isset_description = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -4807,30 +4930,48 @@ uint32_t Airavata_searchProjectsByProjectName_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_projectName) + if (!isset_description) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_args"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->projectName); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4840,25 +4981,37 @@ uint32_t Airavata_searchProjectsByProjectName_args::write(::apache::thrift::prot } -Airavata_searchProjectsByProjectName_pargs::~Airavata_searchProjectsByProjectName_pargs() throw() { +Airavata_searchProjectsByProjectDesc_pargs::~Airavata_searchProjectsByProjectDesc_pargs() throw() { } -uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->projectName))); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -4868,11 +5021,11 @@ uint32_t Airavata_searchProjectsByProjectName_pargs::write(::apache::thrift::pro } -Airavata_searchProjectsByProjectName_result::~Airavata_searchProjectsByProjectName_result() throw() { +Airavata_searchProjectsByProjectDesc_result::~Airavata_searchProjectsByProjectDesc_result() throw() { } -uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4936,6 +5089,14 @@ uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -4948,11 +5109,11 @@ uint32_t Airavata_searchProjectsByProjectName_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectName_result"); + xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); @@ -4978,6 +5139,10 @@ uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -4985,11 +5150,11 @@ uint32_t Airavata_searchProjectsByProjectName_result::write(::apache::thrift::pr } -Airavata_searchProjectsByProjectName_presult::~Airavata_searchProjectsByProjectName_presult() throw() { +Airavata_searchProjectsByProjectDesc_presult::~Airavata_searchProjectsByProjectDesc_presult() throw() { } -uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5053,6 +5218,14 @@ uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::pr xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5066,11 +5239,11 @@ uint32_t Airavata_searchProjectsByProjectName_presult::read(::apache::thrift::pr } -Airavata_searchProjectsByProjectNameWithPagination_args::~Airavata_searchProjectsByProjectNameWithPagination_args() throw() { +Airavata_searchExperimentsByName_args::~Airavata_searchExperimentsByName_args() throw() { } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5084,7 +5257,7 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache: bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_projectName = false; + bool isset_expName = false; bool isset_limit = false; bool isset_offset = false; @@ -5122,8 +5295,8 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache: break; case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectName); - isset_projectName = true; + xfer += iprot->readString(this->expName); + isset_expName = true; } else { xfer += iprot->skip(ftype); } @@ -5159,7 +5332,7 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache: throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_projectName) + if (!isset_expName) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_limit) throw TProtocolException(TProtocolException::INVALID_DATA); @@ -5168,10 +5341,10 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::read(::apache: return xfer; } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -5185,8 +5358,8 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::write(::apache xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->projectName); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->expName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); @@ -5204,14 +5377,14 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_args::write(::apache } -Airavata_searchProjectsByProjectNameWithPagination_pargs::~Airavata_searchProjectsByProjectNameWithPagination_pargs() throw() { +Airavata_searchExperimentsByName_pargs::~Airavata_searchExperimentsByName_pargs() throw() { } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -5225,8 +5398,8 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_pargs::write(::apach xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("projectName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->projectName))); + xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->expName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); @@ -5244,11 +5417,11 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_pargs::write(::apach } -Airavata_searchProjectsByProjectNameWithPagination_result::~Airavata_searchProjectsByProjectNameWithPagination_result() throw() { +Airavata_searchExperimentsByName_result::~Airavata_searchExperimentsByName_result() throw() { } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5332,17 +5505,17 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::read(::apach return xfer; } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectNameWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter64; + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter64; for (_iter64 = this->success.begin(); _iter64 != this->success.end(); ++_iter64) { xfer += (*_iter64).write(oprot); @@ -5373,11 +5546,11 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_result::write(::apac } -Airavata_searchProjectsByProjectNameWithPagination_presult::~Airavata_searchProjectsByProjectNameWithPagination_presult() throw() { +Airavata_searchExperimentsByName_presult::~Airavata_searchExperimentsByName_presult() throw() { } -uint32_t Airavata_searchProjectsByProjectNameWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5462,11 +5635,11 @@ uint32_t Airavata_searchProjectsByProjectNameWithPagination_presult::read(::apac } -Airavata_searchProjectsByProjectDesc_args::~Airavata_searchProjectsByProjectDesc_args() throw() { +Airavata_searchExperimentsByDesc_args::~Airavata_searchExperimentsByDesc_args() throw() { } -uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5477,9 +5650,12 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; bool isset_description = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -5490,6 +5666,14 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -5497,7 +5681,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -5505,7 +5689,7 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; - case 3: + case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->description); isset_description = true; @@ -5513,6 +5697,22 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5522,32 +5722,50 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::read(::apache::thrift::proto xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_description) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); xfer += oprot->writeString(this->description); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32(this->offset); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); oprot->decrementRecursionDepth(); @@ -5555,27 +5773,39 @@ uint32_t Airavata_searchProjectsByProjectDesc_args::write(::apache::thrift::prot } -Airavata_searchProjectsByProjectDesc_pargs::~Airavata_searchProjectsByProjectDesc_pargs() throw() { +Airavata_searchExperimentsByDesc_pargs::~Airavata_searchExperimentsByDesc_pargs() throw() { } -uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); xfer += oprot->writeString((*(this->description))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((*(this->offset))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); oprot->decrementRecursionDepth(); @@ -5583,11 +5813,11 @@ uint32_t Airavata_searchProjectsByProjectDesc_pargs::write(::apache::thrift::pro } -Airavata_searchProjectsByProjectDesc_result::~Airavata_searchProjectsByProjectDesc_result() throw() { +Airavata_searchExperimentsByDesc_result::~Airavata_searchExperimentsByDesc_result() throw() { } -uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5651,6 +5881,14 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::pro xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5663,17 +5901,17 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::read(::apache::thrift::pro return xfer; } -uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDesc_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter75; + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter75; for (_iter75 = this->success.begin(); _iter75 != this->success.end(); ++_iter75) { xfer += (*_iter75).write(oprot); @@ -5693,6 +5931,10 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -5700,11 +5942,11 @@ uint32_t Airavata_searchProjectsByProjectDesc_result::write(::apache::thrift::pr } -Airavata_searchProjectsByProjectDesc_presult::~Airavata_searchProjectsByProjectDesc_presult() throw() { +Airavata_searchExperimentsByDesc_presult::~Airavata_searchExperimentsByDesc_presult() throw() { } -uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5768,6 +6010,14 @@ uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::pr xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -5781,11 +6031,11 @@ uint32_t Airavata_searchProjectsByProjectDesc_presult::read(::apache::thrift::pr } -Airavata_searchProjectsByProjectDescWithPagination_args::~Airavata_searchProjectsByProjectDescWithPagination_args() throw() { +Airavata_searchExperimentsByApplication_args::~Airavata_searchExperimentsByApplication_args() throw() { } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -5799,7 +6049,7 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache: bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_description = false; + bool isset_applicationId = false; bool isset_limit = false; bool isset_offset = false; @@ -5837,8 +6087,8 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache: break; case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->description); - isset_description = true; + xfer += iprot->readString(this->applicationId); + isset_applicationId = true; } else { xfer += iprot->skip(ftype); } @@ -5874,7 +6124,7 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache: throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_description) + if (!isset_applicationId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_limit) throw TProtocolException(TProtocolException::INVALID_DATA); @@ -5883,10 +6133,10 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::read(::apache: return xfer; } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -5900,8 +6150,8 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::write(::apache xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->applicationId); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); @@ -5919,14 +6169,14 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_args::write(::apache } -Airavata_searchProjectsByProjectDescWithPagination_pargs::~Airavata_searchProjectsByProjectDescWithPagination_pargs() throw() { +Airavata_searchExperimentsByApplication_pargs::~Airavata_searchExperimentsByApplication_pargs() throw() { } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -5940,8 +6190,8 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_pargs::write(::apach xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->applicationId))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); @@ -5959,11 +6209,11 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_pargs::write(::apach } -Airavata_searchProjectsByProjectDescWithPagination_result::~Airavata_searchProjectsByProjectDescWithPagination_result() throw() { +Airavata_searchExperimentsByApplication_result::~Airavata_searchExperimentsByApplication_result() throw() { } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6047,17 +6297,17 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::read(::apach return xfer; } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchProjectsByProjectDescWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::workspace::Project> ::const_iterator _iter86; + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter86; for (_iter86 = this->success.begin(); _iter86 != this->success.end(); ++_iter86) { xfer += (*_iter86).write(oprot); @@ -6088,11 +6338,11 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_result::write(::apac } -Airavata_searchProjectsByProjectDescWithPagination_presult::~Airavata_searchProjectsByProjectDescWithPagination_presult() throw() { +Airavata_searchExperimentsByApplication_presult::~Airavata_searchExperimentsByApplication_presult() throw() { } -uint32_t Airavata_searchProjectsByProjectDescWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6177,11 +6427,11 @@ uint32_t Airavata_searchProjectsByProjectDescWithPagination_presult::read(::apac } -Airavata_searchExperimentsByName_args::~Airavata_searchExperimentsByName_args() throw() { +Airavata_searchExperimentsByStatus_args::~Airavata_searchExperimentsByStatus_args() throw() { } -uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6192,9 +6442,12 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_expName = false; + bool isset_experimentState = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -6205,6 +6458,14 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -6212,7 +6473,7 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -6220,10 +6481,28 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->expName); - isset_expName = true; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast92; + xfer += iprot->readI32(ecast92); + this->experimentState = ( ::apache::airavata::model::status::ExperimentState::type)ecast92; + isset_experimentState = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -6237,30 +6516,48 @@ uint32_t Airavata_searchExperimentsByName_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_expName) + if (!isset_experimentState) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->expName); + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)this->experimentState); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6270,25 +6567,37 @@ uint32_t Airavata_searchExperimentsByName_args::write(::apache::thrift::protocol } -Airavata_searchExperimentsByName_pargs::~Airavata_searchExperimentsByName_pargs() throw() { +Airavata_searchExperimentsByStatus_pargs::~Airavata_searchExperimentsByStatus_pargs() throw() { } -uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->expName))); + xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((int32_t)(*(this->experimentState))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -6298,11 +6607,11 @@ uint32_t Airavata_searchExperimentsByName_pargs::write(::apache::thrift::protoco } -Airavata_searchExperimentsByName_result::~Airavata_searchExperimentsByName_result() throw() { +Airavata_searchExperimentsByStatus_result::~Airavata_searchExperimentsByStatus_result() throw() { } -uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6326,14 +6635,14 @@ uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size92; - ::apache::thrift::protocol::TType _etype95; - xfer += iprot->readListBegin(_etype95, _size92); - this->success.resize(_size92); - uint32_t _i96; - for (_i96 = 0; _i96 < _size92; ++_i96) + uint32_t _size93; + ::apache::thrift::protocol::TType _etype96; + xfer += iprot->readListBegin(_etype96, _size93); + this->success.resize(_size93); + uint32_t _i97; + for (_i97 = 0; _i97 < _size93; ++_i97) { - xfer += this->success[_i96].read(iprot); + xfer += this->success[_i97].read(iprot); } xfer += iprot->readListEnd(); } @@ -6366,6 +6675,14 @@ uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protoco xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6378,20 +6695,20 @@ uint32_t Airavata_searchExperimentsByName_result::read(::apache::thrift::protoco return xfer; } -uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByName_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter97; - for (_iter97 = this->success.begin(); _iter97 != this->success.end(); ++_iter97) + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter98; + for (_iter98 = this->success.begin(); _iter98 != this->success.end(); ++_iter98) { - xfer += (*_iter97).write(oprot); + xfer += (*_iter98).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6408,6 +6725,10 @@ uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -6415,11 +6736,11 @@ uint32_t Airavata_searchExperimentsByName_result::write(::apache::thrift::protoc } -Airavata_searchExperimentsByName_presult::~Airavata_searchExperimentsByName_presult() throw() { +Airavata_searchExperimentsByStatus_presult::~Airavata_searchExperimentsByStatus_presult() throw() { } -uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6443,14 +6764,14 @@ uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size98; - ::apache::thrift::protocol::TType _etype101; - xfer += iprot->readListBegin(_etype101, _size98); - (*(this->success)).resize(_size98); - uint32_t _i102; - for (_i102 = 0; _i102 < _size98; ++_i102) + uint32_t _size99; + ::apache::thrift::protocol::TType _etype102; + xfer += iprot->readListBegin(_etype102, _size99); + (*(this->success)).resize(_size99); + uint32_t _i103; + for (_i103 = 0; _i103 < _size99; ++_i103) { - xfer += (*(this->success))[_i102].read(iprot); + xfer += (*(this->success))[_i103].read(iprot); } xfer += iprot->readListEnd(); } @@ -6483,6 +6804,14 @@ uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protoc xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -6496,11 +6825,11 @@ uint32_t Airavata_searchExperimentsByName_presult::read(::apache::thrift::protoc } -Airavata_searchExperimentsByNameWithPagination_args::~Airavata_searchExperimentsByNameWithPagination_args() throw() { +Airavata_searchExperimentsByCreationTime_args::~Airavata_searchExperimentsByCreationTime_args() throw() { } -uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6514,7 +6843,8 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thr bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_expName = false; + bool isset_fromTime = false; + bool isset_toTime = false; bool isset_limit = false; bool isset_offset = false; @@ -6551,14 +6881,22 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thr } break; case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->expName); - isset_expName = true; + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->fromTime); + isset_fromTime = true; } else { xfer += iprot->skip(ftype); } break; case 5: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->toTime); + isset_toTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->limit); isset_limit = true; @@ -6566,7 +6904,7 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thr xfer += iprot->skip(ftype); } break; - case 6: + case 7: if (ftype == ::apache::thrift::protocol::T_I32) { xfer += iprot->readI32(this->offset); isset_offset = true; @@ -6589,7 +6927,9 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_expName) + if (!isset_fromTime) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_toTime) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_limit) throw TProtocolException(TProtocolException::INVALID_DATA); @@ -6598,10 +6938,10 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::read(::apache::thr return xfer; } -uint32_t Airavata_searchExperimentsByNameWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -6615,15 +6955,19 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::write(::apache::th xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->expName); + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->fromTime); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64(this->toTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 6); xfer += oprot->writeI32(this->limit); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 7); xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); @@ -6634,14 +6978,14 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_args::write(::apache::th } -Airavata_searchExperimentsByNameWithPagination_pargs::~Airavata_searchExperimentsByNameWithPagination_pargs() throw() { +Airavata_searchExperimentsByCreationTime_pargs::~Airavata_searchExperimentsByCreationTime_pargs() throw() { } -uint32_t Airavata_searchExperimentsByNameWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -6655,15 +6999,19 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_pargs::write(::apache::t xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("expName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->expName))); + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64((*(this->fromTime))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 5); + xfer += oprot->writeI64((*(this->toTime))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 6); xfer += oprot->writeI32((*(this->limit))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 7); xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); @@ -6674,11 +7022,11 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_pargs::write(::apache::t } -Airavata_searchExperimentsByNameWithPagination_result::~Airavata_searchExperimentsByNameWithPagination_result() throw() { +Airavata_searchExperimentsByCreationTime_result::~Airavata_searchExperimentsByCreationTime_result() throw() { } -uint32_t Airavata_searchExperimentsByNameWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6702,14 +7050,14 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_result::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size103; - ::apache::thrift::protocol::TType _etype106; - xfer += iprot->readListBegin(_etype106, _size103); - this->success.resize(_size103); - uint32_t _i107; - for (_i107 = 0; _i107 < _size103; ++_i107) + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->success.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { - xfer += this->success[_i107].read(iprot); + xfer += this->success[_i108].read(iprot); } xfer += iprot->readListEnd(); } @@ -6762,20 +7110,20 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_result::read(::apache::t return xfer; } -uint32_t Airavata_searchExperimentsByNameWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperimentsByCreationTime_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByNameWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter108; - for (_iter108 = this->success.begin(); _iter108 != this->success.end(); ++_iter108) + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter109; + for (_iter109 = this->success.begin(); _iter109 != this->success.end(); ++_iter109) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter109).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6803,11 +7151,11 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_result::write(::apache:: } -Airavata_searchExperimentsByNameWithPagination_presult::~Airavata_searchExperimentsByNameWithPagination_presult() throw() { +Airavata_searchExperimentsByCreationTime_presult::~Airavata_searchExperimentsByCreationTime_presult() throw() { } -uint32_t Airavata_searchExperimentsByNameWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6831,14 +7179,14 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_presult::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size109; - ::apache::thrift::protocol::TType _etype112; - xfer += iprot->readListBegin(_etype112, _size109); - (*(this->success)).resize(_size109); - uint32_t _i113; - for (_i113 = 0; _i113 < _size109; ++_i113) + uint32_t _size110; + ::apache::thrift::protocol::TType _etype113; + xfer += iprot->readListBegin(_etype113, _size110); + (*(this->success)).resize(_size110); + uint32_t _i114; + for (_i114 = 0; _i114 < _size110; ++_i114) { - xfer += (*(this->success))[_i113].read(iprot); + xfer += (*(this->success))[_i114].read(iprot); } xfer += iprot->readListEnd(); } @@ -6892,11 +7240,11 @@ uint32_t Airavata_searchExperimentsByNameWithPagination_presult::read(::apache:: } -Airavata_searchExperimentsByDesc_args::~Airavata_searchExperimentsByDesc_args() throw() { +Airavata_searchExperiments_args::~Airavata_searchExperiments_args() throw() { } -uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -6907,9 +7255,11 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_gatewayId = false; bool isset_userName = false; - bool isset_description = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -6920,6 +7270,14 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -6927,7 +7285,7 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -6935,10 +7293,43 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->description); - isset_description = true; + case 4: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->filters.clear(); + uint32_t _size115; + ::apache::thrift::protocol::TType _ktype116; + ::apache::thrift::protocol::TType _vtype117; + xfer += iprot->readMapBegin(_ktype116, _vtype117, _size115); + uint32_t _i119; + for (_i119 = 0; _i119 < _size115; ++_i119) + { + ::apache::airavata::model::experiment::ExperimentSearchFields::type _key120; + int32_t ecast122; + xfer += iprot->readI32(ecast122); + _key120 = ( ::apache::airavata::model::experiment::ExperimentSearchFields::type)ecast122; + std::string& _val121 = this->filters[_key120]; + xfer += iprot->readString(_val121); + } + xfer += iprot->readMapEnd(); + } + this->__isset.filters = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -6952,58 +7343,55 @@ uint32_t Airavata_searchExperimentsByDesc_args::read(::apache::thrift::protocol: xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_description) + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByDesc_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_searchExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_args"); + xfer += oprot->writeStructBegin("Airavata_searchExperiments_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->description); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByDesc_pargs::~Airavata_searchExperimentsByDesc_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("filters", ::apache::thrift::protocol::T_MAP, 4); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast(this->filters.size())); + std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> ::const_iterator _iter123; + for (_iter123 = this->filters.begin(); _iter123 != this->filters.end(); ++_iter123) + { + xfer += oprot->writeI32((int32_t)_iter123->first); + xfer += oprot->writeString(_iter123->second); + } + xfer += oprot->writeMapEnd(); + } xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->limit); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->description))); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7013,128 +7401,60 @@ uint32_t Airavata_searchExperimentsByDesc_pargs::write(::apache::thrift::protoco } -Airavata_searchExperimentsByDesc_result::~Airavata_searchExperimentsByDesc_result() throw() { +Airavata_searchExperiments_pargs::~Airavata_searchExperiments_pargs() throw() { } -uint32_t Airavata_searchExperimentsByDesc_result::read(::apache::thrift::protocol::TProtocol* iprot) { - +uint32_t Airavata_searchExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; + oprot->incrementRecursionDepth(); + xfer += oprot->writeStructBegin("Airavata_searchExperiments_pargs"); - xfer += iprot->readStructBegin(fname); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); - using ::apache::thrift::protocol::TProtocolException; + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldEnd(); - while (true) + xfer += oprot->writeFieldBegin("filters", ::apache::thrift::protocol::T_MAP, 4); { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast((*(this->filters)).size())); + std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> ::const_iterator _iter124; + for (_iter124 = (*(this->filters)).begin(); _iter124 != (*(this->filters)).end(); ++_iter124) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size114; - ::apache::thrift::protocol::TType _etype117; - xfer += iprot->readListBegin(_etype117, _size114); - this->success.resize(_size114); - uint32_t _i118; - for (_i118 = 0; _i118 < _size114; ++_i118) - { - xfer += this->success[_i118].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; + xfer += oprot->writeI32((int32_t)_iter124->first); + xfer += oprot->writeString(_iter124->second); } - xfer += iprot->readFieldEnd(); + xfer += oprot->writeMapEnd(); } + xfer += oprot->writeFieldEnd(); - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByDesc_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDesc_result"); + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); + xfer += oprot->writeI32((*(this->offset))); + xfer += oprot->writeFieldEnd(); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter119; - for (_iter119 = this->success.begin(); _iter119 != this->success.end(); ++_iter119) - { - xfer += (*_iter119).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); + oprot->decrementRecursionDepth(); return xfer; } -Airavata_searchExperimentsByDesc_presult::~Airavata_searchExperimentsByDesc_presult() throw() { +Airavata_searchExperiments_result::~Airavata_searchExperiments_result() throw() { } -uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_searchExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7157,15 +7477,15 @@ uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protoc case 0: if (ftype == ::apache::thrift::protocol::T_LIST) { { - (*(this->success)).clear(); - uint32_t _size120; - ::apache::thrift::protocol::TType _etype123; - xfer += iprot->readListBegin(_etype123, _size120); - (*(this->success)).resize(_size120); - uint32_t _i124; - for (_i124 = 0; _i124 < _size120; ++_i124) + this->success.clear(); + uint32_t _size125; + ::apache::thrift::protocol::TType _etype128; + xfer += iprot->readListBegin(_etype128, _size125); + this->success.resize(_size125); + uint32_t _i129; + for (_i129 = 0; _i129 < _size125; ++_i129) { - xfer += (*(this->success))[_i124].read(iprot); + xfer += this->success[_i129].read(iprot); } xfer += iprot->readListEnd(); } @@ -7198,6 +7518,14 @@ uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protoc xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -7210,12 +7538,52 @@ uint32_t Airavata_searchExperimentsByDesc_presult::read(::apache::thrift::protoc return xfer; } +uint32_t Airavata_searchExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("Airavata_searchExperiments_result"); -Airavata_searchExperimentsByDescWithPagination_args::~Airavata_searchExperimentsByDescWithPagination_args() throw() { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter130; + for (_iter130 = this->success.begin(); _iter130 != this->success.end(); ++_iter130) + { + xfer += (*_iter130).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ire) { + xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->ire.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ace) { + xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->ace.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ase) { + xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->ase.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t Airavata_searchExperimentsByDescWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +Airavata_searchExperiments_presult::~Airavata_searchExperiments_presult() throw() { +} + + +uint32_t Airavata_searchExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7226,12 +7594,6 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_args::read(::apache::thr using ::apache::thrift::protocol::TProtocolException; - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_description = false; - bool isset_limit = false; - bool isset_offset = false; while (true) { @@ -7241,50 +7603,127 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_args::read(::apache::thr } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size131; + ::apache::thrift::protocol::TType _etype134; + xfer += iprot->readListBegin(_etype134, _size131); + (*(this->success)).resize(_size131); + uint32_t _i135; + for (_i135 = 0; _i135 < _size131; ++_i135) + { + xfer += (*(this->success))[_i135].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; + xfer += this->ire.read(iprot); + this->__isset.ire = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ace.read(iprot); + this->__isset.ace = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ase.read(iprot); + this->__isset.ase = true; } else { xfer += iprot->skip(ftype); } break; case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +Airavata_getExperimentStatistics_args::~Airavata_getExperimentStatistics_args() throw() { +} + + +uint32_t Airavata_getExperimentStatistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_authzToken = false; + bool isset_gatewayId = false; + bool isset_fromTime = false; + bool isset_toTime = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->description); - isset_description = true; + xfer += iprot->readString(this->gatewayId); + isset_gatewayId = true; } else { xfer += iprot->skip(ftype); } break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; + case 3: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->fromTime); + isset_fromTime = true; } else { xfer += iprot->skip(ftype); } break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; + case 4: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->toTime); + isset_toTime = true; } else { xfer += iprot->skip(ftype); } @@ -7302,21 +7741,17 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_args::read(::apache::thr throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_description) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) + if (!isset_fromTime) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) + if (!isset_toTime) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByDescWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -7326,20 +7761,12 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_args::write(::apache::th xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->description); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64(this->fromTime); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32(this->offset); + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64(this->toTime); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7349,14 +7776,14 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_args::write(::apache::th } -Airavata_searchExperimentsByDescWithPagination_pargs::~Airavata_searchExperimentsByDescWithPagination_pargs() throw() { +Airavata_getExperimentStatistics_pargs::~Airavata_getExperimentStatistics_pargs() throw() { } -uint32_t Airavata_searchExperimentsByDescWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -7366,20 +7793,12 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_pargs::write(::apache::t xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("description", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->description))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); + xfer += oprot->writeI64((*(this->fromTime))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((*(this->offset))); + xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); + xfer += oprot->writeI64((*(this->toTime))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7389,11 +7808,11 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_pargs::write(::apache::t } -Airavata_searchExperimentsByDescWithPagination_result::~Airavata_searchExperimentsByDescWithPagination_result() throw() { +Airavata_getExperimentStatistics_result::~Airavata_getExperimentStatistics_result() throw() { } -uint32_t Airavata_searchExperimentsByDescWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentStatistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7414,20 +7833,8 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_result::read(::apache::t switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size125; - ::apache::thrift::protocol::TType _etype128; - xfer += iprot->readListBegin(_etype128, _size125); - this->success.resize(_size125); - uint32_t _i129; - for (_i129 = 0; _i129 < _size125; ++_i129) - { - xfer += this->success[_i129].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7477,23 +7884,15 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_result::read(::apache::t return xfer; } -uint32_t Airavata_searchExperimentsByDescWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentStatistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByDescWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter130; - for (_iter130 = this->success.begin(); _iter130 != this->success.end(); ++_iter130) - { - xfer += (*_iter130).write(oprot); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.ire) { xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7518,11 +7917,11 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_result::write(::apache:: } -Airavata_searchExperimentsByDescWithPagination_presult::~Airavata_searchExperimentsByDescWithPagination_presult() throw() { +Airavata_getExperimentStatistics_presult::~Airavata_getExperimentStatistics_presult() throw() { } -uint32_t Airavata_searchExperimentsByDescWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentStatistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7543,20 +7942,8 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_presult::read(::apache:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size131; - ::apache::thrift::protocol::TType _etype134; - xfer += iprot->readListBegin(_etype134, _size131); - (*(this->success)).resize(_size131); - uint32_t _i135; - for (_i135 = 0; _i135 < _size131; ++_i135) - { - xfer += (*(this->success))[_i135].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -7607,11 +7994,11 @@ uint32_t Airavata_searchExperimentsByDescWithPagination_presult::read(::apache:: } -Airavata_searchExperimentsByApplication_args::~Airavata_searchExperimentsByApplication_args() throw() { +Airavata_getExperimentsInProject_args::~Airavata_getExperimentsInProject_args() throw() { } -uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentsInProject_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7622,9 +8009,10 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr using ::apache::thrift::protocol::TProtocolException; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_applicationId = false; + bool isset_authzToken = false; + bool isset_projectId = false; + bool isset_limit = false; + bool isset_offset = false; while (true) { @@ -7635,25 +8023,33 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; + xfer += iprot->readString(this->projectId); + isset_projectId = true; } else { xfer += iprot->skip(ftype); } break; case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationId); - isset_applicationId = true; + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->limit); + isset_limit = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->offset); + isset_offset = true; } else { xfer += iprot->skip(ftype); } @@ -7667,30 +8063,36 @@ uint32_t Airavata_searchExperimentsByApplication_args::read(::apache::thrift::pr xfer += iprot->readStructEnd(); - if (!isset_gatewayId) + if (!isset_authzToken) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) + if (!isset_projectId) throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationId) + if (!isset_limit) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_offset) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } -uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentsInProject_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_args"); + xfer += oprot->writeStructBegin("Airavata_getExperimentsInProject_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->userName); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->projectId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->applicationId); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32(this->limit); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->offset); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7700,25 +8102,29 @@ uint32_t Airavata_searchExperimentsByApplication_args::write(::apache::thrift::p } -Airavata_searchExperimentsByApplication_pargs::~Airavata_searchExperimentsByApplication_pargs() throw() { +Airavata_getExperimentsInProject_pargs::~Airavata_getExperimentsInProject_pargs() throw() { } -uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentsInProject_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_pargs"); + xfer += oprot->writeStructBegin("Airavata_getExperimentsInProject_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->userName))); + xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->projectId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->applicationId))); + xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((*(this->limit))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32((*(this->offset))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -7728,11 +8134,11 @@ uint32_t Airavata_searchExperimentsByApplication_pargs::write(::apache::thrift:: } -Airavata_searchExperimentsByApplication_result::~Airavata_searchExperimentsByApplication_result() throw() { +Airavata_getExperimentsInProject_result::~Airavata_getExperimentsInProject_result() throw() { } -uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentsInProject_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7796,6 +8202,22 @@ uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift:: xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -7808,17 +8230,17 @@ uint32_t Airavata_searchExperimentsByApplication_result::read(::apache::thrift:: return xfer; } -uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getExperimentsInProject_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplication_result"); + xfer += oprot->writeStructBegin("Airavata_getExperimentsInProject_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter141; + std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter141; for (_iter141 = this->success.begin(); _iter141 != this->success.end(); ++_iter141) { xfer += (*_iter141).write(oprot); @@ -7838,6 +8260,14 @@ uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->ase.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.pnfe) { + xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->pnfe.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.ae) { + xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 5); + xfer += this->ae.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -7845,11 +8275,11 @@ uint32_t Airavata_searchExperimentsByApplication_result::write(::apache::thrift: } -Airavata_searchExperimentsByApplication_presult::~Airavata_searchExperimentsByApplication_presult() throw() { +Airavata_getExperimentsInProject_presult::~Airavata_getExperimentsInProject_presult() throw() { } -uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getExperimentsInProject_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -7913,6 +8343,22 @@ uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift: xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->pnfe.read(iprot); + this->__isset.pnfe = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->ae.read(iprot); + this->__isset.ae = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -7926,3612 +8372,11 @@ uint32_t Airavata_searchExperimentsByApplication_presult::read(::apache::thrift: } -Airavata_searchExperimentsByApplicationWithPagination_args::~Airavata_searchExperimentsByApplicationWithPagination_args() throw() { +Airavata_getUserExperiments_args::~Airavata_getUserExperiments_args() throw() { } -uint32_t Airavata_searchExperimentsByApplicationWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_applicationId = false; - bool isset_limit = false; - bool isset_offset = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationId); - isset_applicationId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperimentsByApplicationWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->applicationId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->limit); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32(this->offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByApplicationWithPagination_pargs::~Airavata_searchExperimentsByApplicationWithPagination_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByApplicationWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("applicationId", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->applicationId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((*(this->limit))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((*(this->offset))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByApplicationWithPagination_result::~Airavata_searchExperimentsByApplicationWithPagination_result() throw() { -} - - -uint32_t Airavata_searchExperimentsByApplicationWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size147; - ::apache::thrift::protocol::TType _etype150; - xfer += iprot->readListBegin(_etype150, _size147); - this->success.resize(_size147); - uint32_t _i151; - for (_i151 = 0; _i151 < _size147; ++_i151) - { - xfer += this->success[_i151].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByApplicationWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByApplicationWithPagination_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter152; - for (_iter152 = this->success.begin(); _iter152 != this->success.end(); ++_iter152) - { - xfer += (*_iter152).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperimentsByApplicationWithPagination_presult::~Airavata_searchExperimentsByApplicationWithPagination_presult() throw() { -} - - -uint32_t Airavata_searchExperimentsByApplicationWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size153; - ::apache::thrift::protocol::TType _etype156; - xfer += iprot->readListBegin(_etype156, _size153); - (*(this->success)).resize(_size153); - uint32_t _i157; - for (_i157 = 0; _i157 < _size153; ++_i157) - { - xfer += (*(this->success))[_i157].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_searchExperimentsByStatus_args::~Airavata_searchExperimentsByStatus_args() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_experimentState = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast158; - xfer += iprot->readI32(ecast158); - this->experimentState = ( ::apache::airavata::model::status::ExperimentState::type)ecast158; - isset_experimentState = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experimentState) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperimentsByStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_args"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->experimentState); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByStatus_pargs::~Airavata_searchExperimentsByStatus_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)(*(this->experimentState))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByStatus_result::~Airavata_searchExperimentsByStatus_result() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size159; - ::apache::thrift::protocol::TType _etype162; - xfer += iprot->readListBegin(_etype162, _size159); - this->success.resize(_size159); - uint32_t _i163; - for (_i163 = 0; _i163 < _size159; ++_i163) - { - xfer += this->success[_i163].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByStatus_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatus_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter164; - for (_iter164 = this->success.begin(); _iter164 != this->success.end(); ++_iter164) - { - xfer += (*_iter164).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperimentsByStatus_presult::~Airavata_searchExperimentsByStatus_presult() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size165; - ::apache::thrift::protocol::TType _etype168; - xfer += iprot->readListBegin(_etype168, _size165); - (*(this->success)).resize(_size165); - uint32_t _i169; - for (_i169 = 0; _i169 < _size165; ++_i169) - { - xfer += (*(this->success))[_i169].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_searchExperimentsByStatusWithPagination_args::~Airavata_searchExperimentsByStatusWithPagination_args() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatusWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_experimentState = false; - bool isset_limit = false; - bool isset_offset = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast170; - xfer += iprot->readI32(ecast170); - this->experimentState = ( ::apache::airavata::model::status::ExperimentState::type)ecast170; - isset_experimentState = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experimentState) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperimentsByStatusWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->experimentState); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->limit); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32(this->offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByStatusWithPagination_pargs::~Airavata_searchExperimentsByStatusWithPagination_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatusWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("experimentState", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)(*(this->experimentState))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((*(this->limit))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((*(this->offset))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByStatusWithPagination_result::~Airavata_searchExperimentsByStatusWithPagination_result() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatusWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size171; - ::apache::thrift::protocol::TType _etype174; - xfer += iprot->readListBegin(_etype174, _size171); - this->success.resize(_size171); - uint32_t _i175; - for (_i175 = 0; _i175 < _size171; ++_i175) - { - xfer += this->success[_i175].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByStatusWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByStatusWithPagination_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter176; - for (_iter176 = this->success.begin(); _iter176 != this->success.end(); ++_iter176) - { - xfer += (*_iter176).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperimentsByStatusWithPagination_presult::~Airavata_searchExperimentsByStatusWithPagination_presult() throw() { -} - - -uint32_t Airavata_searchExperimentsByStatusWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size177; - ::apache::thrift::protocol::TType _etype180; - xfer += iprot->readListBegin(_etype180, _size177); - (*(this->success)).resize(_size177); - uint32_t _i181; - for (_i181 = 0; _i181 < _size177; ++_i181) - { - xfer += (*(this->success))[_i181].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_searchExperimentsByCreationTime_args::~Airavata_searchExperimentsByCreationTime_args() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTime_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_fromTime = false; - bool isset_toTime = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->fromTime); - isset_fromTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->toTime); - isset_toTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_fromTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_toTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperimentsByCreationTime_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_args"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->fromTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->toTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTime_pargs::~Airavata_searchExperimentsByCreationTime_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTime_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64((*(this->fromTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64((*(this->toTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTime_result::~Airavata_searchExperimentsByCreationTime_result() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTime_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size182; - ::apache::thrift::protocol::TType _etype185; - xfer += iprot->readListBegin(_etype185, _size182); - this->success.resize(_size182); - uint32_t _i186; - for (_i186 = 0; _i186 < _size182; ++_i186) - { - xfer += this->success[_i186].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByCreationTime_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTime_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter187; - for (_iter187 = this->success.begin(); _iter187 != this->success.end(); ++_iter187) - { - xfer += (*_iter187).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTime_presult::~Airavata_searchExperimentsByCreationTime_presult() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTime_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size188; - ::apache::thrift::protocol::TType _etype191; - xfer += iprot->readListBegin(_etype191, _size188); - (*(this->success)).resize(_size188); - uint32_t _i192; - for (_i192 = 0; _i192 < _size188; ++_i192) - { - xfer += (*(this->success))[_i192].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_searchExperimentsByCreationTimeWithPagination_args::~Airavata_searchExperimentsByCreationTimeWithPagination_args() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_fromTime = false; - bool isset_toTime = false; - bool isset_limit = false; - bool isset_offset = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->fromTime); - isset_fromTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->toTime); - isset_toTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_fromTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_toTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->fromTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->toTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32(this->limit); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32(this->offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTimeWithPagination_pargs::~Airavata_searchExperimentsByCreationTimeWithPagination_pargs() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64((*(this->fromTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64((*(this->toTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((*(this->limit))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((*(this->offset))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTimeWithPagination_result::~Airavata_searchExperimentsByCreationTimeWithPagination_result() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size193; - ::apache::thrift::protocol::TType _etype196; - xfer += iprot->readListBegin(_etype196, _size193); - this->success.resize(_size193); - uint32_t _i197; - for (_i197 = 0; _i197 < _size193; ++_i197) - { - xfer += this->success[_i197].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperimentsByCreationTimeWithPagination_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter198; - for (_iter198 = this->success.begin(); _iter198 != this->success.end(); ++_iter198) - { - xfer += (*_iter198).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperimentsByCreationTimeWithPagination_presult::~Airavata_searchExperimentsByCreationTimeWithPagination_presult() throw() { -} - - -uint32_t Airavata_searchExperimentsByCreationTimeWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size199; - ::apache::thrift::protocol::TType _etype202; - xfer += iprot->readListBegin(_etype202, _size199); - (*(this->success)).resize(_size199); - uint32_t _i203; - for (_i203 = 0; _i203 < _size199; ++_i203) - { - xfer += (*(this->success))[_i203].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_searchExperiments_args::~Airavata_searchExperiments_args() throw() { -} - - -uint32_t Airavata_searchExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_userName = false; - bool isset_limit = false; - bool isset_offset = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->filters.clear(); - uint32_t _size204; - ::apache::thrift::protocol::TType _ktype205; - ::apache::thrift::protocol::TType _vtype206; - xfer += iprot->readMapBegin(_ktype205, _vtype206, _size204); - uint32_t _i208; - for (_i208 = 0; _i208 < _size204; ++_i208) - { - ::apache::airavata::model::experiment::ExperimentSearchFields::type _key209; - int32_t ecast211; - xfer += iprot->readI32(ecast211); - _key209 = ( ::apache::airavata::model::experiment::ExperimentSearchFields::type)ecast211; - std::string& _val210 = this->filters[_key209]; - xfer += iprot->readString(_val210); - } - xfer += iprot->readMapEnd(); - } - this->__isset.filters = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_searchExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperiments_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("filters", ::apache::thrift::protocol::T_MAP, 4); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast(this->filters.size())); - std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> ::const_iterator _iter212; - for (_iter212 = this->filters.begin(); _iter212 != this->filters.end(); ++_iter212) - { - xfer += oprot->writeI32((int32_t)_iter212->first); - xfer += oprot->writeString(_iter212->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32(this->limit); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32(this->offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperiments_pargs::~Airavata_searchExperiments_pargs() throw() { -} - - -uint32_t Airavata_searchExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_searchExperiments_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("filters", ::apache::thrift::protocol::T_MAP, 4); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast((*(this->filters)).size())); - std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> ::const_iterator _iter213; - for (_iter213 = (*(this->filters)).begin(); _iter213 != (*(this->filters)).end(); ++_iter213) - { - xfer += oprot->writeI32((int32_t)_iter213->first); - xfer += oprot->writeString(_iter213->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((*(this->limit))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 6); - xfer += oprot->writeI32((*(this->offset))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_searchExperiments_result::~Airavata_searchExperiments_result() throw() { -} - - -uint32_t Airavata_searchExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size214; - ::apache::thrift::protocol::TType _etype217; - xfer += iprot->readListBegin(_etype217, _size214); - this->success.resize(_size214); - uint32_t _i218; - for (_i218 = 0; _i218 < _size214; ++_i218) - { - xfer += this->success[_i218].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_searchExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_searchExperiments_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> ::const_iterator _iter219; - for (_iter219 = this->success.begin(); _iter219 != this->success.end(); ++_iter219) - { - xfer += (*_iter219).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_searchExperiments_presult::~Airavata_searchExperiments_presult() throw() { -} - - -uint32_t Airavata_searchExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size220; - ::apache::thrift::protocol::TType _etype223; - xfer += iprot->readListBegin(_etype223, _size220); - (*(this->success)).resize(_size220); - uint32_t _i224; - for (_i224 = 0; _i224 < _size220; ++_i224) - { - xfer += (*(this->success))[_i224].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_getExperimentStatistics_args::~Airavata_getExperimentStatistics_args() throw() { -} - - -uint32_t Airavata_getExperimentStatistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_gatewayId = false; - bool isset_fromTime = false; - bool isset_toTime = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->fromTime); - isset_fromTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->toTime); - isset_toTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_fromTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_toTime) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_getExperimentStatistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->fromTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->toTime); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getExperimentStatistics_pargs::~Airavata_getExperimentStatistics_pargs() throw() { -} - - -uint32_t Airavata_getExperimentStatistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("fromTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64((*(this->fromTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("toTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64((*(this->toTime))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getExperimentStatistics_result::~Airavata_getExperimentStatistics_result() throw() { -} - - -uint32_t Airavata_getExperimentStatistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_getExperimentStatistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_getExperimentStatistics_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_getExperimentStatistics_presult::~Airavata_getExperimentStatistics_presult() throw() { -} - - -uint32_t Airavata_getExperimentStatistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_getAllExperimentsInProject_args::~Airavata_getAllExperimentsInProject_args() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProject_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_projectId = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectId); - isset_projectId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_projectId) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_getAllExperimentsInProject_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_args"); - - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->projectId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllExperimentsInProject_pargs::~Airavata_getAllExperimentsInProject_pargs() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProject_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_pargs"); - - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->projectId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllExperimentsInProject_result::~Airavata_getAllExperimentsInProject_result() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProject_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size225; - ::apache::thrift::protocol::TType _etype228; - xfer += iprot->readListBegin(_etype228, _size225); - this->success.resize(_size225); - uint32_t _i229; - for (_i229 = 0; _i229 < _size225; ++_i229) - { - xfer += this->success[_i229].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_getAllExperimentsInProject_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProject_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter230; - for (_iter230 = this->success.begin(); _iter230 != this->success.end(); ++_iter230) - { - xfer += (*_iter230).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.pnfe) { - xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->pnfe.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_getAllExperimentsInProject_presult::~Airavata_getAllExperimentsInProject_presult() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProject_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size231; - ::apache::thrift::protocol::TType _etype234; - xfer += iprot->readListBegin(_etype234, _size231); - (*(this->success)).resize(_size231); - uint32_t _i235; - for (_i235 = 0; _i235 < _size231; ++_i235) - { - xfer += (*(this->success))[_i235].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_getAllExperimentsInProjectWithPagination_args::~Airavata_getAllExperimentsInProjectWithPagination_args() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_authzToken = false; - bool isset_projectId = false; - bool isset_limit = false; - bool isset_offset = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->authzToken.read(iprot); - isset_authzToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->projectId); - isset_projectId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->limit); - isset_limit = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->offset); - isset_offset = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_authzToken) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_projectId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_limit) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_offset) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_args"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->authzToken.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->projectId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32(this->limit); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32(this->offset); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllExperimentsInProjectWithPagination_pargs::~Airavata_getAllExperimentsInProjectWithPagination_pargs() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_pargs"); - - xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->authzToken)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("projectId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->projectId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("limit", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((*(this->limit))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("offset", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((*(this->offset))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllExperimentsInProjectWithPagination_result::~Airavata_getAllExperimentsInProjectWithPagination_result() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size236; - ::apache::thrift::protocol::TType _etype239; - xfer += iprot->readListBegin(_etype239, _size236); - this->success.resize(_size236); - uint32_t _i240; - for (_i240 = 0; _i240 < _size236; ++_i240) - { - xfer += this->success[_i240].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_getAllExperimentsInProjectWithPagination_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter241; - for (_iter241 = this->success.begin(); _iter241 != this->success.end(); ++_iter241) - { - xfer += (*_iter241).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.pnfe) { - xfer += oprot->writeFieldBegin("pnfe", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->pnfe.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ae) { - xfer += oprot->writeFieldBegin("ae", ::apache::thrift::protocol::T_STRUCT, 5); - xfer += this->ae.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_getAllExperimentsInProjectWithPagination_presult::~Airavata_getAllExperimentsInProjectWithPagination_presult() throw() { -} - - -uint32_t Airavata_getAllExperimentsInProjectWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size242; - ::apache::thrift::protocol::TType _etype245; - xfer += iprot->readListBegin(_etype245, _size242); - (*(this->success)).resize(_size242); - uint32_t _i246; - for (_i246 = 0; _i246 < _size242; ++_i246) - { - xfer += (*(this->success))[_i246].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->pnfe.read(iprot); - this->__isset.pnfe = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ae.read(iprot); - this->__isset.ae = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_getAllUserExperiments_args::~Airavata_getAllUserExperiments_args() throw() { -} - - -uint32_t Airavata_getAllUserExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_gatewayId = false; - bool isset_userName = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - isset_gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - isset_userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_userName) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Airavata_getAllUserExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_args"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllUserExperiments_pargs::~Airavata_getAllUserExperiments_pargs() throw() { -} - - -uint32_t Airavata_getAllUserExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_pargs"); - - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->gatewayId))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->userName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -Airavata_getAllUserExperiments_result::~Airavata_getAllUserExperiments_result() throw() { -} - - -uint32_t Airavata_getAllUserExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size247; - ::apache::thrift::protocol::TType _etype250; - xfer += iprot->readListBegin(_etype250, _size247); - this->success.resize(_size247); - uint32_t _i251; - for (_i251 = 0; _i251 < _size247; ++_i251) - { - xfer += this->success[_i251].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t Airavata_getAllUserExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("Airavata_getAllUserExperiments_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter252; - for (_iter252 = this->success.begin(); _iter252 != this->success.end(); ++_iter252) - { - xfer += (*_iter252).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ire) { - xfer += oprot->writeFieldBegin("ire", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->ire.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ace) { - xfer += oprot->writeFieldBegin("ace", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->ace.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.ase) { - xfer += oprot->writeFieldBegin("ase", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->ase.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -Airavata_getAllUserExperiments_presult::~Airavata_getAllUserExperiments_presult() throw() { -} - - -uint32_t Airavata_getAllUserExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size253; - ::apache::thrift::protocol::TType _etype256; - xfer += iprot->readListBegin(_etype256, _size253); - (*(this->success)).resize(_size253); - uint32_t _i257; - for (_i257 = 0; _i257 < _size253; ++_i257) - { - xfer += (*(this->success))[_i257].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ire.read(iprot); - this->__isset.ire = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ace.read(iprot); - this->__isset.ace = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->ase.read(iprot); - this->__isset.ase = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -Airavata_getAllUserExperimentsWithPagination_args::~Airavata_getAllUserExperimentsWithPagination_args() throw() { -} - - -uint32_t Airavata_getAllUserExperimentsWithPagination_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserExperiments_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11618,10 +8463,10 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_args::read(::apache::thrif return xfer; } -uint32_t Airavata_getAllUserExperimentsWithPagination_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserExperiments_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_args"); + xfer += oprot->writeStructBegin("Airavata_getUserExperiments_args"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->authzToken.write(oprot); @@ -11650,14 +8495,14 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_args::write(::apache::thri } -Airavata_getAllUserExperimentsWithPagination_pargs::~Airavata_getAllUserExperimentsWithPagination_pargs() throw() { +Airavata_getUserExperiments_pargs::~Airavata_getUserExperiments_pargs() throw() { } -uint32_t Airavata_getAllUserExperimentsWithPagination_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserExperiments_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_pargs"); + xfer += oprot->writeStructBegin("Airavata_getUserExperiments_pargs"); xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->authzToken)).write(oprot); @@ -11686,11 +8531,11 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_pargs::write(::apache::thr } -Airavata_getAllUserExperimentsWithPagination_result::~Airavata_getAllUserExperimentsWithPagination_result() throw() { +Airavata_getUserExperiments_result::~Airavata_getUserExperiments_result() throw() { } -uint32_t Airavata_getAllUserExperimentsWithPagination_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserExperiments_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11714,14 +8559,14 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size258; - ::apache::thrift::protocol::TType _etype261; - xfer += iprot->readListBegin(_etype261, _size258); - this->success.resize(_size258); - uint32_t _i262; - for (_i262 = 0; _i262 < _size258; ++_i262) + uint32_t _size147; + ::apache::thrift::protocol::TType _etype150; + xfer += iprot->readListBegin(_etype150, _size147); + this->success.resize(_size147); + uint32_t _i151; + for (_i151 = 0; _i151 < _size147; ++_i151) { - xfer += this->success[_i262].read(iprot); + xfer += this->success[_i151].read(iprot); } xfer += iprot->readListEnd(); } @@ -11774,20 +8619,20 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_result::read(::apache::thr return xfer; } -uint32_t Airavata_getAllUserExperimentsWithPagination_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t Airavata_getUserExperiments_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Airavata_getAllUserExperimentsWithPagination_result"); + xfer += oprot->writeStructBegin("Airavata_getUserExperiments_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter263; - for (_iter263 = this->success.begin(); _iter263 != this->success.end(); ++_iter263) + std::vector< ::apache::airavata::model::experiment::ExperimentModel> ::const_iterator _iter152; + for (_iter152 = this->success.begin(); _iter152 != this->success.end(); ++_iter152) { - xfer += (*_iter263).write(oprot); + xfer += (*_iter152).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11815,11 +8660,11 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_result::write(::apache::th } -Airavata_getAllUserExperimentsWithPagination_presult::~Airavata_getAllUserExperimentsWithPagination_presult() throw() { +Airavata_getUserExperiments_presult::~Airavata_getUserExperiments_presult() throw() { } -uint32_t Airavata_getAllUserExperimentsWithPagination_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Airavata_getUserExperiments_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -11843,14 +8688,14 @@ uint32_t Airavata_getAllUserExperimentsWithPagination_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size264; - ::apache::thrift::protocol::TType _etype267; - xfer += iprot->readListBegin(_etype267, _size264); - (*(this->success)).resize(_size264); - uint32_t _i268; - for (_i268 = 0; _i268 < _size264; ++_i268) + uint32_t _size153; + ::apache::thrift::protocol::TType _etype156; + xfer += iprot->readListBegin(_etype156, _size153); + (*(this->success)).resize(_size153); + uint32_t _i157; + for (_i157 = 0; _i157 < _size153; ++_i157) { - xfer += (*(this->success))[_i268].read(iprot); + xfer += (*(this->success))[_i157].read(iprot); } xfer += iprot->readListEnd(); } @@ -14333,14 +11178,14 @@ uint32_t Airavata_getExperimentOutputs_result::read(::apache::thrift::protocol:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size269; - ::apache::thrift::protocol::TType _etype272; - xfer += iprot->readListBegin(_etype272, _size269); - this->success.resize(_size269); - uint32_t _i273; - for (_i273 = 0; _i273 < _size269; ++_i273) + uint32_t _size158; + ::apache::thrift::protocol::TType _etype161; + xfer += iprot->readListBegin(_etype161, _size158); + this->success.resize(_size158); + uint32_t _i162; + for (_i162 = 0; _i162 < _size158; ++_i162) { - xfer += this->success[_i273].read(iprot); + xfer += this->success[_i162].read(iprot); } xfer += iprot->readListEnd(); } @@ -14411,10 +11256,10 @@ uint32_t Airavata_getExperimentOutputs_result::write(::apache::thrift::protocol: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter274; - for (_iter274 = this->success.begin(); _iter274 != this->success.end(); ++_iter274) + std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter163; + for (_iter163 = this->success.begin(); _iter163 != this->success.end(); ++_iter163) { - xfer += (*_iter274).write(oprot); + xfer += (*_iter163).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14474,14 +11319,14 @@ uint32_t Airavata_getExperimentOutputs_presult::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size275; - ::apache::thrift::protocol::TType _etype278; - xfer += iprot->readListBegin(_etype278, _size275); - (*(this->success)).resize(_size275); - uint32_t _i279; - for (_i279 = 0; _i279 < _size275; ++_i279) + uint32_t _size164; + ::apache::thrift::protocol::TType _etype167; + xfer += iprot->readListBegin(_etype167, _size164); + (*(this->success)).resize(_size164); + uint32_t _i168; + for (_i168 = 0; _i168 < _size164; ++_i168) { - xfer += (*(this->success))[_i279].read(iprot); + xfer += (*(this->success))[_i168].read(iprot); } xfer += iprot->readListEnd(); } @@ -14673,14 +11518,14 @@ uint32_t Airavata_getIntermediateOutputs_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size280; - ::apache::thrift::protocol::TType _etype283; - xfer += iprot->readListBegin(_etype283, _size280); - this->success.resize(_size280); - uint32_t _i284; - for (_i284 = 0; _i284 < _size280; ++_i284) + uint32_t _size169; + ::apache::thrift::protocol::TType _etype172; + xfer += iprot->readListBegin(_etype172, _size169); + this->success.resize(_size169); + uint32_t _i173; + for (_i173 = 0; _i173 < _size169; ++_i173) { - xfer += this->success[_i284].read(iprot); + xfer += this->success[_i173].read(iprot); } xfer += iprot->readListEnd(); } @@ -14751,10 +11596,10 @@ uint32_t Airavata_getIntermediateOutputs_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter285; - for (_iter285 = this->success.begin(); _iter285 != this->success.end(); ++_iter285) + std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter174; + for (_iter174 = this->success.begin(); _iter174 != this->success.end(); ++_iter174) { - xfer += (*_iter285).write(oprot); + xfer += (*_iter174).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14814,14 +11659,14 @@ uint32_t Airavata_getIntermediateOutputs_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size286; - ::apache::thrift::protocol::TType _etype289; - xfer += iprot->readListBegin(_etype289, _size286); - (*(this->success)).resize(_size286); - uint32_t _i290; - for (_i290 = 0; _i290 < _size286; ++_i290) + uint32_t _size175; + ::apache::thrift::protocol::TType _etype178; + xfer += iprot->readListBegin(_etype178, _size175); + (*(this->success)).resize(_size175); + uint32_t _i179; + for (_i179 = 0; _i179 < _size175; ++_i179) { - xfer += (*(this->success))[_i290].read(iprot); + xfer += (*(this->success))[_i179].read(iprot); } xfer += iprot->readListEnd(); } @@ -15013,17 +11858,17 @@ uint32_t Airavata_getJobStatuses_result::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size291; - ::apache::thrift::protocol::TType _ktype292; - ::apache::thrift::protocol::TType _vtype293; - xfer += iprot->readMapBegin(_ktype292, _vtype293, _size291); - uint32_t _i295; - for (_i295 = 0; _i295 < _size291; ++_i295) + uint32_t _size180; + ::apache::thrift::protocol::TType _ktype181; + ::apache::thrift::protocol::TType _vtype182; + xfer += iprot->readMapBegin(_ktype181, _vtype182, _size180); + uint32_t _i184; + for (_i184 = 0; _i184 < _size180; ++_i184) { - std::string _key296; - xfer += iprot->readString(_key296); - ::apache::airavata::model::status::JobStatus& _val297 = this->success[_key296]; - xfer += _val297.read(iprot); + std::string _key185; + xfer += iprot->readString(_key185); + ::apache::airavata::model::status::JobStatus& _val186 = this->success[_key185]; + xfer += _val186.read(iprot); } xfer += iprot->readMapEnd(); } @@ -15094,11 +11939,11 @@ uint32_t Airavata_getJobStatuses_result::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter298; - for (_iter298 = this->success.begin(); _iter298 != this->success.end(); ++_iter298) + std::map ::const_iterator _iter187; + for (_iter187 = this->success.begin(); _iter187 != this->success.end(); ++_iter187) { - xfer += oprot->writeString(_iter298->first); - xfer += _iter298->second.write(oprot); + xfer += oprot->writeString(_iter187->first); + xfer += _iter187->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -15158,17 +12003,17 @@ uint32_t Airavata_getJobStatuses_presult::read(::apache::thrift::protocol::TProt if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size299; - ::apache::thrift::protocol::TType _ktype300; - ::apache::thrift::protocol::TType _vtype301; - xfer += iprot->readMapBegin(_ktype300, _vtype301, _size299); - uint32_t _i303; - for (_i303 = 0; _i303 < _size299; ++_i303) + uint32_t _size188; + ::apache::thrift::protocol::TType _ktype189; + ::apache::thrift::protocol::TType _vtype190; + xfer += iprot->readMapBegin(_ktype189, _vtype190, _size188); + uint32_t _i192; + for (_i192 = 0; _i192 < _size188; ++_i192) { - std::string _key304; - xfer += iprot->readString(_key304); - ::apache::airavata::model::status::JobStatus& _val305 = (*(this->success))[_key304]; - xfer += _val305.read(iprot); + std::string _key193; + xfer += iprot->readString(_key193); + ::apache::airavata::model::status::JobStatus& _val194 = (*(this->success))[_key193]; + xfer += _val194.read(iprot); } xfer += iprot->readMapEnd(); } @@ -15360,14 +12205,14 @@ uint32_t Airavata_getJobDetails_result::read(::apache::thrift::protocol::TProtoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size306; - ::apache::thrift::protocol::TType _etype309; - xfer += iprot->readListBegin(_etype309, _size306); - this->success.resize(_size306); - uint32_t _i310; - for (_i310 = 0; _i310 < _size306; ++_i310) + uint32_t _size195; + ::apache::thrift::protocol::TType _etype198; + xfer += iprot->readListBegin(_etype198, _size195); + this->success.resize(_size195); + uint32_t _i199; + for (_i199 = 0; _i199 < _size195; ++_i199) { - xfer += this->success[_i310].read(iprot); + xfer += this->success[_i199].read(iprot); } xfer += iprot->readListEnd(); } @@ -15438,10 +12283,10 @@ uint32_t Airavata_getJobDetails_result::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::job::JobModel> ::const_iterator _iter311; - for (_iter311 = this->success.begin(); _iter311 != this->success.end(); ++_iter311) + std::vector< ::apache::airavata::model::job::JobModel> ::const_iterator _iter200; + for (_iter200 = this->success.begin(); _iter200 != this->success.end(); ++_iter200) { - xfer += (*_iter311).write(oprot); + xfer += (*_iter200).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15501,14 +12346,14 @@ uint32_t Airavata_getJobDetails_presult::read(::apache::thrift::protocol::TProto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size312; - ::apache::thrift::protocol::TType _etype315; - xfer += iprot->readListBegin(_etype315, _size312); - (*(this->success)).resize(_size312); - uint32_t _i316; - for (_i316 = 0; _i316 < _size312; ++_i316) + uint32_t _size201; + ::apache::thrift::protocol::TType _etype204; + xfer += iprot->readListBegin(_etype204, _size201); + (*(this->success)).resize(_size201); + uint32_t _i205; + for (_i205 = 0; _i205 < _size201; ++_i205) { - xfer += (*(this->success))[_i316].read(iprot); + xfer += (*(this->success))[_i205].read(iprot); } xfer += iprot->readListEnd(); } @@ -17224,14 +14069,14 @@ uint32_t Airavata_getAllAppModules_result::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size317; - ::apache::thrift::protocol::TType _etype320; - xfer += iprot->readListBegin(_etype320, _size317); - this->success.resize(_size317); - uint32_t _i321; - for (_i321 = 0; _i321 < _size317; ++_i321) + uint32_t _size206; + ::apache::thrift::protocol::TType _etype209; + xfer += iprot->readListBegin(_etype209, _size206); + this->success.resize(_size206); + uint32_t _i210; + for (_i210 = 0; _i210 < _size206; ++_i210) { - xfer += this->success[_i321].read(iprot); + xfer += this->success[_i210].read(iprot); } xfer += iprot->readListEnd(); } @@ -17294,10 +14139,10 @@ uint32_t Airavata_getAllAppModules_result::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationModule> ::const_iterator _iter322; - for (_iter322 = this->success.begin(); _iter322 != this->success.end(); ++_iter322) + std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationModule> ::const_iterator _iter211; + for (_iter211 = this->success.begin(); _iter211 != this->success.end(); ++_iter211) { - xfer += (*_iter322).write(oprot); + xfer += (*_iter211).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17353,14 +14198,14 @@ uint32_t Airavata_getAllAppModules_presult::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size323; - ::apache::thrift::protocol::TType _etype326; - xfer += iprot->readListBegin(_etype326, _size323); - (*(this->success)).resize(_size323); - uint32_t _i327; - for (_i327 = 0; _i327 < _size323; ++_i327) + uint32_t _size212; + ::apache::thrift::protocol::TType _etype215; + xfer += iprot->readListBegin(_etype215, _size212); + (*(this->success)).resize(_size212); + uint32_t _i216; + for (_i216 = 0; _i216 < _size212; ++_i216) { - xfer += (*(this->success))[_i327].read(iprot); + xfer += (*(this->success))[_i216].read(iprot); } xfer += iprot->readListEnd(); } @@ -19022,14 +15867,14 @@ uint32_t Airavata_getAllApplicationDeployments_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size328; - ::apache::thrift::protocol::TType _etype331; - xfer += iprot->readListBegin(_etype331, _size328); - this->success.resize(_size328); - uint32_t _i332; - for (_i332 = 0; _i332 < _size328; ++_i332) + uint32_t _size217; + ::apache::thrift::protocol::TType _etype220; + xfer += iprot->readListBegin(_etype220, _size217); + this->success.resize(_size217); + uint32_t _i221; + for (_i221 = 0; _i221 < _size217; ++_i221) { - xfer += this->success[_i332].read(iprot); + xfer += this->success[_i221].read(iprot); } xfer += iprot->readListEnd(); } @@ -19092,10 +15937,10 @@ uint32_t Airavata_getAllApplicationDeployments_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationDeploymentDescription> ::const_iterator _iter333; - for (_iter333 = this->success.begin(); _iter333 != this->success.end(); ++_iter333) + std::vector< ::apache::airavata::model::appcatalog::appdeployment::ApplicationDeploymentDescription> ::const_iterator _iter222; + for (_iter222 = this->success.begin(); _iter222 != this->success.end(); ++_iter222) { - xfer += (*_iter333).write(oprot); + xfer += (*_iter222).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19151,14 +15996,14 @@ uint32_t Airavata_getAllApplicationDeployments_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size334; - ::apache::thrift::protocol::TType _etype337; - xfer += iprot->readListBegin(_etype337, _size334); - (*(this->success)).resize(_size334); - uint32_t _i338; - for (_i338 = 0; _i338 < _size334; ++_i338) + uint32_t _size223; + ::apache::thrift::protocol::TType _etype226; + xfer += iprot->readListBegin(_etype226, _size223); + (*(this->success)).resize(_size223); + uint32_t _i227; + for (_i227 = 0; _i227 < _size223; ++_i227) { - xfer += (*(this->success))[_i338].read(iprot); + xfer += (*(this->success))[_i227].read(iprot); } xfer += iprot->readListEnd(); } @@ -19342,14 +16187,14 @@ uint32_t Airavata_getAppModuleDeployedResources_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size339; - ::apache::thrift::protocol::TType _etype342; - xfer += iprot->readListBegin(_etype342, _size339); - this->success.resize(_size339); - uint32_t _i343; - for (_i343 = 0; _i343 < _size339; ++_i343) + uint32_t _size228; + ::apache::thrift::protocol::TType _etype231; + xfer += iprot->readListBegin(_etype231, _size228); + this->success.resize(_size228); + uint32_t _i232; + for (_i232 = 0; _i232 < _size228; ++_i232) { - xfer += iprot->readString(this->success[_i343]); + xfer += iprot->readString(this->success[_i232]); } xfer += iprot->readListEnd(); } @@ -19412,10 +16257,10 @@ uint32_t Airavata_getAppModuleDeployedResources_result::write(::apache::thrift:: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter344; - for (_iter344 = this->success.begin(); _iter344 != this->success.end(); ++_iter344) + std::vector ::const_iterator _iter233; + for (_iter233 = this->success.begin(); _iter233 != this->success.end(); ++_iter233) { - xfer += oprot->writeString((*_iter344)); + xfer += oprot->writeString((*_iter233)); } xfer += oprot->writeListEnd(); } @@ -19471,14 +16316,14 @@ uint32_t Airavata_getAppModuleDeployedResources_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size345; - ::apache::thrift::protocol::TType _etype348; - xfer += iprot->readListBegin(_etype348, _size345); - (*(this->success)).resize(_size345); - uint32_t _i349; - for (_i349 = 0; _i349 < _size345; ++_i349) + uint32_t _size234; + ::apache::thrift::protocol::TType _etype237; + xfer += iprot->readListBegin(_etype237, _size234); + (*(this->success)).resize(_size234); + uint32_t _i238; + for (_i238 = 0; _i238 < _size234; ++_i238) { - xfer += iprot->readString((*(this->success))[_i349]); + xfer += iprot->readString((*(this->success))[_i238]); } xfer += iprot->readListEnd(); } @@ -20852,17 +17697,17 @@ uint32_t Airavata_getAllApplicationInterfaceNames_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size350; - ::apache::thrift::protocol::TType _ktype351; - ::apache::thrift::protocol::TType _vtype352; - xfer += iprot->readMapBegin(_ktype351, _vtype352, _size350); - uint32_t _i354; - for (_i354 = 0; _i354 < _size350; ++_i354) + uint32_t _size239; + ::apache::thrift::protocol::TType _ktype240; + ::apache::thrift::protocol::TType _vtype241; + xfer += iprot->readMapBegin(_ktype240, _vtype241, _size239); + uint32_t _i243; + for (_i243 = 0; _i243 < _size239; ++_i243) { - std::string _key355; - xfer += iprot->readString(_key355); - std::string& _val356 = this->success[_key355]; - xfer += iprot->readString(_val356); + std::string _key244; + xfer += iprot->readString(_key244); + std::string& _val245 = this->success[_key244]; + xfer += iprot->readString(_val245); } xfer += iprot->readMapEnd(); } @@ -20925,11 +17770,11 @@ uint32_t Airavata_getAllApplicationInterfaceNames_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter357; - for (_iter357 = this->success.begin(); _iter357 != this->success.end(); ++_iter357) + std::map ::const_iterator _iter246; + for (_iter246 = this->success.begin(); _iter246 != this->success.end(); ++_iter246) { - xfer += oprot->writeString(_iter357->first); - xfer += oprot->writeString(_iter357->second); + xfer += oprot->writeString(_iter246->first); + xfer += oprot->writeString(_iter246->second); } xfer += oprot->writeMapEnd(); } @@ -20985,17 +17830,17 @@ uint32_t Airavata_getAllApplicationInterfaceNames_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size358; - ::apache::thrift::protocol::TType _ktype359; - ::apache::thrift::protocol::TType _vtype360; - xfer += iprot->readMapBegin(_ktype359, _vtype360, _size358); - uint32_t _i362; - for (_i362 = 0; _i362 < _size358; ++_i362) + uint32_t _size247; + ::apache::thrift::protocol::TType _ktype248; + ::apache::thrift::protocol::TType _vtype249; + xfer += iprot->readMapBegin(_ktype248, _vtype249, _size247); + uint32_t _i251; + for (_i251 = 0; _i251 < _size247; ++_i251) { - std::string _key363; - xfer += iprot->readString(_key363); - std::string& _val364 = (*(this->success))[_key363]; - xfer += iprot->readString(_val364); + std::string _key252; + xfer += iprot->readString(_key252); + std::string& _val253 = (*(this->success))[_key252]; + xfer += iprot->readString(_val253); } xfer += iprot->readMapEnd(); } @@ -21179,14 +18024,14 @@ uint32_t Airavata_getAllApplicationInterfaces_result::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size365; - ::apache::thrift::protocol::TType _etype368; - xfer += iprot->readListBegin(_etype368, _size365); - this->success.resize(_size365); - uint32_t _i369; - for (_i369 = 0; _i369 < _size365; ++_i369) + uint32_t _size254; + ::apache::thrift::protocol::TType _etype257; + xfer += iprot->readListBegin(_etype257, _size254); + this->success.resize(_size254); + uint32_t _i258; + for (_i258 = 0; _i258 < _size254; ++_i258) { - xfer += this->success[_i369].read(iprot); + xfer += this->success[_i258].read(iprot); } xfer += iprot->readListEnd(); } @@ -21249,10 +18094,10 @@ uint32_t Airavata_getAllApplicationInterfaces_result::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::ApplicationInterfaceDescription> ::const_iterator _iter370; - for (_iter370 = this->success.begin(); _iter370 != this->success.end(); ++_iter370) + std::vector< ::apache::airavata::model::appcatalog::appinterface::ApplicationInterfaceDescription> ::const_iterator _iter259; + for (_iter259 = this->success.begin(); _iter259 != this->success.end(); ++_iter259) { - xfer += (*_iter370).write(oprot); + xfer += (*_iter259).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21308,14 +18153,14 @@ uint32_t Airavata_getAllApplicationInterfaces_presult::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size371; - ::apache::thrift::protocol::TType _etype374; - xfer += iprot->readListBegin(_etype374, _size371); - (*(this->success)).resize(_size371); - uint32_t _i375; - for (_i375 = 0; _i375 < _size371; ++_i375) + uint32_t _size260; + ::apache::thrift::protocol::TType _etype263; + xfer += iprot->readListBegin(_etype263, _size260); + (*(this->success)).resize(_size260); + uint32_t _i264; + for (_i264 = 0; _i264 < _size260; ++_i264) { - xfer += (*(this->success))[_i375].read(iprot); + xfer += (*(this->success))[_i264].read(iprot); } xfer += iprot->readListEnd(); } @@ -21499,14 +18344,14 @@ uint32_t Airavata_getApplicationInputs_result::read(::apache::thrift::protocol:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size376; - ::apache::thrift::protocol::TType _etype379; - xfer += iprot->readListBegin(_etype379, _size376); - this->success.resize(_size376); - uint32_t _i380; - for (_i380 = 0; _i380 < _size376; ++_i380) + uint32_t _size265; + ::apache::thrift::protocol::TType _etype268; + xfer += iprot->readListBegin(_etype268, _size265); + this->success.resize(_size265); + uint32_t _i269; + for (_i269 = 0; _i269 < _size265; ++_i269) { - xfer += this->success[_i380].read(iprot); + xfer += this->success[_i269].read(iprot); } xfer += iprot->readListEnd(); } @@ -21569,10 +18414,10 @@ uint32_t Airavata_getApplicationInputs_result::write(::apache::thrift::protocol: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::application::io::InputDataObjectType> ::const_iterator _iter381; - for (_iter381 = this->success.begin(); _iter381 != this->success.end(); ++_iter381) + std::vector< ::apache::airavata::model::application::io::InputDataObjectType> ::const_iterator _iter270; + for (_iter270 = this->success.begin(); _iter270 != this->success.end(); ++_iter270) { - xfer += (*_iter381).write(oprot); + xfer += (*_iter270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21628,14 +18473,14 @@ uint32_t Airavata_getApplicationInputs_presult::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size382; - ::apache::thrift::protocol::TType _etype385; - xfer += iprot->readListBegin(_etype385, _size382); - (*(this->success)).resize(_size382); - uint32_t _i386; - for (_i386 = 0; _i386 < _size382; ++_i386) + uint32_t _size271; + ::apache::thrift::protocol::TType _etype274; + xfer += iprot->readListBegin(_etype274, _size271); + (*(this->success)).resize(_size271); + uint32_t _i275; + for (_i275 = 0; _i275 < _size271; ++_i275) { - xfer += (*(this->success))[_i386].read(iprot); + xfer += (*(this->success))[_i275].read(iprot); } xfer += iprot->readListEnd(); } @@ -21819,14 +18664,14 @@ uint32_t Airavata_getApplicationOutputs_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - xfer += iprot->readListBegin(_etype390, _size387); - this->success.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size276; + ::apache::thrift::protocol::TType _etype279; + xfer += iprot->readListBegin(_etype279, _size276); + this->success.resize(_size276); + uint32_t _i280; + for (_i280 = 0; _i280 < _size276; ++_i280) { - xfer += this->success[_i391].read(iprot); + xfer += this->success[_i280].read(iprot); } xfer += iprot->readListEnd(); } @@ -21889,10 +18734,10 @@ uint32_t Airavata_getApplicationOutputs_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter392; - for (_iter392 = this->success.begin(); _iter392 != this->success.end(); ++_iter392) + std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter281; + for (_iter281 = this->success.begin(); _iter281 != this->success.end(); ++_iter281) { - xfer += (*_iter392).write(oprot); + xfer += (*_iter281).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21948,14 +18793,14 @@ uint32_t Airavata_getApplicationOutputs_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size393; - ::apache::thrift::protocol::TType _etype396; - xfer += iprot->readListBegin(_etype396, _size393); - (*(this->success)).resize(_size393); - uint32_t _i397; - for (_i397 = 0; _i397 < _size393; ++_i397) + uint32_t _size282; + ::apache::thrift::protocol::TType _etype285; + xfer += iprot->readListBegin(_etype285, _size282); + (*(this->success)).resize(_size282); + uint32_t _i286; + for (_i286 = 0; _i286 < _size282; ++_i286) { - xfer += (*(this->success))[_i397].read(iprot); + xfer += (*(this->success))[_i286].read(iprot); } xfer += iprot->readListEnd(); } @@ -22139,17 +18984,17 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::read(::apache if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size398; - ::apache::thrift::protocol::TType _ktype399; - ::apache::thrift::protocol::TType _vtype400; - xfer += iprot->readMapBegin(_ktype399, _vtype400, _size398); - uint32_t _i402; - for (_i402 = 0; _i402 < _size398; ++_i402) + uint32_t _size287; + ::apache::thrift::protocol::TType _ktype288; + ::apache::thrift::protocol::TType _vtype289; + xfer += iprot->readMapBegin(_ktype288, _vtype289, _size287); + uint32_t _i291; + for (_i291 = 0; _i291 < _size287; ++_i291) { - std::string _key403; - xfer += iprot->readString(_key403); - std::string& _val404 = this->success[_key403]; - xfer += iprot->readString(_val404); + std::string _key292; + xfer += iprot->readString(_key292); + std::string& _val293 = this->success[_key292]; + xfer += iprot->readString(_val293); } xfer += iprot->readMapEnd(); } @@ -22212,11 +19057,11 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_result::write(::apach xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter405; - for (_iter405 = this->success.begin(); _iter405 != this->success.end(); ++_iter405) + std::map ::const_iterator _iter294; + for (_iter294 = this->success.begin(); _iter294 != this->success.end(); ++_iter294) { - xfer += oprot->writeString(_iter405->first); - xfer += oprot->writeString(_iter405->second); + xfer += oprot->writeString(_iter294->first); + xfer += oprot->writeString(_iter294->second); } xfer += oprot->writeMapEnd(); } @@ -22272,17 +19117,17 @@ uint32_t Airavata_getAvailableAppInterfaceComputeResources_presult::read(::apach if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size406; - ::apache::thrift::protocol::TType _ktype407; - ::apache::thrift::protocol::TType _vtype408; - xfer += iprot->readMapBegin(_ktype407, _vtype408, _size406); - uint32_t _i410; - for (_i410 = 0; _i410 < _size406; ++_i410) + uint32_t _size295; + ::apache::thrift::protocol::TType _ktype296; + ::apache::thrift::protocol::TType _vtype297; + xfer += iprot->readMapBegin(_ktype296, _vtype297, _size295); + uint32_t _i299; + for (_i299 = 0; _i299 < _size295; ++_i299) { - std::string _key411; - xfer += iprot->readString(_key411); - std::string& _val412 = (*(this->success))[_key411]; - xfer += iprot->readString(_val412); + std::string _key300; + xfer += iprot->readString(_key300); + std::string& _val301 = (*(this->success))[_key300]; + xfer += iprot->readString(_val301); } xfer += iprot->readMapEnd(); } @@ -23023,17 +19868,17 @@ uint32_t Airavata_getAllComputeResourceNames_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size413; - ::apache::thrift::protocol::TType _ktype414; - ::apache::thrift::protocol::TType _vtype415; - xfer += iprot->readMapBegin(_ktype414, _vtype415, _size413); - uint32_t _i417; - for (_i417 = 0; _i417 < _size413; ++_i417) + uint32_t _size302; + ::apache::thrift::protocol::TType _ktype303; + ::apache::thrift::protocol::TType _vtype304; + xfer += iprot->readMapBegin(_ktype303, _vtype304, _size302); + uint32_t _i306; + for (_i306 = 0; _i306 < _size302; ++_i306) { - std::string _key418; - xfer += iprot->readString(_key418); - std::string& _val419 = this->success[_key418]; - xfer += iprot->readString(_val419); + std::string _key307; + xfer += iprot->readString(_key307); + std::string& _val308 = this->success[_key307]; + xfer += iprot->readString(_val308); } xfer += iprot->readMapEnd(); } @@ -23096,11 +19941,11 @@ uint32_t Airavata_getAllComputeResourceNames_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter420; - for (_iter420 = this->success.begin(); _iter420 != this->success.end(); ++_iter420) + std::map ::const_iterator _iter309; + for (_iter309 = this->success.begin(); _iter309 != this->success.end(); ++_iter309) { - xfer += oprot->writeString(_iter420->first); - xfer += oprot->writeString(_iter420->second); + xfer += oprot->writeString(_iter309->first); + xfer += oprot->writeString(_iter309->second); } xfer += oprot->writeMapEnd(); } @@ -23156,17 +20001,17 @@ uint32_t Airavata_getAllComputeResourceNames_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size421; - ::apache::thrift::protocol::TType _ktype422; - ::apache::thrift::protocol::TType _vtype423; - xfer += iprot->readMapBegin(_ktype422, _vtype423, _size421); - uint32_t _i425; - for (_i425 = 0; _i425 < _size421; ++_i425) + uint32_t _size310; + ::apache::thrift::protocol::TType _ktype311; + ::apache::thrift::protocol::TType _vtype312; + xfer += iprot->readMapBegin(_ktype311, _vtype312, _size310); + uint32_t _i314; + for (_i314 = 0; _i314 < _size310; ++_i314) { - std::string _key426; - xfer += iprot->readString(_key426); - std::string& _val427 = (*(this->success))[_key426]; - xfer += iprot->readString(_val427); + std::string _key315; + xfer += iprot->readString(_key315); + std::string& _val316 = (*(this->success))[_key315]; + xfer += iprot->readString(_val316); } xfer += iprot->readMapEnd(); } @@ -31835,17 +28680,17 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->jobSubmissionPriorityMap.clear(); - uint32_t _size428; - ::apache::thrift::protocol::TType _ktype429; - ::apache::thrift::protocol::TType _vtype430; - xfer += iprot->readMapBegin(_ktype429, _vtype430, _size428); - uint32_t _i432; - for (_i432 = 0; _i432 < _size428; ++_i432) + uint32_t _size317; + ::apache::thrift::protocol::TType _ktype318; + ::apache::thrift::protocol::TType _vtype319; + xfer += iprot->readMapBegin(_ktype318, _vtype319, _size317); + uint32_t _i321; + for (_i321 = 0; _i321 < _size317; ++_i321) { - std::string _key433; - xfer += iprot->readString(_key433); - int32_t& _val434 = this->jobSubmissionPriorityMap[_key433]; - xfer += iprot->readI32(_val434); + std::string _key322; + xfer += iprot->readString(_key322); + int32_t& _val323 = this->jobSubmissionPriorityMap[_key322]; + xfer += iprot->readI32(_val323); } xfer += iprot->readMapEnd(); } @@ -31882,11 +28727,11 @@ uint32_t Airavata_changeJobSubmissionPriorities_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->jobSubmissionPriorityMap.size())); - std::map ::const_iterator _iter435; - for (_iter435 = this->jobSubmissionPriorityMap.begin(); _iter435 != this->jobSubmissionPriorityMap.end(); ++_iter435) + std::map ::const_iterator _iter324; + for (_iter324 = this->jobSubmissionPriorityMap.begin(); _iter324 != this->jobSubmissionPriorityMap.end(); ++_iter324) { - xfer += oprot->writeString(_iter435->first); - xfer += oprot->writeI32(_iter435->second); + xfer += oprot->writeString(_iter324->first); + xfer += oprot->writeI32(_iter324->second); } xfer += oprot->writeMapEnd(); } @@ -31915,11 +28760,11 @@ uint32_t Airavata_changeJobSubmissionPriorities_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("jobSubmissionPriorityMap", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->jobSubmissionPriorityMap)).size())); - std::map ::const_iterator _iter436; - for (_iter436 = (*(this->jobSubmissionPriorityMap)).begin(); _iter436 != (*(this->jobSubmissionPriorityMap)).end(); ++_iter436) + std::map ::const_iterator _iter325; + for (_iter325 = (*(this->jobSubmissionPriorityMap)).begin(); _iter325 != (*(this->jobSubmissionPriorityMap)).end(); ++_iter325) { - xfer += oprot->writeString(_iter436->first); - xfer += oprot->writeI32(_iter436->second); + xfer += oprot->writeString(_iter325->first); + xfer += oprot->writeI32(_iter325->second); } xfer += oprot->writeMapEnd(); } @@ -32156,17 +29001,17 @@ uint32_t Airavata_changeDataMovementPriorities_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_MAP) { { this->dataMovementPriorityMap.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _ktype438; - ::apache::thrift::protocol::TType _vtype439; - xfer += iprot->readMapBegin(_ktype438, _vtype439, _size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) + uint32_t _size326; + ::apache::thrift::protocol::TType _ktype327; + ::apache::thrift::protocol::TType _vtype328; + xfer += iprot->readMapBegin(_ktype327, _vtype328, _size326); + uint32_t _i330; + for (_i330 = 0; _i330 < _size326; ++_i330) { - std::string _key442; - xfer += iprot->readString(_key442); - int32_t& _val443 = this->dataMovementPriorityMap[_key442]; - xfer += iprot->readI32(_val443); + std::string _key331; + xfer += iprot->readString(_key331); + int32_t& _val332 = this->dataMovementPriorityMap[_key331]; + xfer += iprot->readI32(_val332); } xfer += iprot->readMapEnd(); } @@ -32203,11 +29048,11 @@ uint32_t Airavata_changeDataMovementPriorities_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->dataMovementPriorityMap.size())); - std::map ::const_iterator _iter444; - for (_iter444 = this->dataMovementPriorityMap.begin(); _iter444 != this->dataMovementPriorityMap.end(); ++_iter444) + std::map ::const_iterator _iter333; + for (_iter333 = this->dataMovementPriorityMap.begin(); _iter333 != this->dataMovementPriorityMap.end(); ++_iter333) { - xfer += oprot->writeString(_iter444->first); - xfer += oprot->writeI32(_iter444->second); + xfer += oprot->writeString(_iter333->first); + xfer += oprot->writeI32(_iter333->second); } xfer += oprot->writeMapEnd(); } @@ -32236,11 +29081,11 @@ uint32_t Airavata_changeDataMovementPriorities_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("dataMovementPriorityMap", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast((*(this->dataMovementPriorityMap)).size())); - std::map ::const_iterator _iter445; - for (_iter445 = (*(this->dataMovementPriorityMap)).begin(); _iter445 != (*(this->dataMovementPriorityMap)).end(); ++_iter445) + std::map ::const_iterator _iter334; + for (_iter334 = (*(this->dataMovementPriorityMap)).begin(); _iter334 != (*(this->dataMovementPriorityMap)).end(); ++_iter334) { - xfer += oprot->writeString(_iter445->first); - xfer += oprot->writeI32(_iter445->second); + xfer += oprot->writeString(_iter334->first); + xfer += oprot->writeI32(_iter334->second); } xfer += oprot->writeMapEnd(); } @@ -36465,14 +33310,14 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size446; - ::apache::thrift::protocol::TType _etype449; - xfer += iprot->readListBegin(_etype449, _size446); - this->success.resize(_size446); - uint32_t _i450; - for (_i450 = 0; _i450 < _size446; ++_i450) + uint32_t _size335; + ::apache::thrift::protocol::TType _etype338; + xfer += iprot->readListBegin(_etype338, _size335); + this->success.resize(_size335); + uint32_t _i339; + for (_i339 = 0; _i339 < _size335; ++_i339) { - xfer += this->success[_i450].read(iprot); + xfer += this->success[_i339].read(iprot); } xfer += iprot->readListEnd(); } @@ -36535,10 +33380,10 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_result::write(::apache xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::ComputeResourcePreference> ::const_iterator _iter451; - for (_iter451 = this->success.begin(); _iter451 != this->success.end(); ++_iter451) + std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::ComputeResourcePreference> ::const_iterator _iter340; + for (_iter340 = this->success.begin(); _iter340 != this->success.end(); ++_iter340) { - xfer += (*_iter451).write(oprot); + xfer += (*_iter340).write(oprot); } xfer += oprot->writeListEnd(); } @@ -36594,14 +33439,14 @@ uint32_t Airavata_getAllGatewayComputeResourcePreferences_presult::read(::apache if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size452; - ::apache::thrift::protocol::TType _etype455; - xfer += iprot->readListBegin(_etype455, _size452); - (*(this->success)).resize(_size452); - uint32_t _i456; - for (_i456 = 0; _i456 < _size452; ++_i456) + uint32_t _size341; + ::apache::thrift::protocol::TType _etype344; + xfer += iprot->readListBegin(_etype344, _size341); + (*(this->success)).resize(_size341); + uint32_t _i345; + for (_i345 = 0; _i345 < _size341; ++_i345) { - xfer += (*(this->success))[_i456].read(iprot); + xfer += (*(this->success))[_i345].read(iprot); } xfer += iprot->readListEnd(); } @@ -36766,14 +33611,14 @@ uint32_t Airavata_getAllGatewayComputeResources_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size457; - ::apache::thrift::protocol::TType _etype460; - xfer += iprot->readListBegin(_etype460, _size457); - this->success.resize(_size457); - uint32_t _i461; - for (_i461 = 0; _i461 < _size457; ++_i461) + uint32_t _size346; + ::apache::thrift::protocol::TType _etype349; + xfer += iprot->readListBegin(_etype349, _size346); + this->success.resize(_size346); + uint32_t _i350; + for (_i350 = 0; _i350 < _size346; ++_i350) { - xfer += this->success[_i461].read(iprot); + xfer += this->success[_i350].read(iprot); } xfer += iprot->readListEnd(); } @@ -36836,10 +33681,10 @@ uint32_t Airavata_getAllGatewayComputeResources_result::write(::apache::thrift:: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::GatewayResourceProfile> ::const_iterator _iter462; - for (_iter462 = this->success.begin(); _iter462 != this->success.end(); ++_iter462) + std::vector< ::apache::airavata::model::appcatalog::gatewayprofile::GatewayResourceProfile> ::const_iterator _iter351; + for (_iter351 = this->success.begin(); _iter351 != this->success.end(); ++_iter351) { - xfer += (*_iter462).write(oprot); + xfer += (*_iter351).write(oprot); } xfer += oprot->writeListEnd(); } @@ -36895,14 +33740,14 @@ uint32_t Airavata_getAllGatewayComputeResources_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size463; - ::apache::thrift::protocol::TType _etype466; - xfer += iprot->readListBegin(_etype466, _size463); - (*(this->success)).resize(_size463); - uint32_t _i467; - for (_i467 = 0; _i467 < _size463; ++_i467) + uint32_t _size352; + ::apache::thrift::protocol::TType _etype355; + xfer += iprot->readListBegin(_etype355, _size352); + (*(this->success)).resize(_size352); + uint32_t _i356; + for (_i356 = 0; _i356 < _size352; ++_i356) { - xfer += (*(this->success))[_i467].read(iprot); + xfer += (*(this->success))[_i356].read(iprot); } xfer += iprot->readListEnd(); } @@ -37719,14 +34564,14 @@ uint32_t Airavata_getAllWorkflows_result::read(::apache::thrift::protocol::TProt if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size468; - ::apache::thrift::protocol::TType _etype471; - xfer += iprot->readListBegin(_etype471, _size468); - this->success.resize(_size468); - uint32_t _i472; - for (_i472 = 0; _i472 < _size468; ++_i472) + uint32_t _size357; + ::apache::thrift::protocol::TType _etype360; + xfer += iprot->readListBegin(_etype360, _size357); + this->success.resize(_size357); + uint32_t _i361; + for (_i361 = 0; _i361 < _size357; ++_i361) { - xfer += iprot->readString(this->success[_i472]); + xfer += iprot->readString(this->success[_i361]); } xfer += iprot->readListEnd(); } @@ -37789,10 +34634,10 @@ uint32_t Airavata_getAllWorkflows_result::write(::apache::thrift::protocol::TPro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter473; - for (_iter473 = this->success.begin(); _iter473 != this->success.end(); ++_iter473) + std::vector ::const_iterator _iter362; + for (_iter362 = this->success.begin(); _iter362 != this->success.end(); ++_iter362) { - xfer += oprot->writeString((*_iter473)); + xfer += oprot->writeString((*_iter362)); } xfer += oprot->writeListEnd(); } @@ -37848,14 +34693,14 @@ uint32_t Airavata_getAllWorkflows_presult::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size474; - ::apache::thrift::protocol::TType _etype477; - xfer += iprot->readListBegin(_etype477, _size474); - (*(this->success)).resize(_size474); - uint32_t _i478; - for (_i478 = 0; _i478 < _size474; ++_i478) + uint32_t _size363; + ::apache::thrift::protocol::TType _etype366; + xfer += iprot->readListBegin(_etype366, _size363); + (*(this->success)).resize(_size363); + uint32_t _i367; + for (_i367 = 0; _i367 < _size363; ++_i367) { - xfer += iprot->readString((*(this->success))[_i478]); + xfer += iprot->readString((*(this->success))[_i367]); } xfer += iprot->readListEnd(); } @@ -39701,373 +36546,23 @@ void AiravataClient::recv_getAPIVersion(std::string& _return) if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAPIVersion failed: unknown result"); -} - -void AiravataClient::addGateway(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const ::apache::airavata::model::workspace::Gateway& gateway) -{ - send_addGateway(authzToken, gateway); - recv_addGateway(_return); -} - -void AiravataClient::send_addGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const ::apache::airavata::model::workspace::Gateway& gateway) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("addGateway", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_addGateway_pargs args; - args.authzToken = &authzToken; - args.gateway = &gateway; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_addGateway(std::string& _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("addGateway") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_addGateway_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.ae) { - throw result.ae; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "addGateway failed: unknown result"); -} - -void AiravataClient::updateGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) -{ - send_updateGateway(authzToken, gatewayId, updatedGateway); - recv_updateGateway(); -} - -void AiravataClient::send_updateGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("updateGateway", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_updateGateway_pargs args; - args.authzToken = &authzToken; - args.gatewayId = &gatewayId; - args.updatedGateway = &updatedGateway; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_updateGateway() -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("updateGateway") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_updateGateway_presult result; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.ae) { - throw result.ae; - } - return; -} - -void AiravataClient::getGateway( ::apache::airavata::model::workspace::Gateway& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) -{ - send_getGateway(authzToken, gatewayId); - recv_getGateway(_return); -} - -void AiravataClient::send_getGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getGateway", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getGateway_pargs args; - args.authzToken = &authzToken; - args.gatewayId = &gatewayId; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gateway& _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("getGateway") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_getGateway_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.ae) { - throw result.ae; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getGateway failed: unknown result"); -} - -bool AiravataClient::deleteGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) -{ - send_deleteGateway(authzToken, gatewayId); - return recv_deleteGateway(); -} - -void AiravataClient::send_deleteGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("deleteGateway", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_deleteGateway_pargs args; - args.authzToken = &authzToken; - args.gatewayId = &gatewayId; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -bool AiravataClient::recv_deleteGateway() -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("deleteGateway") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - bool _return; - Airavata_deleteGateway_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - return _return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.ae) { - throw result.ae; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteGateway failed: unknown result"); -} - -void AiravataClient::getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken) -{ - send_getAllGateways(authzToken); - recv_getAllGateways(_return); -} - -void AiravataClient::send_getAllGateways(const ::apache::airavata::model::security::AuthzToken& authzToken) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllGateways", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getAllGateways_pargs args; - args.authzToken = &authzToken; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("getAllGateways") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_getAllGateways_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.ae) { - throw result.ae; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllGateways failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAPIVersion failed: unknown result"); } -bool AiravataClient::isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) +void AiravataClient::addGateway(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const ::apache::airavata::model::workspace::Gateway& gateway) { - send_isGatewayExist(authzToken, gatewayId); - return recv_isGatewayExist(); + send_addGateway(authzToken, gateway); + recv_addGateway(_return); } -void AiravataClient::send_isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) +void AiravataClient::send_addGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const ::apache::airavata::model::workspace::Gateway& gateway) { int32_t cseqid = 0; - oprot_->writeMessageBegin("isGatewayExist", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("addGateway", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_isGatewayExist_pargs args; + Airavata_addGateway_pargs args; args.authzToken = &authzToken; - args.gatewayId = &gatewayId; + args.gateway = &gateway; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40075,7 +36570,7 @@ void AiravataClient::send_isGatewayExist(const ::apache::airavata::model::secur oprot_->getTransport()->flush(); } -bool AiravataClient::recv_isGatewayExist() +void AiravataClient::recv_addGateway(std::string& _return) { int32_t rseqid = 0; @@ -40095,20 +36590,20 @@ bool AiravataClient::recv_isGatewayExist() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("isGatewayExist") != 0) { + if (fname.compare("addGateway") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - bool _return; - Airavata_isGatewayExist_presult result; + Airavata_addGateway_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - return _return; + // _return pointer has now been filled + return; } if (result.__isset.ire) { throw result.ire; @@ -40122,90 +36617,24 @@ bool AiravataClient::recv_isGatewayExist() if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isGatewayExist failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "addGateway failed: unknown result"); } -void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) +void AiravataClient::updateGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) { - send_generateAndRegisterSSHKeys(gatewayId, userName); - recv_generateAndRegisterSSHKeys(_return); + send_updateGateway(authzToken, gatewayId, updatedGateway); + recv_updateGateway(); } -void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName) +void AiravataClient::send_updateGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Gateway& updatedGateway) { int32_t cseqid = 0; - oprot_->writeMessageBegin("generateAndRegisterSSHKeys", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("updateGateway", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_generateAndRegisterSSHKeys_pargs args; + Airavata_updateGateway_pargs args; + args.authzToken = &authzToken; args.gatewayId = &gatewayId; - args.userName = &userName; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("generateAndRegisterSSHKeys") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_generateAndRegisterSSHKeys_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); -} - -void AiravataClient::getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) -{ - send_getSSHPubKey(airavataCredStoreToken); - recv_getSSHPubKey(_return); -} - -void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getSSHPubKey", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getSSHPubKey_pargs args; - args.airavataCredStoreToken = &airavataCredStoreToken; + args.updatedGateway = &updatedGateway; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40213,7 +36642,7 @@ void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken oprot_->getTransport()->flush(); } -void AiravataClient::recv_getSSHPubKey(std::string& _return) +void AiravataClient::recv_updateGateway() { int32_t rseqid = 0; @@ -40233,21 +36662,16 @@ void AiravataClient::recv_getSSHPubKey(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getSSHPubKey") != 0) { + if (fname.compare("updateGateway") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getSSHPubKey_presult result; - result.success = &_return; + Airavata_updateGateway_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - return; - } if (result.__isset.ire) { throw result.ire; } @@ -40257,91 +36681,26 @@ void AiravataClient::recv_getSSHPubKey(std::string& _return) if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSSHPubKey failed: unknown result"); -} - -void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const std::string& userName) -{ - send_getAllUserSSHPubKeys(userName); - recv_getAllUserSSHPubKeys(_return); -} - -void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserSSHPubKeys", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getAllUserSSHPubKeys_pargs args; - args.userName = &userName; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_getAllUserSSHPubKeys(std::map & _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("getAllUserSSHPubKeys") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_getAllUserSSHPubKeys_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; + if (result.__isset.ae) { + throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserSSHPubKeys failed: unknown result"); + return; } -void AiravataClient::createProject(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) +void AiravataClient::getGateway( ::apache::airavata::model::workspace::Gateway& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { - send_createProject(authzToken, gatewayId, project); - recv_createProject(_return); + send_getGateway(authzToken, gatewayId); + recv_getGateway(_return); } -void AiravataClient::send_createProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) +void AiravataClient::send_getGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("createProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getGateway", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_createProject_pargs args; + Airavata_getGateway_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; - args.project = &project; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40349,7 +36708,7 @@ void AiravataClient::send_createProject(const ::apache::airavata::model::securi oprot_->getTransport()->flush(); } -void AiravataClient::recv_createProject(std::string& _return) +void AiravataClient::recv_getGateway( ::apache::airavata::model::workspace::Gateway& _return) { int32_t rseqid = 0; @@ -40369,12 +36728,12 @@ void AiravataClient::recv_createProject(std::string& _return) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("createProject") != 0) { + if (fname.compare("getGateway") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_createProject_presult result; + Airavata_getGateway_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40396,24 +36755,23 @@ void AiravataClient::recv_createProject(std::string& _return) if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "createProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getGateway failed: unknown result"); } -void AiravataClient::updateProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) +bool AiravataClient::deleteGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { - send_updateProject(authzToken, projectId, updatedProject); - recv_updateProject(); + send_deleteGateway(authzToken, gatewayId); + return recv_deleteGateway(); } -void AiravataClient::send_updateProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) +void AiravataClient::send_deleteGateway(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("updateProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("deleteGateway", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_updateProject_pargs args; + Airavata_deleteGateway_pargs args; args.authzToken = &authzToken; - args.projectId = &projectId; - args.updatedProject = &updatedProject; + args.gatewayId = &gatewayId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40421,7 +36779,7 @@ void AiravataClient::send_updateProject(const ::apache::airavata::model::securi oprot_->getTransport()->flush(); } -void AiravataClient::recv_updateProject() +bool AiravataClient::recv_deleteGateway() { int32_t rseqid = 0; @@ -40441,16 +36799,21 @@ void AiravataClient::recv_updateProject() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("updateProject") != 0) { + if (fname.compare("deleteGateway") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_updateProject_presult result; + bool _return; + Airavata_deleteGateway_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + return _return; + } if (result.__isset.ire) { throw result.ire; } @@ -40460,29 +36823,25 @@ void AiravataClient::recv_updateProject() if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } if (result.__isset.ae) { throw result.ae; } - return; + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteGateway failed: unknown result"); } -void AiravataClient::getProject( ::apache::airavata::model::workspace::Project& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) +void AiravataClient::getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken) { - send_getProject(authzToken, projectId); - recv_getProject(_return); + send_getAllGateways(authzToken); + recv_getAllGateways(_return); } -void AiravataClient::send_getProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) +void AiravataClient::send_getAllGateways(const ::apache::airavata::model::security::AuthzToken& authzToken) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllGateways", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getProject_pargs args; + Airavata_getAllGateways_pargs args; args.authzToken = &authzToken; - args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40490,7 +36849,7 @@ void AiravataClient::send_getProject(const ::apache::airavata::model::security: oprot_->getTransport()->flush(); } -void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Project& _return) +void AiravataClient::recv_getAllGateways(std::vector< ::apache::airavata::model::workspace::Gateway> & _return) { int32_t rseqid = 0; @@ -40510,12 +36869,12 @@ void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Proj iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getProject") != 0) { + if (fname.compare("getAllGateways") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getProject_presult result; + Airavata_getAllGateways_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40534,29 +36893,26 @@ void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Proj if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllGateways failed: unknown result"); } -bool AiravataClient::deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) +bool AiravataClient::isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { - send_deleteProject(authzToken, projectId); - return recv_deleteProject(); + send_isGatewayExist(authzToken, gatewayId); + return recv_isGatewayExist(); } -void AiravataClient::send_deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) +void AiravataClient::send_isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("deleteProject", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("isGatewayExist", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_deleteProject_pargs args; + Airavata_isGatewayExist_pargs args; args.authzToken = &authzToken; - args.projectId = &projectId; + args.gatewayId = &gatewayId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40564,7 +36920,7 @@ void AiravataClient::send_deleteProject(const ::apache::airavata::model::securi oprot_->getTransport()->flush(); } -bool AiravataClient::recv_deleteProject() +bool AiravataClient::recv_isGatewayExist() { int32_t rseqid = 0; @@ -40584,13 +36940,13 @@ bool AiravataClient::recv_deleteProject() iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("deleteProject") != 0) { + if (fname.compare("isGatewayExist") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } bool _return; - Airavata_deleteProject_presult result; + Airavata_isGatewayExist_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40608,27 +36964,24 @@ bool AiravataClient::recv_deleteProject() if (result.__isset.ase) { throw result.ase; } - if (result.__isset.pnfe) { - throw result.pnfe; - } if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteProject failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isGatewayExist failed: unknown result"); } -void AiravataClient::getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) +void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) { - send_getAllUserProjects(gatewayId, userName); - recv_getAllUserProjects(_return); + send_generateAndRegisterSSHKeys(gatewayId, userName); + recv_generateAndRegisterSSHKeys(_return); } -void AiravataClient::send_getAllUserProjects(const std::string& gatewayId, const std::string& userName) +void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserProjects", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("generateAndRegisterSSHKeys", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllUserProjects_pargs args; + Airavata_generateAndRegisterSSHKeys_pargs args; args.gatewayId = &gatewayId; args.userName = &userName; args.write(oprot_); @@ -40638,7 +36991,7 @@ void AiravataClient::send_getAllUserProjects(const std::string& gatewayId, const oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) { int32_t rseqid = 0; @@ -40658,12 +37011,12 @@ void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::mo iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllUserProjects") != 0) { + if (fname.compare("generateAndRegisterSSHKeys") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllUserProjects_presult result; + Airavata_generateAndRegisterSSHKeys_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40682,26 +37035,22 @@ void AiravataClient::recv_getAllUserProjects(std::vector< ::apache::airavata::mo if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserProjects failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); } -void AiravataClient::getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +void AiravataClient::getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) { - send_getAllUserProjectsWithPagination(authzToken, gatewayId, userName, limit, offset); - recv_getAllUserProjectsWithPagination(_return); + send_getSSHPubKey(airavataCredStoreToken); + recv_getSSHPubKey(_return); } -void AiravataClient::send_getAllUserProjectsWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getSSHPubKey", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllUserProjectsWithPagination_pargs args; - args.authzToken = &authzToken; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.limit = &limit; - args.offset = &offset; + Airavata_getSSHPubKey_pargs args; + args.airavataCredStoreToken = &airavataCredStoreToken; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40709,7 +37058,7 @@ void AiravataClient::send_getAllUserProjectsWithPagination(const ::apache::aira oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_getSSHPubKey(std::string& _return) { int32_t rseqid = 0; @@ -40729,12 +37078,12 @@ void AiravataClient::recv_getAllUserProjectsWithPagination(std::vector< ::apache iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllUserProjectsWithPagination") != 0) { + if (fname.compare("getSSHPubKey") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllUserProjectsWithPagination_presult result; + Airavata_getSSHPubKey_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40753,27 +37102,22 @@ void AiravataClient::recv_getAllUserProjectsWithPagination(std::vector< ::apache if (result.__isset.ase) { throw result.ase; } - if (result.__isset.ae) { - throw result.ae; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSSHPubKey failed: unknown result"); } -void AiravataClient::searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) +void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const std::string& userName) { - send_searchProjectsByProjectName(gatewayId, userName, projectName); - recv_searchProjectsByProjectName(_return); + send_getAllUserSSHPubKeys(userName); + recv_getAllUserSSHPubKeys(_return); } -void AiravataClient::send_searchProjectsByProjectName(const std::string& gatewayId, const std::string& userName, const std::string& projectName) +void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getAllUserSSHPubKeys", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectName_pargs args; - args.gatewayId = &gatewayId; + Airavata_getAllUserSSHPubKeys_pargs args; args.userName = &userName; - args.projectName = &projectName; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40781,7 +37125,7 @@ void AiravataClient::send_searchProjectsByProjectName(const std::string& gateway oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_getAllUserSSHPubKeys(std::map & _return) { int32_t rseqid = 0; @@ -40801,12 +37145,12 @@ void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::air iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectName") != 0) { + if (fname.compare("getAllUserSSHPubKeys") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectName_presult result; + Airavata_getAllUserSSHPubKeys_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40825,27 +37169,24 @@ void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::air if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserSSHPubKeys failed: unknown result"); } -void AiravataClient::searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) +void AiravataClient::createProject(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) { - send_searchProjectsByProjectNameWithPagination(authzToken, gatewayId, userName, projectName, limit, offset); - recv_searchProjectsByProjectNameWithPagination(_return); + send_createProject(authzToken, gatewayId, project); + recv_createProject(_return); } -void AiravataClient::send_searchProjectsByProjectNameWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) +void AiravataClient::send_createProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("createProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectNameWithPagination_pargs args; + Airavata_createProject_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; - args.userName = &userName; - args.projectName = &projectName; - args.limit = &limit; - args.offset = &offset; + args.project = &project; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40853,7 +37194,7 @@ void AiravataClient::send_searchProjectsByProjectNameWithPagination(const ::apa oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_createProject(std::string& _return) { int32_t rseqid = 0; @@ -40873,12 +37214,12 @@ void AiravataClient::recv_searchProjectsByProjectNameWithPagination(std::vector< iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectNameWithPagination") != 0) { + if (fname.compare("createProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectNameWithPagination_presult result; + Airavata_createProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -40900,24 +37241,24 @@ void AiravataClient::recv_searchProjectsByProjectNameWithPagination(std::vector< if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "createProject failed: unknown result"); } -void AiravataClient::searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::updateProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) { - send_searchProjectsByProjectDesc(gatewayId, userName, description); - recv_searchProjectsByProjectDesc(_return); + send_updateProject(authzToken, projectId, updatedProject); + recv_updateProject(); } -void AiravataClient::send_searchProjectsByProjectDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::send_updateProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const ::apache::airavata::model::workspace::Project& updatedProject) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("updateProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectDesc_pargs args; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.description = &description; + Airavata_updateProject_pargs args; + args.authzToken = &authzToken; + args.projectId = &projectId; + args.updatedProject = &updatedProject; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40925,7 +37266,7 @@ void AiravataClient::send_searchProjectsByProjectDesc(const std::string& gateway oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_updateProject() { int32_t rseqid = 0; @@ -40945,21 +37286,16 @@ void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::air iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectDesc") != 0) { + if (fname.compare("updateProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectDesc_presult result; - result.success = &_return; + Airavata_updateProject_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - return; - } if (result.__isset.ire) { throw result.ire; } @@ -40969,27 +37305,29 @@ void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::air if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); + if (result.__isset.pnfe) { + throw result.pnfe; + } + if (result.__isset.ae) { + throw result.ae; + } + return; } -void AiravataClient::searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) +void AiravataClient::getProject( ::apache::airavata::model::workspace::Project& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) { - send_searchProjectsByProjectDescWithPagination(authzToken, gatewayId, userName, description, limit, offset); - recv_searchProjectsByProjectDescWithPagination(_return); + send_getProject(authzToken, projectId); + recv_getProject(_return); } -void AiravataClient::send_searchProjectsByProjectDescWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) +void AiravataClient::send_getProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchProjectsByProjectDescWithPagination_pargs args; + Airavata_getProject_pargs args; args.authzToken = &authzToken; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.description = &description; - args.limit = &limit; - args.offset = &offset; + args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -40997,7 +37335,7 @@ void AiravataClient::send_searchProjectsByProjectDescWithPagination(const ::apa oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return) +void AiravataClient::recv_getProject( ::apache::airavata::model::workspace::Project& _return) { int32_t rseqid = 0; @@ -41017,12 +37355,12 @@ void AiravataClient::recv_searchProjectsByProjectDescWithPagination(std::vector< iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchProjectsByProjectDescWithPagination") != 0) { + if (fname.compare("getProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchProjectsByProjectDescWithPagination_presult result; + Airavata_getProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41041,27 +37379,29 @@ void AiravataClient::recv_searchProjectsByProjectDescWithPagination(std::vector< if (result.__isset.ase) { throw result.ase; } + if (result.__isset.pnfe) { + throw result.pnfe; + } if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getProject failed: unknown result"); } -void AiravataClient::searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) +bool AiravataClient::deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) { - send_searchExperimentsByName(gatewayId, userName, expName); - recv_searchExperimentsByName(_return); + send_deleteProject(authzToken, projectId); + return recv_deleteProject(); } -void AiravataClient::send_searchExperimentsByName(const std::string& gatewayId, const std::string& userName, const std::string& expName) +void AiravataClient::send_deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("deleteProject", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByName_pargs args; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.expName = &expName; + Airavata_deleteProject_pargs args; + args.authzToken = &authzToken; + args.projectId = &projectId; args.write(oprot_); oprot_->writeMessageEnd(); @@ -41069,7 +37409,7 @@ void AiravataClient::send_searchExperimentsByName(const std::string& gatewayId, oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +bool AiravataClient::recv_deleteProject() { int32_t rseqid = 0; @@ -41089,20 +37429,20 @@ void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavat iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByName") != 0) { + if (fname.compare("deleteProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByName_presult result; + bool _return; + Airavata_deleteProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - // _return pointer has now been filled - return; + return _return; } if (result.__isset.ire) { throw result.ire; @@ -41113,25 +37453,30 @@ void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavat if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByName failed: unknown result"); + if (result.__isset.pnfe) { + throw result.pnfe; + } + if (result.__isset.ae) { + throw result.ae; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "deleteProject failed: unknown result"); } -void AiravataClient::searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) +void AiravataClient::getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { - send_searchExperimentsByNameWithPagination(authzToken, gatewayId, userName, expName, limit, offset); - recv_searchExperimentsByNameWithPagination(_return); + send_getUserProjects(authzToken, gatewayId, userName, limit, offset); + recv_getUserProjects(_return); } -void AiravataClient::send_searchExperimentsByNameWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) +void AiravataClient::send_getUserProjects(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getUserProjects", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByNameWithPagination_pargs args; + Airavata_getUserProjects_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; - args.expName = &expName; args.limit = &limit; args.offset = &offset; args.write(oprot_); @@ -41141,7 +37486,7 @@ void AiravataClient::send_searchExperimentsByNameWithPagination(const ::apache: oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -41161,12 +37506,12 @@ void AiravataClient::recv_searchExperimentsByNameWithPagination(std::vector< ::a iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByNameWithPagination") != 0) { + if (fname.compare("getUserProjects") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByNameWithPagination_presult result; + Airavata_getUserProjects_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41188,24 +37533,27 @@ void AiravataClient::recv_searchExperimentsByNameWithPagination(std::vector< ::a if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getUserProjects failed: unknown result"); } -void AiravataClient::searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { - send_searchExperimentsByDesc(gatewayId, userName, description); - recv_searchExperimentsByDesc(_return); + send_searchProjectsByProjectName(authzToken, gatewayId, userName, projectName, limit, offset); + recv_searchProjectsByProjectName(_return); } -void AiravataClient::send_searchExperimentsByDesc(const std::string& gatewayId, const std::string& userName, const std::string& description) +void AiravataClient::send_searchProjectsByProjectName(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByDesc_pargs args; + Airavata_searchProjectsByProjectName_pargs args; + args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; - args.description = &description; + args.projectName = &projectName; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -41213,7 +37561,7 @@ void AiravataClient::send_searchExperimentsByDesc(const std::string& gatewayId, oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -41233,12 +37581,12 @@ void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavat iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByDesc") != 0) { + if (fname.compare("searchProjectsByProjectName") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByDesc_presult result; + Airavata_searchProjectsByProjectName_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41257,21 +37605,24 @@ void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavat if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); + if (result.__isset.ae) { + throw result.ae; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); } -void AiravataClient::searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) +void AiravataClient::searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { - send_searchExperimentsByDescWithPagination(authzToken, gatewayId, userName, description, limit, offset); - recv_searchExperimentsByDescWithPagination(_return); + send_searchProjectsByProjectDesc(authzToken, gatewayId, userName, description, limit, offset); + recv_searchProjectsByProjectDesc(_return); } -void AiravataClient::send_searchExperimentsByDescWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) +void AiravataClient::send_searchProjectsByProjectDesc(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByDescWithPagination_pargs args; + Airavata_searchProjectsByProjectDesc_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; @@ -41285,7 +37636,7 @@ void AiravataClient::send_searchExperimentsByDescWithPagination(const ::apache: oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return) { int32_t rseqid = 0; @@ -41305,12 +37656,12 @@ void AiravataClient::recv_searchExperimentsByDescWithPagination(std::vector< ::a iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByDescWithPagination") != 0) { + if (fname.compare("searchProjectsByProjectDesc") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByDescWithPagination_presult result; + Airavata_searchProjectsByProjectDesc_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41332,24 +37683,27 @@ void AiravataClient::recv_searchExperimentsByDescWithPagination(std::vector< ::a if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); } -void AiravataClient::searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) +void AiravataClient::searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { - send_searchExperimentsByApplication(gatewayId, userName, applicationId); - recv_searchExperimentsByApplication(_return); + send_searchExperimentsByName(authzToken, gatewayId, userName, expName, limit, offset); + recv_searchExperimentsByName(_return); } -void AiravataClient::send_searchExperimentsByApplication(const std::string& gatewayId, const std::string& userName, const std::string& applicationId) +void AiravataClient::send_searchExperimentsByName(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByApplication_pargs args; + Airavata_searchExperimentsByName_pargs args; + args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; - args.applicationId = &applicationId; + args.expName = &expName; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -41357,7 +37711,7 @@ void AiravataClient::send_searchExperimentsByApplication(const std::string& gate oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) { int32_t rseqid = 0; @@ -41377,12 +37731,12 @@ void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache:: iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByApplication") != 0) { + if (fname.compare("searchExperimentsByName") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByApplication_presult result; + Airavata_searchExperimentsByName_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41401,25 +37755,28 @@ void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache:: if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); + if (result.__isset.ae) { + throw result.ae; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByName failed: unknown result"); } -void AiravataClient::searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) +void AiravataClient::searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { - send_searchExperimentsByApplicationWithPagination(authzToken, gatewayId, userName, applicationId, limit, offset); - recv_searchExperimentsByApplicationWithPagination(_return); + send_searchExperimentsByDesc(authzToken, gatewayId, userName, description, limit, offset); + recv_searchExperimentsByDesc(_return); } -void AiravataClient::send_searchExperimentsByApplicationWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) +void AiravataClient::send_searchExperimentsByDesc(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByApplicationWithPagination_pargs args; + Airavata_searchExperimentsByDesc_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; - args.applicationId = &applicationId; + args.description = &description; args.limit = &limit; args.offset = &offset; args.write(oprot_); @@ -41429,7 +37786,7 @@ void AiravataClient::send_searchExperimentsByApplicationWithPagination(const :: oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) { int32_t rseqid = 0; @@ -41449,12 +37806,12 @@ void AiravataClient::recv_searchExperimentsByApplicationWithPagination(std::vect iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByApplicationWithPagination") != 0) { + if (fname.compare("searchExperimentsByDesc") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByApplicationWithPagination_presult result; + Airavata_searchExperimentsByDesc_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41476,24 +37833,27 @@ void AiravataClient::recv_searchExperimentsByApplicationWithPagination(std::vect if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); } -void AiravataClient::searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState) +void AiravataClient::searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { - send_searchExperimentsByStatus(gatewayId, userName, experimentState); - recv_searchExperimentsByStatus(_return); + send_searchExperimentsByApplication(authzToken, gatewayId, userName, applicationId, limit, offset); + recv_searchExperimentsByApplication(_return); } -void AiravataClient::send_searchExperimentsByStatus(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState) +void AiravataClient::send_searchExperimentsByApplication(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByStatus_pargs args; + Airavata_searchExperimentsByApplication_pargs args; + args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; - args.experimentState = &experimentState; + args.applicationId = &applicationId; + args.limit = &limit; + args.offset = &offset; args.write(oprot_); oprot_->writeMessageEnd(); @@ -41501,7 +37861,7 @@ void AiravataClient::send_searchExperimentsByStatus(const std::string& gatewayId oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) { int32_t rseqid = 0; @@ -41521,12 +37881,12 @@ void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airav iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByStatus") != 0) { + if (fname.compare("searchExperimentsByApplication") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByStatus_presult result; + Airavata_searchExperimentsByApplication_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41545,21 +37905,24 @@ void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airav if (result.__isset.ase) { throw result.ase; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); + if (result.__isset.ae) { + throw result.ae; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); } -void AiravataClient::searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) +void AiravataClient::searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { - send_searchExperimentsByStatusWithPagination(authzToken, gatewayId, userName, experimentState, limit, offset); - recv_searchExperimentsByStatusWithPagination(_return); + send_searchExperimentsByStatus(authzToken, gatewayId, userName, experimentState, limit, offset); + recv_searchExperimentsByStatus(_return); } -void AiravataClient::send_searchExperimentsByStatusWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) +void AiravataClient::send_searchExperimentsByStatus(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_searchExperimentsByStatusWithPagination_pargs args; + Airavata_searchExperimentsByStatus_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; @@ -41573,7 +37936,7 @@ void AiravataClient::send_searchExperimentsByStatusWithPagination(const ::apach oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) { int32_t rseqid = 0; @@ -41593,12 +37956,12 @@ void AiravataClient::recv_searchExperimentsByStatusWithPagination(std::vector< : iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByStatusWithPagination") != 0) { + if (fname.compare("searchExperimentsByStatus") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByStatusWithPagination_presult result; + Airavata_searchExperimentsByStatus_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41620,91 +37983,21 @@ void AiravataClient::recv_searchExperimentsByStatusWithPagination(std::vector< : if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatusWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); } -void AiravataClient::searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) +void AiravataClient::searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { - send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime); + send_searchExperimentsByCreationTime(authzToken, gatewayId, userName, fromTime, toTime, limit, offset); recv_searchExperimentsByCreationTime(_return); } -void AiravataClient::send_searchExperimentsByCreationTime(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) +void AiravataClient::send_searchExperimentsByCreationTime(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; oprot_->writeMessageBegin("searchExperimentsByCreationTime", ::apache::thrift::protocol::T_CALL, cseqid); Airavata_searchExperimentsByCreationTime_pargs args; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.fromTime = &fromTime; - args.toTime = &toTime; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("searchExperimentsByCreationTime") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_searchExperimentsByCreationTime_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); -} - -void AiravataClient::searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) -{ - send_searchExperimentsByCreationTimeWithPagination(authzToken, gatewayId, userName, fromTime, toTime, limit, offset); - recv_searchExperimentsByCreationTimeWithPagination(_return); -} - -void AiravataClient::send_searchExperimentsByCreationTimeWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_searchExperimentsByCreationTimeWithPagination_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; @@ -41719,7 +38012,7 @@ void AiravataClient::send_searchExperimentsByCreationTimeWithPagination(const : oprot_->getTransport()->flush(); } -void AiravataClient::recv_searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) +void AiravataClient::recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return) { int32_t rseqid = 0; @@ -41739,12 +38032,12 @@ void AiravataClient::recv_searchExperimentsByCreationTimeWithPagination(std::vec iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("searchExperimentsByCreationTimeWithPagination") != 0) { + if (fname.compare("searchExperimentsByCreationTime") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_searchExperimentsByCreationTimeWithPagination_presult result; + Airavata_searchExperimentsByCreationTime_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -41766,7 +38059,7 @@ void AiravataClient::recv_searchExperimentsByCreationTimeWithPagination(std::vec if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); } void AiravataClient::searchExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & filters, const int32_t limit, const int32_t offset) @@ -41917,88 +38210,18 @@ void AiravataClient::recv_getExperimentStatistics( ::apache::airavata::model::ex throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getExperimentStatistics failed: unknown result"); } -void AiravataClient::getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& projectId) +void AiravataClient::getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { - send_getAllExperimentsInProject(projectId); - recv_getAllExperimentsInProject(_return); + send_getExperimentsInProject(authzToken, projectId, limit, offset); + recv_getExperimentsInProject(_return); } -void AiravataClient::send_getAllExperimentsInProject(const std::string& projectId) +void AiravataClient::send_getExperimentsInProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllExperimentsInProject", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getAllExperimentsInProject_pargs args; - args.projectId = &projectId; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} + oprot_->writeMessageBegin("getExperimentsInProject", ::apache::thrift::protocol::T_CALL, cseqid); -void AiravataClient::recv_getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("getAllExperimentsInProject") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_getAllExperimentsInProject_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - if (result.__isset.pnfe) { - throw result.pnfe; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); -} - -void AiravataClient::getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) -{ - send_getAllExperimentsInProjectWithPagination(authzToken, projectId, limit, offset); - recv_getAllExperimentsInProjectWithPagination(_return); -} - -void AiravataClient::send_getAllExperimentsInProjectWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getAllExperimentsInProjectWithPagination_pargs args; + Airavata_getExperimentsInProject_pargs args; args.authzToken = &authzToken; args.projectId = &projectId; args.limit = &limit; @@ -42010,7 +38233,7 @@ void AiravataClient::send_getAllExperimentsInProjectWithPagination(const ::apac oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) +void AiravataClient::recv_getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) { int32_t rseqid = 0; @@ -42030,12 +38253,12 @@ void AiravataClient::recv_getAllExperimentsInProjectWithPagination(std::vector< iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllExperimentsInProjectWithPagination") != 0) { + if (fname.compare("getExperimentsInProject") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllExperimentsInProjectWithPagination_presult result; + Airavata_getExperimentsInProject_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -42060,89 +38283,21 @@ void AiravataClient::recv_getAllExperimentsInProjectWithPagination(std::vector< if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); -} - -void AiravataClient::getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& gatewayId, const std::string& userName) -{ - send_getAllUserExperiments(gatewayId, userName); - recv_getAllUserExperiments(_return); -} - -void AiravataClient::send_getAllUserExperiments(const std::string& gatewayId, const std::string& userName) -{ - int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserExperiments", ::apache::thrift::protocol::T_CALL, cseqid); - - Airavata_getAllUserExperiments_pargs args; - args.gatewayId = &gatewayId; - args.userName = &userName; - args.write(oprot_); - - oprot_->writeMessageEnd(); - oprot_->getTransport()->writeEnd(); - oprot_->getTransport()->flush(); -} - -void AiravataClient::recv_getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) -{ - - int32_t rseqid = 0; - std::string fname; - ::apache::thrift::protocol::TMessageType mtype; - - iprot_->readMessageBegin(fname, mtype, rseqid); - if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { - ::apache::thrift::TApplicationException x; - x.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - throw x; - } - if (mtype != ::apache::thrift::protocol::T_REPLY) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - if (fname.compare("getAllUserExperiments") != 0) { - iprot_->skip(::apache::thrift::protocol::T_STRUCT); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - } - Airavata_getAllUserExperiments_presult result; - result.success = &_return; - result.read(iprot_); - iprot_->readMessageEnd(); - iprot_->getTransport()->readEnd(); - - if (result.__isset.success) { - // _return pointer has now been filled - return; - } - if (result.__isset.ire) { - throw result.ire; - } - if (result.__isset.ace) { - throw result.ace; - } - if (result.__isset.ase) { - throw result.ase; - } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserExperiments failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getExperimentsInProject failed: unknown result"); } -void AiravataClient::getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +void AiravataClient::getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { - send_getAllUserExperimentsWithPagination(authzToken, gatewayId, userName, limit, offset); - recv_getAllUserExperimentsWithPagination(_return); + send_getUserExperiments(authzToken, gatewayId, userName, limit, offset); + recv_getUserExperiments(_return); } -void AiravataClient::send_getAllUserExperimentsWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) +void AiravataClient::send_getUserExperiments(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { int32_t cseqid = 0; - oprot_->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("getUserExperiments", ::apache::thrift::protocol::T_CALL, cseqid); - Airavata_getAllUserExperimentsWithPagination_pargs args; + Airavata_getUserExperiments_pargs args; args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; @@ -42155,7 +38310,7 @@ void AiravataClient::send_getAllUserExperimentsWithPagination(const ::apache::a oprot_->getTransport()->flush(); } -void AiravataClient::recv_getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) +void AiravataClient::recv_getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return) { int32_t rseqid = 0; @@ -42175,12 +38330,12 @@ void AiravataClient::recv_getAllUserExperimentsWithPagination(std::vector< ::apa iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("getAllUserExperimentsWithPagination") != 0) { + if (fname.compare("getUserExperiments") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - Airavata_getAllUserExperimentsWithPagination_presult result; + Airavata_getUserExperiments_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -42202,7 +38357,7 @@ void AiravataClient::recv_getAllUserExperimentsWithPagination(std::vector< ::apa if (result.__isset.ae) { throw result.ae; } - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getAllUserExperimentsWithPagination failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getUserExperiments failed: unknown result"); } void AiravataClient::createExperiment(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::experiment::ExperimentModel& experiment) @@ -49638,480 +45793,30 @@ void AiravataProcessor::process_deleteProject(int32_t seqid, ::apache::thrift::p } } -void AiravataProcessor::process_getAllUserProjects(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllUserProjects", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserProjects"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllUserProjects"); - } - - Airavata_getAllUserProjects_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllUserProjects", bytes); - } - - Airavata_getAllUserProjects_result result; - try { - iface_->getAllUserProjects(result.success, args.gatewayId, args.userName); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllUserProjects"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllUserProjects", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllUserProjects"); - } - - oprot->writeMessageBegin("getAllUserProjects", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllUserProjects", bytes); - } -} - -void AiravataProcessor::process_getAllUserProjectsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllUserProjectsWithPagination", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserProjectsWithPagination"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllUserProjectsWithPagination"); - } - - Airavata_getAllUserProjectsWithPagination_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllUserProjectsWithPagination", bytes); - } - - Airavata_getAllUserProjectsWithPagination_result result; - try { - iface_->getAllUserProjectsWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { - result.ae = ae; - result.__isset.ae = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllUserProjectsWithPagination"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllUserProjectsWithPagination"); - } - - oprot->writeMessageBegin("getAllUserProjectsWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllUserProjectsWithPagination", bytes); - } -} - -void AiravataProcessor::process_searchProjectsByProjectName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectName", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectName"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectName"); - } - - Airavata_searchProjectsByProjectName_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectName", bytes); - } - - Airavata_searchProjectsByProjectName_result result; - try { - iface_->searchProjectsByProjectName(result.success, args.gatewayId, args.userName, args.projectName); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectName"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectName"); - } - - oprot->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectName", bytes); - } -} - -void AiravataProcessor::process_searchProjectsByProjectNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectNameWithPagination", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectNameWithPagination"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); - } - - Airavata_searchProjectsByProjectNameWithPagination_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectNameWithPagination", bytes); - } - - Airavata_searchProjectsByProjectNameWithPagination_result result; - try { - iface_->searchProjectsByProjectNameWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { - result.ae = ae; - result.__isset.ae = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectNameWithPagination"); - } - - oprot->writeMessageBegin("searchProjectsByProjectNameWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectNameWithPagination", bytes); - } -} - -void AiravataProcessor::process_searchProjectsByProjectDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectDesc", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectDesc"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectDesc"); - } - - Airavata_searchProjectsByProjectDesc_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectDesc", bytes); - } - - Airavata_searchProjectsByProjectDesc_result result; - try { - iface_->searchProjectsByProjectDesc(result.success, args.gatewayId, args.userName, args.description); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectDesc"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectDesc"); - } - - oprot->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectDesc", bytes); - } -} - -void AiravataProcessor::process_searchProjectsByProjectDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectDescWithPagination", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectDescWithPagination"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); - } - - Airavata_searchProjectsByProjectDescWithPagination_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectDescWithPagination", bytes); - } - - Airavata_searchProjectsByProjectDescWithPagination_result result; - try { - iface_->searchProjectsByProjectDescWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { - result.ae = ae; - result.__isset.ae = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectDescWithPagination"); - } - - oprot->writeMessageBegin("searchProjectsByProjectDescWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectDescWithPagination", bytes); - } -} - -void AiravataProcessor::process_searchExperimentsByName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByName", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByName"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByName"); - } - - Airavata_searchExperimentsByName_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByName", bytes); - } - - Airavata_searchExperimentsByName_result result; - try { - iface_->searchExperimentsByName(result.success, args.gatewayId, args.userName, args.expName); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByName"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByName"); - } - - oprot->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByName", bytes); - } -} - -void AiravataProcessor::process_searchExperimentsByNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_getUserProjects(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByNameWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.getUserProjects", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByNameWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getUserProjects"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByNameWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.getUserProjects"); } - Airavata_searchExperimentsByNameWithPagination_args args; + Airavata_getUserProjects_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByNameWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.getUserProjects", bytes); } - Airavata_searchExperimentsByNameWithPagination_result result; + Airavata_getUserProjects_result result; try { - iface_->searchExperimentsByNameWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset); + iface_->getUserProjects(result.success, args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50127,11 +45832,11 @@ void AiravataProcessor::process_searchExperimentsByNameWithPagination(int32_t se result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByNameWithPagination"); + this->eventHandler_->handlerError(ctx, "Airavata.getUserProjects"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("getUserProjects", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50140,44 +45845,44 @@ void AiravataProcessor::process_searchExperimentsByNameWithPagination(int32_t se } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByNameWithPagination"); + this->eventHandler_->preWrite(ctx, "Airavata.getUserProjects"); } - oprot->writeMessageBegin("searchExperimentsByNameWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("getUserProjects", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByNameWithPagination", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.getUserProjects", bytes); } } -void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchProjectsByProjectName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByDesc", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectName", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByDesc"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectName"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByDesc"); + this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectName"); } - Airavata_searchExperimentsByDesc_args args; + Airavata_searchProjectsByProjectName_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByDesc", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectName", bytes); } - Airavata_searchExperimentsByDesc_result result; + Airavata_searchProjectsByProjectName_result result; try { - iface_->searchExperimentsByDesc(result.success, args.gatewayId, args.userName, args.description); + iface_->searchProjectsByProjectName(result.success, args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50188,13 +45893,16 @@ void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache: } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { result.ase = ase; result.__isset.ase = true; + } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { + result.ae = ae; + result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByDesc"); + this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectName"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50203,44 +45911,44 @@ void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache: } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByDesc"); + this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectName"); } - oprot->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchProjectsByProjectName", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByDesc", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectName", bytes); } } -void AiravataProcessor::process_searchExperimentsByDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchProjectsByProjectDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByDescWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchProjectsByProjectDesc", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByDescWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchProjectsByProjectDesc"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByDescWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.searchProjectsByProjectDesc"); } - Airavata_searchExperimentsByDescWithPagination_args args; + Airavata_searchProjectsByProjectDesc_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByDescWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchProjectsByProjectDesc", bytes); } - Airavata_searchExperimentsByDescWithPagination_result result; + Airavata_searchProjectsByProjectDesc_result result; try { - iface_->searchExperimentsByDescWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); + iface_->searchProjectsByProjectDesc(result.success, args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50256,11 +45964,11 @@ void AiravataProcessor::process_searchExperimentsByDescWithPagination(int32_t se result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByDescWithPagination"); + this->eventHandler_->handlerError(ctx, "Airavata.searchProjectsByProjectDesc"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50269,44 +45977,44 @@ void AiravataProcessor::process_searchExperimentsByDescWithPagination(int32_t se } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByDescWithPagination"); + this->eventHandler_->preWrite(ctx, "Airavata.searchProjectsByProjectDesc"); } - oprot->writeMessageBegin("searchExperimentsByDescWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchProjectsByProjectDesc", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByDescWithPagination", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchProjectsByProjectDesc", bytes); } } -void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchExperimentsByName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByApplication", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByName", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByApplication"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByName"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByApplication"); + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByName"); } - Airavata_searchExperimentsByApplication_args args; + Airavata_searchExperimentsByName_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByApplication", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByName", bytes); } - Airavata_searchExperimentsByApplication_result result; + Airavata_searchExperimentsByName_result result; try { - iface_->searchExperimentsByApplication(result.success, args.gatewayId, args.userName, args.applicationId); + iface_->searchExperimentsByName(result.success, args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50317,13 +46025,16 @@ void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, :: } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { result.ase = ase; result.__isset.ase = true; + } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { + result.ae = ae; + result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByApplication"); + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByName"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50332,44 +46043,44 @@ void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, :: } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByApplication"); + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByName"); } - oprot->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchExperimentsByName", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByApplication", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByName", bytes); } } -void AiravataProcessor::process_searchExperimentsByApplicationWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchExperimentsByDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByApplicationWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByDesc", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByDesc"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByDesc"); } - Airavata_searchExperimentsByApplicationWithPagination_args args; + Airavata_searchExperimentsByDesc_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByApplicationWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByDesc", bytes); } - Airavata_searchExperimentsByApplicationWithPagination_result result; + Airavata_searchExperimentsByDesc_result result; try { - iface_->searchExperimentsByApplicationWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); + iface_->searchExperimentsByDesc(result.success, args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50385,11 +46096,11 @@ void AiravataProcessor::process_searchExperimentsByApplicationWithPagination(int result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByDesc"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50398,44 +46109,44 @@ void AiravataProcessor::process_searchExperimentsByApplicationWithPagination(int } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByApplicationWithPagination"); + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByDesc"); } - oprot->writeMessageBegin("searchExperimentsByApplicationWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchExperimentsByDesc", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByApplicationWithPagination", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByDesc", bytes); } } -void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchExperimentsByApplication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByStatus", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByApplication", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByStatus"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByApplication"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByStatus"); + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByApplication"); } - Airavata_searchExperimentsByStatus_args args; + Airavata_searchExperimentsByApplication_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByStatus", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByApplication", bytes); } - Airavata_searchExperimentsByStatus_result result; + Airavata_searchExperimentsByApplication_result result; try { - iface_->searchExperimentsByStatus(result.success, args.gatewayId, args.userName, args.experimentState); + iface_->searchExperimentsByApplication(result.success, args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50446,13 +46157,16 @@ void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apach } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { result.ase = ase; result.__isset.ase = true; + } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { + result.ae = ae; + result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByStatus"); + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByApplication"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50461,44 +46175,44 @@ void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apach } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByStatus"); + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByApplication"); } - oprot->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchExperimentsByApplication", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByStatus", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByApplication", bytes); } } -void AiravataProcessor::process_searchExperimentsByStatusWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_searchExperimentsByStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByStatusWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByStatus", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByStatusWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByStatus"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByStatus"); } - Airavata_searchExperimentsByStatusWithPagination_args args; + Airavata_searchExperimentsByStatus_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByStatusWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByStatus", bytes); } - Airavata_searchExperimentsByStatusWithPagination_result result; + Airavata_searchExperimentsByStatus_result result; try { - iface_->searchExperimentsByStatusWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); + iface_->searchExperimentsByStatus(result.success, args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50514,11 +46228,11 @@ void AiravataProcessor::process_searchExperimentsByStatusWithPagination(int32_t result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByStatus"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50527,17 +46241,17 @@ void AiravataProcessor::process_searchExperimentsByStatusWithPagination(int32_t } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByStatusWithPagination"); + this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByStatus"); } - oprot->writeMessageBegin("searchExperimentsByStatusWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("searchExperimentsByStatus", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByStatusWithPagination", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByStatus", bytes); } } @@ -50564,7 +46278,7 @@ void AiravataProcessor::process_searchExperimentsByCreationTime(int32_t seqid, : Airavata_searchExperimentsByCreationTime_result result; try { - iface_->searchExperimentsByCreationTime(result.success, args.gatewayId, args.userName, args.fromTime, args.toTime); + iface_->searchExperimentsByCreationTime(result.success, args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50575,6 +46289,9 @@ void AiravataProcessor::process_searchExperimentsByCreationTime(int32_t seqid, : } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { result.ase = ase; result.__isset.ase = true; + } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { + result.ae = ae; + result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByCreationTime"); @@ -50604,72 +46321,6 @@ void AiravataProcessor::process_searchExperimentsByCreationTime(int32_t seqid, : } } -void AiravataProcessor::process_searchExperimentsByCreationTimeWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.searchExperimentsByCreationTimeWithPagination", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); - } - - Airavata_searchExperimentsByCreationTimeWithPagination_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination", bytes); - } - - Airavata_searchExperimentsByCreationTimeWithPagination_result result; - try { - iface_->searchExperimentsByCreationTimeWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch ( ::apache::airavata::api::error::AuthorizationException &ae) { - result.ae = ae; - result.__isset.ae = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination"); - } - - oprot->writeMessageBegin("searchExperimentsByCreationTimeWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.searchExperimentsByCreationTimeWithPagination", bytes); - } -} - void AiravataProcessor::process_searchExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -50802,96 +46453,30 @@ void AiravataProcessor::process_getExperimentStatistics(int32_t seqid, ::apache: } } -void AiravataProcessor::process_getAllExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllExperimentsInProject", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllExperimentsInProject"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllExperimentsInProject"); - } - - Airavata_getAllExperimentsInProject_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllExperimentsInProject", bytes); - } - - Airavata_getAllExperimentsInProject_result result; - try { - iface_->getAllExperimentsInProject(result.success, args.projectId); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch ( ::apache::airavata::api::error::ProjectNotFoundException &pnfe) { - result.pnfe = pnfe; - result.__isset.pnfe = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllExperimentsInProject"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllExperimentsInProject", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllExperimentsInProject"); - } - - oprot->writeMessageBegin("getAllExperimentsInProject", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllExperimentsInProject", bytes); - } -} - -void AiravataProcessor::process_getAllExperimentsInProjectWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_getExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllExperimentsInProjectWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.getExperimentsInProject", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getExperimentsInProject"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.getExperimentsInProject"); } - Airavata_getAllExperimentsInProjectWithPagination_args args; + Airavata_getExperimentsInProject_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllExperimentsInProjectWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.getExperimentsInProject", bytes); } - Airavata_getAllExperimentsInProjectWithPagination_result result; + Airavata_getExperimentsInProject_result result; try { - iface_->getAllExperimentsInProjectWithPagination(result.success, args.authzToken, args.projectId, args.limit, args.offset); + iface_->getExperimentsInProject(result.success, args.authzToken, args.projectId, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -50910,74 +46495,11 @@ void AiravataProcessor::process_getAllExperimentsInProjectWithPagination(int32_t result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); - } - - ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); - x.write(oprot); - oprot->writeMessageEnd(); - oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - return; - } - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllExperimentsInProjectWithPagination"); - } - - oprot->writeMessageBegin("getAllExperimentsInProjectWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); - result.write(oprot); - oprot->writeMessageEnd(); - bytes = oprot->getTransport()->writeEnd(); - oprot->getTransport()->flush(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllExperimentsInProjectWithPagination", bytes); - } -} - -void AiravataProcessor::process_getAllUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) -{ - void* ctx = NULL; - if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllUserExperiments", callContext); - } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserExperiments"); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllUserExperiments"); - } - - Airavata_getAllUserExperiments_args args; - args.read(iprot); - iprot->readMessageEnd(); - uint32_t bytes = iprot->getTransport()->readEnd(); - - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllUserExperiments", bytes); - } - - Airavata_getAllUserExperiments_result result; - try { - iface_->getAllUserExperiments(result.success, args.gatewayId, args.userName); - result.__isset.success = true; - } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { - result.ire = ire; - result.__isset.ire = true; - } catch ( ::apache::airavata::api::error::AiravataClientException &ace) { - result.ace = ace; - result.__isset.ace = true; - } catch ( ::apache::airavata::api::error::AiravataSystemException &ase) { - result.ase = ase; - result.__isset.ase = true; - } catch (const std::exception& e) { - if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllUserExperiments"); + this->eventHandler_->handlerError(ctx, "Airavata.getExperimentsInProject"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllUserExperiments", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("getExperimentsInProject", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -50986,44 +46508,44 @@ void AiravataProcessor::process_getAllUserExperiments(int32_t seqid, ::apache::t } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllUserExperiments"); + this->eventHandler_->preWrite(ctx, "Airavata.getExperimentsInProject"); } - oprot->writeMessageBegin("getAllUserExperiments", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("getExperimentsInProject", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllUserExperiments", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.getExperimentsInProject", bytes); } } -void AiravataProcessor::process_getAllUserExperimentsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +void AiravataProcessor::process_getUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; if (this->eventHandler_.get() != NULL) { - ctx = this->eventHandler_->getContext("Airavata.getAllUserExperimentsWithPagination", callContext); + ctx = this->eventHandler_->getContext("Airavata.getUserExperiments", callContext); } - ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getAllUserExperimentsWithPagination"); + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "Airavata.getUserExperiments"); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preRead(ctx, "Airavata.getAllUserExperimentsWithPagination"); + this->eventHandler_->preRead(ctx, "Airavata.getUserExperiments"); } - Airavata_getAllUserExperimentsWithPagination_args args; + Airavata_getUserExperiments_args args; args.read(iprot); iprot->readMessageEnd(); uint32_t bytes = iprot->getTransport()->readEnd(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postRead(ctx, "Airavata.getAllUserExperimentsWithPagination", bytes); + this->eventHandler_->postRead(ctx, "Airavata.getUserExperiments", bytes); } - Airavata_getAllUserExperimentsWithPagination_result result; + Airavata_getUserExperiments_result result; try { - iface_->getAllUserExperimentsWithPagination(result.success, args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); + iface_->getUserExperiments(result.success, args.authzToken, args.gatewayId, args.userName, args.limit, args.offset); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -51039,11 +46561,11 @@ void AiravataProcessor::process_getAllUserExperimentsWithPagination(int32_t seqi result.__isset.ae = true; } catch (const std::exception& e) { if (this->eventHandler_.get() != NULL) { - this->eventHandler_->handlerError(ctx, "Airavata.getAllUserExperimentsWithPagination"); + this->eventHandler_->handlerError(ctx, "Airavata.getUserExperiments"); } ::apache::thrift::TApplicationException x(e.what()); - oprot->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_EXCEPTION, seqid); + oprot->writeMessageBegin("getUserExperiments", ::apache::thrift::protocol::T_EXCEPTION, seqid); x.write(oprot); oprot->writeMessageEnd(); oprot->getTransport()->writeEnd(); @@ -51052,17 +46574,17 @@ void AiravataProcessor::process_getAllUserExperimentsWithPagination(int32_t seqi } if (this->eventHandler_.get() != NULL) { - this->eventHandler_->preWrite(ctx, "Airavata.getAllUserExperimentsWithPagination"); + this->eventHandler_->preWrite(ctx, "Airavata.getUserExperiments"); } - oprot->writeMessageBegin("getAllUserExperimentsWithPagination", ::apache::thrift::protocol::T_REPLY, seqid); + oprot->writeMessageBegin("getUserExperiments", ::apache::thrift::protocol::T_REPLY, seqid); result.write(oprot); oprot->writeMessageEnd(); bytes = oprot->getTransport()->writeEnd(); oprot->getTransport()->flush(); if (this->eventHandler_.get() != NULL) { - this->eventHandler_->postWrite(ctx, "Airavata.getAllUserExperimentsWithPagination", bytes); + this->eventHandler_->postWrite(ctx, "Airavata.getUserExperiments", bytes); } } diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h index b891dd0aeb..bd3cd79e21 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h @@ -106,22 +106,6 @@ class AiravataIf { virtual void getProject( ::apache::airavata::model::workspace::Project& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) = 0; virtual bool deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId) = 0; - /** - * * Get all Project by user - * * - * * @param gatewayId - * * The identifier for the requested gateway. - * * - * * @param userName - * * The Project Object described in the workspace_model - * * @deprecated Instead use getAllUserProjectsWithPagination - * * - * - * @param gatewayId - * @param userName - */ - virtual void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) = 0; - /** * * Get all Project by user with pagination. Results will be ordered based * * on creation time DESC @@ -142,24 +126,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; - - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - * - * @param gatewayId - * @param userName - * @param projectName - */ - virtual void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) = 0; + virtual void getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; /** * Get all Project for user by project name with pagination.Results will be ordered based @@ -183,23 +150,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) = 0; - - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - virtual void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) = 0; + virtual void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) = 0; /** * Search and get all Projects for user by project description with pagination. Results @@ -223,26 +174,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param useNname - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - * - * @param gatewayId - * @param userName - * @param expName - */ - virtual void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) = 0; + virtual void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by experiment name with pagination. Results will be sorted @@ -266,25 +198,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) = 0; - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - virtual void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) = 0; + virtual void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by experiment name with pagination. Results will be sorted @@ -308,25 +222,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; - - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplicationWithPagination - * - * @param gatewayId - * @param userName - * @param applicationId - */ - virtual void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) = 0; + virtual void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by application id with pagination. Results will be sorted @@ -350,25 +246,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) = 0; - - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiement state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - * - * @param gatewayId - * @param userName - * @param experimentState - */ - virtual void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState) = 0; + virtual void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by experiment status with pagination. Results will be sorted @@ -392,28 +270,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) = 0; - - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTimeWithPagination - * - * @param gatewayId - * @param userName - * @param fromTime - * @param toTime - */ - virtual void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) = 0; + virtual void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by experiment creation time with pagination. Results will be sorted @@ -440,7 +297,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) = 0; + virtual void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) = 0; /** * Search Experiments by using multiple filter criteria with pagination. Results will be sorted @@ -484,19 +341,7 @@ class AiravataIf { virtual void getExperimentStatistics( ::apache::airavata::model::experiment::ExperimentStatistics& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const int64_t fromTime, const int64_t toTime) = 0; /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - * - * @param projectId - */ - virtual void getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& projectId) = 0; - - /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -511,25 +356,10 @@ class AiravataIf { * @param limit * @param offset */ - virtual void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) = 0; - - /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - * - * @param gatewayId - * @param userName - */ - virtual void getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& gatewayId, const std::string& userName) = 0; + virtual void getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) = 0; /** - * Get all Experiments by user pagination. Results will be sorted + * Get experiments by user with pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -547,7 +377,7 @@ class AiravataIf { * @param limit * @param offset */ - virtual void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; + virtual void getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) = 0; /** * Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed @@ -1931,52 +1761,28 @@ class AiravataNull : virtual public AiravataIf { bool _return = false; return _return; } - void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */) { - return; - } - void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { - return; - } - void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* projectName */) { - return; - } - void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* projectName */, const int32_t /* limit */, const int32_t /* offset */) { - return; - } - void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */) { - return; - } - void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { - return; - } - void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* expName */) { - return; - } - void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* expName */, const int32_t /* limit */, const int32_t /* offset */) { - return; - } - void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */) { + void getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* projectName */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* applicationId */) { + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* applicationId */, const int32_t /* limit */, const int32_t /* offset */) { + void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* expName */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const ::apache::airavata::model::status::ExperimentState::type /* experimentState */) { + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* description */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const ::apache::airavata::model::status::ExperimentState::type /* experimentState */, const int32_t /* limit */, const int32_t /* offset */) { + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::string& /* applicationId */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */, const int64_t /* fromTime */, const int64_t /* toTime */) { + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const ::apache::airavata::model::status::ExperimentState::type /* experimentState */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int64_t /* fromTime */, const int64_t /* toTime */, const int32_t /* limit */, const int32_t /* offset */) { + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int64_t /* fromTime */, const int64_t /* toTime */, const int32_t /* limit */, const int32_t /* offset */) { return; } void searchExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & /* filters */, const int32_t /* limit */, const int32_t /* offset */) { @@ -1985,16 +1791,10 @@ class AiravataNull : virtual public AiravataIf { void getExperimentStatistics( ::apache::airavata::model::experiment::ExperimentStatistics& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const int64_t /* fromTime */, const int64_t /* toTime */) { return; } - void getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const std::string& /* projectId */) { - return; - } - void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* projectId */, const int32_t /* limit */, const int32_t /* offset */) { - return; - } - void getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */) { + void getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* projectId */, const int32_t /* limit */, const int32_t /* offset */) { return; } - void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { + void getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */, const int32_t /* limit */, const int32_t /* offset */) { return; } void createExperiment(std::string& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const ::apache::airavata::model::experiment::ExperimentModel& /* experiment */) { @@ -4411,88 +4211,108 @@ class Airavata_deleteProject_presult { }; -class Airavata_getAllUserProjects_args { +class Airavata_getUserProjects_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; + static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; - Airavata_getAllUserProjects_args(const Airavata_getAllUserProjects_args&); - Airavata_getAllUserProjects_args& operator=(const Airavata_getAllUserProjects_args&); - Airavata_getAllUserProjects_args() : gatewayId(), userName() { + Airavata_getUserProjects_args(const Airavata_getUserProjects_args&); + Airavata_getUserProjects_args& operator=(const Airavata_getUserProjects_args&); + Airavata_getUserProjects_args() : gatewayId(), userName(), limit(0), offset(0) { } - virtual ~Airavata_getAllUserProjects_args() throw(); + virtual ~Airavata_getUserProjects_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; + int32_t limit; + int32_t offset; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); void __set_gatewayId(const std::string& val); void __set_userName(const std::string& val); - bool operator == (const Airavata_getAllUserProjects_args & rhs) const + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_getUserProjects_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; return true; } - bool operator != (const Airavata_getAllUserProjects_args &rhs) const { + bool operator != (const Airavata_getUserProjects_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserProjects_args & ) const; + bool operator < (const Airavata_getUserProjects_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjects_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserProjects_args& obj); }; -class Airavata_getAllUserProjects_pargs { +class Airavata_getUserProjects_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; + static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; - virtual ~Airavata_getAllUserProjects_pargs() throw(); + virtual ~Airavata_getUserProjects_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjects_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserProjects_pargs& obj); }; -typedef struct _Airavata_getAllUserProjects_result__isset { - _Airavata_getAllUserProjects_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getUserProjects_result__isset { + _Airavata_getUserProjects_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_getAllUserProjects_result__isset; + bool ae :1; +} _Airavata_getUserProjects_result__isset; -class Airavata_getAllUserProjects_result { +class Airavata_getUserProjects_result { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; + static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - Airavata_getAllUserProjects_result(const Airavata_getAllUserProjects_result&); - Airavata_getAllUserProjects_result& operator=(const Airavata_getAllUserProjects_result&); - Airavata_getAllUserProjects_result() { + Airavata_getUserProjects_result(const Airavata_getUserProjects_result&); + Airavata_getUserProjects_result& operator=(const Airavata_getUserProjects_result&); + Airavata_getUserProjects_result() { } - virtual ~Airavata_getAllUserProjects_result() throw(); + virtual ~Airavata_getUserProjects_result() throw(); std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserProjects_result__isset __isset; + _Airavata_getUserProjects_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); @@ -4502,7 +4322,9 @@ class Airavata_getAllUserProjects_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - bool operator == (const Airavata_getAllUserProjects_result & rhs) const + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); + + bool operator == (const Airavata_getUserProjects_result & rhs) const { if (!(success == rhs.success)) return false; @@ -4512,64 +4334,69 @@ class Airavata_getAllUserProjects_result { return false; if (!(ase == rhs.ase)) return false; + if (!(ae == rhs.ae)) + return false; return true; } - bool operator != (const Airavata_getAllUserProjects_result &rhs) const { + bool operator != (const Airavata_getUserProjects_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserProjects_result & ) const; + bool operator < (const Airavata_getUserProjects_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjects_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserProjects_result& obj); }; -typedef struct _Airavata_getAllUserProjects_presult__isset { - _Airavata_getAllUserProjects_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getUserProjects_presult__isset { + _Airavata_getUserProjects_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_getAllUserProjects_presult__isset; + bool ae :1; +} _Airavata_getUserProjects_presult__isset; -class Airavata_getAllUserProjects_presult { +class Airavata_getUserProjects_presult { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; + static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - virtual ~Airavata_getAllUserProjects_presult() throw(); + virtual ~Airavata_getUserProjects_presult() throw(); std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserProjects_presult__isset __isset; + _Airavata_getUserProjects_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjects_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserProjects_presult& obj); }; -class Airavata_getAllUserProjectsWithPagination_args { +class Airavata_searchProjectsByProjectName_args { public: - static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; - static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - Airavata_getAllUserProjectsWithPagination_args(const Airavata_getAllUserProjectsWithPagination_args&); - Airavata_getAllUserProjectsWithPagination_args& operator=(const Airavata_getAllUserProjectsWithPagination_args&); - Airavata_getAllUserProjectsWithPagination_args() : gatewayId(), userName(), limit(0), offset(0) { + Airavata_searchProjectsByProjectName_args(const Airavata_searchProjectsByProjectName_args&); + Airavata_searchProjectsByProjectName_args& operator=(const Airavata_searchProjectsByProjectName_args&); + Airavata_searchProjectsByProjectName_args() : gatewayId(), userName(), projectName(), limit(0), offset(0) { } - virtual ~Airavata_getAllUserProjectsWithPagination_args() throw(); + virtual ~Airavata_searchProjectsByProjectName_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; + std::string projectName; int32_t limit; int32_t offset; @@ -4579,11 +4406,13 @@ class Airavata_getAllUserProjectsWithPagination_args { void __set_userName(const std::string& val); + void __set_projectName(const std::string& val); + void __set_limit(const int32_t val); void __set_offset(const int32_t val); - bool operator == (const Airavata_getAllUserProjectsWithPagination_args & rhs) const + bool operator == (const Airavata_searchProjectsByProjectName_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; @@ -4591,72 +4420,75 @@ class Airavata_getAllUserProjectsWithPagination_args { return false; if (!(userName == rhs.userName)) return false; + if (!(projectName == rhs.projectName)) + return false; if (!(limit == rhs.limit)) return false; if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_getAllUserProjectsWithPagination_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectName_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserProjectsWithPagination_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectName_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjectsWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_args& obj); }; -class Airavata_getAllUserProjectsWithPagination_pargs { +class Airavata_searchProjectsByProjectName_pargs { public: - static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; - static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - virtual ~Airavata_getAllUserProjectsWithPagination_pargs() throw(); + virtual ~Airavata_searchProjectsByProjectName_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; + const std::string* projectName; const int32_t* limit; const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjectsWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_pargs& obj); }; -typedef struct _Airavata_getAllUserProjectsWithPagination_result__isset { - _Airavata_getAllUserProjectsWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchProjectsByProjectName_result__isset { + _Airavata_searchProjectsByProjectName_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_getAllUserProjectsWithPagination_result__isset; +} _Airavata_searchProjectsByProjectName_result__isset; -class Airavata_getAllUserProjectsWithPagination_result { +class Airavata_searchProjectsByProjectName_result { public: static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - Airavata_getAllUserProjectsWithPagination_result(const Airavata_getAllUserProjectsWithPagination_result&); - Airavata_getAllUserProjectsWithPagination_result& operator=(const Airavata_getAllUserProjectsWithPagination_result&); - Airavata_getAllUserProjectsWithPagination_result() { + Airavata_searchProjectsByProjectName_result(const Airavata_searchProjectsByProjectName_result&); + Airavata_searchProjectsByProjectName_result& operator=(const Airavata_searchProjectsByProjectName_result&); + Airavata_searchProjectsByProjectName_result() { } - virtual ~Airavata_getAllUserProjectsWithPagination_result() throw(); + virtual ~Airavata_searchProjectsByProjectName_result() throw(); std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserProjectsWithPagination_result__isset __isset; + _Airavata_searchProjectsByProjectName_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); @@ -4668,7 +4500,7 @@ class Airavata_getAllUserProjectsWithPagination_result { void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_getAllUserProjectsWithPagination_result & rhs) const + bool operator == (const Airavata_searchProjectsByProjectName_result & rhs) const { if (!(success == rhs.success)) return false; @@ -4682,137 +4514,157 @@ class Airavata_getAllUserProjectsWithPagination_result { return false; return true; } - bool operator != (const Airavata_getAllUserProjectsWithPagination_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectName_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserProjectsWithPagination_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectName_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjectsWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_result& obj); }; -typedef struct _Airavata_getAllUserProjectsWithPagination_presult__isset { - _Airavata_getAllUserProjectsWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchProjectsByProjectName_presult__isset { + _Airavata_searchProjectsByProjectName_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_getAllUserProjectsWithPagination_presult__isset; +} _Airavata_searchProjectsByProjectName_presult__isset; -class Airavata_getAllUserProjectsWithPagination_presult { +class Airavata_searchProjectsByProjectName_presult { public: static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - virtual ~Airavata_getAllUserProjectsWithPagination_presult() throw(); + virtual ~Airavata_searchProjectsByProjectName_presult() throw(); std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserProjectsWithPagination_presult__isset __isset; + _Airavata_searchProjectsByProjectName_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserProjectsWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_presult& obj); }; -class Airavata_searchProjectsByProjectName_args { +class Airavata_searchProjectsByProjectDesc_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - Airavata_searchProjectsByProjectName_args(const Airavata_searchProjectsByProjectName_args&); - Airavata_searchProjectsByProjectName_args& operator=(const Airavata_searchProjectsByProjectName_args&); - Airavata_searchProjectsByProjectName_args() : gatewayId(), userName(), projectName() { + Airavata_searchProjectsByProjectDesc_args(const Airavata_searchProjectsByProjectDesc_args&); + Airavata_searchProjectsByProjectDesc_args& operator=(const Airavata_searchProjectsByProjectDesc_args&); + Airavata_searchProjectsByProjectDesc_args() : gatewayId(), userName(), description(), limit(0), offset(0) { } - virtual ~Airavata_searchProjectsByProjectName_args() throw(); + virtual ~Airavata_searchProjectsByProjectDesc_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string projectName; + std::string description; + int32_t limit; + int32_t offset; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); void __set_gatewayId(const std::string& val); void __set_userName(const std::string& val); - void __set_projectName(const std::string& val); + void __set_description(const std::string& val); - bool operator == (const Airavata_searchProjectsByProjectName_args & rhs) const - { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_searchProjectsByProjectDesc_args & rhs) const + { + if (!(authzToken == rhs.authzToken)) return false; - if (!(projectName == rhs.projectName)) + if (!(gatewayId == rhs.gatewayId)) + return false; + if (!(userName == rhs.userName)) + return false; + if (!(description == rhs.description)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectName_args &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDesc_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectName_args & ) const; + bool operator < (const Airavata_searchProjectsByProjectDesc_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_args& obj); }; -class Airavata_searchProjectsByProjectName_pargs { +class Airavata_searchProjectsByProjectDesc_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - virtual ~Airavata_searchProjectsByProjectName_pargs() throw(); + virtual ~Airavata_searchProjectsByProjectDesc_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* projectName; + const std::string* description; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_pargs& obj); }; -typedef struct _Airavata_searchProjectsByProjectName_result__isset { - _Airavata_searchProjectsByProjectName_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDesc_result__isset { + _Airavata_searchProjectsByProjectDesc_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchProjectsByProjectName_result__isset; + bool ae :1; +} _Airavata_searchProjectsByProjectDesc_result__isset; -class Airavata_searchProjectsByProjectName_result { +class Airavata_searchProjectsByProjectDesc_result { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; + static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - Airavata_searchProjectsByProjectName_result(const Airavata_searchProjectsByProjectName_result&); - Airavata_searchProjectsByProjectName_result& operator=(const Airavata_searchProjectsByProjectName_result&); - Airavata_searchProjectsByProjectName_result() { + Airavata_searchProjectsByProjectDesc_result(const Airavata_searchProjectsByProjectDesc_result&); + Airavata_searchProjectsByProjectDesc_result& operator=(const Airavata_searchProjectsByProjectDesc_result&); + Airavata_searchProjectsByProjectDesc_result() { } - virtual ~Airavata_searchProjectsByProjectName_result() throw(); + virtual ~Airavata_searchProjectsByProjectDesc_result() throw(); std::vector< ::apache::airavata::model::workspace::Project> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectName_result__isset __isset; + _Airavata_searchProjectsByProjectDesc_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); @@ -4822,7 +4674,9 @@ class Airavata_searchProjectsByProjectName_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - bool operator == (const Airavata_searchProjectsByProjectName_result & rhs) const + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); + + bool operator == (const Airavata_searchProjectsByProjectDesc_result & rhs) const { if (!(success == rhs.success)) return false; @@ -4832,65 +4686,69 @@ class Airavata_searchProjectsByProjectName_result { return false; if (!(ase == rhs.ase)) return false; + if (!(ae == rhs.ae)) + return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectName_result &rhs) const { + bool operator != (const Airavata_searchProjectsByProjectDesc_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectName_result & ) const; + bool operator < (const Airavata_searchProjectsByProjectDesc_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_result& obj); }; -typedef struct _Airavata_searchProjectsByProjectName_presult__isset { - _Airavata_searchProjectsByProjectName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchProjectsByProjectDesc_presult__isset { + _Airavata_searchProjectsByProjectDesc_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchProjectsByProjectName_presult__isset; + bool ae :1; +} _Airavata_searchProjectsByProjectDesc_presult__isset; -class Airavata_searchProjectsByProjectName_presult { +class Airavata_searchProjectsByProjectDesc_presult { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; + static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; - virtual ~Airavata_searchProjectsByProjectName_presult() throw(); + virtual ~Airavata_searchProjectsByProjectDesc_presult() throw(); std::vector< ::apache::airavata::model::workspace::Project> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectName_presult__isset __isset; + _Airavata_searchProjectsByProjectDesc_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectName_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_presult& obj); }; -class Airavata_searchProjectsByProjectNameWithPagination_args { +class Airavata_searchExperimentsByName_args { public: static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - Airavata_searchProjectsByProjectNameWithPagination_args(const Airavata_searchProjectsByProjectNameWithPagination_args&); - Airavata_searchProjectsByProjectNameWithPagination_args& operator=(const Airavata_searchProjectsByProjectNameWithPagination_args&); - Airavata_searchProjectsByProjectNameWithPagination_args() : gatewayId(), userName(), projectName(), limit(0), offset(0) { + Airavata_searchExperimentsByName_args(const Airavata_searchExperimentsByName_args&); + Airavata_searchExperimentsByName_args& operator=(const Airavata_searchExperimentsByName_args&); + Airavata_searchExperimentsByName_args() : gatewayId(), userName(), expName(), limit(0), offset(0) { } - virtual ~Airavata_searchProjectsByProjectNameWithPagination_args() throw(); + virtual ~Airavata_searchExperimentsByName_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string projectName; + std::string expName; int32_t limit; int32_t offset; @@ -4900,13 +4758,13 @@ class Airavata_searchProjectsByProjectNameWithPagination_args { void __set_userName(const std::string& val); - void __set_projectName(const std::string& val); + void __set_expName(const std::string& val); void __set_limit(const int32_t val); void __set_offset(const int32_t val); - bool operator == (const Airavata_searchProjectsByProjectNameWithPagination_args & rhs) const + bool operator == (const Airavata_searchExperimentsByName_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; @@ -4914,7 +4772,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_args { return false; if (!(userName == rhs.userName)) return false; - if (!(projectName == rhs.projectName)) + if (!(expName == rhs.expName)) return false; if (!(limit == rhs.limit)) return false; @@ -4922,69 +4780,69 @@ class Airavata_searchProjectsByProjectNameWithPagination_args { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectNameWithPagination_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByName_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectNameWithPagination_args & ) const; + bool operator < (const Airavata_searchExperimentsByName_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectNameWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_args& obj); }; -class Airavata_searchProjectsByProjectNameWithPagination_pargs { +class Airavata_searchExperimentsByName_pargs { public: static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - virtual ~Airavata_searchProjectsByProjectNameWithPagination_pargs() throw(); + virtual ~Airavata_searchExperimentsByName_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* projectName; + const std::string* expName; const int32_t* limit; const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectNameWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_pargs& obj); }; -typedef struct _Airavata_searchProjectsByProjectNameWithPagination_result__isset { - _Airavata_searchProjectsByProjectNameWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByName_result__isset { + _Airavata_searchExperimentsByName_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchProjectsByProjectNameWithPagination_result__isset; +} _Airavata_searchExperimentsByName_result__isset; -class Airavata_searchProjectsByProjectNameWithPagination_result { +class Airavata_searchExperimentsByName_result { public: - static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_searchProjectsByProjectNameWithPagination_result(const Airavata_searchProjectsByProjectNameWithPagination_result&); - Airavata_searchProjectsByProjectNameWithPagination_result& operator=(const Airavata_searchProjectsByProjectNameWithPagination_result&); - Airavata_searchProjectsByProjectNameWithPagination_result() { + Airavata_searchExperimentsByName_result(const Airavata_searchExperimentsByName_result&); + Airavata_searchExperimentsByName_result& operator=(const Airavata_searchExperimentsByName_result&); + Airavata_searchExperimentsByName_result() { } - virtual ~Airavata_searchProjectsByProjectNameWithPagination_result() throw(); - std::vector< ::apache::airavata::model::workspace::Project> success; + virtual ~Airavata_searchExperimentsByName_result() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectNameWithPagination_result__isset __isset; + _Airavata_searchExperimentsByName_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); + void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); @@ -4994,7 +4852,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_result { void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_searchProjectsByProjectNameWithPagination_result & rhs) const + bool operator == (const Airavata_searchExperimentsByName_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5008,64 +4866,69 @@ class Airavata_searchProjectsByProjectNameWithPagination_result { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectNameWithPagination_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByName_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectNameWithPagination_result & ) const; + bool operator < (const Airavata_searchExperimentsByName_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectNameWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_result& obj); }; -typedef struct _Airavata_searchProjectsByProjectNameWithPagination_presult__isset { - _Airavata_searchProjectsByProjectNameWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByName_presult__isset { + _Airavata_searchExperimentsByName_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchProjectsByProjectNameWithPagination_presult__isset; +} _Airavata_searchExperimentsByName_presult__isset; -class Airavata_searchProjectsByProjectNameWithPagination_presult { +class Airavata_searchExperimentsByName_presult { public: - static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_searchProjectsByProjectNameWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::workspace::Project> * success; + virtual ~Airavata_searchExperimentsByName_presult() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectNameWithPagination_presult__isset __isset; + _Airavata_searchExperimentsByName_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectNameWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_presult& obj); }; -class Airavata_searchProjectsByProjectDesc_args { +class Airavata_searchExperimentsByDesc_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - Airavata_searchProjectsByProjectDesc_args(const Airavata_searchProjectsByProjectDesc_args&); - Airavata_searchProjectsByProjectDesc_args& operator=(const Airavata_searchProjectsByProjectDesc_args&); - Airavata_searchProjectsByProjectDesc_args() : gatewayId(), userName(), description() { + Airavata_searchExperimentsByDesc_args(const Airavata_searchExperimentsByDesc_args&); + Airavata_searchExperimentsByDesc_args& operator=(const Airavata_searchExperimentsByDesc_args&); + Airavata_searchExperimentsByDesc_args() : gatewayId(), userName(), description(), limit(0), offset(0) { } - virtual ~Airavata_searchProjectsByProjectDesc_args() throw(); + virtual ~Airavata_searchExperimentsByDesc_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; std::string description; + int32_t limit; + int32_t offset; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); void __set_gatewayId(const std::string& val); @@ -5073,74 +4936,89 @@ class Airavata_searchProjectsByProjectDesc_args { void __set_description(const std::string& val); - bool operator == (const Airavata_searchProjectsByProjectDesc_args & rhs) const + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_searchExperimentsByDesc_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; if (!(description == rhs.description)) return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) + return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDesc_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByDesc_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDesc_args & ) const; + bool operator < (const Airavata_searchExperimentsByDesc_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_args& obj); }; -class Airavata_searchProjectsByProjectDesc_pargs { +class Airavata_searchExperimentsByDesc_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; + static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - virtual ~Airavata_searchProjectsByProjectDesc_pargs() throw(); + virtual ~Airavata_searchExperimentsByDesc_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; const std::string* description; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_pargs& obj); }; -typedef struct _Airavata_searchProjectsByProjectDesc_result__isset { - _Airavata_searchProjectsByProjectDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByDesc_result__isset { + _Airavata_searchExperimentsByDesc_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchProjectsByProjectDesc_result__isset; + bool ae :1; +} _Airavata_searchExperimentsByDesc_result__isset; -class Airavata_searchProjectsByProjectDesc_result { +class Airavata_searchExperimentsByDesc_result { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_searchProjectsByProjectDesc_result(const Airavata_searchProjectsByProjectDesc_result&); - Airavata_searchProjectsByProjectDesc_result& operator=(const Airavata_searchProjectsByProjectDesc_result&); - Airavata_searchProjectsByProjectDesc_result() { + Airavata_searchExperimentsByDesc_result(const Airavata_searchExperimentsByDesc_result&); + Airavata_searchExperimentsByDesc_result& operator=(const Airavata_searchExperimentsByDesc_result&); + Airavata_searchExperimentsByDesc_result() { } - virtual ~Airavata_searchProjectsByProjectDesc_result() throw(); - std::vector< ::apache::airavata::model::workspace::Project> success; + virtual ~Airavata_searchExperimentsByDesc_result() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectDesc_result__isset __isset; + _Airavata_searchExperimentsByDesc_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); + void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); @@ -5148,7 +5026,9 @@ class Airavata_searchProjectsByProjectDesc_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - bool operator == (const Airavata_searchProjectsByProjectDesc_result & rhs) const + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); + + bool operator == (const Airavata_searchExperimentsByDesc_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5158,65 +5038,69 @@ class Airavata_searchProjectsByProjectDesc_result { return false; if (!(ase == rhs.ase)) return false; + if (!(ae == rhs.ae)) + return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDesc_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByDesc_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDesc_result & ) const; + bool operator < (const Airavata_searchExperimentsByDesc_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_result& obj); }; -typedef struct _Airavata_searchProjectsByProjectDesc_presult__isset { - _Airavata_searchProjectsByProjectDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByDesc_presult__isset { + _Airavata_searchExperimentsByDesc_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchProjectsByProjectDesc_presult__isset; + bool ae :1; +} _Airavata_searchExperimentsByDesc_presult__isset; -class Airavata_searchProjectsByProjectDesc_presult { +class Airavata_searchExperimentsByDesc_presult { public: - static const char* ascii_fingerprint; // = "DE4B6CD097BA21C87B066F507A85DD2B"; - static const uint8_t binary_fingerprint[16]; // = {0xDE,0x4B,0x6C,0xD0,0x97,0xBA,0x21,0xC8,0x7B,0x06,0x6F,0x50,0x7A,0x85,0xDD,0x2B}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_searchProjectsByProjectDesc_presult() throw(); - std::vector< ::apache::airavata::model::workspace::Project> * success; + virtual ~Airavata_searchExperimentsByDesc_presult() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectDesc_presult__isset __isset; + _Airavata_searchExperimentsByDesc_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDesc_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_presult& obj); }; -class Airavata_searchProjectsByProjectDescWithPagination_args { +class Airavata_searchExperimentsByApplication_args { public: static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - Airavata_searchProjectsByProjectDescWithPagination_args(const Airavata_searchProjectsByProjectDescWithPagination_args&); - Airavata_searchProjectsByProjectDescWithPagination_args& operator=(const Airavata_searchProjectsByProjectDescWithPagination_args&); - Airavata_searchProjectsByProjectDescWithPagination_args() : gatewayId(), userName(), description(), limit(0), offset(0) { + Airavata_searchExperimentsByApplication_args(const Airavata_searchExperimentsByApplication_args&); + Airavata_searchExperimentsByApplication_args& operator=(const Airavata_searchExperimentsByApplication_args&); + Airavata_searchExperimentsByApplication_args() : gatewayId(), userName(), applicationId(), limit(0), offset(0) { } - virtual ~Airavata_searchProjectsByProjectDescWithPagination_args() throw(); + virtual ~Airavata_searchExperimentsByApplication_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string description; + std::string applicationId; int32_t limit; int32_t offset; @@ -5226,13 +5110,13 @@ class Airavata_searchProjectsByProjectDescWithPagination_args { void __set_userName(const std::string& val); - void __set_description(const std::string& val); + void __set_applicationId(const std::string& val); void __set_limit(const int32_t val); void __set_offset(const int32_t val); - bool operator == (const Airavata_searchProjectsByProjectDescWithPagination_args & rhs) const + bool operator == (const Airavata_searchExperimentsByApplication_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; @@ -5240,7 +5124,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_args { return false; if (!(userName == rhs.userName)) return false; - if (!(description == rhs.description)) + if (!(applicationId == rhs.applicationId)) return false; if (!(limit == rhs.limit)) return false; @@ -5248,69 +5132,69 @@ class Airavata_searchProjectsByProjectDescWithPagination_args { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDescWithPagination_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByApplication_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDescWithPagination_args & ) const; + bool operator < (const Airavata_searchExperimentsByApplication_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDescWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_args& obj); }; -class Airavata_searchProjectsByProjectDescWithPagination_pargs { +class Airavata_searchExperimentsByApplication_pargs { public: static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - virtual ~Airavata_searchProjectsByProjectDescWithPagination_pargs() throw(); + virtual ~Airavata_searchExperimentsByApplication_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* description; + const std::string* applicationId; const int32_t* limit; const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDescWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_pargs& obj); }; -typedef struct _Airavata_searchProjectsByProjectDescWithPagination_result__isset { - _Airavata_searchProjectsByProjectDescWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByApplication_result__isset { + _Airavata_searchExperimentsByApplication_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchProjectsByProjectDescWithPagination_result__isset; +} _Airavata_searchExperimentsByApplication_result__isset; -class Airavata_searchProjectsByProjectDescWithPagination_result { +class Airavata_searchExperimentsByApplication_result { public: - static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_searchProjectsByProjectDescWithPagination_result(const Airavata_searchProjectsByProjectDescWithPagination_result&); - Airavata_searchProjectsByProjectDescWithPagination_result& operator=(const Airavata_searchProjectsByProjectDescWithPagination_result&); - Airavata_searchProjectsByProjectDescWithPagination_result() { + Airavata_searchExperimentsByApplication_result(const Airavata_searchExperimentsByApplication_result&); + Airavata_searchExperimentsByApplication_result& operator=(const Airavata_searchExperimentsByApplication_result&); + Airavata_searchExperimentsByApplication_result() { } - virtual ~Airavata_searchProjectsByProjectDescWithPagination_result() throw(); - std::vector< ::apache::airavata::model::workspace::Project> success; + virtual ~Airavata_searchExperimentsByApplication_result() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectDescWithPagination_result__isset __isset; + _Airavata_searchExperimentsByApplication_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::workspace::Project> & val); + void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); @@ -5320,7 +5204,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_result { void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_searchProjectsByProjectDescWithPagination_result & rhs) const + bool operator == (const Airavata_searchExperimentsByApplication_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5334,137 +5218,157 @@ class Airavata_searchProjectsByProjectDescWithPagination_result { return false; return true; } - bool operator != (const Airavata_searchProjectsByProjectDescWithPagination_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByApplication_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchProjectsByProjectDescWithPagination_result & ) const; + bool operator < (const Airavata_searchExperimentsByApplication_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDescWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_result& obj); }; -typedef struct _Airavata_searchProjectsByProjectDescWithPagination_presult__isset { - _Airavata_searchProjectsByProjectDescWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByApplication_presult__isset { + _Airavata_searchExperimentsByApplication_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchProjectsByProjectDescWithPagination_presult__isset; +} _Airavata_searchExperimentsByApplication_presult__isset; -class Airavata_searchProjectsByProjectDescWithPagination_presult { +class Airavata_searchExperimentsByApplication_presult { public: - static const char* ascii_fingerprint; // = "9FDEFB6B8A9E4977A43B7C4722664EC3"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xDE,0xFB,0x6B,0x8A,0x9E,0x49,0x77,0xA4,0x3B,0x7C,0x47,0x22,0x66,0x4E,0xC3}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_searchProjectsByProjectDescWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::workspace::Project> * success; + virtual ~Airavata_searchExperimentsByApplication_presult() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchProjectsByProjectDescWithPagination_presult__isset __isset; + _Airavata_searchExperimentsByApplication_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchProjectsByProjectDescWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_presult& obj); }; -class Airavata_searchExperimentsByName_args { +class Airavata_searchExperimentsByStatus_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "A902C1FCF3C2BF735A7E5A4A6FF9AE3D"; + static const uint8_t binary_fingerprint[16]; // = {0xA9,0x02,0xC1,0xFC,0xF3,0xC2,0xBF,0x73,0x5A,0x7E,0x5A,0x4A,0x6F,0xF9,0xAE,0x3D}; - Airavata_searchExperimentsByName_args(const Airavata_searchExperimentsByName_args&); - Airavata_searchExperimentsByName_args& operator=(const Airavata_searchExperimentsByName_args&); - Airavata_searchExperimentsByName_args() : gatewayId(), userName(), expName() { + Airavata_searchExperimentsByStatus_args(const Airavata_searchExperimentsByStatus_args&); + Airavata_searchExperimentsByStatus_args& operator=(const Airavata_searchExperimentsByStatus_args&); + Airavata_searchExperimentsByStatus_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::status::ExperimentState::type)0), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByName_args() throw(); + virtual ~Airavata_searchExperimentsByStatus_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string expName; + ::apache::airavata::model::status::ExperimentState::type experimentState; + int32_t limit; + int32_t offset; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); void __set_gatewayId(const std::string& val); void __set_userName(const std::string& val); - void __set_expName(const std::string& val); + void __set_experimentState(const ::apache::airavata::model::status::ExperimentState::type val); - bool operator == (const Airavata_searchExperimentsByName_args & rhs) const + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_searchExperimentsByStatus_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(expName == rhs.expName)) + if (!(experimentState == rhs.experimentState)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByName_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByStatus_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByName_args & ) const; + bool operator < (const Airavata_searchExperimentsByStatus_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_args& obj); }; -class Airavata_searchExperimentsByName_pargs { +class Airavata_searchExperimentsByStatus_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "A902C1FCF3C2BF735A7E5A4A6FF9AE3D"; + static const uint8_t binary_fingerprint[16]; // = {0xA9,0x02,0xC1,0xFC,0xF3,0xC2,0xBF,0x73,0x5A,0x7E,0x5A,0x4A,0x6F,0xF9,0xAE,0x3D}; - virtual ~Airavata_searchExperimentsByName_pargs() throw(); + virtual ~Airavata_searchExperimentsByStatus_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* expName; + const ::apache::airavata::model::status::ExperimentState::type* experimentState; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_pargs& obj); }; -typedef struct _Airavata_searchExperimentsByName_result__isset { - _Airavata_searchExperimentsByName_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByStatus_result__isset { + _Airavata_searchExperimentsByStatus_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchExperimentsByName_result__isset; + bool ae :1; +} _Airavata_searchExperimentsByStatus_result__isset; -class Airavata_searchExperimentsByName_result { +class Airavata_searchExperimentsByStatus_result { public: - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_searchExperimentsByName_result(const Airavata_searchExperimentsByName_result&); - Airavata_searchExperimentsByName_result& operator=(const Airavata_searchExperimentsByName_result&); - Airavata_searchExperimentsByName_result() { + Airavata_searchExperimentsByStatus_result(const Airavata_searchExperimentsByStatus_result&); + Airavata_searchExperimentsByStatus_result& operator=(const Airavata_searchExperimentsByStatus_result&); + Airavata_searchExperimentsByStatus_result() { } - virtual ~Airavata_searchExperimentsByName_result() throw(); + virtual ~Airavata_searchExperimentsByStatus_result() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchExperimentsByName_result__isset __isset; + _Airavata_searchExperimentsByStatus_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); @@ -5474,7 +5378,9 @@ class Airavata_searchExperimentsByName_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - bool operator == (const Airavata_searchExperimentsByName_result & rhs) const + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); + + bool operator == (const Airavata_searchExperimentsByStatus_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5484,65 +5390,70 @@ class Airavata_searchExperimentsByName_result { return false; if (!(ase == rhs.ase)) return false; + if (!(ae == rhs.ae)) + return false; return true; } - bool operator != (const Airavata_searchExperimentsByName_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByStatus_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByName_result & ) const; + bool operator < (const Airavata_searchExperimentsByStatus_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_result& obj); }; -typedef struct _Airavata_searchExperimentsByName_presult__isset { - _Airavata_searchExperimentsByName_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_searchExperimentsByStatus_presult__isset { + _Airavata_searchExperimentsByStatus_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_searchExperimentsByName_presult__isset; + bool ae :1; +} _Airavata_searchExperimentsByStatus_presult__isset; -class Airavata_searchExperimentsByName_presult { +class Airavata_searchExperimentsByStatus_presult { public: - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_searchExperimentsByName_presult() throw(); + virtual ~Airavata_searchExperimentsByStatus_presult() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchExperimentsByName_presult__isset __isset; + _Airavata_searchExperimentsByStatus_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByName_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_presult& obj); }; -class Airavata_searchExperimentsByNameWithPagination_args { +class Airavata_searchExperimentsByCreationTime_args { public: - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; + static const char* ascii_fingerprint; // = "25238CAB6E3C1A0B8B40128B1FD9F510"; + static const uint8_t binary_fingerprint[16]; // = {0x25,0x23,0x8C,0xAB,0x6E,0x3C,0x1A,0x0B,0x8B,0x40,0x12,0x8B,0x1F,0xD9,0xF5,0x10}; - Airavata_searchExperimentsByNameWithPagination_args(const Airavata_searchExperimentsByNameWithPagination_args&); - Airavata_searchExperimentsByNameWithPagination_args& operator=(const Airavata_searchExperimentsByNameWithPagination_args&); - Airavata_searchExperimentsByNameWithPagination_args() : gatewayId(), userName(), expName(), limit(0), offset(0) { + Airavata_searchExperimentsByCreationTime_args(const Airavata_searchExperimentsByCreationTime_args&); + Airavata_searchExperimentsByCreationTime_args& operator=(const Airavata_searchExperimentsByCreationTime_args&); + Airavata_searchExperimentsByCreationTime_args() : gatewayId(), userName(), fromTime(0), toTime(0), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByNameWithPagination_args() throw(); + virtual ~Airavata_searchExperimentsByCreationTime_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string expName; + int64_t fromTime; + int64_t toTime; int32_t limit; int32_t offset; @@ -5552,13 +5463,15 @@ class Airavata_searchExperimentsByNameWithPagination_args { void __set_userName(const std::string& val); - void __set_expName(const std::string& val); + void __set_fromTime(const int64_t val); + + void __set_toTime(const int64_t val); void __set_limit(const int32_t val); void __set_offset(const int32_t val); - bool operator == (const Airavata_searchExperimentsByNameWithPagination_args & rhs) const + bool operator == (const Airavata_searchExperimentsByCreationTime_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; @@ -5566,7 +5479,9 @@ class Airavata_searchExperimentsByNameWithPagination_args { return false; if (!(userName == rhs.userName)) return false; - if (!(expName == rhs.expName)) + if (!(fromTime == rhs.fromTime)) + return false; + if (!(toTime == rhs.toTime)) return false; if (!(limit == rhs.limit)) return false; @@ -5574,67 +5489,68 @@ class Airavata_searchExperimentsByNameWithPagination_args { return false; return true; } - bool operator != (const Airavata_searchExperimentsByNameWithPagination_args &rhs) const { + bool operator != (const Airavata_searchExperimentsByCreationTime_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByNameWithPagination_args & ) const; + bool operator < (const Airavata_searchExperimentsByCreationTime_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByNameWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_args& obj); }; -class Airavata_searchExperimentsByNameWithPagination_pargs { +class Airavata_searchExperimentsByCreationTime_pargs { public: - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; + static const char* ascii_fingerprint; // = "25238CAB6E3C1A0B8B40128B1FD9F510"; + static const uint8_t binary_fingerprint[16]; // = {0x25,0x23,0x8C,0xAB,0x6E,0x3C,0x1A,0x0B,0x8B,0x40,0x12,0x8B,0x1F,0xD9,0xF5,0x10}; - virtual ~Airavata_searchExperimentsByNameWithPagination_pargs() throw(); + virtual ~Airavata_searchExperimentsByCreationTime_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* expName; + const int64_t* fromTime; + const int64_t* toTime; const int32_t* limit; const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByNameWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_pargs& obj); }; -typedef struct _Airavata_searchExperimentsByNameWithPagination_result__isset { - _Airavata_searchExperimentsByNameWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByCreationTime_result__isset { + _Airavata_searchExperimentsByCreationTime_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchExperimentsByNameWithPagination_result__isset; +} _Airavata_searchExperimentsByCreationTime_result__isset; -class Airavata_searchExperimentsByNameWithPagination_result { +class Airavata_searchExperimentsByCreationTime_result { public: static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_searchExperimentsByNameWithPagination_result(const Airavata_searchExperimentsByNameWithPagination_result&); - Airavata_searchExperimentsByNameWithPagination_result& operator=(const Airavata_searchExperimentsByNameWithPagination_result&); - Airavata_searchExperimentsByNameWithPagination_result() { + Airavata_searchExperimentsByCreationTime_result(const Airavata_searchExperimentsByCreationTime_result&); + Airavata_searchExperimentsByCreationTime_result& operator=(const Airavata_searchExperimentsByCreationTime_result&); + Airavata_searchExperimentsByCreationTime_result() { } - virtual ~Airavata_searchExperimentsByNameWithPagination_result() throw(); + virtual ~Airavata_searchExperimentsByCreationTime_result() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchExperimentsByNameWithPagination_result__isset __isset; + _Airavata_searchExperimentsByCreationTime_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); @@ -5646,7 +5562,7 @@ class Airavata_searchExperimentsByNameWithPagination_result { void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_searchExperimentsByNameWithPagination_result & rhs) const + bool operator == (const Airavata_searchExperimentsByCreationTime_result & rhs) const { if (!(success == rhs.success)) return false; @@ -5660,1791 +5576,165 @@ class Airavata_searchExperimentsByNameWithPagination_result { return false; return true; } - bool operator != (const Airavata_searchExperimentsByNameWithPagination_result &rhs) const { + bool operator != (const Airavata_searchExperimentsByCreationTime_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByNameWithPagination_result & ) const; + bool operator < (const Airavata_searchExperimentsByCreationTime_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByNameWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_result& obj); }; -typedef struct _Airavata_searchExperimentsByNameWithPagination_presult__isset { - _Airavata_searchExperimentsByNameWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_searchExperimentsByCreationTime_presult__isset { + _Airavata_searchExperimentsByCreationTime_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_searchExperimentsByNameWithPagination_presult__isset; +} _Airavata_searchExperimentsByCreationTime_presult__isset; -class Airavata_searchExperimentsByNameWithPagination_presult { +class Airavata_searchExperimentsByCreationTime_presult { public: static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_searchExperimentsByNameWithPagination_presult() throw(); + virtual ~Airavata_searchExperimentsByCreationTime_presult() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_searchExperimentsByNameWithPagination_presult__isset __isset; + _Airavata_searchExperimentsByCreationTime_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByNameWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_presult& obj); }; +typedef struct _Airavata_searchExperiments_args__isset { + _Airavata_searchExperiments_args__isset() : filters(false) {} + bool filters :1; +} _Airavata_searchExperiments_args__isset; -class Airavata_searchExperimentsByDesc_args { +class Airavata_searchExperiments_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "EDA0192C126C354B078045FED66CAB8B"; + static const uint8_t binary_fingerprint[16]; // = {0xED,0xA0,0x19,0x2C,0x12,0x6C,0x35,0x4B,0x07,0x80,0x45,0xFE,0xD6,0x6C,0xAB,0x8B}; - Airavata_searchExperimentsByDesc_args(const Airavata_searchExperimentsByDesc_args&); - Airavata_searchExperimentsByDesc_args& operator=(const Airavata_searchExperimentsByDesc_args&); - Airavata_searchExperimentsByDesc_args() : gatewayId(), userName(), description() { + Airavata_searchExperiments_args(const Airavata_searchExperiments_args&); + Airavata_searchExperiments_args& operator=(const Airavata_searchExperiments_args&); + Airavata_searchExperiments_args() : gatewayId(), userName(), limit(0), offset(0) { } - virtual ~Airavata_searchExperimentsByDesc_args() throw(); + virtual ~Airavata_searchExperiments_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; - std::string description; + std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> filters; + int32_t limit; + int32_t offset; + + _Airavata_searchExperiments_args__isset __isset; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); void __set_gatewayId(const std::string& val); void __set_userName(const std::string& val); - void __set_description(const std::string& val); + void __set_filters(const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & val); - bool operator == (const Airavata_searchExperimentsByDesc_args & rhs) const + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_searchExperiments_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) return false; - if (!(description == rhs.description)) + if (!(filters == rhs.filters)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_searchExperimentsByDesc_args &rhs) const { + bool operator != (const Airavata_searchExperiments_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_searchExperimentsByDesc_args & ) const; + bool operator < (const Airavata_searchExperiments_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_args& obj); }; -class Airavata_searchExperimentsByDesc_pargs { +class Airavata_searchExperiments_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "EDA0192C126C354B078045FED66CAB8B"; + static const uint8_t binary_fingerprint[16]; // = {0xED,0xA0,0x19,0x2C,0x12,0x6C,0x35,0x4B,0x07,0x80,0x45,0xFE,0xD6,0x6C,0xAB,0x8B}; - virtual ~Airavata_searchExperimentsByDesc_pargs() throw(); + virtual ~Airavata_searchExperiments_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; - const std::string* description; + const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> * filters; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_pargs& obj); }; -typedef struct _Airavata_searchExperimentsByDesc_result__isset { - _Airavata_searchExperimentsByDesc_result__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByDesc_result__isset; - -class Airavata_searchExperimentsByDesc_result { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - Airavata_searchExperimentsByDesc_result(const Airavata_searchExperimentsByDesc_result&); - Airavata_searchExperimentsByDesc_result& operator=(const Airavata_searchExperimentsByDesc_result&); - Airavata_searchExperimentsByDesc_result() { - } - - virtual ~Airavata_searchExperimentsByDesc_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByDesc_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - bool operator == (const Airavata_searchExperimentsByDesc_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByDesc_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByDesc_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByDesc_presult__isset { - _Airavata_searchExperimentsByDesc_presult__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByDesc_presult__isset; - -class Airavata_searchExperimentsByDesc_presult { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - - virtual ~Airavata_searchExperimentsByDesc_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByDesc_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDesc_presult& obj); -}; - - -class Airavata_searchExperimentsByDescWithPagination_args { - public: - - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - - Airavata_searchExperimentsByDescWithPagination_args(const Airavata_searchExperimentsByDescWithPagination_args&); - Airavata_searchExperimentsByDescWithPagination_args& operator=(const Airavata_searchExperimentsByDescWithPagination_args&); - Airavata_searchExperimentsByDescWithPagination_args() : gatewayId(), userName(), description(), limit(0), offset(0) { - } - - virtual ~Airavata_searchExperimentsByDescWithPagination_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - std::string userName; - std::string description; - int32_t limit; - int32_t offset; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_description(const std::string& val); - - void __set_limit(const int32_t val); - - void __set_offset(const int32_t val); - - bool operator == (const Airavata_searchExperimentsByDescWithPagination_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(description == rhs.description)) - return false; - if (!(limit == rhs.limit)) - return false; - if (!(offset == rhs.offset)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByDescWithPagination_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByDescWithPagination_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDescWithPagination_args& obj); -}; - - -class Airavata_searchExperimentsByDescWithPagination_pargs { - public: - - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - - - virtual ~Airavata_searchExperimentsByDescWithPagination_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const std::string* userName; - const std::string* description; - const int32_t* limit; - const int32_t* offset; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDescWithPagination_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByDescWithPagination_result__isset { - _Airavata_searchExperimentsByDescWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByDescWithPagination_result__isset; - -class Airavata_searchExperimentsByDescWithPagination_result { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - Airavata_searchExperimentsByDescWithPagination_result(const Airavata_searchExperimentsByDescWithPagination_result&); - Airavata_searchExperimentsByDescWithPagination_result& operator=(const Airavata_searchExperimentsByDescWithPagination_result&); - Airavata_searchExperimentsByDescWithPagination_result() { - } - - virtual ~Airavata_searchExperimentsByDescWithPagination_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByDescWithPagination_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_searchExperimentsByDescWithPagination_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByDescWithPagination_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByDescWithPagination_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDescWithPagination_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByDescWithPagination_presult__isset { - _Airavata_searchExperimentsByDescWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByDescWithPagination_presult__isset; - -class Airavata_searchExperimentsByDescWithPagination_presult { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - - virtual ~Airavata_searchExperimentsByDescWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByDescWithPagination_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByDescWithPagination_presult& obj); -}; - - -class Airavata_searchExperimentsByApplication_args { - public: - - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - Airavata_searchExperimentsByApplication_args(const Airavata_searchExperimentsByApplication_args&); - Airavata_searchExperimentsByApplication_args& operator=(const Airavata_searchExperimentsByApplication_args&); - Airavata_searchExperimentsByApplication_args() : gatewayId(), userName(), applicationId() { - } - - virtual ~Airavata_searchExperimentsByApplication_args() throw(); - std::string gatewayId; - std::string userName; - std::string applicationId; - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_applicationId(const std::string& val); - - bool operator == (const Airavata_searchExperimentsByApplication_args & rhs) const - { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(applicationId == rhs.applicationId)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByApplication_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByApplication_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_args& obj); -}; - - -class Airavata_searchExperimentsByApplication_pargs { - public: - - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - - virtual ~Airavata_searchExperimentsByApplication_pargs() throw(); - const std::string* gatewayId; - const std::string* userName; - const std::string* applicationId; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByApplication_result__isset { - _Airavata_searchExperimentsByApplication_result__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByApplication_result__isset; - -class Airavata_searchExperimentsByApplication_result { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - Airavata_searchExperimentsByApplication_result(const Airavata_searchExperimentsByApplication_result&); - Airavata_searchExperimentsByApplication_result& operator=(const Airavata_searchExperimentsByApplication_result&); - Airavata_searchExperimentsByApplication_result() { - } - - virtual ~Airavata_searchExperimentsByApplication_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByApplication_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - bool operator == (const Airavata_searchExperimentsByApplication_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByApplication_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByApplication_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByApplication_presult__isset { - _Airavata_searchExperimentsByApplication_presult__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByApplication_presult__isset; - -class Airavata_searchExperimentsByApplication_presult { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - - virtual ~Airavata_searchExperimentsByApplication_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByApplication_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplication_presult& obj); -}; - - -class Airavata_searchExperimentsByApplicationWithPagination_args { - public: - - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - - Airavata_searchExperimentsByApplicationWithPagination_args(const Airavata_searchExperimentsByApplicationWithPagination_args&); - Airavata_searchExperimentsByApplicationWithPagination_args& operator=(const Airavata_searchExperimentsByApplicationWithPagination_args&); - Airavata_searchExperimentsByApplicationWithPagination_args() : gatewayId(), userName(), applicationId(), limit(0), offset(0) { - } - - virtual ~Airavata_searchExperimentsByApplicationWithPagination_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - std::string userName; - std::string applicationId; - int32_t limit; - int32_t offset; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_applicationId(const std::string& val); - - void __set_limit(const int32_t val); - - void __set_offset(const int32_t val); - - bool operator == (const Airavata_searchExperimentsByApplicationWithPagination_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(applicationId == rhs.applicationId)) - return false; - if (!(limit == rhs.limit)) - return false; - if (!(offset == rhs.offset)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByApplicationWithPagination_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByApplicationWithPagination_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplicationWithPagination_args& obj); -}; - - -class Airavata_searchExperimentsByApplicationWithPagination_pargs { - public: - - static const char* ascii_fingerprint; // = "97BE39385D449F49A0D934F09B2EF404"; - static const uint8_t binary_fingerprint[16]; // = {0x97,0xBE,0x39,0x38,0x5D,0x44,0x9F,0x49,0xA0,0xD9,0x34,0xF0,0x9B,0x2E,0xF4,0x04}; - - - virtual ~Airavata_searchExperimentsByApplicationWithPagination_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const std::string* userName; - const std::string* applicationId; - const int32_t* limit; - const int32_t* offset; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplicationWithPagination_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByApplicationWithPagination_result__isset { - _Airavata_searchExperimentsByApplicationWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByApplicationWithPagination_result__isset; - -class Airavata_searchExperimentsByApplicationWithPagination_result { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - Airavata_searchExperimentsByApplicationWithPagination_result(const Airavata_searchExperimentsByApplicationWithPagination_result&); - Airavata_searchExperimentsByApplicationWithPagination_result& operator=(const Airavata_searchExperimentsByApplicationWithPagination_result&); - Airavata_searchExperimentsByApplicationWithPagination_result() { - } - - virtual ~Airavata_searchExperimentsByApplicationWithPagination_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByApplicationWithPagination_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_searchExperimentsByApplicationWithPagination_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByApplicationWithPagination_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByApplicationWithPagination_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplicationWithPagination_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByApplicationWithPagination_presult__isset { - _Airavata_searchExperimentsByApplicationWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByApplicationWithPagination_presult__isset; - -class Airavata_searchExperimentsByApplicationWithPagination_presult { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - - virtual ~Airavata_searchExperimentsByApplicationWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByApplicationWithPagination_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByApplicationWithPagination_presult& obj); -}; - - -class Airavata_searchExperimentsByStatus_args { - public: - - static const char* ascii_fingerprint; // = "4F8ABE747D9A2DF14F7E84DDBE60D55C"; - static const uint8_t binary_fingerprint[16]; // = {0x4F,0x8A,0xBE,0x74,0x7D,0x9A,0x2D,0xF1,0x4F,0x7E,0x84,0xDD,0xBE,0x60,0xD5,0x5C}; - - Airavata_searchExperimentsByStatus_args(const Airavata_searchExperimentsByStatus_args&); - Airavata_searchExperimentsByStatus_args& operator=(const Airavata_searchExperimentsByStatus_args&); - Airavata_searchExperimentsByStatus_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::status::ExperimentState::type)0) { - } - - virtual ~Airavata_searchExperimentsByStatus_args() throw(); - std::string gatewayId; - std::string userName; - ::apache::airavata::model::status::ExperimentState::type experimentState; - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_experimentState(const ::apache::airavata::model::status::ExperimentState::type val); - - bool operator == (const Airavata_searchExperimentsByStatus_args & rhs) const - { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(experimentState == rhs.experimentState)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByStatus_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByStatus_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_args& obj); -}; - - -class Airavata_searchExperimentsByStatus_pargs { - public: - - static const char* ascii_fingerprint; // = "4F8ABE747D9A2DF14F7E84DDBE60D55C"; - static const uint8_t binary_fingerprint[16]; // = {0x4F,0x8A,0xBE,0x74,0x7D,0x9A,0x2D,0xF1,0x4F,0x7E,0x84,0xDD,0xBE,0x60,0xD5,0x5C}; - - - virtual ~Airavata_searchExperimentsByStatus_pargs() throw(); - const std::string* gatewayId; - const std::string* userName; - const ::apache::airavata::model::status::ExperimentState::type* experimentState; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByStatus_result__isset { - _Airavata_searchExperimentsByStatus_result__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByStatus_result__isset; - -class Airavata_searchExperimentsByStatus_result { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - Airavata_searchExperimentsByStatus_result(const Airavata_searchExperimentsByStatus_result&); - Airavata_searchExperimentsByStatus_result& operator=(const Airavata_searchExperimentsByStatus_result&); - Airavata_searchExperimentsByStatus_result() { - } - - virtual ~Airavata_searchExperimentsByStatus_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByStatus_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - bool operator == (const Airavata_searchExperimentsByStatus_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByStatus_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByStatus_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByStatus_presult__isset { - _Airavata_searchExperimentsByStatus_presult__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByStatus_presult__isset; - -class Airavata_searchExperimentsByStatus_presult { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - - virtual ~Airavata_searchExperimentsByStatus_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByStatus_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatus_presult& obj); -}; - - -class Airavata_searchExperimentsByStatusWithPagination_args { - public: - - static const char* ascii_fingerprint; // = "A902C1FCF3C2BF735A7E5A4A6FF9AE3D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x02,0xC1,0xFC,0xF3,0xC2,0xBF,0x73,0x5A,0x7E,0x5A,0x4A,0x6F,0xF9,0xAE,0x3D}; - - Airavata_searchExperimentsByStatusWithPagination_args(const Airavata_searchExperimentsByStatusWithPagination_args&); - Airavata_searchExperimentsByStatusWithPagination_args& operator=(const Airavata_searchExperimentsByStatusWithPagination_args&); - Airavata_searchExperimentsByStatusWithPagination_args() : gatewayId(), userName(), experimentState(( ::apache::airavata::model::status::ExperimentState::type)0), limit(0), offset(0) { - } - - virtual ~Airavata_searchExperimentsByStatusWithPagination_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - std::string userName; - ::apache::airavata::model::status::ExperimentState::type experimentState; - int32_t limit; - int32_t offset; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_experimentState(const ::apache::airavata::model::status::ExperimentState::type val); - - void __set_limit(const int32_t val); - - void __set_offset(const int32_t val); - - bool operator == (const Airavata_searchExperimentsByStatusWithPagination_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(experimentState == rhs.experimentState)) - return false; - if (!(limit == rhs.limit)) - return false; - if (!(offset == rhs.offset)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByStatusWithPagination_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByStatusWithPagination_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatusWithPagination_args& obj); -}; - - -class Airavata_searchExperimentsByStatusWithPagination_pargs { - public: - - static const char* ascii_fingerprint; // = "A902C1FCF3C2BF735A7E5A4A6FF9AE3D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x02,0xC1,0xFC,0xF3,0xC2,0xBF,0x73,0x5A,0x7E,0x5A,0x4A,0x6F,0xF9,0xAE,0x3D}; - - - virtual ~Airavata_searchExperimentsByStatusWithPagination_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const std::string* userName; - const ::apache::airavata::model::status::ExperimentState::type* experimentState; - const int32_t* limit; - const int32_t* offset; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatusWithPagination_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByStatusWithPagination_result__isset { - _Airavata_searchExperimentsByStatusWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByStatusWithPagination_result__isset; - -class Airavata_searchExperimentsByStatusWithPagination_result { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - Airavata_searchExperimentsByStatusWithPagination_result(const Airavata_searchExperimentsByStatusWithPagination_result&); - Airavata_searchExperimentsByStatusWithPagination_result& operator=(const Airavata_searchExperimentsByStatusWithPagination_result&); - Airavata_searchExperimentsByStatusWithPagination_result() { - } - - virtual ~Airavata_searchExperimentsByStatusWithPagination_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByStatusWithPagination_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_searchExperimentsByStatusWithPagination_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByStatusWithPagination_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByStatusWithPagination_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatusWithPagination_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByStatusWithPagination_presult__isset { - _Airavata_searchExperimentsByStatusWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByStatusWithPagination_presult__isset; - -class Airavata_searchExperimentsByStatusWithPagination_presult { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - - virtual ~Airavata_searchExperimentsByStatusWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByStatusWithPagination_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByStatusWithPagination_presult& obj); -}; - - -class Airavata_searchExperimentsByCreationTime_args { - public: - - static const char* ascii_fingerprint; // = "50272E49E7C02012722B8F62131C940B"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x27,0x2E,0x49,0xE7,0xC0,0x20,0x12,0x72,0x2B,0x8F,0x62,0x13,0x1C,0x94,0x0B}; - - Airavata_searchExperimentsByCreationTime_args(const Airavata_searchExperimentsByCreationTime_args&); - Airavata_searchExperimentsByCreationTime_args& operator=(const Airavata_searchExperimentsByCreationTime_args&); - Airavata_searchExperimentsByCreationTime_args() : gatewayId(), userName(), fromTime(0), toTime(0) { - } - - virtual ~Airavata_searchExperimentsByCreationTime_args() throw(); - std::string gatewayId; - std::string userName; - int64_t fromTime; - int64_t toTime; - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_fromTime(const int64_t val); - - void __set_toTime(const int64_t val); - - bool operator == (const Airavata_searchExperimentsByCreationTime_args & rhs) const - { - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(fromTime == rhs.fromTime)) - return false; - if (!(toTime == rhs.toTime)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByCreationTime_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByCreationTime_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_args& obj); -}; - - -class Airavata_searchExperimentsByCreationTime_pargs { - public: - - static const char* ascii_fingerprint; // = "50272E49E7C02012722B8F62131C940B"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x27,0x2E,0x49,0xE7,0xC0,0x20,0x12,0x72,0x2B,0x8F,0x62,0x13,0x1C,0x94,0x0B}; - - - virtual ~Airavata_searchExperimentsByCreationTime_pargs() throw(); - const std::string* gatewayId; - const std::string* userName; - const int64_t* fromTime; - const int64_t* toTime; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByCreationTime_result__isset { - _Airavata_searchExperimentsByCreationTime_result__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByCreationTime_result__isset; - -class Airavata_searchExperimentsByCreationTime_result { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - Airavata_searchExperimentsByCreationTime_result(const Airavata_searchExperimentsByCreationTime_result&); - Airavata_searchExperimentsByCreationTime_result& operator=(const Airavata_searchExperimentsByCreationTime_result&); - Airavata_searchExperimentsByCreationTime_result() { - } - - virtual ~Airavata_searchExperimentsByCreationTime_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByCreationTime_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - bool operator == (const Airavata_searchExperimentsByCreationTime_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByCreationTime_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByCreationTime_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByCreationTime_presult__isset { - _Airavata_searchExperimentsByCreationTime_presult__isset() : success(false), ire(false), ace(false), ase(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; -} _Airavata_searchExperimentsByCreationTime_presult__isset; - -class Airavata_searchExperimentsByCreationTime_presult { - public: - - static const char* ascii_fingerprint; // = "7001B7B9289164CB898AF0E0F4E6EE4A"; - static const uint8_t binary_fingerprint[16]; // = {0x70,0x01,0xB7,0xB9,0x28,0x91,0x64,0xCB,0x89,0x8A,0xF0,0xE0,0xF4,0xE6,0xEE,0x4A}; - - - virtual ~Airavata_searchExperimentsByCreationTime_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - - _Airavata_searchExperimentsByCreationTime_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTime_presult& obj); -}; - - -class Airavata_searchExperimentsByCreationTimeWithPagination_args { - public: - - static const char* ascii_fingerprint; // = "25238CAB6E3C1A0B8B40128B1FD9F510"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x23,0x8C,0xAB,0x6E,0x3C,0x1A,0x0B,0x8B,0x40,0x12,0x8B,0x1F,0xD9,0xF5,0x10}; - - Airavata_searchExperimentsByCreationTimeWithPagination_args(const Airavata_searchExperimentsByCreationTimeWithPagination_args&); - Airavata_searchExperimentsByCreationTimeWithPagination_args& operator=(const Airavata_searchExperimentsByCreationTimeWithPagination_args&); - Airavata_searchExperimentsByCreationTimeWithPagination_args() : gatewayId(), userName(), fromTime(0), toTime(0), limit(0), offset(0) { - } - - virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - std::string userName; - int64_t fromTime; - int64_t toTime; - int32_t limit; - int32_t offset; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_fromTime(const int64_t val); - - void __set_toTime(const int64_t val); - - void __set_limit(const int32_t val); - - void __set_offset(const int32_t val); - - bool operator == (const Airavata_searchExperimentsByCreationTimeWithPagination_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(fromTime == rhs.fromTime)) - return false; - if (!(toTime == rhs.toTime)) - return false; - if (!(limit == rhs.limit)) - return false; - if (!(offset == rhs.offset)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByCreationTimeWithPagination_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByCreationTimeWithPagination_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTimeWithPagination_args& obj); -}; - - -class Airavata_searchExperimentsByCreationTimeWithPagination_pargs { - public: - - static const char* ascii_fingerprint; // = "25238CAB6E3C1A0B8B40128B1FD9F510"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x23,0x8C,0xAB,0x6E,0x3C,0x1A,0x0B,0x8B,0x40,0x12,0x8B,0x1F,0xD9,0xF5,0x10}; - - - virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const std::string* userName; - const int64_t* fromTime; - const int64_t* toTime; - const int32_t* limit; - const int32_t* offset; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTimeWithPagination_pargs& obj); -}; - -typedef struct _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset { - _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset; - -class Airavata_searchExperimentsByCreationTimeWithPagination_result { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - Airavata_searchExperimentsByCreationTimeWithPagination_result(const Airavata_searchExperimentsByCreationTimeWithPagination_result&); - Airavata_searchExperimentsByCreationTimeWithPagination_result& operator=(const Airavata_searchExperimentsByCreationTimeWithPagination_result&); - Airavata_searchExperimentsByCreationTimeWithPagination_result() { - } - - virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByCreationTimeWithPagination_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_searchExperimentsByCreationTimeWithPagination_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_searchExperimentsByCreationTimeWithPagination_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperimentsByCreationTimeWithPagination_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTimeWithPagination_result& obj); -}; - -typedef struct _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset { - _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset; - -class Airavata_searchExperimentsByCreationTimeWithPagination_presult { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - - virtual ~Airavata_searchExperimentsByCreationTimeWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperimentsByCreationTimeWithPagination_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperimentsByCreationTimeWithPagination_presult& obj); -}; - -typedef struct _Airavata_searchExperiments_args__isset { - _Airavata_searchExperiments_args__isset() : filters(false) {} - bool filters :1; -} _Airavata_searchExperiments_args__isset; - -class Airavata_searchExperiments_args { - public: - - static const char* ascii_fingerprint; // = "EDA0192C126C354B078045FED66CAB8B"; - static const uint8_t binary_fingerprint[16]; // = {0xED,0xA0,0x19,0x2C,0x12,0x6C,0x35,0x4B,0x07,0x80,0x45,0xFE,0xD6,0x6C,0xAB,0x8B}; - - Airavata_searchExperiments_args(const Airavata_searchExperiments_args&); - Airavata_searchExperiments_args& operator=(const Airavata_searchExperiments_args&); - Airavata_searchExperiments_args() : gatewayId(), userName(), limit(0), offset(0) { - } - - virtual ~Airavata_searchExperiments_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - std::string userName; - std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> filters; - int32_t limit; - int32_t offset; - - _Airavata_searchExperiments_args__isset __isset; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_filters(const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & val); - - void __set_limit(const int32_t val); - - void __set_offset(const int32_t val); - - bool operator == (const Airavata_searchExperiments_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(filters == rhs.filters)) - return false; - if (!(limit == rhs.limit)) - return false; - if (!(offset == rhs.offset)) - return false; - return true; - } - bool operator != (const Airavata_searchExperiments_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperiments_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_args& obj); -}; - - -class Airavata_searchExperiments_pargs { - public: - - static const char* ascii_fingerprint; // = "EDA0192C126C354B078045FED66CAB8B"; - static const uint8_t binary_fingerprint[16]; // = {0xED,0xA0,0x19,0x2C,0x12,0x6C,0x35,0x4B,0x07,0x80,0x45,0xFE,0xD6,0x6C,0xAB,0x8B}; - - - virtual ~Airavata_searchExperiments_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const std::string* userName; - const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> * filters; - const int32_t* limit; - const int32_t* offset; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_pargs& obj); -}; - -typedef struct _Airavata_searchExperiments_result__isset { - _Airavata_searchExperiments_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperiments_result__isset; - -class Airavata_searchExperiments_result { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - Airavata_searchExperiments_result(const Airavata_searchExperiments_result&); - Airavata_searchExperiments_result& operator=(const Airavata_searchExperiments_result&); - Airavata_searchExperiments_result() { - } - - virtual ~Airavata_searchExperiments_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperiments_result__isset __isset; - - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_searchExperiments_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_searchExperiments_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_searchExperiments_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_result& obj); -}; - -typedef struct _Airavata_searchExperiments_presult__isset { - _Airavata_searchExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_searchExperiments_presult__isset; - -class Airavata_searchExperiments_presult { - public: - - static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; - static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - - - virtual ~Airavata_searchExperiments_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_searchExperiments_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_presult& obj); -}; - - -class Airavata_getExperimentStatistics_args { - public: - - static const char* ascii_fingerprint; // = "1B3B276C4C08FB8748C5C3090D01B28A"; - static const uint8_t binary_fingerprint[16]; // = {0x1B,0x3B,0x27,0x6C,0x4C,0x08,0xFB,0x87,0x48,0xC5,0xC3,0x09,0x0D,0x01,0xB2,0x8A}; - - Airavata_getExperimentStatistics_args(const Airavata_getExperimentStatistics_args&); - Airavata_getExperimentStatistics_args& operator=(const Airavata_getExperimentStatistics_args&); - Airavata_getExperimentStatistics_args() : gatewayId(), fromTime(0), toTime(0) { - } - - virtual ~Airavata_getExperimentStatistics_args() throw(); - ::apache::airavata::model::security::AuthzToken authzToken; - std::string gatewayId; - int64_t fromTime; - int64_t toTime; - - void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - - void __set_gatewayId(const std::string& val); - - void __set_fromTime(const int64_t val); - - void __set_toTime(const int64_t val); - - bool operator == (const Airavata_getExperimentStatistics_args & rhs) const - { - if (!(authzToken == rhs.authzToken)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(fromTime == rhs.fromTime)) - return false; - if (!(toTime == rhs.toTime)) - return false; - return true; - } - bool operator != (const Airavata_getExperimentStatistics_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_getExperimentStatistics_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_args& obj); -}; - - -class Airavata_getExperimentStatistics_pargs { - public: - - static const char* ascii_fingerprint; // = "1B3B276C4C08FB8748C5C3090D01B28A"; - static const uint8_t binary_fingerprint[16]; // = {0x1B,0x3B,0x27,0x6C,0x4C,0x08,0xFB,0x87,0x48,0xC5,0xC3,0x09,0x0D,0x01,0xB2,0x8A}; - - - virtual ~Airavata_getExperimentStatistics_pargs() throw(); - const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* gatewayId; - const int64_t* fromTime; - const int64_t* toTime; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_pargs& obj); -}; - -typedef struct _Airavata_getExperimentStatistics_result__isset { - _Airavata_getExperimentStatistics_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_getExperimentStatistics_result__isset; - -class Airavata_getExperimentStatistics_result { - public: - - static const char* ascii_fingerprint; // = "A6787E9C1B6481816F881EB68978D788"; - static const uint8_t binary_fingerprint[16]; // = {0xA6,0x78,0x7E,0x9C,0x1B,0x64,0x81,0x81,0x6F,0x88,0x1E,0xB6,0x89,0x78,0xD7,0x88}; - - Airavata_getExperimentStatistics_result(const Airavata_getExperimentStatistics_result&); - Airavata_getExperimentStatistics_result& operator=(const Airavata_getExperimentStatistics_result&); - Airavata_getExperimentStatistics_result() { - } - - virtual ~Airavata_getExperimentStatistics_result() throw(); - ::apache::airavata::model::experiment::ExperimentStatistics success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_getExperimentStatistics_result__isset __isset; - - void __set_success(const ::apache::airavata::model::experiment::ExperimentStatistics& val); - - void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); - - void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); - - void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - - bool operator == (const Airavata_getExperimentStatistics_result & rhs) const - { - if (!(success == rhs.success)) - return false; - if (!(ire == rhs.ire)) - return false; - if (!(ace == rhs.ace)) - return false; - if (!(ase == rhs.ase)) - return false; - if (!(ae == rhs.ae)) - return false; - return true; - } - bool operator != (const Airavata_getExperimentStatistics_result &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_getExperimentStatistics_result & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_result& obj); -}; - -typedef struct _Airavata_getExperimentStatistics_presult__isset { - _Airavata_getExperimentStatistics_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} - bool success :1; - bool ire :1; - bool ace :1; - bool ase :1; - bool ae :1; -} _Airavata_getExperimentStatistics_presult__isset; - -class Airavata_getExperimentStatistics_presult { - public: - - static const char* ascii_fingerprint; // = "A6787E9C1B6481816F881EB68978D788"; - static const uint8_t binary_fingerprint[16]; // = {0xA6,0x78,0x7E,0x9C,0x1B,0x64,0x81,0x81,0x6F,0x88,0x1E,0xB6,0x89,0x78,0xD7,0x88}; - - - virtual ~Airavata_getExperimentStatistics_presult() throw(); - ::apache::airavata::model::experiment::ExperimentStatistics* success; - ::apache::airavata::api::error::InvalidRequestException ire; - ::apache::airavata::api::error::AiravataClientException ace; - ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::AuthorizationException ae; - - _Airavata_getExperimentStatistics_presult__isset __isset; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_presult& obj); -}; - - -class Airavata_getAllExperimentsInProject_args { - public: - - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - Airavata_getAllExperimentsInProject_args(const Airavata_getAllExperimentsInProject_args&); - Airavata_getAllExperimentsInProject_args& operator=(const Airavata_getAllExperimentsInProject_args&); - Airavata_getAllExperimentsInProject_args() : projectId() { - } - - virtual ~Airavata_getAllExperimentsInProject_args() throw(); - std::string projectId; - - void __set_projectId(const std::string& val); - - bool operator == (const Airavata_getAllExperimentsInProject_args & rhs) const - { - if (!(projectId == rhs.projectId)) - return false; - return true; - } - bool operator != (const Airavata_getAllExperimentsInProject_args &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Airavata_getAllExperimentsInProject_args & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProject_args& obj); -}; - - -class Airavata_getAllExperimentsInProject_pargs { - public: - - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - - virtual ~Airavata_getAllExperimentsInProject_pargs() throw(); - const std::string* projectId; - - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProject_pargs& obj); -}; - -typedef struct _Airavata_getAllExperimentsInProject_result__isset { - _Airavata_getAllExperimentsInProject_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} +typedef struct _Airavata_searchExperiments_result__isset { + _Airavata_searchExperiments_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; - bool pnfe :1; -} _Airavata_getAllExperimentsInProject_result__isset; + bool ae :1; +} _Airavata_searchExperiments_result__isset; -class Airavata_getAllExperimentsInProject_result { +class Airavata_searchExperiments_result { public: - static const char* ascii_fingerprint; // = "6B4769CBA7068AF3BD2B200CE0A4C648"; - static const uint8_t binary_fingerprint[16]; // = {0x6B,0x47,0x69,0xCB,0xA7,0x06,0x8A,0xF3,0xBD,0x2B,0x20,0x0C,0xE0,0xA4,0xC6,0x48}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - Airavata_getAllExperimentsInProject_result(const Airavata_getAllExperimentsInProject_result&); - Airavata_getAllExperimentsInProject_result& operator=(const Airavata_getAllExperimentsInProject_result&); - Airavata_getAllExperimentsInProject_result() { + Airavata_searchExperiments_result(const Airavata_searchExperiments_result&); + Airavata_searchExperiments_result& operator=(const Airavata_searchExperiments_result&); + Airavata_searchExperiments_result() { } - virtual ~Airavata_getAllExperimentsInProject_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> success; + virtual ~Airavata_searchExperiments_result() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllExperimentsInProject_result__isset __isset; + _Airavata_searchExperiments_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentModel> & val); + void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & val); void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); @@ -7452,9 +5742,9 @@ class Airavata_getAllExperimentsInProject_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val); + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_getAllExperimentsInProject_result & rhs) const + bool operator == (const Airavata_searchExperiments_result & rhs) const { if (!(success == rhs.success)) return false; @@ -7464,153 +5754,151 @@ class Airavata_getAllExperimentsInProject_result { return false; if (!(ase == rhs.ase)) return false; - if (!(pnfe == rhs.pnfe)) + if (!(ae == rhs.ae)) return false; return true; } - bool operator != (const Airavata_getAllExperimentsInProject_result &rhs) const { + bool operator != (const Airavata_searchExperiments_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllExperimentsInProject_result & ) const; + bool operator < (const Airavata_searchExperiments_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProject_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_result& obj); }; -typedef struct _Airavata_getAllExperimentsInProject_presult__isset { - _Airavata_getAllExperimentsInProject_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false) {} +typedef struct _Airavata_searchExperiments_presult__isset { + _Airavata_searchExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; - bool pnfe :1; -} _Airavata_getAllExperimentsInProject_presult__isset; + bool ae :1; +} _Airavata_searchExperiments_presult__isset; -class Airavata_getAllExperimentsInProject_presult { +class Airavata_searchExperiments_presult { public: - static const char* ascii_fingerprint; // = "6B4769CBA7068AF3BD2B200CE0A4C648"; - static const uint8_t binary_fingerprint[16]; // = {0x6B,0x47,0x69,0xCB,0xA7,0x06,0x8A,0xF3,0xBD,0x2B,0x20,0x0C,0xE0,0xA4,0xC6,0x48}; + static const char* ascii_fingerprint; // = "6490BEC830E2A72869B2F4E224CB0E50"; + static const uint8_t binary_fingerprint[16]; // = {0x64,0x90,0xBE,0xC8,0x30,0xE2,0xA7,0x28,0x69,0xB2,0xF4,0xE2,0x24,0xCB,0x0E,0x50}; - virtual ~Airavata_getAllExperimentsInProject_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> * success; + virtual ~Airavata_searchExperiments_presult() throw(); + std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllExperimentsInProject_presult__isset __isset; + _Airavata_searchExperiments_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProject_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_searchExperiments_presult& obj); }; -class Airavata_getAllExperimentsInProjectWithPagination_args { +class Airavata_getExperimentStatistics_args { public: - static const char* ascii_fingerprint; // = "B1122ABC64D90B0DBC9C064E7B94145D"; - static const uint8_t binary_fingerprint[16]; // = {0xB1,0x12,0x2A,0xBC,0x64,0xD9,0x0B,0x0D,0xBC,0x9C,0x06,0x4E,0x7B,0x94,0x14,0x5D}; + static const char* ascii_fingerprint; // = "1B3B276C4C08FB8748C5C3090D01B28A"; + static const uint8_t binary_fingerprint[16]; // = {0x1B,0x3B,0x27,0x6C,0x4C,0x08,0xFB,0x87,0x48,0xC5,0xC3,0x09,0x0D,0x01,0xB2,0x8A}; - Airavata_getAllExperimentsInProjectWithPagination_args(const Airavata_getAllExperimentsInProjectWithPagination_args&); - Airavata_getAllExperimentsInProjectWithPagination_args& operator=(const Airavata_getAllExperimentsInProjectWithPagination_args&); - Airavata_getAllExperimentsInProjectWithPagination_args() : projectId(), limit(0), offset(0) { + Airavata_getExperimentStatistics_args(const Airavata_getExperimentStatistics_args&); + Airavata_getExperimentStatistics_args& operator=(const Airavata_getExperimentStatistics_args&); + Airavata_getExperimentStatistics_args() : gatewayId(), fromTime(0), toTime(0) { } - virtual ~Airavata_getAllExperimentsInProjectWithPagination_args() throw(); + virtual ~Airavata_getExperimentStatistics_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; - std::string projectId; - int32_t limit; - int32_t offset; + std::string gatewayId; + int64_t fromTime; + int64_t toTime; void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - void __set_projectId(const std::string& val); + void __set_gatewayId(const std::string& val); - void __set_limit(const int32_t val); + void __set_fromTime(const int64_t val); - void __set_offset(const int32_t val); + void __set_toTime(const int64_t val); - bool operator == (const Airavata_getAllExperimentsInProjectWithPagination_args & rhs) const + bool operator == (const Airavata_getExperimentStatistics_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; - if (!(projectId == rhs.projectId)) + if (!(gatewayId == rhs.gatewayId)) return false; - if (!(limit == rhs.limit)) + if (!(fromTime == rhs.fromTime)) return false; - if (!(offset == rhs.offset)) + if (!(toTime == rhs.toTime)) return false; return true; } - bool operator != (const Airavata_getAllExperimentsInProjectWithPagination_args &rhs) const { + bool operator != (const Airavata_getExperimentStatistics_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllExperimentsInProjectWithPagination_args & ) const; + bool operator < (const Airavata_getExperimentStatistics_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProjectWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_args& obj); }; -class Airavata_getAllExperimentsInProjectWithPagination_pargs { +class Airavata_getExperimentStatistics_pargs { public: - static const char* ascii_fingerprint; // = "B1122ABC64D90B0DBC9C064E7B94145D"; - static const uint8_t binary_fingerprint[16]; // = {0xB1,0x12,0x2A,0xBC,0x64,0xD9,0x0B,0x0D,0xBC,0x9C,0x06,0x4E,0x7B,0x94,0x14,0x5D}; + static const char* ascii_fingerprint; // = "1B3B276C4C08FB8748C5C3090D01B28A"; + static const uint8_t binary_fingerprint[16]; // = {0x1B,0x3B,0x27,0x6C,0x4C,0x08,0xFB,0x87,0x48,0xC5,0xC3,0x09,0x0D,0x01,0xB2,0x8A}; - virtual ~Airavata_getAllExperimentsInProjectWithPagination_pargs() throw(); + virtual ~Airavata_getExperimentStatistics_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; - const std::string* projectId; - const int32_t* limit; - const int32_t* offset; + const std::string* gatewayId; + const int64_t* fromTime; + const int64_t* toTime; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProjectWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_pargs& obj); }; -typedef struct _Airavata_getAllExperimentsInProjectWithPagination_result__isset { - _Airavata_getAllExperimentsInProjectWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false), ae(false) {} +typedef struct _Airavata_getExperimentStatistics_result__isset { + _Airavata_getExperimentStatistics_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; - bool pnfe :1; bool ae :1; -} _Airavata_getAllExperimentsInProjectWithPagination_result__isset; +} _Airavata_getExperimentStatistics_result__isset; -class Airavata_getAllExperimentsInProjectWithPagination_result { +class Airavata_getExperimentStatistics_result { public: - static const char* ascii_fingerprint; // = "3B04FE1F15E6945947A3FD5096FB91AF"; - static const uint8_t binary_fingerprint[16]; // = {0x3B,0x04,0xFE,0x1F,0x15,0xE6,0x94,0x59,0x47,0xA3,0xFD,0x50,0x96,0xFB,0x91,0xAF}; + static const char* ascii_fingerprint; // = "A6787E9C1B6481816F881EB68978D788"; + static const uint8_t binary_fingerprint[16]; // = {0xA6,0x78,0x7E,0x9C,0x1B,0x64,0x81,0x81,0x6F,0x88,0x1E,0xB6,0x89,0x78,0xD7,0x88}; - Airavata_getAllExperimentsInProjectWithPagination_result(const Airavata_getAllExperimentsInProjectWithPagination_result&); - Airavata_getAllExperimentsInProjectWithPagination_result& operator=(const Airavata_getAllExperimentsInProjectWithPagination_result&); - Airavata_getAllExperimentsInProjectWithPagination_result() { + Airavata_getExperimentStatistics_result(const Airavata_getExperimentStatistics_result&); + Airavata_getExperimentStatistics_result& operator=(const Airavata_getExperimentStatistics_result&); + Airavata_getExperimentStatistics_result() { } - virtual ~Airavata_getAllExperimentsInProjectWithPagination_result() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> success; + virtual ~Airavata_getExperimentStatistics_result() throw(); + ::apache::airavata::model::experiment::ExperimentStatistics success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllExperimentsInProjectWithPagination_result__isset __isset; + _Airavata_getExperimentStatistics_result__isset __isset; - void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentModel> & val); + void __set_success(const ::apache::airavata::model::experiment::ExperimentStatistics& val); void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); @@ -7618,11 +5906,9 @@ class Airavata_getAllExperimentsInProjectWithPagination_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val); - void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_getAllExperimentsInProjectWithPagination_result & rhs) const + bool operator == (const Airavata_getExperimentStatistics_result & rhs) const { if (!(success == rhs.success)) return false; @@ -7632,139 +5918,151 @@ class Airavata_getAllExperimentsInProjectWithPagination_result { return false; if (!(ase == rhs.ase)) return false; - if (!(pnfe == rhs.pnfe)) - return false; if (!(ae == rhs.ae)) return false; return true; } - bool operator != (const Airavata_getAllExperimentsInProjectWithPagination_result &rhs) const { + bool operator != (const Airavata_getExperimentStatistics_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllExperimentsInProjectWithPagination_result & ) const; + bool operator < (const Airavata_getExperimentStatistics_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProjectWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_result& obj); }; -typedef struct _Airavata_getAllExperimentsInProjectWithPagination_presult__isset { - _Airavata_getAllExperimentsInProjectWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false), ae(false) {} +typedef struct _Airavata_getExperimentStatistics_presult__isset { + _Airavata_getExperimentStatistics_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; - bool pnfe :1; bool ae :1; -} _Airavata_getAllExperimentsInProjectWithPagination_presult__isset; +} _Airavata_getExperimentStatistics_presult__isset; -class Airavata_getAllExperimentsInProjectWithPagination_presult { +class Airavata_getExperimentStatistics_presult { public: - static const char* ascii_fingerprint; // = "3B04FE1F15E6945947A3FD5096FB91AF"; - static const uint8_t binary_fingerprint[16]; // = {0x3B,0x04,0xFE,0x1F,0x15,0xE6,0x94,0x59,0x47,0xA3,0xFD,0x50,0x96,0xFB,0x91,0xAF}; + static const char* ascii_fingerprint; // = "A6787E9C1B6481816F881EB68978D788"; + static const uint8_t binary_fingerprint[16]; // = {0xA6,0x78,0x7E,0x9C,0x1B,0x64,0x81,0x81,0x6F,0x88,0x1E,0xB6,0x89,0x78,0xD7,0x88}; - virtual ~Airavata_getAllExperimentsInProjectWithPagination_presult() throw(); - std::vector< ::apache::airavata::model::experiment::ExperimentModel> * success; + virtual ~Airavata_getExperimentStatistics_presult() throw(); + ::apache::airavata::model::experiment::ExperimentStatistics* success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; - ::apache::airavata::api::error::ProjectNotFoundException pnfe; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllExperimentsInProjectWithPagination_presult__isset __isset; + _Airavata_getExperimentStatistics_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllExperimentsInProjectWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentStatistics_presult& obj); }; -class Airavata_getAllUserExperiments_args { +class Airavata_getExperimentsInProject_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "B1122ABC64D90B0DBC9C064E7B94145D"; + static const uint8_t binary_fingerprint[16]; // = {0xB1,0x12,0x2A,0xBC,0x64,0xD9,0x0B,0x0D,0xBC,0x9C,0x06,0x4E,0x7B,0x94,0x14,0x5D}; - Airavata_getAllUserExperiments_args(const Airavata_getAllUserExperiments_args&); - Airavata_getAllUserExperiments_args& operator=(const Airavata_getAllUserExperiments_args&); - Airavata_getAllUserExperiments_args() : gatewayId(), userName() { + Airavata_getExperimentsInProject_args(const Airavata_getExperimentsInProject_args&); + Airavata_getExperimentsInProject_args& operator=(const Airavata_getExperimentsInProject_args&); + Airavata_getExperimentsInProject_args() : projectId(), limit(0), offset(0) { } - virtual ~Airavata_getAllUserExperiments_args() throw(); - std::string gatewayId; - std::string userName; + virtual ~Airavata_getExperimentsInProject_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; + std::string projectId; + int32_t limit; + int32_t offset; - void __set_gatewayId(const std::string& val); + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); - void __set_userName(const std::string& val); + void __set_projectId(const std::string& val); - bool operator == (const Airavata_getAllUserExperiments_args & rhs) const + void __set_limit(const int32_t val); + + void __set_offset(const int32_t val); + + bool operator == (const Airavata_getExperimentsInProject_args & rhs) const { - if (!(gatewayId == rhs.gatewayId)) + if (!(authzToken == rhs.authzToken)) return false; - if (!(userName == rhs.userName)) + if (!(projectId == rhs.projectId)) + return false; + if (!(limit == rhs.limit)) + return false; + if (!(offset == rhs.offset)) return false; return true; } - bool operator != (const Airavata_getAllUserExperiments_args &rhs) const { + bool operator != (const Airavata_getExperimentsInProject_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperiments_args & ) const; + bool operator < (const Airavata_getExperimentsInProject_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperiments_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentsInProject_args& obj); }; -class Airavata_getAllUserExperiments_pargs { +class Airavata_getExperimentsInProject_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "B1122ABC64D90B0DBC9C064E7B94145D"; + static const uint8_t binary_fingerprint[16]; // = {0xB1,0x12,0x2A,0xBC,0x64,0xD9,0x0B,0x0D,0xBC,0x9C,0x06,0x4E,0x7B,0x94,0x14,0x5D}; - virtual ~Airavata_getAllUserExperiments_pargs() throw(); - const std::string* gatewayId; - const std::string* userName; + virtual ~Airavata_getExperimentsInProject_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; + const std::string* projectId; + const int32_t* limit; + const int32_t* offset; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperiments_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentsInProject_pargs& obj); }; -typedef struct _Airavata_getAllUserExperiments_result__isset { - _Airavata_getAllUserExperiments_result__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getExperimentsInProject_result__isset { + _Airavata_getExperimentsInProject_result__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_getAllUserExperiments_result__isset; + bool pnfe :1; + bool ae :1; +} _Airavata_getExperimentsInProject_result__isset; -class Airavata_getAllUserExperiments_result { +class Airavata_getExperimentsInProject_result { public: - static const char* ascii_fingerprint; // = "7F8F5E54F1D3996A9D4B47B330B0655D"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x8F,0x5E,0x54,0xF1,0xD3,0x99,0x6A,0x9D,0x4B,0x47,0xB3,0x30,0xB0,0x65,0x5D}; + static const char* ascii_fingerprint; // = "3B04FE1F15E6945947A3FD5096FB91AF"; + static const uint8_t binary_fingerprint[16]; // = {0x3B,0x04,0xFE,0x1F,0x15,0xE6,0x94,0x59,0x47,0xA3,0xFD,0x50,0x96,0xFB,0x91,0xAF}; - Airavata_getAllUserExperiments_result(const Airavata_getAllUserExperiments_result&); - Airavata_getAllUserExperiments_result& operator=(const Airavata_getAllUserExperiments_result&); - Airavata_getAllUserExperiments_result() { + Airavata_getExperimentsInProject_result(const Airavata_getExperimentsInProject_result&); + Airavata_getExperimentsInProject_result& operator=(const Airavata_getExperimentsInProject_result&); + Airavata_getExperimentsInProject_result() { } - virtual ~Airavata_getAllUserExperiments_result() throw(); + virtual ~Airavata_getExperimentsInProject_result() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserExperiments_result__isset __isset; + _Airavata_getExperimentsInProject_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentModel> & val); @@ -7774,7 +6072,11 @@ class Airavata_getAllUserExperiments_result { void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); - bool operator == (const Airavata_getAllUserExperiments_result & rhs) const + void __set_pnfe(const ::apache::airavata::api::error::ProjectNotFoundException& val); + + void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); + + bool operator == (const Airavata_getExperimentsInProject_result & rhs) const { if (!(success == rhs.success)) return false; @@ -7784,61 +6086,69 @@ class Airavata_getAllUserExperiments_result { return false; if (!(ase == rhs.ase)) return false; + if (!(pnfe == rhs.pnfe)) + return false; + if (!(ae == rhs.ae)) + return false; return true; } - bool operator != (const Airavata_getAllUserExperiments_result &rhs) const { + bool operator != (const Airavata_getExperimentsInProject_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperiments_result & ) const; + bool operator < (const Airavata_getExperimentsInProject_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperiments_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentsInProject_result& obj); }; -typedef struct _Airavata_getAllUserExperiments_presult__isset { - _Airavata_getAllUserExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false) {} +typedef struct _Airavata_getExperimentsInProject_presult__isset { + _Airavata_getExperimentsInProject_presult__isset() : success(false), ire(false), ace(false), ase(false), pnfe(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; -} _Airavata_getAllUserExperiments_presult__isset; + bool pnfe :1; + bool ae :1; +} _Airavata_getExperimentsInProject_presult__isset; -class Airavata_getAllUserExperiments_presult { +class Airavata_getExperimentsInProject_presult { public: - static const char* ascii_fingerprint; // = "7F8F5E54F1D3996A9D4B47B330B0655D"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x8F,0x5E,0x54,0xF1,0xD3,0x99,0x6A,0x9D,0x4B,0x47,0xB3,0x30,0xB0,0x65,0x5D}; + static const char* ascii_fingerprint; // = "3B04FE1F15E6945947A3FD5096FB91AF"; + static const uint8_t binary_fingerprint[16]; // = {0x3B,0x04,0xFE,0x1F,0x15,0xE6,0x94,0x59,0x47,0xA3,0xFD,0x50,0x96,0xFB,0x91,0xAF}; - virtual ~Airavata_getAllUserExperiments_presult() throw(); + virtual ~Airavata_getExperimentsInProject_presult() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; + ::apache::airavata::api::error::ProjectNotFoundException pnfe; + ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserExperiments_presult__isset __isset; + _Airavata_getExperimentsInProject_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperiments_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getExperimentsInProject_presult& obj); }; -class Airavata_getAllUserExperimentsWithPagination_args { +class Airavata_getUserExperiments_args { public: static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; - Airavata_getAllUserExperimentsWithPagination_args(const Airavata_getAllUserExperimentsWithPagination_args&); - Airavata_getAllUserExperimentsWithPagination_args& operator=(const Airavata_getAllUserExperimentsWithPagination_args&); - Airavata_getAllUserExperimentsWithPagination_args() : gatewayId(), userName(), limit(0), offset(0) { + Airavata_getUserExperiments_args(const Airavata_getUserExperiments_args&); + Airavata_getUserExperiments_args& operator=(const Airavata_getUserExperiments_args&); + Airavata_getUserExperiments_args() : gatewayId(), userName(), limit(0), offset(0) { } - virtual ~Airavata_getAllUserExperimentsWithPagination_args() throw(); + virtual ~Airavata_getUserExperiments_args() throw(); ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; @@ -7855,7 +6165,7 @@ class Airavata_getAllUserExperimentsWithPagination_args { void __set_offset(const int32_t val); - bool operator == (const Airavata_getAllUserExperimentsWithPagination_args & rhs) const + bool operator == (const Airavata_getUserExperiments_args & rhs) const { if (!(authzToken == rhs.authzToken)) return false; @@ -7869,27 +6179,27 @@ class Airavata_getAllUserExperimentsWithPagination_args { return false; return true; } - bool operator != (const Airavata_getAllUserExperimentsWithPagination_args &rhs) const { + bool operator != (const Airavata_getUserExperiments_args &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperimentsWithPagination_args & ) const; + bool operator < (const Airavata_getUserExperiments_args & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperimentsWithPagination_args& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserExperiments_args& obj); }; -class Airavata_getAllUserExperimentsWithPagination_pargs { +class Airavata_getUserExperiments_pargs { public: static const char* ascii_fingerprint; // = "B0F1ED866602D6465A1E8B7B65B9DBBA"; static const uint8_t binary_fingerprint[16]; // = {0xB0,0xF1,0xED,0x86,0x66,0x02,0xD6,0x46,0x5A,0x1E,0x8B,0x7B,0x65,0xB9,0xDB,0xBA}; - virtual ~Airavata_getAllUserExperimentsWithPagination_pargs() throw(); + virtual ~Airavata_getUserExperiments_pargs() throw(); const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; @@ -7898,37 +6208,37 @@ class Airavata_getAllUserExperimentsWithPagination_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperimentsWithPagination_pargs& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserExperiments_pargs& obj); }; -typedef struct _Airavata_getAllUserExperimentsWithPagination_result__isset { - _Airavata_getAllUserExperimentsWithPagination_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_getUserExperiments_result__isset { + _Airavata_getUserExperiments_result__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_getAllUserExperimentsWithPagination_result__isset; +} _Airavata_getUserExperiments_result__isset; -class Airavata_getAllUserExperimentsWithPagination_result { +class Airavata_getUserExperiments_result { public: static const char* ascii_fingerprint; // = "6B4769CBA7068AF3BD2B200CE0A4C648"; static const uint8_t binary_fingerprint[16]; // = {0x6B,0x47,0x69,0xCB,0xA7,0x06,0x8A,0xF3,0xBD,0x2B,0x20,0x0C,0xE0,0xA4,0xC6,0x48}; - Airavata_getAllUserExperimentsWithPagination_result(const Airavata_getAllUserExperimentsWithPagination_result&); - Airavata_getAllUserExperimentsWithPagination_result& operator=(const Airavata_getAllUserExperimentsWithPagination_result&); - Airavata_getAllUserExperimentsWithPagination_result() { + Airavata_getUserExperiments_result(const Airavata_getUserExperiments_result&); + Airavata_getUserExperiments_result& operator=(const Airavata_getUserExperiments_result&); + Airavata_getUserExperiments_result() { } - virtual ~Airavata_getAllUserExperimentsWithPagination_result() throw(); + virtual ~Airavata_getUserExperiments_result() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentModel> success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserExperimentsWithPagination_result__isset __isset; + _Airavata_getUserExperiments_result__isset __isset; void __set_success(const std::vector< ::apache::airavata::model::experiment::ExperimentModel> & val); @@ -7940,7 +6250,7 @@ class Airavata_getAllUserExperimentsWithPagination_result { void __set_ae(const ::apache::airavata::api::error::AuthorizationException& val); - bool operator == (const Airavata_getAllUserExperimentsWithPagination_result & rhs) const + bool operator == (const Airavata_getUserExperiments_result & rhs) const { if (!(success == rhs.success)) return false; @@ -7954,46 +6264,46 @@ class Airavata_getAllUserExperimentsWithPagination_result { return false; return true; } - bool operator != (const Airavata_getAllUserExperimentsWithPagination_result &rhs) const { + bool operator != (const Airavata_getUserExperiments_result &rhs) const { return !(*this == rhs); } - bool operator < (const Airavata_getAllUserExperimentsWithPagination_result & ) const; + bool operator < (const Airavata_getUserExperiments_result & ) const; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperimentsWithPagination_result& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserExperiments_result& obj); }; -typedef struct _Airavata_getAllUserExperimentsWithPagination_presult__isset { - _Airavata_getAllUserExperimentsWithPagination_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} +typedef struct _Airavata_getUserExperiments_presult__isset { + _Airavata_getUserExperiments_presult__isset() : success(false), ire(false), ace(false), ase(false), ae(false) {} bool success :1; bool ire :1; bool ace :1; bool ase :1; bool ae :1; -} _Airavata_getAllUserExperimentsWithPagination_presult__isset; +} _Airavata_getUserExperiments_presult__isset; -class Airavata_getAllUserExperimentsWithPagination_presult { +class Airavata_getUserExperiments_presult { public: static const char* ascii_fingerprint; // = "6B4769CBA7068AF3BD2B200CE0A4C648"; static const uint8_t binary_fingerprint[16]; // = {0x6B,0x47,0x69,0xCB,0xA7,0x06,0x8A,0xF3,0xBD,0x2B,0x20,0x0C,0xE0,0xA4,0xC6,0x48}; - virtual ~Airavata_getAllUserExperimentsWithPagination_presult() throw(); + virtual ~Airavata_getUserExperiments_presult() throw(); std::vector< ::apache::airavata::model::experiment::ExperimentModel> * success; ::apache::airavata::api::error::InvalidRequestException ire; ::apache::airavata::api::error::AiravataClientException ace; ::apache::airavata::api::error::AiravataSystemException ase; ::apache::airavata::api::error::AuthorizationException ae; - _Airavata_getAllUserExperimentsWithPagination_presult__isset __isset; + _Airavata_getUserExperiments_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllUserExperimentsWithPagination_presult& obj); + friend std::ostream& operator<<(std::ostream& out, const Airavata_getUserExperiments_presult& obj); }; @@ -22199,72 +20509,42 @@ class AiravataClient : virtual public AiravataIf { bool deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId); void send_deleteProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId); bool recv_deleteProject(); - void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName); - void send_getAllUserProjects(const std::string& gatewayId, const std::string& userName); - void recv_getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); - void send_getAllUserProjectsWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); - void recv_getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName); - void send_searchProjectsByProjectName(const std::string& gatewayId, const std::string& userName, const std::string& projectName); + void getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void send_getUserProjects(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void recv_getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return); + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); + void send_searchProjectsByProjectName(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); void recv_searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); - void send_searchProjectsByProjectNameWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset); - void recv_searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description); - void send_searchProjectsByProjectDesc(const std::string& gatewayId, const std::string& userName, const std::string& description); + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void send_searchProjectsByProjectDesc(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); void recv_searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); - void send_searchProjectsByProjectDescWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); - void recv_searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return); - void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName); - void send_searchExperimentsByName(const std::string& gatewayId, const std::string& userName, const std::string& expName); + void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); + void send_searchExperimentsByName(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); void recv_searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); - void send_searchExperimentsByNameWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset); - void recv_searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description); - void send_searchExperimentsByDesc(const std::string& gatewayId, const std::string& userName, const std::string& description); + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); + void send_searchExperimentsByDesc(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); void recv_searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); - void send_searchExperimentsByDescWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset); - void recv_searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId); - void send_searchExperimentsByApplication(const std::string& gatewayId, const std::string& userName, const std::string& applicationId); + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); + void send_searchExperimentsByApplication(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); void recv_searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); - void send_searchExperimentsByApplicationWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset); - void recv_searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState); - void send_searchExperimentsByStatus(const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState); + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); + void send_searchExperimentsByStatus(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); void recv_searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); - void send_searchExperimentsByStatusWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset); - void recv_searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime); - void send_searchExperimentsByCreationTime(const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime); + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); + void send_searchExperimentsByCreationTime(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); void recv_searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); - void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); - void send_searchExperimentsByCreationTimeWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset); - void recv_searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); void searchExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & filters, const int32_t limit, const int32_t offset); void send_searchExperiments(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::map< ::apache::airavata::model::experiment::ExperimentSearchFields::type, std::string> & filters, const int32_t limit, const int32_t offset); void recv_searchExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return); void getExperimentStatistics( ::apache::airavata::model::experiment::ExperimentStatistics& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const int64_t fromTime, const int64_t toTime); void send_getExperimentStatistics(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const int64_t fromTime, const int64_t toTime); void recv_getExperimentStatistics( ::apache::airavata::model::experiment::ExperimentStatistics& _return); - void getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& projectId); - void send_getAllExperimentsInProject(const std::string& projectId); - void recv_getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); - void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset); - void send_getAllExperimentsInProjectWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset); - void recv_getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); - void getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& gatewayId, const std::string& userName); - void send_getAllUserExperiments(const std::string& gatewayId, const std::string& userName); - void recv_getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); - void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); - void send_getAllUserExperimentsWithPagination(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); - void recv_getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); + void getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset); + void send_getExperimentsInProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset); + void recv_getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); + void getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void send_getUserExperiments(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset); + void recv_getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return); void createExperiment(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::experiment::ExperimentModel& experiment); void send_createExperiment(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::experiment::ExperimentModel& experiment); void recv_createExperiment(std::string& _return); @@ -22567,28 +20847,18 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { void process_updateProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_deleteProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllUserProjects(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllUserProjectsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getUserProjects(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchProjectsByProjectName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchProjectsByProjectNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchProjectsByProjectDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchProjectsByProjectDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByName(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchExperimentsByNameWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByDesc(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchExperimentsByDescWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByApplication(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchExperimentsByApplicationWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByStatus(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchExperimentsByStatusWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperimentsByCreationTime(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_searchExperimentsByCreationTimeWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_searchExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getExperimentStatistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllExperimentsInProjectWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); - void process_getAllUserExperimentsWithPagination(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getExperimentsInProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getUserExperiments(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_createExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_updateExperiment(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -22697,28 +20967,18 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { processMap_["updateProject"] = &AiravataProcessor::process_updateProject; processMap_["getProject"] = &AiravataProcessor::process_getProject; processMap_["deleteProject"] = &AiravataProcessor::process_deleteProject; - processMap_["getAllUserProjects"] = &AiravataProcessor::process_getAllUserProjects; - processMap_["getAllUserProjectsWithPagination"] = &AiravataProcessor::process_getAllUserProjectsWithPagination; + processMap_["getUserProjects"] = &AiravataProcessor::process_getUserProjects; processMap_["searchProjectsByProjectName"] = &AiravataProcessor::process_searchProjectsByProjectName; - processMap_["searchProjectsByProjectNameWithPagination"] = &AiravataProcessor::process_searchProjectsByProjectNameWithPagination; processMap_["searchProjectsByProjectDesc"] = &AiravataProcessor::process_searchProjectsByProjectDesc; - processMap_["searchProjectsByProjectDescWithPagination"] = &AiravataProcessor::process_searchProjectsByProjectDescWithPagination; processMap_["searchExperimentsByName"] = &AiravataProcessor::process_searchExperimentsByName; - processMap_["searchExperimentsByNameWithPagination"] = &AiravataProcessor::process_searchExperimentsByNameWithPagination; processMap_["searchExperimentsByDesc"] = &AiravataProcessor::process_searchExperimentsByDesc; - processMap_["searchExperimentsByDescWithPagination"] = &AiravataProcessor::process_searchExperimentsByDescWithPagination; processMap_["searchExperimentsByApplication"] = &AiravataProcessor::process_searchExperimentsByApplication; - processMap_["searchExperimentsByApplicationWithPagination"] = &AiravataProcessor::process_searchExperimentsByApplicationWithPagination; processMap_["searchExperimentsByStatus"] = &AiravataProcessor::process_searchExperimentsByStatus; - processMap_["searchExperimentsByStatusWithPagination"] = &AiravataProcessor::process_searchExperimentsByStatusWithPagination; processMap_["searchExperimentsByCreationTime"] = &AiravataProcessor::process_searchExperimentsByCreationTime; - processMap_["searchExperimentsByCreationTimeWithPagination"] = &AiravataProcessor::process_searchExperimentsByCreationTimeWithPagination; processMap_["searchExperiments"] = &AiravataProcessor::process_searchExperiments; processMap_["getExperimentStatistics"] = &AiravataProcessor::process_getExperimentStatistics; - processMap_["getAllExperimentsInProject"] = &AiravataProcessor::process_getAllExperimentsInProject; - processMap_["getAllExperimentsInProjectWithPagination"] = &AiravataProcessor::process_getAllExperimentsInProjectWithPagination; - processMap_["getAllUserExperiments"] = &AiravataProcessor::process_getAllUserExperiments; - processMap_["getAllUserExperimentsWithPagination"] = &AiravataProcessor::process_getAllUserExperimentsWithPagination; + processMap_["getExperimentsInProject"] = &AiravataProcessor::process_getExperimentsInProject; + processMap_["getUserExperiments"] = &AiravataProcessor::process_getUserExperiments; processMap_["createExperiment"] = &AiravataProcessor::process_createExperiment; processMap_["getExperiment"] = &AiravataProcessor::process_getExperiment; processMap_["updateExperiment"] = &AiravataProcessor::process_updateExperiment; @@ -22973,163 +21233,83 @@ class AiravataMultiface : virtual public AiravataIf { return ifaces_[i]->deleteProject(authzToken, projectId); } - void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllUserProjects(_return, gatewayId, userName); - } - ifaces_[i]->getAllUserProjects(_return, gatewayId, userName); - return; - } - - void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllUserProjectsWithPagination(_return, authzToken, gatewayId, userName, limit, offset); - } - ifaces_[i]->getAllUserProjectsWithPagination(_return, authzToken, gatewayId, userName, limit, offset); - return; - } - - void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchProjectsByProjectName(_return, gatewayId, userName, projectName); - } - ifaces_[i]->searchProjectsByProjectName(_return, gatewayId, userName, projectName); - return; - } - - void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchProjectsByProjectNameWithPagination(_return, authzToken, gatewayId, userName, projectName, limit, offset); - } - ifaces_[i]->searchProjectsByProjectNameWithPagination(_return, authzToken, gatewayId, userName, projectName, limit, offset); - return; - } - - void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchProjectsByProjectDesc(_return, gatewayId, userName, description); - } - ifaces_[i]->searchProjectsByProjectDesc(_return, gatewayId, userName, description); - return; - } - - void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchProjectsByProjectDescWithPagination(_return, authzToken, gatewayId, userName, description, limit, offset); - } - ifaces_[i]->searchProjectsByProjectDescWithPagination(_return, authzToken, gatewayId, userName, description, limit, offset); - return; - } - - void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByName(_return, gatewayId, userName, expName); - } - ifaces_[i]->searchExperimentsByName(_return, gatewayId, userName, expName); - return; - } - - void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByNameWithPagination(_return, authzToken, gatewayId, userName, expName, limit, offset); - } - ifaces_[i]->searchExperimentsByNameWithPagination(_return, authzToken, gatewayId, userName, expName, limit, offset); - return; - } - - void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { + void getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByDesc(_return, gatewayId, userName, description); + ifaces_[i]->getUserProjects(_return, authzToken, gatewayId, userName, limit, offset); } - ifaces_[i]->searchExperimentsByDesc(_return, gatewayId, userName, description); + ifaces_[i]->getUserProjects(_return, authzToken, gatewayId, userName, limit, offset); return; } - void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByDescWithPagination(_return, authzToken, gatewayId, userName, description, limit, offset); + ifaces_[i]->searchProjectsByProjectName(_return, authzToken, gatewayId, userName, projectName, limit, offset); } - ifaces_[i]->searchExperimentsByDescWithPagination(_return, authzToken, gatewayId, userName, description, limit, offset); + ifaces_[i]->searchProjectsByProjectName(_return, authzToken, gatewayId, userName, projectName, limit, offset); return; } - void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByApplication(_return, gatewayId, userName, applicationId); + ifaces_[i]->searchProjectsByProjectDesc(_return, authzToken, gatewayId, userName, description, limit, offset); } - ifaces_[i]->searchExperimentsByApplication(_return, gatewayId, userName, applicationId); + ifaces_[i]->searchProjectsByProjectDesc(_return, authzToken, gatewayId, userName, description, limit, offset); return; } - void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { + void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByApplicationWithPagination(_return, authzToken, gatewayId, userName, applicationId, limit, offset); + ifaces_[i]->searchExperimentsByName(_return, authzToken, gatewayId, userName, expName, limit, offset); } - ifaces_[i]->searchExperimentsByApplicationWithPagination(_return, authzToken, gatewayId, userName, applicationId, limit, offset); + ifaces_[i]->searchExperimentsByName(_return, authzToken, gatewayId, userName, expName, limit, offset); return; } - void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState) { + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByStatus(_return, gatewayId, userName, experimentState); + ifaces_[i]->searchExperimentsByDesc(_return, authzToken, gatewayId, userName, description, limit, offset); } - ifaces_[i]->searchExperimentsByStatus(_return, gatewayId, userName, experimentState); + ifaces_[i]->searchExperimentsByDesc(_return, authzToken, gatewayId, userName, description, limit, offset); return; } - void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByStatusWithPagination(_return, authzToken, gatewayId, userName, experimentState, limit, offset); + ifaces_[i]->searchExperimentsByApplication(_return, authzToken, gatewayId, userName, applicationId, limit, offset); } - ifaces_[i]->searchExperimentsByStatusWithPagination(_return, authzToken, gatewayId, userName, experimentState, limit, offset); + ifaces_[i]->searchExperimentsByApplication(_return, authzToken, gatewayId, userName, applicationId, limit, offset); return; } - void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByCreationTime(_return, gatewayId, userName, fromTime, toTime); + ifaces_[i]->searchExperimentsByStatus(_return, authzToken, gatewayId, userName, experimentState, limit, offset); } - ifaces_[i]->searchExperimentsByCreationTime(_return, gatewayId, userName, fromTime, toTime); + ifaces_[i]->searchExperimentsByStatus(_return, authzToken, gatewayId, userName, experimentState, limit, offset); return; } - void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->searchExperimentsByCreationTimeWithPagination(_return, authzToken, gatewayId, userName, fromTime, toTime, limit, offset); + ifaces_[i]->searchExperimentsByCreationTime(_return, authzToken, gatewayId, userName, fromTime, toTime, limit, offset); } - ifaces_[i]->searchExperimentsByCreationTimeWithPagination(_return, authzToken, gatewayId, userName, fromTime, toTime, limit, offset); + ifaces_[i]->searchExperimentsByCreationTime(_return, authzToken, gatewayId, userName, fromTime, toTime, limit, offset); return; } @@ -23153,43 +21333,23 @@ class AiravataMultiface : virtual public AiravataIf { return; } - void getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& projectId) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllExperimentsInProject(_return, projectId); - } - ifaces_[i]->getAllExperimentsInProject(_return, projectId); - return; - } - - void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { - size_t sz = ifaces_.size(); - size_t i = 0; - for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllExperimentsInProjectWithPagination(_return, authzToken, projectId, limit, offset); - } - ifaces_[i]->getAllExperimentsInProjectWithPagination(_return, authzToken, projectId, limit, offset); - return; - } - - void getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& gatewayId, const std::string& userName) { + void getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllUserExperiments(_return, gatewayId, userName); + ifaces_[i]->getExperimentsInProject(_return, authzToken, projectId, limit, offset); } - ifaces_[i]->getAllUserExperiments(_return, gatewayId, userName); + ifaces_[i]->getExperimentsInProject(_return, authzToken, projectId, limit, offset); return; } - void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + void getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllUserExperimentsWithPagination(_return, authzToken, gatewayId, userName, limit, offset); + ifaces_[i]->getUserExperiments(_return, authzToken, gatewayId, userName, limit, offset); } - ifaces_[i]->getAllUserExperimentsWithPagination(_return, authzToken, gatewayId, userName, limit, offset); + ifaces_[i]->getUserExperiments(_return, authzToken, gatewayId, userName, limit, offset); return; } diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp index 49d815474c..8f8ff247b2 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp @@ -163,25 +163,6 @@ class AiravataHandler : virtual public AiravataIf { printf("deleteProject\n"); } - /** - * * Get all Project by user - * * - * * @param gatewayId - * * The identifier for the requested gateway. - * * - * * @param userName - * * The Project Object described in the workspace_model - * * @deprecated Instead use getAllUserProjectsWithPagination - * * - * - * @param gatewayId - * @param userName - */ - void getAllUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName) { - // Your implementation goes here - printf("getAllUserProjects\n"); - } - /** * * Get all Project by user with pagination. Results will be ordered based * * on creation time DESC @@ -202,29 +183,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void getAllUserProjectsWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { - // Your implementation goes here - printf("getAllUserProjectsWithPagination\n"); - } - - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - * - * @param gatewayId - * @param userName - * @param projectName - */ - void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& projectName) { + void getUserProjects(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchProjectsByProjectName\n"); + printf("getUserProjects\n"); } /** @@ -249,28 +210,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchProjectsByProjectNameWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { + void searchProjectsByProjectName(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& projectName, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchProjectsByProjectNameWithPagination\n"); - } - - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { - // Your implementation goes here - printf("searchProjectsByProjectDesc\n"); + printf("searchProjectsByProjectName\n"); } /** @@ -295,31 +237,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchProjectsByProjectDescWithPagination(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + void searchProjectsByProjectDesc(std::vector< ::apache::airavata::model::workspace::Project> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchProjectsByProjectDescWithPagination\n"); - } - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param useNname - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - * - * @param gatewayId - * @param userName - * @param expName - */ - void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& expName) { - // Your implementation goes here - printf("searchExperimentsByName\n"); + printf("searchProjectsByProjectDesc\n"); } /** @@ -344,30 +264,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchExperimentsByNameWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { - // Your implementation goes here - printf("searchExperimentsByNameWithPagination\n"); - } - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - * - * @param gatewayId - * @param userName - * @param description - */ - void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& description) { + void searchExperimentsByName(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& expName, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchExperimentsByDesc\n"); + printf("searchExperimentsByName\n"); } /** @@ -392,30 +291,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchExperimentsByDescWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { + void searchExperimentsByDesc(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& description, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchExperimentsByDescWithPagination\n"); - } - - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplicationWithPagination - * - * @param gatewayId - * @param userName - * @param applicationId - */ - void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const std::string& applicationId) { - // Your implementation goes here - printf("searchExperimentsByApplication\n"); + printf("searchExperimentsByDesc\n"); } /** @@ -440,30 +318,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchExperimentsByApplicationWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { + void searchExperimentsByApplication(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const std::string& applicationId, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchExperimentsByApplicationWithPagination\n"); - } - - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiement state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - * - * @param gatewayId - * @param userName - * @param experimentState - */ - void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState) { - // Your implementation goes here - printf("searchExperimentsByStatus\n"); + printf("searchExperimentsByApplication\n"); } /** @@ -488,33 +345,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchExperimentsByStatusWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { - // Your implementation goes here - printf("searchExperimentsByStatusWithPagination\n"); - } - - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTimeWithPagination - * - * @param gatewayId - * @param userName - * @param fromTime - * @param toTime - */ - void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime) { + void searchExperimentsByStatus(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const ::apache::airavata::model::status::ExperimentState::type experimentState, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchExperimentsByCreationTime\n"); + printf("searchExperimentsByStatus\n"); } /** @@ -542,9 +375,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void searchExperimentsByCreationTimeWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { + void searchExperimentsByCreationTime(std::vector< ::apache::airavata::model::experiment::ExperimentSummaryModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int64_t fromTime, const int64_t toTime, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("searchExperimentsByCreationTimeWithPagination\n"); + printf("searchExperimentsByCreationTime\n"); } /** @@ -595,22 +428,7 @@ class AiravataHandler : virtual public AiravataIf { } /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - * - * @param projectId - */ - void getAllExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& projectId) { - // Your implementation goes here - printf("getAllExperimentsInProject\n"); - } - - /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -625,31 +443,13 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void getAllExperimentsInProjectWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { - // Your implementation goes here - printf("getAllExperimentsInProjectWithPagination\n"); - } - - /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - * - * @param gatewayId - * @param userName - */ - void getAllUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const std::string& gatewayId, const std::string& userName) { + void getExperimentsInProject(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& projectId, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("getAllUserExperiments\n"); + printf("getExperimentsInProject\n"); } /** - * Get all Experiments by user pagination. Results will be sorted + * Get experiments by user with pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -667,9 +467,9 @@ class AiravataHandler : virtual public AiravataIf { * @param limit * @param offset */ - void getAllUserExperimentsWithPagination(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { + void getUserExperiments(std::vector< ::apache::airavata::model::experiment::ExperimentModel> & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName, const int32_t limit, const int32_t offset) { // Your implementation goes here - printf("getAllUserExperimentsWithPagination\n"); + printf("getUserExperiments\n"); } /** diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/airavata_api_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/airavata_api_constants.cpp index 408aee2cbd..6a8bf09d60 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/airavata_api_constants.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/airavata_api_constants.cpp @@ -28,7 +28,7 @@ namespace apache { namespace airavata { namespace api { const airavata_apiConstants g_airavata_api_constants; airavata_apiConstants::airavata_apiConstants() { - AIRAVATA_API_VERSION = "0.15.0"; + AIRAVATA_API_VERSION = "0.16.0"; } diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php index fba2a7c163..38e6e6acbd 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php @@ -187,25 +187,6 @@ public function getProject(\Airavata\Model\Security\AuthzToken $authzToken, $pro * @throws \Airavata\API\Error\AuthorizationException */ public function deleteProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId); - /** - * * Get all Project by user - * * - * * @param gatewayId - * * The identifier for the requested gateway. - * * - * * @param userName - * * The Project Object described in the workspace_model - * * @deprecated Instead use getAllUserProjectsWithPagination - * * - * - * @param string $gatewayId - * @param string $userName - * @return \Airavata\Model\Workspace\Project[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function getAllUserProjects($gatewayId, $userName); /** * * Get all Project by user with pagination. Results will be ordered based * * on creation time DESC @@ -231,27 +212,7 @@ public function getAllUserProjects($gatewayId, $userName); * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset); - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param string $projectName - * @return \Airavata\Model\Workspace\Project[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchProjectsByProjectName($gatewayId, $userName, $projectName); + public function getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset); /** * Get all Project for user by project name with pagination.Results will be ordered based * on creation time DESC @@ -279,26 +240,7 @@ public function searchProjectsByProjectName($gatewayId, $userName, $projectName) * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset); - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param string $description - * @return \Airavata\Model\Workspace\Project[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchProjectsByProjectDesc($gatewayId, $userName, $description); + public function searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset); /** * Search and get all Projects for user by project description with pagination. Results * will be ordered based on creation time DESC @@ -326,29 +268,7 @@ public function searchProjectsByProjectDesc($gatewayId, $userName, $description) * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset); - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param useNname - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - * - * @param string $gatewayId - * @param string $userName - * @param string $expName - * @return \Airavata\Model\Experiment\ExperimentSummaryModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchExperimentsByName($gatewayId, $userName, $expName); + public function searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset); /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -376,28 +296,7 @@ public function searchExperimentsByName($gatewayId, $userName, $expName); * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset); - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param string $description - * @return \Airavata\Model\Experiment\ExperimentSummaryModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchExperimentsByDesc($gatewayId, $userName, $description); + public function searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset); /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -425,28 +324,7 @@ public function searchExperimentsByDesc($gatewayId, $userName, $description); * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset); - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplicationWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param string $applicationId - * @return \Airavata\Model\Experiment\ExperimentSummaryModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchExperimentsByApplication($gatewayId, $userName, $applicationId); + public function searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset); /** * Search Experiments by application id with pagination. Results will be sorted * based on creation time DESC @@ -474,28 +352,7 @@ public function searchExperimentsByApplication($gatewayId, $userName, $applicati * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset); - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiement state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param int $experimentState - * @return \Airavata\Model\Experiment\ExperimentSummaryModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchExperimentsByStatus($gatewayId, $userName, $experimentState); + public function searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset); /** * Search Experiments by experiment status with pagination. Results will be sorted * based on creation time DESC @@ -523,31 +380,7 @@ public function searchExperimentsByStatus($gatewayId, $userName, $experimentStat * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset); - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTimeWithPagination - * - * @param string $gatewayId - * @param string $userName - * @param int $fromTime - * @param int $toTime - * @return \Airavata\Model\Experiment\ExperimentSummaryModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime); + public function searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset); /** * Search Experiments by experiment creation time with pagination. Results will be sorted * based on creation time DESC @@ -578,7 +411,7 @@ public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset); + public function searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset); /** * Search Experiments by using multiple filter criteria with pagination. Results will be sorted * based on creation time DESC @@ -629,23 +462,7 @@ public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToke */ public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime); /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - * - * @param string $projectId - * @return \Airavata\Model\Experiment\ExperimentModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - * @throws \Airavata\API\Error\ProjectNotFoundException - */ - public function getAllExperimentsInProject($projectId); - /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -666,27 +483,9 @@ public function getAllExperimentsInProject($projectId); * @throws \Airavata\API\Error\ProjectNotFoundException * @throws \Airavata\API\Error\AuthorizationException */ - public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset); + public function getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset); /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - * - * @param string $gatewayId - * @param string $userName - * @return \Airavata\Model\Experiment\ExperimentModel[] - * @throws \Airavata\API\Error\InvalidRequestException - * @throws \Airavata\API\Error\AiravataClientException - * @throws \Airavata\API\Error\AiravataSystemException - */ - public function getAllUserExperiments($gatewayId, $userName); - /** - * Get all Experiments by user pagination. Results will be sorted + * Get experiments by user with pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -709,7 +508,7 @@ public function getAllUserExperiments($gatewayId, $userName); * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset); + public function getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset); /** * Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed * but inferred from the authentication header. This experiment is just a persistent place holder. The client @@ -3613,76 +3412,15 @@ public function recv_deleteProject() throw new \Exception("deleteProject failed: unknown result"); } - public function getAllUserProjects($gatewayId, $userName) + public function getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) { - $this->send_getAllUserProjects($gatewayId, $userName); - return $this->recv_getAllUserProjects(); + $this->send_getUserProjects($authzToken, $gatewayId, $userName, $limit, $offset); + return $this->recv_getUserProjects(); } - public function send_getAllUserProjects($gatewayId, $userName) + public function send_getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) { - $args = new \Airavata\API\Airavata_getAllUserProjects_args(); - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'getAllUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('getAllUserProjects', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_getAllUserProjects() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjects_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_getAllUserProjects_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - if ($result->ire !== null) { - throw $result->ire; - } - if ($result->ace !== null) { - throw $result->ace; - } - if ($result->ase !== null) { - throw $result->ase; - } - throw new \Exception("getAllUserProjects failed: unknown result"); - } - - public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) - { - $this->send_getAllUserProjectsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset); - return $this->recv_getAllUserProjectsWithPagination(); - } - - public function send_getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) - { - $args = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_args(); + $args = new \Airavata\API\Airavata_getUserProjects_args(); $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; @@ -3691,21 +3429,21 @@ public function send_getAllUserProjectsWithPagination(\Airavata\Model\Security\A $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'getAllUserProjectsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'getUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('getAllUserProjectsWithPagination', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('getUserProjects', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_getAllUserProjectsWithPagination() + public function recv_getUserProjects() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjectsWithPagination_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getUserProjects_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -3719,7 +3457,7 @@ public function recv_getAllUserProjectsWithPagination() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_result(); + $result = new \Airavata\API\Airavata_getUserProjects_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -3738,21 +3476,24 @@ public function recv_getAllUserProjectsWithPagination() if ($result->ae !== null) { throw $result->ae; } - throw new \Exception("getAllUserProjectsWithPagination failed: unknown result"); + throw new \Exception("getUserProjects failed: unknown result"); } - public function searchProjectsByProjectName($gatewayId, $userName, $projectName) + public function searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset) { - $this->send_searchProjectsByProjectName($gatewayId, $userName, $projectName); + $this->send_searchProjectsByProjectName($authzToken, $gatewayId, $userName, $projectName, $limit, $offset); return $this->recv_searchProjectsByProjectName(); } - public function send_searchProjectsByProjectName($gatewayId, $userName, $projectName) + public function send_searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset) { $args = new \Airavata\API\Airavata_searchProjectsByProjectName_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $args->projectName = $projectName; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -3800,89 +3541,27 @@ public function recv_searchProjectsByProjectName() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchProjectsByProjectName failed: unknown result"); - } - - public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset) - { - $this->send_searchProjectsByProjectNameWithPagination($authzToken, $gatewayId, $userName, $projectName, $limit, $offset); - return $this->recv_searchProjectsByProjectNameWithPagination(); - } - - public function send_searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset) - { - $args = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->projectName = $projectName; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_searchProjectsByProjectNameWithPagination() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchProjectsByProjectNameWithPagination failed: unknown result"); + throw new \Exception("searchProjectsByProjectName failed: unknown result"); } - public function searchProjectsByProjectDesc($gatewayId, $userName, $description) + public function searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) { - $this->send_searchProjectsByProjectDesc($gatewayId, $userName, $description); + $this->send_searchProjectsByProjectDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset); return $this->recv_searchProjectsByProjectDesc(); } - public function send_searchProjectsByProjectDesc($gatewayId, $userName, $description) + public function send_searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) { $args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $args->description = $description; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -3930,89 +3609,27 @@ public function recv_searchProjectsByProjectDesc() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchProjectsByProjectDesc failed: unknown result"); - } - - public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) - { - $this->send_searchProjectsByProjectDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset); - return $this->recv_searchProjectsByProjectDescWithPagination(); - } - - public function send_searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) - { - $args = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->description = $description; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_searchProjectsByProjectDescWithPagination() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchProjectsByProjectDescWithPagination failed: unknown result"); + throw new \Exception("searchProjectsByProjectDesc failed: unknown result"); } - public function searchExperimentsByName($gatewayId, $userName, $expName) + public function searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset) { - $this->send_searchExperimentsByName($gatewayId, $userName, $expName); + $this->send_searchExperimentsByName($authzToken, $gatewayId, $userName, $expName, $limit, $offset); return $this->recv_searchExperimentsByName(); } - public function send_searchExperimentsByName($gatewayId, $userName, $expName) + public function send_searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset) { $args = new \Airavata\API\Airavata_searchExperimentsByName_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $args->expName = $expName; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -4060,89 +3677,27 @@ public function recv_searchExperimentsByName() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchExperimentsByName failed: unknown result"); - } - - public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset) - { - $this->send_searchExperimentsByNameWithPagination($authzToken, $gatewayId, $userName, $expName, $limit, $offset); - return $this->recv_searchExperimentsByNameWithPagination(); - } - - public function send_searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset) - { - $args = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->expName = $expName; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_searchExperimentsByNameWithPagination() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByNameWithPagination_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchExperimentsByNameWithPagination failed: unknown result"); + throw new \Exception("searchExperimentsByName failed: unknown result"); } - public function searchExperimentsByDesc($gatewayId, $userName, $description) + public function searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) { - $this->send_searchExperimentsByDesc($gatewayId, $userName, $description); + $this->send_searchExperimentsByDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset); return $this->recv_searchExperimentsByDesc(); } - public function send_searchExperimentsByDesc($gatewayId, $userName, $description) + public function send_searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) { $args = new \Airavata\API\Airavata_searchExperimentsByDesc_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $args->description = $description; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -4190,89 +3745,27 @@ public function recv_searchExperimentsByDesc() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchExperimentsByDesc failed: unknown result"); - } - - public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) - { - $this->send_searchExperimentsByDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset); - return $this->recv_searchExperimentsByDescWithPagination(); - } - - public function send_searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset) - { - $args = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->description = $description; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_searchExperimentsByDescWithPagination() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByDescWithPagination_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchExperimentsByDescWithPagination failed: unknown result"); + throw new \Exception("searchExperimentsByDesc failed: unknown result"); } - public function searchExperimentsByApplication($gatewayId, $userName, $applicationId) + public function searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset) { - $this->send_searchExperimentsByApplication($gatewayId, $userName, $applicationId); + $this->send_searchExperimentsByApplication($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset); return $this->recv_searchExperimentsByApplication(); } - public function send_searchExperimentsByApplication($gatewayId, $userName, $applicationId) + public function send_searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset) { $args = new \Airavata\API\Airavata_searchExperimentsByApplication_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $args->applicationId = $applicationId; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -4320,42 +3813,45 @@ public function recv_searchExperimentsByApplication() if ($result->ase !== null) { throw $result->ase; } + if ($result->ae !== null) { + throw $result->ae; + } throw new \Exception("searchExperimentsByApplication failed: unknown result"); } - public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset) + public function searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset) { - $this->send_searchExperimentsByApplicationWithPagination($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset); - return $this->recv_searchExperimentsByApplicationWithPagination(); + $this->send_searchExperimentsByStatus($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset); + return $this->recv_searchExperimentsByStatus(); } - public function send_searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset) + public function send_searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset) { - $args = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_args(); + $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args(); $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; - $args->applicationId = $applicationId; + $args->experimentState = $experimentState; $args->limit = $limit; $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplicationWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_searchExperimentsByApplicationWithPagination() + public function recv_searchExperimentsByStatus() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatus_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -4369,7 +3865,7 @@ public function recv_searchExperimentsByApplicationWithPagination() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result(); + $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -4388,39 +3884,43 @@ public function recv_searchExperimentsByApplicationWithPagination() if ($result->ae !== null) { throw $result->ae; } - throw new \Exception("searchExperimentsByApplicationWithPagination failed: unknown result"); + throw new \Exception("searchExperimentsByStatus failed: unknown result"); } - public function searchExperimentsByStatus($gatewayId, $userName, $experimentState) + public function searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset) { - $this->send_searchExperimentsByStatus($gatewayId, $userName, $experimentState); - return $this->recv_searchExperimentsByStatus(); + $this->send_searchExperimentsByCreationTime($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset); + return $this->recv_searchExperimentsByCreationTime(); } - public function send_searchExperimentsByStatus($gatewayId, $userName, $experimentState) + public function send_searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset) { - $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args(); + $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; - $args->experimentState = $experimentState; + $args->fromTime = $fromTime; + $args->toTime = $toTime; + $args->limit = $limit; + $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_searchExperimentsByStatus() + public function recv_searchExperimentsByCreationTime() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatus_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTime_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -4434,7 +3934,7 @@ public function recv_searchExperimentsByStatus() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result(); + $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -4450,42 +3950,45 @@ public function recv_searchExperimentsByStatus() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchExperimentsByStatus failed: unknown result"); + if ($result->ae !== null) { + throw $result->ae; + } + throw new \Exception("searchExperimentsByCreationTime failed: unknown result"); } - public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset) + public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset) { - $this->send_searchExperimentsByStatusWithPagination($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset); - return $this->recv_searchExperimentsByStatusWithPagination(); + $this->send_searchExperiments($authzToken, $gatewayId, $userName, $filters, $limit, $offset); + return $this->recv_searchExperiments(); } - public function send_searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset) + public function send_searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset) { - $args = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_args(); + $args = new \Airavata\API\Airavata_searchExperiments_args(); $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; - $args->experimentState = $experimentState; + $args->filters = $filters; $args->limit = $limit; $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatusWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'searchExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('searchExperimentsByStatusWithPagination', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('searchExperiments', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_searchExperimentsByStatusWithPagination() + public function recv_searchExperiments() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperiments_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -4499,7 +4002,7 @@ public function recv_searchExperimentsByStatusWithPagination() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result(); + $result = new \Airavata\API\Airavata_searchExperiments_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -4518,40 +4021,40 @@ public function recv_searchExperimentsByStatusWithPagination() if ($result->ae !== null) { throw $result->ae; } - throw new \Exception("searchExperimentsByStatusWithPagination failed: unknown result"); + throw new \Exception("searchExperiments failed: unknown result"); } - public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime) + public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime) { - $this->send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime); - return $this->recv_searchExperimentsByCreationTime(); + $this->send_getExperimentStatistics($authzToken, $gatewayId, $fromTime, $toTime); + return $this->recv_getExperimentStatistics(); } - public function send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime) + public function send_getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime) { - $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args(); + $args = new \Airavata\API\Airavata_getExperimentStatistics_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; - $args->userName = $userName; $args->fromTime = $fromTime; $args->toTime = $toTime; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'getExperimentStatistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('getExperimentStatistics', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_searchExperimentsByCreationTime() + public function recv_getExperimentStatistics() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTime_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentStatistics_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -4565,7 +4068,7 @@ public function recv_searchExperimentsByCreationTime() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result(); + $result = new \Airavata\API\Airavata_getExperimentStatistics_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -4581,43 +4084,43 @@ public function recv_searchExperimentsByCreationTime() if ($result->ase !== null) { throw $result->ase; } - throw new \Exception("searchExperimentsByCreationTime failed: unknown result"); + if ($result->ae !== null) { + throw $result->ae; + } + throw new \Exception("getExperimentStatistics failed: unknown result"); } - public function searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset) + public function getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset) { - $this->send_searchExperimentsByCreationTimeWithPagination($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset); - return $this->recv_searchExperimentsByCreationTimeWithPagination(); + $this->send_getExperimentsInProject($authzToken, $projectId, $limit, $offset); + return $this->recv_getExperimentsInProject(); } - public function send_searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset) + public function send_getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset) { - $args = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_args(); + $args = new \Airavata\API\Airavata_getExperimentsInProject_args(); $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->fromTime = $fromTime; - $args->toTime = $toTime; + $args->projectId = $projectId; $args->limit = $limit; $args->offset = $offset; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'getExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('getExperimentsInProject', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_searchExperimentsByCreationTimeWithPagination() + public function recv_getExperimentsInProject() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentsInProject_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -4631,270 +4134,7 @@ public function recv_searchExperimentsByCreationTimeWithPagination() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchExperimentsByCreationTimeWithPagination failed: unknown result"); - } - - public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset) - { - $this->send_searchExperiments($authzToken, $gatewayId, $userName, $filters, $limit, $offset); - return $this->recv_searchExperiments(); - } - - public function send_searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset) - { - $args = new \Airavata\API\Airavata_searchExperiments_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $args->filters = $filters; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'searchExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('searchExperiments', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_searchExperiments() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperiments_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_searchExperiments_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("searchExperiments failed: unknown result"); - } - - public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime) - { - $this->send_getExperimentStatistics($authzToken, $gatewayId, $fromTime, $toTime); - return $this->recv_getExperimentStatistics(); - } - - public function send_getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime) - { - $args = new \Airavata\API\Airavata_getExperimentStatistics_args(); - $args->authzToken = $authzToken; - $args->gatewayId = $gatewayId; - $args->fromTime = $fromTime; - $args->toTime = $toTime; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'getExperimentStatistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('getExperimentStatistics', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_getExperimentStatistics() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentStatistics_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_getExperimentStatistics_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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 \Exception("getExperimentStatistics failed: unknown result"); - } - - public function getAllExperimentsInProject($projectId) - { - $this->send_getAllExperimentsInProject($projectId); - return $this->recv_getAllExperimentsInProject(); - } - - public function send_getAllExperimentsInProject($projectId) - { - $args = new \Airavata\API\Airavata_getAllExperimentsInProject_args(); - $args->projectId = $projectId; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('getAllExperimentsInProject', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_getAllExperimentsInProject() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProject_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_getAllExperimentsInProject_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - 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->pnfe !== null) { - throw $result->pnfe; - } - throw new \Exception("getAllExperimentsInProject failed: unknown result"); - } - - public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset) - { - $this->send_getAllExperimentsInProjectWithPagination($authzToken, $projectId, $limit, $offset); - return $this->recv_getAllExperimentsInProjectWithPagination(); - } - - public function send_getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset) - { - $args = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_args(); - $args->authzToken = $authzToken; - $args->projectId = $projectId; - $args->limit = $limit; - $args->offset = $offset; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProjectWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_getAllExperimentsInProjectWithPagination() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_result(); + $result = new \Airavata\API\Airavata_getExperimentsInProject_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -4916,79 +4156,18 @@ public function recv_getAllExperimentsInProjectWithPagination() if ($result->ae !== null) { throw $result->ae; } - throw new \Exception("getAllExperimentsInProjectWithPagination failed: unknown result"); - } - - public function getAllUserExperiments($gatewayId, $userName) - { - $this->send_getAllUserExperiments($gatewayId, $userName); - return $this->recv_getAllUserExperiments(); - } - - public function send_getAllUserExperiments($gatewayId, $userName) - { - $args = new \Airavata\API\Airavata_getAllUserExperiments_args(); - $args->gatewayId = $gatewayId; - $args->userName = $userName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'getAllUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('getAllUserExperiments', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_getAllUserExperiments() - { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperiments_result', $this->input_->isStrictRead()); - else - { - $rseqid = 0; - $fname = null; - $mtype = 0; - - $this->input_->readMessageBegin($fname, $mtype, $rseqid); - if ($mtype == TMessageType::EXCEPTION) { - $x = new TApplicationException(); - $x->read($this->input_); - $this->input_->readMessageEnd(); - throw $x; - } - $result = new \Airavata\API\Airavata_getAllUserExperiments_result(); - $result->read($this->input_); - $this->input_->readMessageEnd(); - } - if ($result->success !== null) { - return $result->success; - } - if ($result->ire !== null) { - throw $result->ire; - } - if ($result->ace !== null) { - throw $result->ace; - } - if ($result->ase !== null) { - throw $result->ase; - } - throw new \Exception("getAllUserExperiments failed: unknown result"); + throw new \Exception("getExperimentsInProject failed: unknown result"); } - public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) + public function getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) { - $this->send_getAllUserExperimentsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset); - return $this->recv_getAllUserExperimentsWithPagination(); + $this->send_getUserExperiments($authzToken, $gatewayId, $userName, $limit, $offset); + return $this->recv_getUserExperiments(); } - public function send_getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) + public function send_getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset) { - $args = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_args(); + $args = new \Airavata\API\Airavata_getUserExperiments_args(); $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; @@ -4997,21 +4176,21 @@ public function send_getAllUserExperimentsWithPagination(\Airavata\Model\Securit $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { - thrift_protocol_write_binary($this->output_, 'getAllUserExperimentsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + thrift_protocol_write_binary($this->output_, 'getUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } else { - $this->output_->writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType::CALL, $this->seqid_); + $this->output_->writeMessageBegin('getUserExperiments', TMessageType::CALL, $this->seqid_); $args->write($this->output_); $this->output_->writeMessageEnd(); $this->output_->getTransport()->flush(); } } - public function recv_getAllUserExperimentsWithPagination() + public function recv_getUserExperiments() { $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); - if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperimentsWithPagination_result', $this->input_->isStrictRead()); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getUserExperiments_result', $this->input_->isStrictRead()); else { $rseqid = 0; @@ -5025,7 +4204,7 @@ public function recv_getAllUserExperimentsWithPagination() $this->input_->readMessageEnd(); throw $x; } - $result = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_result(); + $result = new \Airavata\API\Airavata_getUserExperiments_result(); $result->read($this->input_); $this->input_->readMessageEnd(); } @@ -5044,7 +4223,7 @@ public function recv_getAllUserExperimentsWithPagination() if ($result->ae !== null) { throw $result->ae; } - throw new \Exception("getAllUserExperimentsWithPagination failed: unknown result"); + throw new \Exception("getUserExperiments failed: unknown result"); } public function createExperiment(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Experiment\ExperimentModel $experiment) @@ -14820,9 +13999,13 @@ public function write($output) { } -class Airavata_getAllUserProjects_args { +class Airavata_getUserProjects_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -14831,32 +14014,62 @@ class Airavata_getAllUserProjects_args { * @var string */ public $userName = null; + /** + * @var int + */ + public $limit = null; + /** + * @var int + */ + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( 'var' => 'gatewayId', 'type' => TType::STRING, ), - 2 => array( + 3 => array( 'var' => 'userName', 'type' => TType::STRING, ), + 4 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } if (isset($vals['userName'])) { $this->userName = $vals['userName']; } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } } } public function getName() { - return 'Airavata_getAllUserProjects_args'; + return 'Airavata_getUserProjects_args'; } public function read($input) @@ -14875,19 +14088,41 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; - case 2: + case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -14900,17 +14135,35 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_args'); + $xfer += $output->writeStructBegin('Airavata_getUserProjects_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14918,7 +14171,7 @@ public function write($output) { } -class Airavata_getAllUserProjects_result { +class Airavata_getUserProjects_result { static $_TSPEC; /** @@ -14937,6 +14190,10 @@ class Airavata_getAllUserProjects_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14965,6 +14222,11 @@ public function __construct($vals=null) { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), + 4 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), ); } if (is_array($vals)) { @@ -14980,11 +14242,14 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } } } public function getName() { - return 'Airavata_getAllUserProjects_result'; + return 'Airavata_getUserProjects_result'; } public function read($input) @@ -15044,6 +14309,14 @@ public function read($input) $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -15056,7 +14329,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_result'); + $xfer += $output->writeStructBegin('Airavata_getUserProjects_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15089,6 +14362,11 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -15096,7 +14374,7 @@ public function write($output) { } -class Airavata_getAllUserProjectsWithPagination_args { +class Airavata_searchProjectsByProjectName_args { static $_TSPEC; /** @@ -15111,6 +14389,10 @@ class Airavata_getAllUserProjectsWithPagination_args { * @var string */ public $userName = null; + /** + * @var string + */ + public $projectName = null; /** * @var int */ @@ -15137,10 +14419,14 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 4 => array( + 'var' => 'projectName', + 'type' => TType::STRING, + ), + 5 => array( 'var' => 'limit', 'type' => TType::I32, ), - 5 => array( + 6 => array( 'var' => 'offset', 'type' => TType::I32, ), @@ -15156,6 +14442,9 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } + if (isset($vals['projectName'])) { + $this->projectName = $vals['projectName']; + } if (isset($vals['limit'])) { $this->limit = $vals['limit']; } @@ -15166,7 +14455,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllUserProjectsWithPagination_args'; + return 'Airavata_searchProjectsByProjectName_args'; } public function read($input) @@ -15207,13 +14496,20 @@ public function read($input) } break; case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->projectName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->limit); } else { $xfer += $input->skip($ftype); } break; - case 5: + case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->offset); } else { @@ -15232,7 +14528,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_args'); + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15251,13 +14547,18 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } + if ($this->projectName !== null) { + $xfer += $output->writeFieldBegin('projectName', TType::STRING, 4); + $xfer += $output->writeString($this->projectName); + $xfer += $output->writeFieldEnd(); + } if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 4); + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); $xfer += $output->writeI32($this->limit); $xfer += $output->writeFieldEnd(); } if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 5); + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } @@ -15268,7 +14569,7 @@ public function write($output) { } -class Airavata_getAllUserProjectsWithPagination_result { +class Airavata_searchProjectsByProjectName_result { static $_TSPEC; /** @@ -15346,7 +14647,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllUserProjectsWithPagination_result'; + return 'Airavata_searchProjectsByProjectName_result'; } public function read($input) @@ -15426,7 +14727,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15471,9 +14772,13 @@ public function write($output) { } -class Airavata_searchProjectsByProjectName_args { +class Airavata_searchProjectsByProjectDesc_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -15485,40 +14790,70 @@ class Airavata_searchProjectsByProjectName_args { /** * @var string */ - public $projectName = null; + public $description = null; + /** + * @var int + */ + public $limit = null; + /** + * @var int + */ + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( 'var' => 'gatewayId', 'type' => TType::STRING, ), - 2 => array( + 3 => array( 'var' => 'userName', 'type' => TType::STRING, ), - 3 => array( - 'var' => 'projectName', + 4 => array( + 'var' => 'description', 'type' => TType::STRING, ), + 5 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['projectName'])) { - $this->projectName = $vals['projectName']; + if (isset($vals['description'])) { + $this->description = $vals['description']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_searchProjectsByProjectName_args'; + return 'Airavata_searchProjectsByProjectDesc_args'; } public function read($input) @@ -15537,22 +14872,44 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; - case 2: + case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } break; - case 3: + case 4: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectName); + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -15569,20 +14926,38 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args'); + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->projectName !== null) { - $xfer += $output->writeFieldBegin('projectName', TType::STRING, 3); - $xfer += $output->writeString($this->projectName); + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 4); + $xfer += $output->writeString($this->description); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -15592,7 +14967,7 @@ public function write($output) { } -class Airavata_searchProjectsByProjectName_result { +class Airavata_searchProjectsByProjectDesc_result { static $_TSPEC; /** @@ -15611,6 +14986,10 @@ class Airavata_searchProjectsByProjectName_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15639,3171 +15018,6 @@ public function __construct($vals=null) { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectName_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size30 = 0; - $_etype33 = 0; - $xfer += $input->readListBegin($_etype33, $_size30); - for ($_i34 = 0; $_i34 < $_size30; ++$_i34) - { - $elem35 = null; - $elem35 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem35->read($input); - $this->success []= $elem35; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter36) - { - $xfer += $iter36->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectNameWithPagination_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $projectName = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'projectName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['projectName'])) { - $this->projectName = $vals['projectName']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectNameWithPagination_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->projectName !== null) { - $xfer += $output->writeFieldBegin('projectName', TType::STRING, 4); - $xfer += $output->writeString($this->projectName); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectNameWithPagination_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Workspace\Project[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectNameWithPagination_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size37 = 0; - $_etype40 = 0; - $xfer += $input->readListBegin($_etype40, $_size37); - for ($_i41 = 0; $_i41 < $_size37; ++$_i41) - { - $elem42 = null; - $elem42 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem42->read($input); - $this->success []= $elem42; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter43) - { - $xfer += $iter43->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectDesc_args { - static $_TSPEC; - - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $description = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'description', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['description'])) { - $this->description = $vals['description']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectDesc_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 3); - $xfer += $output->writeString($this->description); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectDesc_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Workspace\Project[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectDesc_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size44 = 0; - $_etype47 = 0; - $xfer += $input->readListBegin($_etype47, $_size44); - for ($_i48 = 0; $_i48 < $_size44; ++$_i48) - { - $elem49 = null; - $elem49 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem49->read($input); - $this->success []= $elem49; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter50) - { - $xfer += $iter50->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectDescWithPagination_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $description = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'description', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['description'])) { - $this->description = $vals['description']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectDescWithPagination_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 4); - $xfer += $output->writeString($this->description); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchProjectsByProjectDescWithPagination_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Workspace\Project[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_searchProjectsByProjectDescWithPagination_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size51 = 0; - $_etype54 = 0; - $xfer += $input->readListBegin($_etype54, $_size51); - for ($_i55 = 0; $_i55 < $_size51; ++$_i55) - { - $elem56 = null; - $elem56 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem56->read($input); - $this->success []= $elem56; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter57) - { - $xfer += $iter57->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByName_args { - static $_TSPEC; - - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $expName = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'expName', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['expName'])) { - $this->expName = $vals['expName']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByName_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->expName); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->expName !== null) { - $xfer += $output->writeFieldBegin('expName', TType::STRING, 3); - $xfer += $output->writeString($this->expName); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByName_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByName_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size58 = 0; - $_etype61 = 0; - $xfer += $input->readListBegin($_etype61, $_size58); - for ($_i62 = 0; $_i62 < $_size58; ++$_i62) - { - $elem63 = null; - $elem63 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem63->read($input); - $this->success []= $elem63; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter64) - { - $xfer += $iter64->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByNameWithPagination_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $expName = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'expName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['expName'])) { - $this->expName = $vals['expName']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByNameWithPagination_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->expName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->expName !== null) { - $xfer += $output->writeFieldBegin('expName', TType::STRING, 4); - $xfer += $output->writeString($this->expName); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByNameWithPagination_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByNameWithPagination_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size65 = 0; - $_etype68 = 0; - $xfer += $input->readListBegin($_etype68, $_size65); - for ($_i69 = 0; $_i69 < $_size65; ++$_i69) - { - $elem70 = null; - $elem70 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem70->read($input); - $this->success []= $elem70; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter71) - { - $xfer += $iter71->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByDesc_args { - static $_TSPEC; - - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $description = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'description', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['description'])) { - $this->description = $vals['description']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByDesc_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 3); - $xfer += $output->writeString($this->description); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByDesc_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByDesc_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size72 = 0; - $_etype75 = 0; - $xfer += $input->readListBegin($_etype75, $_size72); - for ($_i76 = 0; $_i76 < $_size72; ++$_i76) - { - $elem77 = null; - $elem77 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem77->read($input); - $this->success []= $elem77; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter78) - { - $xfer += $iter78->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByDescWithPagination_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $description = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'description', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['description'])) { - $this->description = $vals['description']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByDescWithPagination_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->description); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->description !== null) { - $xfer += $output->writeFieldBegin('description', TType::STRING, 4); - $xfer += $output->writeString($this->description); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByDescWithPagination_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByDescWithPagination_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size79 = 0; - $_etype82 = 0; - $xfer += $input->readListBegin($_etype82, $_size79); - for ($_i83 = 0; $_i83 < $_size79; ++$_i83) - { - $elem84 = null; - $elem84 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem84->read($input); - $this->success []= $elem84; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter85) - { - $xfer += $iter85->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByApplication_args { - static $_TSPEC; - - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $applicationId = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'applicationId', - 'type' => TType::STRING, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['applicationId'])) { - $this->applicationId = $vals['applicationId']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByApplication_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->applicationId); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->applicationId !== null) { - $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 3); - $xfer += $output->writeString($this->applicationId); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByApplication_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByApplication_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size86 = 0; - $_etype89 = 0; - $xfer += $input->readListBegin($_etype89, $_size86); - for ($_i90 = 0; $_i90 < $_size86; ++$_i90) - { - $elem91 = null; - $elem91 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem91->read($input); - $this->success []= $elem91; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter92) - { - $xfer += $iter92->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByApplicationWithPagination_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $applicationId = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'applicationId', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['applicationId'])) { - $this->applicationId = $vals['applicationId']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByApplicationWithPagination_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->applicationId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->applicationId !== null) { - $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 4); - $xfer += $output->writeString($this->applicationId); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByApplicationWithPagination_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), 4 => array( 'var' => 'ae', 'type' => TType::STRUCT, @@ -18831,7 +15045,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByApplicationWithPagination_result'; + return 'Airavata_searchProjectsByProjectDesc_result'; } public function read($input) @@ -18852,15 +15066,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size93 = 0; - $_etype96 = 0; - $xfer += $input->readListBegin($_etype96, $_size93); - for ($_i97 = 0; $_i97 < $_size93; ++$_i97) + $_size30 = 0; + $_etype33 = 0; + $xfer += $input->readListBegin($_etype33, $_size30); + for ($_i34 = 0; $_i34 < $_size30; ++$_i34) { - $elem98 = null; - $elem98 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem98->read($input); - $this->success []= $elem98; + $elem35 = null; + $elem35 = new \Airavata\Model\Workspace\Project(); + $xfer += $elem35->read($input); + $this->success []= $elem35; } $xfer += $input->readListEnd(); } else { @@ -18911,7 +15125,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -18920,9 +15134,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter99) + foreach ($this->success as $iter36) { - $xfer += $iter99->write($output); + $xfer += $iter36->write($output); } } $output->writeListEnd(); @@ -18956,306 +15170,7 @@ public function write($output) { } -class Airavata_searchExperimentsByStatus_args { - static $_TSPEC; - - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var int - */ - public $experimentState = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 2 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'experimentState', - 'type' => TType::I32, - ), - ); - } - if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } - if (isset($vals['experimentState'])) { - $this->experimentState = $vals['experimentState']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByStatus_args'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->experimentState); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } - if ($this->experimentState !== null) { - $xfer += $output->writeFieldBegin('experimentState', TType::I32, 3); - $xfer += $output->writeI32($this->experimentState); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByStatus_result { - static $_TSPEC; - - /** - * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', - ), - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - } - } - - public function getName() { - return 'Airavata_searchExperimentsByStatus_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size100 = 0; - $_etype103 = 0; - $xfer += $input->readListBegin($_etype103, $_size100); - for ($_i104 = 0; $_i104 < $_size100; ++$_i104) - { - $elem105 = null; - $elem105 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem105->read($input); - $this->success []= $elem105; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_result'); - if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter106) - { - $xfer += $iter106->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_searchExperimentsByStatusWithPagination_args { +class Airavata_searchExperimentsByName_args { static $_TSPEC; /** @@ -19271,9 +15186,9 @@ class Airavata_searchExperimentsByStatusWithPagination_args { */ public $userName = null; /** - * @var int + * @var string */ - public $experimentState = null; + public $expName = null; /** * @var int */ @@ -19300,8 +15215,8 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 4 => array( - 'var' => 'experimentState', - 'type' => TType::I32, + 'var' => 'expName', + 'type' => TType::STRING, ), 5 => array( 'var' => 'limit', @@ -19323,8 +15238,8 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['experimentState'])) { - $this->experimentState = $vals['experimentState']; + if (isset($vals['expName'])) { + $this->expName = $vals['expName']; } if (isset($vals['limit'])) { $this->limit = $vals['limit']; @@ -19336,7 +15251,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByStatusWithPagination_args'; + return 'Airavata_searchExperimentsByName_args'; } public function read($input) @@ -19377,8 +15292,8 @@ public function read($input) } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->experimentState); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->expName); } else { $xfer += $input->skip($ftype); } @@ -19409,7 +15324,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -19428,9 +15343,9 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->experimentState !== null) { - $xfer += $output->writeFieldBegin('experimentState', TType::I32, 4); - $xfer += $output->writeI32($this->experimentState); + if ($this->expName !== null) { + $xfer += $output->writeFieldBegin('expName', TType::STRING, 4); + $xfer += $output->writeString($this->expName); $xfer += $output->writeFieldEnd(); } if ($this->limit !== null) { @@ -19450,7 +15365,7 @@ public function write($output) { } -class Airavata_searchExperimentsByStatusWithPagination_result { +class Airavata_searchExperimentsByName_result { static $_TSPEC; /** @@ -19528,7 +15443,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByStatusWithPagination_result'; + return 'Airavata_searchExperimentsByName_result'; } public function read($input) @@ -19549,15 +15464,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size107 = 0; - $_etype110 = 0; - $xfer += $input->readListBegin($_etype110, $_size107); - for ($_i111 = 0; $_i111 < $_size107; ++$_i111) + $_size37 = 0; + $_etype40 = 0; + $xfer += $input->readListBegin($_etype40, $_size37); + for ($_i41 = 0; $_i41 < $_size37; ++$_i41) { - $elem112 = null; - $elem112 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem112->read($input); - $this->success []= $elem112; + $elem42 = null; + $elem42 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem42->read($input); + $this->success []= $elem42; } $xfer += $input->readListEnd(); } else { @@ -19608,7 +15523,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByName_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -19617,9 +15532,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter113) + foreach ($this->success as $iter43) { - $xfer += $iter113->write($output); + $xfer += $iter43->write($output); } } $output->writeListEnd(); @@ -19653,9 +15568,13 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTime_args { +class Airavata_searchExperimentsByDesc_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -19664,54 +15583,73 @@ class Airavata_searchExperimentsByCreationTime_args { * @var string */ public $userName = null; + /** + * @var string + */ + public $description = null; /** * @var int */ - public $fromTime = null; + public $limit = null; /** * @var int */ - public $toTime = null; + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'userName', + 'var' => 'gatewayId', 'type' => TType::STRING, ), 3 => array( - 'var' => 'fromTime', - 'type' => TType::I64, + 'var' => 'userName', + 'type' => TType::STRING, ), 4 => array( - 'var' => 'toTime', - 'type' => TType::I64, + 'var' => 'description', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'offset', + 'type' => TType::I32, ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['fromTime'])) { - $this->fromTime = $vals['fromTime']; + if (isset($vals['description'])) { + $this->description = $vals['description']; } - if (isset($vals['toTime'])) { - $this->toTime = $vals['toTime']; + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_searchExperimentsByCreationTime_args'; + return 'Airavata_searchExperimentsByDesc_args'; } public function read($input) @@ -19730,29 +15668,44 @@ public function read($input) switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->fromTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->toTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->description); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -19769,25 +15722,38 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->fromTime !== null) { - $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); - $xfer += $output->writeI64($this->fromTime); + if ($this->description !== null) { + $xfer += $output->writeFieldBegin('description', TType::STRING, 4); + $xfer += $output->writeString($this->description); $xfer += $output->writeFieldEnd(); } - if ($this->toTime !== null) { - $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); - $xfer += $output->writeI64($this->toTime); + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -19797,7 +15763,7 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTime_result { +class Airavata_searchExperimentsByDesc_result { static $_TSPEC; /** @@ -19816,6 +15782,10 @@ class Airavata_searchExperimentsByCreationTime_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -19844,6 +15814,11 @@ public function __construct($vals=null) { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), + 4 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), ); } if (is_array($vals)) { @@ -19859,11 +15834,14 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } } } public function getName() { - return 'Airavata_searchExperimentsByCreationTime_result'; + return 'Airavata_searchExperimentsByDesc_result'; } public function read($input) @@ -19884,15 +15862,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size114 = 0; - $_etype117 = 0; - $xfer += $input->readListBegin($_etype117, $_size114); - for ($_i118 = 0; $_i118 < $_size114; ++$_i118) + $_size44 = 0; + $_etype47 = 0; + $xfer += $input->readListBegin($_etype47, $_size44); + for ($_i48 = 0; $_i48 < $_size44; ++$_i48) { - $elem119 = null; - $elem119 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem119->read($input); - $this->success []= $elem119; + $elem49 = null; + $elem49 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem49->read($input); + $this->success []= $elem49; } $xfer += $input->readListEnd(); } else { @@ -19923,6 +15901,14 @@ public function read($input) $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -19935,7 +15921,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDesc_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -19944,9 +15930,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter120) + foreach ($this->success as $iter50) { - $xfer += $iter120->write($output); + $xfer += $iter50->write($output); } } $output->writeListEnd(); @@ -19968,6 +15954,11 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -19975,7 +15966,7 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTimeWithPagination_args { +class Airavata_searchExperimentsByApplication_args { static $_TSPEC; /** @@ -19991,13 +15982,9 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_args { */ public $userName = null; /** - * @var int - */ - public $fromTime = null; - /** - * @var int + * @var string */ - public $toTime = null; + public $applicationId = null; /** * @var int */ @@ -20024,18 +16011,14 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 4 => array( - 'var' => 'fromTime', - 'type' => TType::I64, + 'var' => 'applicationId', + 'type' => TType::STRING, ), 5 => array( - 'var' => 'toTime', - 'type' => TType::I64, - ), - 6 => array( 'var' => 'limit', 'type' => TType::I32, ), - 7 => array( + 6 => array( 'var' => 'offset', 'type' => TType::I32, ), @@ -20051,11 +16034,8 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['fromTime'])) { - $this->fromTime = $vals['fromTime']; - } - if (isset($vals['toTime'])) { - $this->toTime = $vals['toTime']; + if (isset($vals['applicationId'])) { + $this->applicationId = $vals['applicationId']; } if (isset($vals['limit'])) { $this->limit = $vals['limit']; @@ -20067,7 +16047,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByCreationTimeWithPagination_args'; + return 'Airavata_searchExperimentsByApplication_args'; } public function read($input) @@ -20108,27 +16088,20 @@ public function read($input) } break; case 4: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->fromTime); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->applicationId); } else { $xfer += $input->skip($ftype); } break; case 5: - if ($ftype == TType::I64) { - $xfer += $input->readI64($this->toTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->limit); } else { $xfer += $input->skip($ftype); } break; - case 7: + case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->offset); } else { @@ -20147,7 +16120,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -20166,23 +16139,18 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->fromTime !== null) { - $xfer += $output->writeFieldBegin('fromTime', TType::I64, 4); - $xfer += $output->writeI64($this->fromTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->toTime !== null) { - $xfer += $output->writeFieldBegin('toTime', TType::I64, 5); - $xfer += $output->writeI64($this->toTime); + if ($this->applicationId !== null) { + $xfer += $output->writeFieldBegin('applicationId', TType::STRING, 4); + $xfer += $output->writeString($this->applicationId); $xfer += $output->writeFieldEnd(); } if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 6); + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); $xfer += $output->writeI32($this->limit); $xfer += $output->writeFieldEnd(); } if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 7); + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } @@ -20193,7 +16161,7 @@ public function write($output) { } -class Airavata_searchExperimentsByCreationTimeWithPagination_result { +class Airavata_searchExperimentsByApplication_result { static $_TSPEC; /** @@ -20271,7 +16239,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperimentsByCreationTimeWithPagination_result'; + return 'Airavata_searchExperimentsByApplication_result'; } public function read($input) @@ -20292,15 +16260,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size121 = 0; - $_etype124 = 0; - $xfer += $input->readListBegin($_etype124, $_size121); - for ($_i125 = 0; $_i125 < $_size121; ++$_i125) + $_size51 = 0; + $_etype54 = 0; + $xfer += $input->readListBegin($_etype54, $_size51); + for ($_i55 = 0; $_i55 < $_size51; ++$_i55) { - $elem126 = null; - $elem126 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem126->read($input); - $this->success []= $elem126; + $elem56 = null; + $elem56 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem56->read($input); + $this->success []= $elem56; } $xfer += $input->readListEnd(); } else { @@ -20351,7 +16319,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplication_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -20360,9 +16328,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter127) + foreach ($this->success as $iter57) { - $xfer += $iter127->write($output); + $xfer += $iter57->write($output); } } $output->writeListEnd(); @@ -20396,7 +16364,7 @@ public function write($output) { } -class Airavata_searchExperiments_args { +class Airavata_searchExperimentsByStatus_args { static $_TSPEC; /** @@ -20412,9 +16380,9 @@ class Airavata_searchExperiments_args { */ public $userName = null; /** - * @var array + * @var int */ - public $filters = null; + public $experimentState = null; /** * @var int */ @@ -20441,16 +16409,8 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 4 => array( - 'var' => 'filters', - 'type' => TType::MAP, - 'ktype' => TType::I32, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::I32, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'var' => 'experimentState', + 'type' => TType::I32, ), 5 => array( 'var' => 'limit', @@ -20472,8 +16432,8 @@ public function __construct($vals=null) { if (isset($vals['userName'])) { $this->userName = $vals['userName']; } - if (isset($vals['filters'])) { - $this->filters = $vals['filters']; + if (isset($vals['experimentState'])) { + $this->experimentState = $vals['experimentState']; } if (isset($vals['limit'])) { $this->limit = $vals['limit']; @@ -20485,7 +16445,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperiments_args'; + return 'Airavata_searchExperimentsByStatus_args'; } public function read($input) @@ -20526,21 +16486,8 @@ public function read($input) } break; case 4: - if ($ftype == TType::MAP) { - $this->filters = array(); - $_size128 = 0; - $_ktype129 = 0; - $_vtype130 = 0; - $xfer += $input->readMapBegin($_ktype129, $_vtype130, $_size128); - for ($_i132 = 0; $_i132 < $_size128; ++$_i132) - { - $key133 = 0; - $val134 = ''; - $xfer += $input->readI32($key133); - $xfer += $input->readString($val134); - $this->filters[$key133] = $val134; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->experimentState); } else { $xfer += $input->skip($ftype); } @@ -20571,7 +16518,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperiments_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -20590,22 +16537,9 @@ public function write($output) { $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } - if ($this->filters !== null) { - if (!is_array($this->filters)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('filters', TType::MAP, 4); - { - $output->writeMapBegin(TType::I32, TType::STRING, count($this->filters)); - { - foreach ($this->filters as $kiter135 => $viter136) - { - $xfer += $output->writeI32($kiter135); - $xfer += $output->writeString($viter136); - } - } - $output->writeMapEnd(); - } + if ($this->experimentState !== null) { + $xfer += $output->writeFieldBegin('experimentState', TType::I32, 4); + $xfer += $output->writeI32($this->experimentState); $xfer += $output->writeFieldEnd(); } if ($this->limit !== null) { @@ -20625,7 +16559,7 @@ public function write($output) { } -class Airavata_searchExperiments_result { +class Airavata_searchExperimentsByStatus_result { static $_TSPEC; /** @@ -20703,7 +16637,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_searchExperiments_result'; + return 'Airavata_searchExperimentsByStatus_result'; } public function read($input) @@ -20724,15 +16658,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size137 = 0; - $_etype140 = 0; - $xfer += $input->readListBegin($_etype140, $_size137); - for ($_i141 = 0; $_i141 < $_size137; ++$_i141) + $_size58 = 0; + $_etype61 = 0; + $xfer += $input->readListBegin($_etype61, $_size58); + for ($_i62 = 0; $_i62 < $_size58; ++$_i62) { - $elem142 = null; - $elem142 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); - $xfer += $elem142->read($input); - $this->success []= $elem142; + $elem63 = null; + $elem63 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem63->read($input); + $this->success []= $elem63; } $xfer += $input->readListEnd(); } else { @@ -20783,7 +16717,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchExperiments_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatus_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -20792,9 +16726,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter143) + foreach ($this->success as $iter64) { - $xfer += $iter143->write($output); + $xfer += $iter64->write($output); } } $output->writeListEnd(); @@ -20828,7 +16762,7 @@ public function write($output) { } -class Airavata_getExperimentStatistics_args { +class Airavata_searchExperimentsByCreationTime_args { static $_TSPEC; /** @@ -20839,6 +16773,10 @@ class Airavata_getExperimentStatistics_args { * @var string */ public $gatewayId = null; + /** + * @var string + */ + public $userName = null; /** * @var int */ @@ -20847,6 +16785,14 @@ class Airavata_getExperimentStatistics_args { * @var int */ public $toTime = null; + /** + * @var int + */ + public $limit = null; + /** + * @var int + */ + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -20861,13 +16807,25 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 4 => array( 'var' => 'fromTime', 'type' => TType::I64, ), - 4 => array( + 5 => array( 'var' => 'toTime', 'type' => TType::I64, ), + 6 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 7 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { @@ -20877,17 +16835,26 @@ public function __construct($vals=null) { if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } if (isset($vals['fromTime'])) { $this->fromTime = $vals['fromTime']; } if (isset($vals['toTime'])) { $this->toTime = $vals['toTime']; } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; + } } } public function getName() { - return 'Airavata_getExperimentStatistics_args'; + return 'Airavata_searchExperimentsByCreationTime_args'; } public function read($input) @@ -20921,19 +16888,40 @@ public function read($input) } break; case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->fromTime); } else { $xfer += $input->skip($ftype); } break; - case 4: + case 5: if ($ftype == TType::I64) { $xfer += $input->readI64($this->toTime); } else { $xfer += $input->skip($ftype); } break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -20946,7 +16934,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getExperimentStatistics_args'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -20960,16 +16948,31 @@ public function write($output) { $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } if ($this->fromTime !== null) { - $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); + $xfer += $output->writeFieldBegin('fromTime', TType::I64, 4); $xfer += $output->writeI64($this->fromTime); $xfer += $output->writeFieldEnd(); } if ($this->toTime !== null) { - $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); + $xfer += $output->writeFieldBegin('toTime', TType::I64, 5); $xfer += $output->writeI64($this->toTime); $xfer += $output->writeFieldEnd(); } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 6); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 7); + $xfer += $output->writeI32($this->offset); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -20977,11 +16980,11 @@ public function write($output) { } -class Airavata_getExperimentStatistics_result { +class Airavata_searchExperimentsByCreationTime_result { static $_TSPEC; /** - * @var \Airavata\Model\Experiment\ExperimentStatistics + * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] */ public $success = null; /** @@ -21006,8 +17009,12 @@ public function __construct($vals=null) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentStatistics', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', + ), ), 1 => array( 'var' => 'ire', @@ -21051,7 +17058,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getExperimentStatistics_result'; + return 'Airavata_searchExperimentsByCreationTime_result'; } public function read($input) @@ -21070,9 +17077,19 @@ public function read($input) switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \Airavata\Model\Experiment\ExperimentStatistics(); - $xfer += $this->success->read($input); + if ($ftype == TType::LST) { + $this->success = array(); + $_size65 = 0; + $_etype68 = 0; + $xfer += $input->readListBegin($_etype68, $_size65); + for ($_i69 = 0; $_i69 < $_size65; ++$_i69) + { + $elem70 = null; + $elem70 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem70->read($input); + $this->success []= $elem70; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -21121,13 +17138,22 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getExperimentStatistics_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_result'); if ($this->success !== null) { - if (!is_object($this->success)) { + if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); - $xfer += $this->success->write($output); + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter71) + { + $xfer += $iter71->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -21157,32 +17183,96 @@ public function write($output) { } -class Airavata_getAllExperimentsInProject_args { +class Airavata_searchExperiments_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ - public $projectId = null; + public $gatewayId = null; + /** + * @var string + */ + public $userName = null; + /** + * @var array + */ + public $filters = null; + /** + * @var int + */ + public $limit = null; + /** + * @var int + */ + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'projectId', + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( + 'var' => 'gatewayId', 'type' => TType::STRING, ), + 3 => array( + 'var' => 'userName', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'filters', + 'type' => TType::MAP, + 'ktype' => TType::I32, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::I32, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 5 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { - if (isset($vals['projectId'])) { - $this->projectId = $vals['projectId']; + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } + if (isset($vals['filters'])) { + $this->filters = $vals['filters']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_getAllExperimentsInProject_args'; + return 'Airavata_searchExperiments_args'; } public function read($input) @@ -21201,8 +17291,57 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectId); + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::MAP) { + $this->filters = array(); + $_size72 = 0; + $_ktype73 = 0; + $_vtype74 = 0; + $xfer += $input->readMapBegin($_ktype73, $_vtype74, $_size72); + for ($_i76 = 0; $_i76 < $_size72; ++$_i76) + { + $key77 = 0; + $val78 = ''; + $xfer += $input->readI32($key77); + $xfer += $input->readString($val78); + $this->filters[$key77] = $val78; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -21219,10 +17358,51 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_args'); - if ($this->projectId !== null) { - $xfer += $output->writeFieldBegin('projectId', TType::STRING, 1); - $xfer += $output->writeString($this->projectId); + $xfer += $output->writeStructBegin('Airavata_searchExperiments_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } + if ($this->filters !== null) { + if (!is_array($this->filters)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('filters', TType::MAP, 4); + { + $output->writeMapBegin(TType::I32, TType::STRING, count($this->filters)); + { + foreach ($this->filters as $kiter79 => $viter80) + { + $xfer += $output->writeI32($kiter79); + $xfer += $output->writeString($viter80); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 5); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 6); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -21232,11 +17412,11 @@ public function write($output) { } -class Airavata_getAllExperimentsInProject_result { +class Airavata_searchExperiments_result { static $_TSPEC; /** - * @var \Airavata\Model\Experiment\ExperimentModel[] + * @var \Airavata\Model\Experiment\ExperimentSummaryModel[] */ public $success = null; /** @@ -21252,9 +17432,9 @@ class Airavata_getAllExperimentsInProject_result { */ public $ase = null; /** - * @var \Airavata\API\Error\ProjectNotFoundException + * @var \Airavata\API\Error\AuthorizationException */ - public $pnfe = null; + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21265,7 +17445,7 @@ public function __construct($vals=null) { 'etype' => TType::STRUCT, 'elem' => array( 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentModel', + 'class' => '\Airavata\Model\Experiment\ExperimentSummaryModel', ), ), 1 => array( @@ -21284,9 +17464,9 @@ public function __construct($vals=null) { 'class' => '\Airavata\API\Error\AiravataSystemException', ), 4 => array( - 'var' => 'pnfe', + 'var' => 'ae', 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\ProjectNotFoundException', + 'class' => '\Airavata\API\Error\AuthorizationException', ), ); } @@ -21303,14 +17483,14 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['pnfe'])) { - $this->pnfe = $vals['pnfe']; + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; } } } public function getName() { - return 'Airavata_getAllExperimentsInProject_result'; + return 'Airavata_searchExperiments_result'; } public function read($input) @@ -21331,15 +17511,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size144 = 0; - $_etype147 = 0; - $xfer += $input->readListBegin($_etype147, $_size144); - for ($_i148 = 0; $_i148 < $_size144; ++$_i148) + $_size81 = 0; + $_etype84 = 0; + $xfer += $input->readListBegin($_etype84, $_size81); + for ($_i85 = 0; $_i85 < $_size81; ++$_i85) { - $elem149 = null; - $elem149 = new \Airavata\Model\Experiment\ExperimentModel(); - $xfer += $elem149->read($input); - $this->success []= $elem149; + $elem86 = null; + $elem86 = new \Airavata\Model\Experiment\ExperimentSummaryModel(); + $xfer += $elem86->read($input); + $this->success []= $elem86; } $xfer += $input->readListEnd(); } else { @@ -21372,8 +17552,8 @@ public function read($input) break; case 4: if ($ftype == TType::STRUCT) { - $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); - $xfer += $this->pnfe->read($input); + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); } else { $xfer += $input->skip($ftype); } @@ -21390,7 +17570,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_result'); + $xfer += $output->writeStructBegin('Airavata_searchExperiments_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -21399,9 +17579,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter150) + foreach ($this->success as $iter87) { - $xfer += $iter150->write($output); + $xfer += $iter87->write($output); } } $output->writeListEnd(); @@ -21423,9 +17603,9 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->pnfe !== null) { - $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); - $xfer += $this->pnfe->write($output); + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -21435,7 +17615,7 @@ public function write($output) { } -class Airavata_getAllExperimentsInProjectWithPagination_args { +class Airavata_getExperimentStatistics_args { static $_TSPEC; /** @@ -21445,15 +17625,15 @@ class Airavata_getAllExperimentsInProjectWithPagination_args { /** * @var string */ - public $projectId = null; + public $gatewayId = null; /** * @var int */ - public $limit = null; + public $fromTime = null; /** * @var int */ - public $offset = null; + public $toTime = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21464,16 +17644,16 @@ public function __construct($vals=null) { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'projectId', + 'var' => 'gatewayId', 'type' => TType::STRING, ), 3 => array( - 'var' => 'limit', - 'type' => TType::I32, + 'var' => 'fromTime', + 'type' => TType::I64, ), 4 => array( - 'var' => 'offset', - 'type' => TType::I32, + 'var' => 'toTime', + 'type' => TType::I64, ), ); } @@ -21481,20 +17661,20 @@ public function __construct($vals=null) { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['projectId'])) { - $this->projectId = $vals['projectId']; + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; + if (isset($vals['fromTime'])) { + $this->fromTime = $vals['fromTime']; } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; + if (isset($vals['toTime'])) { + $this->toTime = $vals['toTime']; } } } public function getName() { - return 'Airavata_getAllExperimentsInProjectWithPagination_args'; + return 'Airavata_getExperimentStatistics_args'; } public function read($input) @@ -21522,21 +17702,21 @@ public function read($input) break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectId); + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->fromTime); } else { $xfer += $input->skip($ftype); } break; case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->toTime); } else { $xfer += $input->skip($ftype); } @@ -21553,7 +17733,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_args'); + $xfer += $output->writeStructBegin('Airavata_getExperimentStatistics_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -21562,19 +17742,19 @@ public function write($output) { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->projectId !== null) { - $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2); - $xfer += $output->writeString($this->projectId); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 3); - $xfer += $output->writeI32($this->limit); + if ($this->fromTime !== null) { + $xfer += $output->writeFieldBegin('fromTime', TType::I64, 3); + $xfer += $output->writeI64($this->fromTime); $xfer += $output->writeFieldEnd(); } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 4); - $xfer += $output->writeI32($this->offset); + if ($this->toTime !== null) { + $xfer += $output->writeFieldBegin('toTime', TType::I64, 4); + $xfer += $output->writeI64($this->toTime); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -21584,11 +17764,11 @@ public function write($output) { } -class Airavata_getAllExperimentsInProjectWithPagination_result { +class Airavata_getExperimentStatistics_result { static $_TSPEC; /** - * @var \Airavata\Model\Experiment\ExperimentModel[] + * @var \Airavata\Model\Experiment\ExperimentStatistics */ public $success = null; /** @@ -21603,10 +17783,6 @@ class Airavata_getAllExperimentsInProjectWithPagination_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; - /** - * @var \Airavata\API\Error\ProjectNotFoundException - */ - public $pnfe = null; /** * @var \Airavata\API\Error\AuthorizationException */ @@ -21617,12 +17793,8 @@ public function __construct($vals=null) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\ExperimentModel', - ), + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Experiment\ExperimentStatistics', ), 1 => array( 'var' => 'ire', @@ -21640,11 +17812,6 @@ public function __construct($vals=null) { 'class' => '\Airavata\API\Error\AiravataSystemException', ), 4 => array( - 'var' => 'pnfe', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\ProjectNotFoundException', - ), - 5 => array( 'var' => 'ae', 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AuthorizationException', @@ -21664,9 +17831,6 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['pnfe'])) { - $this->pnfe = $vals['pnfe']; - } if (isset($vals['ae'])) { $this->ae = $vals['ae']; } @@ -21674,7 +17838,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllExperimentsInProjectWithPagination_result'; + return 'Airavata_getExperimentStatistics_result'; } public function read($input) @@ -21693,19 +17857,9 @@ public function read($input) switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size151 = 0; - $_etype154 = 0; - $xfer += $input->readListBegin($_etype154, $_size151); - for ($_i155 = 0; $_i155 < $_size151; ++$_i155) - { - $elem156 = null; - $elem156 = new \Airavata\Model\Experiment\ExperimentModel(); - $xfer += $elem156->read($input); - $this->success []= $elem156; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \Airavata\Model\Experiment\ExperimentStatistics(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -21735,14 +17889,6 @@ public function read($input) } break; case 4: - if ($ftype == TType::STRUCT) { - $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); - $xfer += $this->pnfe->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: if ($ftype == TType::STRUCT) { $this->ae = new \Airavata\API\Error\AuthorizationException(); $xfer += $this->ae->read($input); @@ -21762,22 +17908,13 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_getExperimentStatistics_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter157) - { - $xfer += $iter157->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -21795,13 +17932,8 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->pnfe !== null) { - $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); - $xfer += $this->pnfe->write($output); - $xfer += $output->writeFieldEnd(); - } if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } @@ -21812,43 +17944,66 @@ public function write($output) { } -class Airavata_getAllUserExperiments_args { +class Airavata_getExperimentsInProject_args { static $_TSPEC; /** - * @var string + * @var \Airavata\Model\Security\AuthzToken */ - public $gatewayId = null; + public $authzToken = null; /** * @var string */ - public $userName = null; + public $projectId = null; + /** + * @var int + */ + public $limit = null; + /** + * @var int + */ + public $offset = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'userName', + 'var' => 'projectId', 'type' => TType::STRING, ), + 3 => array( + 'var' => 'limit', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'offset', + 'type' => TType::I32, + ), ); } if (is_array($vals)) { - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; + if (isset($vals['projectId'])) { + $this->projectId = $vals['projectId']; + } + if (isset($vals['limit'])) { + $this->limit = $vals['limit']; + } + if (isset($vals['offset'])) { + $this->offset = $vals['offset']; } } } public function getName() { - return 'Airavata_getAllUserExperiments_args'; + return 'Airavata_getExperimentsInProject_args'; } public function read($input) @@ -21867,15 +18022,30 @@ public function read($input) switch ($fid) { case 1: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); + $xfer += $input->readString($this->projectId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->limit); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->offset); } else { $xfer += $input->skip($ftype); } @@ -21892,15 +18062,28 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserExperiments_args'); - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); - $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeStructBegin('Airavata_getExperimentsInProject_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); + if ($this->projectId !== null) { + $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2); + $xfer += $output->writeString($this->projectId); + $xfer += $output->writeFieldEnd(); + } + if ($this->limit !== null) { + $xfer += $output->writeFieldBegin('limit', TType::I32, 3); + $xfer += $output->writeI32($this->limit); + $xfer += $output->writeFieldEnd(); + } + if ($this->offset !== null) { + $xfer += $output->writeFieldBegin('offset', TType::I32, 4); + $xfer += $output->writeI32($this->offset); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -21910,7 +18093,7 @@ public function write($output) { } -class Airavata_getAllUserExperiments_result { +class Airavata_getExperimentsInProject_result { static $_TSPEC; /** @@ -21929,6 +18112,14 @@ class Airavata_getAllUserExperiments_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; + /** + * @var \Airavata\API\Error\ProjectNotFoundException + */ + public $pnfe = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -21957,6 +18148,16 @@ public function __construct($vals=null) { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), + 4 => array( + 'var' => 'pnfe', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ProjectNotFoundException', + ), + 5 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), ); } if (is_array($vals)) { @@ -21972,11 +18173,17 @@ public function __construct($vals=null) { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['pnfe'])) { + $this->pnfe = $vals['pnfe']; + } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } } } public function getName() { - return 'Airavata_getAllUserExperiments_result'; + return 'Airavata_getExperimentsInProject_result'; } public function read($input) @@ -21997,15 +18204,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size158 = 0; - $_etype161 = 0; - $xfer += $input->readListBegin($_etype161, $_size158); - for ($_i162 = 0; $_i162 < $_size158; ++$_i162) + $_size88 = 0; + $_etype91 = 0; + $xfer += $input->readListBegin($_etype91, $_size88); + for ($_i92 = 0; $_i92 < $_size88; ++$_i92) { - $elem163 = null; - $elem163 = new \Airavata\Model\Experiment\ExperimentModel(); - $xfer += $elem163->read($input); - $this->success []= $elem163; + $elem93 = null; + $elem93 = new \Airavata\Model\Experiment\ExperimentModel(); + $xfer += $elem93->read($input); + $this->success []= $elem93; } $xfer += $input->readListEnd(); } else { @@ -22036,6 +18243,22 @@ public function read($input) $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRUCT) { + $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); + $xfer += $this->pnfe->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -22048,7 +18271,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserExperiments_result'); + $xfer += $output->writeStructBegin('Airavata_getExperimentsInProject_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -22057,9 +18280,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter164) + foreach ($this->success as $iter94) { - $xfer += $iter164->write($output); + $xfer += $iter94->write($output); } } $output->writeListEnd(); @@ -22081,6 +18304,16 @@ public function write($output) { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->pnfe !== null) { + $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); + $xfer += $this->pnfe->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -22088,7 +18321,7 @@ public function write($output) { } -class Airavata_getAllUserExperimentsWithPagination_args { +class Airavata_getUserExperiments_args { static $_TSPEC; /** @@ -22158,7 +18391,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllUserExperimentsWithPagination_args'; + return 'Airavata_getUserExperiments_args'; } public function read($input) @@ -22224,7 +18457,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_args'); + $xfer += $output->writeStructBegin('Airavata_getUserExperiments_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -22260,7 +18493,7 @@ public function write($output) { } -class Airavata_getAllUserExperimentsWithPagination_result { +class Airavata_getUserExperiments_result { static $_TSPEC; /** @@ -22338,7 +18571,7 @@ public function __construct($vals=null) { } public function getName() { - return 'Airavata_getAllUserExperimentsWithPagination_result'; + return 'Airavata_getUserExperiments_result'; } public function read($input) @@ -22359,15 +18592,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size165 = 0; - $_etype168 = 0; - $xfer += $input->readListBegin($_etype168, $_size165); - for ($_i169 = 0; $_i169 < $_size165; ++$_i169) + $_size95 = 0; + $_etype98 = 0; + $xfer += $input->readListBegin($_etype98, $_size95); + for ($_i99 = 0; $_i99 < $_size95; ++$_i99) { - $elem170 = null; - $elem170 = new \Airavata\Model\Experiment\ExperimentModel(); - $xfer += $elem170->read($input); - $this->success []= $elem170; + $elem100 = null; + $elem100 = new \Airavata\Model\Experiment\ExperimentModel(); + $xfer += $elem100->read($input); + $this->success []= $elem100; } $xfer += $input->readListEnd(); } else { @@ -22418,7 +18651,7 @@ public function read($input) public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_result'); + $xfer += $output->writeStructBegin('Airavata_getUserExperiments_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -22427,9 +18660,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter171) + foreach ($this->success as $iter101) { - $xfer += $iter171->write($output); + $xfer += $iter101->write($output); } } $output->writeListEnd(); @@ -24929,15 +21162,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size172 = 0; - $_etype175 = 0; - $xfer += $input->readListBegin($_etype175, $_size172); - for ($_i176 = 0; $_i176 < $_size172; ++$_i176) + $_size102 = 0; + $_etype105 = 0; + $xfer += $input->readListBegin($_etype105, $_size102); + for ($_i106 = 0; $_i106 < $_size102; ++$_i106) { - $elem177 = null; - $elem177 = new \Airavata\Model\Application\Io\OutputDataObjectType(); - $xfer += $elem177->read($input); - $this->success []= $elem177; + $elem107 = null; + $elem107 = new \Airavata\Model\Application\Io\OutputDataObjectType(); + $xfer += $elem107->read($input); + $this->success []= $elem107; } $xfer += $input->readListEnd(); } else { @@ -25005,9 +21238,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter178) + foreach ($this->success as $iter108) { - $xfer += $iter178->write($output); + $xfer += $iter108->write($output); } } $output->writeListEnd(); @@ -25260,15 +21493,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size179 = 0; - $_etype182 = 0; - $xfer += $input->readListBegin($_etype182, $_size179); - for ($_i183 = 0; $_i183 < $_size179; ++$_i183) + $_size109 = 0; + $_etype112 = 0; + $xfer += $input->readListBegin($_etype112, $_size109); + for ($_i113 = 0; $_i113 < $_size109; ++$_i113) { - $elem184 = null; - $elem184 = new \Airavata\Model\Application\Io\OutputDataObjectType(); - $xfer += $elem184->read($input); - $this->success []= $elem184; + $elem114 = null; + $elem114 = new \Airavata\Model\Application\Io\OutputDataObjectType(); + $xfer += $elem114->read($input); + $this->success []= $elem114; } $xfer += $input->readListEnd(); } else { @@ -25336,9 +21569,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter185) + foreach ($this->success as $iter115) { - $xfer += $iter185->write($output); + $xfer += $iter115->write($output); } } $output->writeListEnd(); @@ -25595,18 +21828,18 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size186 = 0; - $_ktype187 = 0; - $_vtype188 = 0; - $xfer += $input->readMapBegin($_ktype187, $_vtype188, $_size186); - for ($_i190 = 0; $_i190 < $_size186; ++$_i190) + $_size116 = 0; + $_ktype117 = 0; + $_vtype118 = 0; + $xfer += $input->readMapBegin($_ktype117, $_vtype118, $_size116); + for ($_i120 = 0; $_i120 < $_size116; ++$_i120) { - $key191 = ''; - $val192 = new \Airavata\Model\Status\JobStatus(); - $xfer += $input->readString($key191); - $val192 = new \Airavata\Model\Status\JobStatus(); - $xfer += $val192->read($input); - $this->success[$key191] = $val192; + $key121 = ''; + $val122 = new \Airavata\Model\Status\JobStatus(); + $xfer += $input->readString($key121); + $val122 = new \Airavata\Model\Status\JobStatus(); + $xfer += $val122->read($input); + $this->success[$key121] = $val122; } $xfer += $input->readMapEnd(); } else { @@ -25674,10 +21907,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter193 => $viter194) + foreach ($this->success as $kiter123 => $viter124) { - $xfer += $output->writeString($kiter193); - $xfer += $viter194->write($output); + $xfer += $output->writeString($kiter123); + $xfer += $viter124->write($output); } } $output->writeMapEnd(); @@ -25930,15 +22163,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size195 = 0; - $_etype198 = 0; - $xfer += $input->readListBegin($_etype198, $_size195); - for ($_i199 = 0; $_i199 < $_size195; ++$_i199) + $_size125 = 0; + $_etype128 = 0; + $xfer += $input->readListBegin($_etype128, $_size125); + for ($_i129 = 0; $_i129 < $_size125; ++$_i129) { - $elem200 = null; - $elem200 = new \Airavata\Model\job\JobModel(); - $xfer += $elem200->read($input); - $this->success []= $elem200; + $elem130 = null; + $elem130 = new \Airavata\Model\job\JobModel(); + $xfer += $elem130->read($input); + $this->success []= $elem130; } $xfer += $input->readListEnd(); } else { @@ -26006,9 +22239,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter201) + foreach ($this->success as $iter131) { - $xfer += $iter201->write($output); + $xfer += $iter131->write($output); } } $output->writeListEnd(); @@ -27773,15 +24006,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size202 = 0; - $_etype205 = 0; - $xfer += $input->readListBegin($_etype205, $_size202); - for ($_i206 = 0; $_i206 < $_size202; ++$_i206) + $_size132 = 0; + $_etype135 = 0; + $xfer += $input->readListBegin($_etype135, $_size132); + for ($_i136 = 0; $_i136 < $_size132; ++$_i136) { - $elem207 = null; - $elem207 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule(); - $xfer += $elem207->read($input); - $this->success []= $elem207; + $elem137 = null; + $elem137 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationModule(); + $xfer += $elem137->read($input); + $this->success []= $elem137; } $xfer += $input->readListEnd(); } else { @@ -27841,9 +24074,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter208) + foreach ($this->success as $iter138) { - $xfer += $iter208->write($output); + $xfer += $iter138->write($output); } } $output->writeListEnd(); @@ -29530,15 +25763,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size209 = 0; - $_etype212 = 0; - $xfer += $input->readListBegin($_etype212, $_size209); - for ($_i213 = 0; $_i213 < $_size209; ++$_i213) + $_size139 = 0; + $_etype142 = 0; + $xfer += $input->readListBegin($_etype142, $_size139); + for ($_i143 = 0; $_i143 < $_size139; ++$_i143) { - $elem214 = null; - $elem214 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription(); - $xfer += $elem214->read($input); - $this->success []= $elem214; + $elem144 = null; + $elem144 = new \Airavata\Model\AppCatalog\AppDeployment\ApplicationDeploymentDescription(); + $xfer += $elem144->read($input); + $this->success []= $elem144; } $xfer += $input->readListEnd(); } else { @@ -29598,9 +25831,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter215) + foreach ($this->success as $iter145) { - $xfer += $iter215->write($output); + $xfer += $iter145->write($output); } } $output->writeListEnd(); @@ -29835,14 +26068,14 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size216 = 0; - $_etype219 = 0; - $xfer += $input->readListBegin($_etype219, $_size216); - for ($_i220 = 0; $_i220 < $_size216; ++$_i220) + $_size146 = 0; + $_etype149 = 0; + $xfer += $input->readListBegin($_etype149, $_size146); + for ($_i150 = 0; $_i150 < $_size146; ++$_i150) { - $elem221 = null; - $xfer += $input->readString($elem221); - $this->success []= $elem221; + $elem151 = null; + $xfer += $input->readString($elem151); + $this->success []= $elem151; } $xfer += $input->readListEnd(); } else { @@ -29902,9 +26135,9 @@ public function write($output) { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter222) + foreach ($this->success as $iter152) { - $xfer += $output->writeString($iter222); + $xfer += $output->writeString($iter152); } } $output->writeListEnd(); @@ -31316,17 +27549,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size223 = 0; - $_ktype224 = 0; - $_vtype225 = 0; - $xfer += $input->readMapBegin($_ktype224, $_vtype225, $_size223); - for ($_i227 = 0; $_i227 < $_size223; ++$_i227) + $_size153 = 0; + $_ktype154 = 0; + $_vtype155 = 0; + $xfer += $input->readMapBegin($_ktype154, $_vtype155, $_size153); + for ($_i157 = 0; $_i157 < $_size153; ++$_i157) { - $key228 = ''; - $val229 = ''; - $xfer += $input->readString($key228); - $xfer += $input->readString($val229); - $this->success[$key228] = $val229; + $key158 = ''; + $val159 = ''; + $xfer += $input->readString($key158); + $xfer += $input->readString($val159); + $this->success[$key158] = $val159; } $xfer += $input->readMapEnd(); } else { @@ -31386,10 +27619,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter230 => $viter231) + foreach ($this->success as $kiter160 => $viter161) { - $xfer += $output->writeString($kiter230); - $xfer += $output->writeString($viter231); + $xfer += $output->writeString($kiter160); + $xfer += $output->writeString($viter161); } } $output->writeMapEnd(); @@ -31625,15 +27858,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size232 = 0; - $_etype235 = 0; - $xfer += $input->readListBegin($_etype235, $_size232); - for ($_i236 = 0; $_i236 < $_size232; ++$_i236) + $_size162 = 0; + $_etype165 = 0; + $xfer += $input->readListBegin($_etype165, $_size162); + for ($_i166 = 0; $_i166 < $_size162; ++$_i166) { - $elem237 = null; - $elem237 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription(); - $xfer += $elem237->read($input); - $this->success []= $elem237; + $elem167 = null; + $elem167 = new \Airavata\Model\AppCatalog\AppInterface\ApplicationInterfaceDescription(); + $xfer += $elem167->read($input); + $this->success []= $elem167; } $xfer += $input->readListEnd(); } else { @@ -31693,9 +27926,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter238) + foreach ($this->success as $iter168) { - $xfer += $iter238->write($output); + $xfer += $iter168->write($output); } } $output->writeListEnd(); @@ -31931,15 +28164,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size239 = 0; - $_etype242 = 0; - $xfer += $input->readListBegin($_etype242, $_size239); - for ($_i243 = 0; $_i243 < $_size239; ++$_i243) + $_size169 = 0; + $_etype172 = 0; + $xfer += $input->readListBegin($_etype172, $_size169); + for ($_i173 = 0; $_i173 < $_size169; ++$_i173) { - $elem244 = null; - $elem244 = new \Airavata\Model\Application\Io\InputDataObjectType(); - $xfer += $elem244->read($input); - $this->success []= $elem244; + $elem174 = null; + $elem174 = new \Airavata\Model\Application\Io\InputDataObjectType(); + $xfer += $elem174->read($input); + $this->success []= $elem174; } $xfer += $input->readListEnd(); } else { @@ -31999,9 +28232,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter245) + foreach ($this->success as $iter175) { - $xfer += $iter245->write($output); + $xfer += $iter175->write($output); } } $output->writeListEnd(); @@ -32237,15 +28470,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size246 = 0; - $_etype249 = 0; - $xfer += $input->readListBegin($_etype249, $_size246); - for ($_i250 = 0; $_i250 < $_size246; ++$_i250) + $_size176 = 0; + $_etype179 = 0; + $xfer += $input->readListBegin($_etype179, $_size176); + for ($_i180 = 0; $_i180 < $_size176; ++$_i180) { - $elem251 = null; - $elem251 = new \Airavata\Model\Application\Io\OutputDataObjectType(); - $xfer += $elem251->read($input); - $this->success []= $elem251; + $elem181 = null; + $elem181 = new \Airavata\Model\Application\Io\OutputDataObjectType(); + $xfer += $elem181->read($input); + $this->success []= $elem181; } $xfer += $input->readListEnd(); } else { @@ -32305,9 +28538,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter252) + foreach ($this->success as $iter182) { - $xfer += $iter252->write($output); + $xfer += $iter182->write($output); } } $output->writeListEnd(); @@ -32546,17 +28779,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size253 = 0; - $_ktype254 = 0; - $_vtype255 = 0; - $xfer += $input->readMapBegin($_ktype254, $_vtype255, $_size253); - for ($_i257 = 0; $_i257 < $_size253; ++$_i257) + $_size183 = 0; + $_ktype184 = 0; + $_vtype185 = 0; + $xfer += $input->readMapBegin($_ktype184, $_vtype185, $_size183); + for ($_i187 = 0; $_i187 < $_size183; ++$_i187) { - $key258 = ''; - $val259 = ''; - $xfer += $input->readString($key258); - $xfer += $input->readString($val259); - $this->success[$key258] = $val259; + $key188 = ''; + $val189 = ''; + $xfer += $input->readString($key188); + $xfer += $input->readString($val189); + $this->success[$key188] = $val189; } $xfer += $input->readMapEnd(); } else { @@ -32616,10 +28849,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter260 => $viter261) + foreach ($this->success as $kiter190 => $viter191) { - $xfer += $output->writeString($kiter260); - $xfer += $output->writeString($viter261); + $xfer += $output->writeString($kiter190); + $xfer += $output->writeString($viter191); } } $output->writeMapEnd(); @@ -33401,17 +29634,17 @@ public function read($input) case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size262 = 0; - $_ktype263 = 0; - $_vtype264 = 0; - $xfer += $input->readMapBegin($_ktype263, $_vtype264, $_size262); - for ($_i266 = 0; $_i266 < $_size262; ++$_i266) + $_size192 = 0; + $_ktype193 = 0; + $_vtype194 = 0; + $xfer += $input->readMapBegin($_ktype193, $_vtype194, $_size192); + for ($_i196 = 0; $_i196 < $_size192; ++$_i196) { - $key267 = ''; - $val268 = ''; - $xfer += $input->readString($key267); - $xfer += $input->readString($val268); - $this->success[$key267] = $val268; + $key197 = ''; + $val198 = ''; + $xfer += $input->readString($key197); + $xfer += $input->readString($val198); + $this->success[$key197] = $val198; } $xfer += $input->readMapEnd(); } else { @@ -33471,10 +29704,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter269 => $viter270) + foreach ($this->success as $kiter199 => $viter200) { - $xfer += $output->writeString($kiter269); - $xfer += $output->writeString($viter270); + $xfer += $output->writeString($kiter199); + $xfer += $output->writeString($viter200); } } $output->writeMapEnd(); @@ -42112,17 +38345,17 @@ public function read($input) case 2: if ($ftype == TType::MAP) { $this->jobSubmissionPriorityMap = array(); - $_size271 = 0; - $_ktype272 = 0; - $_vtype273 = 0; - $xfer += $input->readMapBegin($_ktype272, $_vtype273, $_size271); - for ($_i275 = 0; $_i275 < $_size271; ++$_i275) + $_size201 = 0; + $_ktype202 = 0; + $_vtype203 = 0; + $xfer += $input->readMapBegin($_ktype202, $_vtype203, $_size201); + for ($_i205 = 0; $_i205 < $_size201; ++$_i205) { - $key276 = ''; - $val277 = 0; - $xfer += $input->readString($key276); - $xfer += $input->readI32($val277); - $this->jobSubmissionPriorityMap[$key276] = $val277; + $key206 = ''; + $val207 = 0; + $xfer += $input->readString($key206); + $xfer += $input->readI32($val207); + $this->jobSubmissionPriorityMap[$key206] = $val207; } $xfer += $input->readMapEnd(); } else { @@ -42158,10 +38391,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::I32, count($this->jobSubmissionPriorityMap)); { - foreach ($this->jobSubmissionPriorityMap as $kiter278 => $viter279) + foreach ($this->jobSubmissionPriorityMap as $kiter208 => $viter209) { - $xfer += $output->writeString($kiter278); - $xfer += $output->writeI32($viter279); + $xfer += $output->writeString($kiter208); + $xfer += $output->writeI32($viter209); } } $output->writeMapEnd(); @@ -42424,17 +38657,17 @@ public function read($input) case 2: if ($ftype == TType::MAP) { $this->dataMovementPriorityMap = array(); - $_size280 = 0; - $_ktype281 = 0; - $_vtype282 = 0; - $xfer += $input->readMapBegin($_ktype281, $_vtype282, $_size280); - for ($_i284 = 0; $_i284 < $_size280; ++$_i284) + $_size210 = 0; + $_ktype211 = 0; + $_vtype212 = 0; + $xfer += $input->readMapBegin($_ktype211, $_vtype212, $_size210); + for ($_i214 = 0; $_i214 < $_size210; ++$_i214) { - $key285 = ''; - $val286 = 0; - $xfer += $input->readString($key285); - $xfer += $input->readI32($val286); - $this->dataMovementPriorityMap[$key285] = $val286; + $key215 = ''; + $val216 = 0; + $xfer += $input->readString($key215); + $xfer += $input->readI32($val216); + $this->dataMovementPriorityMap[$key215] = $val216; } $xfer += $input->readMapEnd(); } else { @@ -42470,10 +38703,10 @@ public function write($output) { { $output->writeMapBegin(TType::STRING, TType::I32, count($this->dataMovementPriorityMap)); { - foreach ($this->dataMovementPriorityMap as $kiter287 => $viter288) + foreach ($this->dataMovementPriorityMap as $kiter217 => $viter218) { - $xfer += $output->writeString($kiter287); - $xfer += $output->writeI32($viter288); + $xfer += $output->writeString($kiter217); + $xfer += $output->writeI32($viter218); } } $output->writeMapEnd(); @@ -46702,15 +42935,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size289 = 0; - $_etype292 = 0; - $xfer += $input->readListBegin($_etype292, $_size289); - for ($_i293 = 0; $_i293 < $_size289; ++$_i293) + $_size219 = 0; + $_etype222 = 0; + $xfer += $input->readListBegin($_etype222, $_size219); + for ($_i223 = 0; $_i223 < $_size219; ++$_i223) { - $elem294 = null; - $elem294 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference(); - $xfer += $elem294->read($input); - $this->success []= $elem294; + $elem224 = null; + $elem224 = new \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference(); + $xfer += $elem224->read($input); + $this->success []= $elem224; } $xfer += $input->readListEnd(); } else { @@ -46770,9 +43003,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter295) + foreach ($this->success as $iter225) { - $xfer += $iter295->write($output); + $xfer += $iter225->write($output); } } $output->writeListEnd(); @@ -46985,15 +43218,15 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size296 = 0; - $_etype299 = 0; - $xfer += $input->readListBegin($_etype299, $_size296); - for ($_i300 = 0; $_i300 < $_size296; ++$_i300) + $_size226 = 0; + $_etype229 = 0; + $xfer += $input->readListBegin($_etype229, $_size226); + for ($_i230 = 0; $_i230 < $_size226; ++$_i230) { - $elem301 = null; - $elem301 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile(); - $xfer += $elem301->read($input); - $this->success []= $elem301; + $elem231 = null; + $elem231 = new \Airavata\Model\AppCatalog\GatewayProfile\GatewayResourceProfile(); + $xfer += $elem231->read($input); + $this->success []= $elem231; } $xfer += $input->readListEnd(); } else { @@ -47053,9 +43286,9 @@ public function write($output) { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter302) + foreach ($this->success as $iter232) { - $xfer += $iter302->write($output); + $xfer += $iter232->write($output); } } $output->writeListEnd(); @@ -47920,14 +44153,14 @@ public function read($input) case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size303 = 0; - $_etype306 = 0; - $xfer += $input->readListBegin($_etype306, $_size303); - for ($_i307 = 0; $_i307 < $_size303; ++$_i307) + $_size233 = 0; + $_etype236 = 0; + $xfer += $input->readListBegin($_etype236, $_size233); + for ($_i237 = 0; $_i237 < $_size233; ++$_i237) { - $elem308 = null; - $xfer += $input->readString($elem308); - $this->success []= $elem308; + $elem238 = null; + $xfer += $input->readString($elem238); + $this->success []= $elem238; } $xfer += $input->readListEnd(); } else { @@ -47987,9 +44220,9 @@ public function write($output) { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter309) + foreach ($this->success as $iter239) { - $xfer += $output->writeString($iter309); + $xfer += $output->writeString($iter239); } } $output->writeListEnd(); diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Types.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Types.php index 7a574d4362..55d6b6da37 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Types.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Types.php @@ -35,7 +35,7 @@ static protected function init_AIRAVATA_API_VERSION() { * in a change to major/minor version numbers. * */ -"0.15.0"; +"0.16.0"; } } diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote index 3d41aa7bbe..99b3ee16de 100755 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote @@ -38,28 +38,18 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void updateProject(AuthzToken authzToken, string projectId, Project updatedProject)') print(' Project getProject(AuthzToken authzToken, string projectId)') print(' bool deleteProject(AuthzToken authzToken, string projectId)') - print(' getAllUserProjects(string gatewayId, string userName)') - print(' getAllUserProjectsWithPagination(AuthzToken authzToken, string gatewayId, string userName, i32 limit, i32 offset)') - print(' searchProjectsByProjectName(string gatewayId, string userName, string projectName)') - print(' searchProjectsByProjectNameWithPagination(AuthzToken authzToken, string gatewayId, string userName, string projectName, i32 limit, i32 offset)') - print(' searchProjectsByProjectDesc(string gatewayId, string userName, string description)') - print(' searchProjectsByProjectDescWithPagination(AuthzToken authzToken, string gatewayId, string userName, string description, i32 limit, i32 offset)') - print(' searchExperimentsByName(string gatewayId, string userName, string expName)') - print(' searchExperimentsByNameWithPagination(AuthzToken authzToken, string gatewayId, string userName, string expName, i32 limit, i32 offset)') - print(' searchExperimentsByDesc(string gatewayId, string userName, string description)') - print(' searchExperimentsByDescWithPagination(AuthzToken authzToken, string gatewayId, string userName, string description, i32 limit, i32 offset)') - print(' searchExperimentsByApplication(string gatewayId, string userName, string applicationId)') - print(' searchExperimentsByApplicationWithPagination(AuthzToken authzToken, string gatewayId, string userName, string applicationId, i32 limit, i32 offset)') - print(' searchExperimentsByStatus(string gatewayId, string userName, ExperimentState experimentState)') - print(' searchExperimentsByStatusWithPagination(AuthzToken authzToken, string gatewayId, string userName, ExperimentState experimentState, i32 limit, i32 offset)') - print(' searchExperimentsByCreationTime(string gatewayId, string userName, i64 fromTime, i64 toTime)') - print(' searchExperimentsByCreationTimeWithPagination(AuthzToken authzToken, string gatewayId, string userName, i64 fromTime, i64 toTime, i32 limit, i32 offset)') + print(' getUserProjects(AuthzToken authzToken, string gatewayId, string userName, i32 limit, i32 offset)') + print(' searchProjectsByProjectName(AuthzToken authzToken, string gatewayId, string userName, string projectName, i32 limit, i32 offset)') + print(' searchProjectsByProjectDesc(AuthzToken authzToken, string gatewayId, string userName, string description, i32 limit, i32 offset)') + print(' searchExperimentsByName(AuthzToken authzToken, string gatewayId, string userName, string expName, i32 limit, i32 offset)') + print(' searchExperimentsByDesc(AuthzToken authzToken, string gatewayId, string userName, string description, i32 limit, i32 offset)') + print(' searchExperimentsByApplication(AuthzToken authzToken, string gatewayId, string userName, string applicationId, i32 limit, i32 offset)') + print(' searchExperimentsByStatus(AuthzToken authzToken, string gatewayId, string userName, ExperimentState experimentState, i32 limit, i32 offset)') + print(' searchExperimentsByCreationTime(AuthzToken authzToken, string gatewayId, string userName, i64 fromTime, i64 toTime, i32 limit, i32 offset)') print(' searchExperiments(AuthzToken authzToken, string gatewayId, string userName, filters, i32 limit, i32 offset)') print(' ExperimentStatistics getExperimentStatistics(AuthzToken authzToken, string gatewayId, i64 fromTime, i64 toTime)') - print(' getAllExperimentsInProject(string projectId)') - print(' getAllExperimentsInProjectWithPagination(AuthzToken authzToken, string projectId, i32 limit, i32 offset)') - print(' getAllUserExperiments(string gatewayId, string userName)') - print(' getAllUserExperimentsWithPagination(AuthzToken authzToken, string gatewayId, string userName, i32 limit, i32 offset)') + print(' getExperimentsInProject(AuthzToken authzToken, string projectId, i32 limit, i32 offset)') + print(' getUserExperiments(AuthzToken authzToken, string gatewayId, string userName, i32 limit, i32 offset)') print(' string createExperiment(AuthzToken authzToken, string gatewayId, ExperimentModel experiment)') print(' ExperimentModel getExperiment(AuthzToken authzToken, string airavataExperimentId)') print(' void updateExperiment(AuthzToken authzToken, string airavataExperimentId, ExperimentModel experiment)') @@ -291,101 +281,53 @@ elif cmd == 'deleteProject': sys.exit(1) pp.pprint(client.deleteProject(eval(args[0]),args[1],)) -elif cmd == 'getAllUserProjects': - if len(args) != 2: - print('getAllUserProjects requires 2 args') - sys.exit(1) - pp.pprint(client.getAllUserProjects(args[0],args[1],)) - -elif cmd == 'getAllUserProjectsWithPagination': +elif cmd == 'getUserProjects': if len(args) != 5: - print('getAllUserProjectsWithPagination requires 5 args') + print('getUserProjects requires 5 args') sys.exit(1) - pp.pprint(client.getAllUserProjectsWithPagination(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),)) + pp.pprint(client.getUserProjects(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),)) elif cmd == 'searchProjectsByProjectName': - if len(args) != 3: - print('searchProjectsByProjectName requires 3 args') - sys.exit(1) - pp.pprint(client.searchProjectsByProjectName(args[0],args[1],args[2],)) - -elif cmd == 'searchProjectsByProjectNameWithPagination': if len(args) != 6: - print('searchProjectsByProjectNameWithPagination requires 6 args') + print('searchProjectsByProjectName requires 6 args') sys.exit(1) - pp.pprint(client.searchProjectsByProjectNameWithPagination(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchProjectsByProjectName(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'searchProjectsByProjectDesc': - if len(args) != 3: - print('searchProjectsByProjectDesc requires 3 args') - sys.exit(1) - pp.pprint(client.searchProjectsByProjectDesc(args[0],args[1],args[2],)) - -elif cmd == 'searchProjectsByProjectDescWithPagination': if len(args) != 6: - print('searchProjectsByProjectDescWithPagination requires 6 args') + print('searchProjectsByProjectDesc requires 6 args') sys.exit(1) - pp.pprint(client.searchProjectsByProjectDescWithPagination(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchProjectsByProjectDesc(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'searchExperimentsByName': - if len(args) != 3: - print('searchExperimentsByName requires 3 args') - sys.exit(1) - pp.pprint(client.searchExperimentsByName(args[0],args[1],args[2],)) - -elif cmd == 'searchExperimentsByNameWithPagination': if len(args) != 6: - print('searchExperimentsByNameWithPagination requires 6 args') + print('searchExperimentsByName requires 6 args') sys.exit(1) - pp.pprint(client.searchExperimentsByNameWithPagination(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchExperimentsByName(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'searchExperimentsByDesc': - if len(args) != 3: - print('searchExperimentsByDesc requires 3 args') - sys.exit(1) - pp.pprint(client.searchExperimentsByDesc(args[0],args[1],args[2],)) - -elif cmd == 'searchExperimentsByDescWithPagination': if len(args) != 6: - print('searchExperimentsByDescWithPagination requires 6 args') + print('searchExperimentsByDesc requires 6 args') sys.exit(1) - pp.pprint(client.searchExperimentsByDescWithPagination(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchExperimentsByDesc(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'searchExperimentsByApplication': - if len(args) != 3: - print('searchExperimentsByApplication requires 3 args') - sys.exit(1) - pp.pprint(client.searchExperimentsByApplication(args[0],args[1],args[2],)) - -elif cmd == 'searchExperimentsByApplicationWithPagination': if len(args) != 6: - print('searchExperimentsByApplicationWithPagination requires 6 args') + print('searchExperimentsByApplication requires 6 args') sys.exit(1) - pp.pprint(client.searchExperimentsByApplicationWithPagination(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchExperimentsByApplication(eval(args[0]),args[1],args[2],args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'searchExperimentsByStatus': - if len(args) != 3: - print('searchExperimentsByStatus requires 3 args') - sys.exit(1) - pp.pprint(client.searchExperimentsByStatus(args[0],args[1],eval(args[2]),)) - -elif cmd == 'searchExperimentsByStatusWithPagination': if len(args) != 6: - print('searchExperimentsByStatusWithPagination requires 6 args') + print('searchExperimentsByStatus requires 6 args') sys.exit(1) - pp.pprint(client.searchExperimentsByStatusWithPagination(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),)) + pp.pprint(client.searchExperimentsByStatus(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),)) elif cmd == 'searchExperimentsByCreationTime': - if len(args) != 4: - print('searchExperimentsByCreationTime requires 4 args') - sys.exit(1) - pp.pprint(client.searchExperimentsByCreationTime(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'searchExperimentsByCreationTimeWithPagination': if len(args) != 7: - print('searchExperimentsByCreationTimeWithPagination requires 7 args') + print('searchExperimentsByCreationTime requires 7 args') sys.exit(1) - pp.pprint(client.searchExperimentsByCreationTimeWithPagination(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),)) + pp.pprint(client.searchExperimentsByCreationTime(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),eval(args[5]),eval(args[6]),)) elif cmd == 'searchExperiments': if len(args) != 6: @@ -399,29 +341,17 @@ elif cmd == 'getExperimentStatistics': sys.exit(1) pp.pprint(client.getExperimentStatistics(eval(args[0]),args[1],eval(args[2]),eval(args[3]),)) -elif cmd == 'getAllExperimentsInProject': - if len(args) != 1: - print('getAllExperimentsInProject requires 1 args') - sys.exit(1) - pp.pprint(client.getAllExperimentsInProject(args[0],)) - -elif cmd == 'getAllExperimentsInProjectWithPagination': +elif cmd == 'getExperimentsInProject': if len(args) != 4: - print('getAllExperimentsInProjectWithPagination requires 4 args') - sys.exit(1) - pp.pprint(client.getAllExperimentsInProjectWithPagination(eval(args[0]),args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'getAllUserExperiments': - if len(args) != 2: - print('getAllUserExperiments requires 2 args') + print('getExperimentsInProject requires 4 args') sys.exit(1) - pp.pprint(client.getAllUserExperiments(args[0],args[1],)) + pp.pprint(client.getExperimentsInProject(eval(args[0]),args[1],eval(args[2]),eval(args[3]),)) -elif cmd == 'getAllUserExperimentsWithPagination': +elif cmd == 'getUserExperiments': if len(args) != 5: - print('getAllUserExperimentsWithPagination requires 5 args') + print('getUserExperiments requires 5 args') sys.exit(1) - pp.pprint(client.getAllUserExperimentsWithPagination(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),)) + pp.pprint(client.getUserExperiments(eval(args[0]),args[1],args[2],eval(args[3]),eval(args[4]),)) elif cmd == 'createExperiment': if len(args) != 3: diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py index 680a7d6a65..d4de9965be 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py @@ -162,25 +162,7 @@ def deleteProject(self, authzToken, projectId): """ pass - def getAllUserProjects(self, gatewayId, userName): - """ - * Get all Project by user - * - * @param gatewayId - * The identifier for the requested gateway. - * - * @param userName - * The Project Object described in the workspace_model - * @deprecated Instead use getAllUserProjectsWithPagination - * - - Parameters: - - gatewayId - - userName - """ - pass - - def getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, limit, offset): + def getUserProjects(self, authzToken, gatewayId, userName, limit, offset): """ * Get all Project by user with pagination. Results will be ordered based * on creation time DESC @@ -204,26 +186,7 @@ def getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, limi """ pass - def searchProjectsByProjectName(self, gatewayId, userName, projectName): - """ - Get all Project for user by project name - - @param gatewayId - The identifier for the requested gateway. - @param userName - The identifier of the user - @param projectName - The name of the project on which the results to be fetched - @deprecated Instead use searchProjectsByProjectNameWithPagination - - Parameters: - - gatewayId - - userName - - projectName - """ - pass - - def searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, userName, projectName, limit, offset): + def searchProjectsByProjectName(self, authzToken, gatewayId, userName, projectName, limit, offset): """ Get all Project for user by project name with pagination.Results will be ordered based on creation time DESC @@ -249,25 +212,7 @@ def searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, userN """ pass - def searchProjectsByProjectDesc(self, gatewayId, userName, description): - """ - Get all Project for user by project description - @param gatewayId - The identifier for the requested gateway. - @param userName - The identifier of the user - @param description - The description to be matched - @deprecated Instead use searchProjectsByProjectDescWithPagination - - Parameters: - - gatewayId - - userName - - description - """ - pass - - def searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): + def searchProjectsByProjectDesc(self, authzToken, gatewayId, userName, description, limit, offset): """ Search and get all Projects for user by project description with pagination. Results will be ordered based on creation time DESC @@ -293,28 +238,7 @@ def searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, userN """ pass - def searchExperimentsByName(self, gatewayId, userName, expName): - """ - Search Experiments by experiment name - - @param gatewayId - Identifier of the requested gateway - @param useNname - Username of the requested user - @param expName - Experiment name to be matched - @deprecated - Instead use searchExperimentsByNameWithPagination - - - Parameters: - - gatewayId - - userName - - expName - """ - pass - - def searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, expName, limit, offset): + def searchExperimentsByName(self, authzToken, gatewayId, userName, expName, limit, offset): """ Search Experiments by experiment name with pagination. Results will be sorted based on creation time DESC @@ -340,27 +264,7 @@ def searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, """ pass - def searchExperimentsByDesc(self, gatewayId, userName, description): - """ - Search Experiments by experiment name - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param description - Experiment description to be matched - @deprecated - Instead use searchExperimentsByDescWithPagination - - Parameters: - - gatewayId - - userName - - description - """ - pass - - def searchExperimentsByDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): + def searchExperimentsByDesc(self, authzToken, gatewayId, userName, description, limit, offset): """ Search Experiments by experiment name with pagination. Results will be sorted based on creation time DESC @@ -386,27 +290,7 @@ def searchExperimentsByDescWithPagination(self, authzToken, gatewayId, userName, """ pass - def searchExperimentsByApplication(self, gatewayId, userName, applicationId): - """ - Search Experiments by application id - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param applicationId - Application id to be matched - @deprecated - Instead use searchExperimentsByApplicationWithPagination - - Parameters: - - gatewayId - - userName - - applicationId - """ - pass - - def searchExperimentsByApplicationWithPagination(self, authzToken, gatewayId, userName, applicationId, limit, offset): + def searchExperimentsByApplication(self, authzToken, gatewayId, userName, applicationId, limit, offset): """ Search Experiments by application id with pagination. Results will be sorted based on creation time DESC @@ -432,27 +316,7 @@ def searchExperimentsByApplicationWithPagination(self, authzToken, gatewayId, us """ pass - def searchExperimentsByStatus(self, gatewayId, userName, experimentState): - """ - Search Experiments by experiment status - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param experimentState - Experiement state to be matched - @deprecated - Instead use searchExperimentsByStatusWithPagination - - Parameters: - - gatewayId - - userName - - experimentState - """ - pass - - def searchExperimentsByStatusWithPagination(self, authzToken, gatewayId, userName, experimentState, limit, offset): + def searchExperimentsByStatus(self, authzToken, gatewayId, userName, experimentState, limit, offset): """ Search Experiments by experiment status with pagination. Results will be sorted based on creation time DESC @@ -478,30 +342,7 @@ def searchExperimentsByStatusWithPagination(self, authzToken, gatewayId, userNam """ pass - def searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): - """ - Search Experiments by experiment creation time - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param fromTime - Start time of the experiments creation time - @param toTime - End time of the experiement creation time - @deprecated - Instead use searchExperimentsByCreationTimeWithPagination - - Parameters: - - gatewayId - - userName - - fromTime - - toTime - """ - pass - - def searchExperimentsByCreationTimeWithPagination(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): + def searchExperimentsByCreationTime(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): """ Search Experiments by experiment creation time with pagination. Results will be sorted based on creation time DESC @@ -575,23 +416,9 @@ def getExperimentStatistics(self, authzToken, gatewayId, fromTime, toTime): """ pass - def getAllExperimentsInProject(self, projectId): - """ - Get all Experiments within a Project - - @param projectId - Identifier of the project - @deprecated - Instead use getAllExperimentsInProjectWithPagination - - Parameters: - - projectId + def getExperimentsInProject(self, authzToken, projectId, limit, offset): """ - pass - - def getAllExperimentsInProjectWithPagination(self, authzToken, projectId, limit, offset): - """ - Get all Experiments within project with pagination. Results will be sorted + Get Experiments within project with pagination. Results will be sorted based on creation time DESC @param projectId @@ -609,26 +436,9 @@ def getAllExperimentsInProjectWithPagination(self, authzToken, projectId, limit, """ pass - def getAllUserExperiments(self, gatewayId, userName): + def getUserExperiments(self, authzToken, gatewayId, userName, limit, offset): """ - Get all Experiments by user - - @param gatewayId - Identifier of the requesting gateway - @param userName - Username of the requested user - @deprecated - Instead use getAllUserExperimentsWithPagination - - Parameters: - - gatewayId - - userName - """ - pass - - def getAllUserExperimentsWithPagination(self, authzToken, gatewayId, userName, limit, offset): - """ - Get all Experiments by user pagination. Results will be sorted + Get experiments by user with pagination. Results will be sorted based on creation time DESC @param gatewayId @@ -2879,56 +2689,7 @@ def recv_deleteProject(self): raise result.ae raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProject failed: unknown result"); - def getAllUserProjects(self, gatewayId, userName): - """ - * Get all Project by user - * - * @param gatewayId - * The identifier for the requested gateway. - * - * @param userName - * The Project Object described in the workspace_model - * @deprecated Instead use getAllUserProjectsWithPagination - * - - Parameters: - - gatewayId - - userName - """ - self.send_getAllUserProjects(gatewayId, userName) - return self.recv_getAllUserProjects() - - def send_getAllUserProjects(self, gatewayId, userName): - self._oprot.writeMessageBegin('getAllUserProjects', TMessageType.CALL, self._seqid) - args = getAllUserProjects_args() - args.gatewayId = gatewayId - args.userName = userName - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getAllUserProjects(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getAllUserProjects_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserProjects failed: unknown result"); - - def getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, limit, offset): + def getUserProjects(self, authzToken, gatewayId, userName, limit, offset): """ * Get all Project by user with pagination. Results will be ordered based * on creation time DESC @@ -2950,12 +2711,12 @@ def getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, limi - limit - offset """ - self.send_getAllUserProjectsWithPagination(authzToken, gatewayId, userName, limit, offset) - return self.recv_getAllUserProjectsWithPagination() + self.send_getUserProjects(authzToken, gatewayId, userName, limit, offset) + return self.recv_getUserProjects() - def send_getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, limit, offset): - self._oprot.writeMessageBegin('getAllUserProjectsWithPagination', TMessageType.CALL, self._seqid) - args = getAllUserProjectsWithPagination_args() + def send_getUserProjects(self, authzToken, gatewayId, userName, limit, offset): + self._oprot.writeMessageBegin('getUserProjects', TMessageType.CALL, self._seqid) + args = getUserProjects_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName @@ -2965,7 +2726,7 @@ def send_getAllUserProjectsWithPagination(self, authzToken, gatewayId, userName, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getAllUserProjectsWithPagination(self): + def recv_getUserProjects(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -2973,7 +2734,7 @@ def recv_getAllUserProjectsWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = getAllUserProjectsWithPagination_result() + result = getUserProjects_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -2986,60 +2747,9 @@ def recv_getAllUserProjectsWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserProjectsWithPagination failed: unknown result"); - - def searchProjectsByProjectName(self, gatewayId, userName, projectName): - """ - Get all Project for user by project name - - @param gatewayId - The identifier for the requested gateway. - @param userName - The identifier of the user - @param projectName - The name of the project on which the results to be fetched - @deprecated Instead use searchProjectsByProjectNameWithPagination - - Parameters: - - gatewayId - - userName - - projectName - """ - self.send_searchProjectsByProjectName(gatewayId, userName, projectName) - return self.recv_searchProjectsByProjectName() - - def send_searchProjectsByProjectName(self, gatewayId, userName, projectName): - self._oprot.writeMessageBegin('searchProjectsByProjectName', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectName_args() - args.gatewayId = gatewayId - args.userName = userName - args.projectName = projectName - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_searchProjectsByProjectName(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = searchProjectsByProjectName_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserProjects failed: unknown result"); - def searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, userName, projectName, limit, offset): + def searchProjectsByProjectName(self, authzToken, gatewayId, userName, projectName, limit, offset): """ Get all Project for user by project name with pagination.Results will be ordered based on creation time DESC @@ -3063,12 +2773,12 @@ def searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, userN - limit - offset """ - self.send_searchProjectsByProjectNameWithPagination(authzToken, gatewayId, userName, projectName, limit, offset) - return self.recv_searchProjectsByProjectNameWithPagination() + self.send_searchProjectsByProjectName(authzToken, gatewayId, userName, projectName, limit, offset) + return self.recv_searchProjectsByProjectName() - def send_searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, userName, projectName, limit, offset): - self._oprot.writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectNameWithPagination_args() + def send_searchProjectsByProjectName(self, authzToken, gatewayId, userName, projectName, limit, offset): + self._oprot.writeMessageBegin('searchProjectsByProjectName', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectName_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName @@ -3079,7 +2789,7 @@ def send_searchProjectsByProjectNameWithPagination(self, authzToken, gatewayId, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchProjectsByProjectNameWithPagination(self): + def recv_searchProjectsByProjectName(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3087,7 +2797,7 @@ def recv_searchProjectsByProjectNameWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchProjectsByProjectNameWithPagination_result() + result = searchProjectsByProjectName_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3100,59 +2810,9 @@ def recv_searchProjectsByProjectNameWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectNameWithPagination failed: unknown result"); - - def searchProjectsByProjectDesc(self, gatewayId, userName, description): - """ - Get all Project for user by project description - @param gatewayId - The identifier for the requested gateway. - @param userName - The identifier of the user - @param description - The description to be matched - @deprecated Instead use searchProjectsByProjectDescWithPagination - - Parameters: - - gatewayId - - userName - - description - """ - self.send_searchProjectsByProjectDesc(gatewayId, userName, description) - return self.recv_searchProjectsByProjectDesc() - - def send_searchProjectsByProjectDesc(self, gatewayId, userName, description): - self._oprot.writeMessageBegin('searchProjectsByProjectDesc', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectDesc_args() - args.gatewayId = gatewayId - args.userName = userName - args.description = description - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_searchProjectsByProjectDesc(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = searchProjectsByProjectDesc_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectName failed: unknown result"); - def searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): + def searchProjectsByProjectDesc(self, authzToken, gatewayId, userName, description, limit, offset): """ Search and get all Projects for user by project description with pagination. Results will be ordered based on creation time DESC @@ -3176,12 +2836,12 @@ def searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, userN - limit - offset """ - self.send_searchProjectsByProjectDescWithPagination(authzToken, gatewayId, userName, description, limit, offset) - return self.recv_searchProjectsByProjectDescWithPagination() + self.send_searchProjectsByProjectDesc(authzToken, gatewayId, userName, description, limit, offset) + return self.recv_searchProjectsByProjectDesc() - def send_searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): - self._oprot.writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType.CALL, self._seqid) - args = searchProjectsByProjectDescWithPagination_args() + def send_searchProjectsByProjectDesc(self, authzToken, gatewayId, userName, description, limit, offset): + self._oprot.writeMessageBegin('searchProjectsByProjectDesc', TMessageType.CALL, self._seqid) + args = searchProjectsByProjectDesc_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName @@ -3192,7 +2852,7 @@ def send_searchProjectsByProjectDescWithPagination(self, authzToken, gatewayId, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchProjectsByProjectDescWithPagination(self): + def recv_searchProjectsByProjectDesc(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3200,7 +2860,7 @@ def recv_searchProjectsByProjectDescWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchProjectsByProjectDescWithPagination_result() + result = searchProjectsByProjectDesc_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3213,36 +2873,44 @@ def recv_searchProjectsByProjectDescWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDescWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchProjectsByProjectDesc failed: unknown result"); - def searchExperimentsByName(self, gatewayId, userName, expName): + def searchExperimentsByName(self, authzToken, gatewayId, userName, expName, limit, offset): """ - Search Experiments by experiment name + Search Experiments by experiment name with pagination. Results will be sorted + based on creation time DESC @param gatewayId Identifier of the requested gateway - @param useNname + @param userName Username of the requested user @param expName Experiment name to be matched - @deprecated - Instead use searchExperimentsByNameWithPagination - + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: + - authzToken - gatewayId - userName - expName + - limit + - offset """ - self.send_searchExperimentsByName(gatewayId, userName, expName) + self.send_searchExperimentsByName(authzToken, gatewayId, userName, expName, limit, offset) return self.recv_searchExperimentsByName() - def send_searchExperimentsByName(self, gatewayId, userName, expName): + def send_searchExperimentsByName(self, authzToken, gatewayId, userName, expName, limit, offset): self._oprot.writeMessageBegin('searchExperimentsByName', TMessageType.CALL, self._seqid) args = searchExperimentsByName_args() + args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName args.expName = expName + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() @@ -3266,9 +2934,11 @@ def recv_searchExperimentsByName(self): raise result.ace if result.ase is not None: raise result.ase + if result.ae is not None: + raise result.ae raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByName failed: unknown result"); - def searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, expName, limit, offset): + def searchExperimentsByDesc(self, authzToken, gatewayId, userName, description, limit, offset): """ Search Experiments by experiment name with pagination. Results will be sorted based on creation time DESC @@ -3277,8 +2947,8 @@ def searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, Identifier of the requested gateway @param userName Username of the requested user - @param expName - Experiment name to be matched + @param description + Experiment description to be matched @param limit Amount of results to be fetched @param offset @@ -3288,27 +2958,27 @@ def searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, - authzToken - gatewayId - userName - - expName + - description - limit - offset """ - self.send_searchExperimentsByNameWithPagination(authzToken, gatewayId, userName, expName, limit, offset) - return self.recv_searchExperimentsByNameWithPagination() + self.send_searchExperimentsByDesc(authzToken, gatewayId, userName, description, limit, offset) + return self.recv_searchExperimentsByDesc() - def send_searchExperimentsByNameWithPagination(self, authzToken, gatewayId, userName, expName, limit, offset): - self._oprot.writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType.CALL, self._seqid) - args = searchExperimentsByNameWithPagination_args() + def send_searchExperimentsByDesc(self, authzToken, gatewayId, userName, description, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByDesc', TMessageType.CALL, self._seqid) + args = searchExperimentsByDesc_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.expName = expName + args.description = description args.limit = limit args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByNameWithPagination(self): + def recv_searchExperimentsByDesc(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3316,7 +2986,7 @@ def recv_searchExperimentsByNameWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByNameWithPagination_result() + result = searchExperimentsByDesc_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3329,40 +2999,49 @@ def recv_searchExperimentsByNameWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByNameWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); - def searchExperimentsByDesc(self, gatewayId, userName, description): + def searchExperimentsByApplication(self, authzToken, gatewayId, userName, applicationId, limit, offset): """ - Search Experiments by experiment name + Search Experiments by application id with pagination. Results will be sorted + based on creation time DESC @param gatewayId Identifier of the requested gateway @param userName Username of the requested user - @param description - Experiment description to be matched - @deprecated - Instead use searchExperimentsByDescWithPagination + @param applicationId + Application id to be matched + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: + - authzToken - gatewayId - userName - - description + - applicationId + - limit + - offset """ - self.send_searchExperimentsByDesc(gatewayId, userName, description) - return self.recv_searchExperimentsByDesc() + self.send_searchExperimentsByApplication(authzToken, gatewayId, userName, applicationId, limit, offset) + return self.recv_searchExperimentsByApplication() - def send_searchExperimentsByDesc(self, gatewayId, userName, description): - self._oprot.writeMessageBegin('searchExperimentsByDesc', TMessageType.CALL, self._seqid) - args = searchExperimentsByDesc_args() + def send_searchExperimentsByApplication(self, authzToken, gatewayId, userName, applicationId, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByApplication', TMessageType.CALL, self._seqid) + args = searchExperimentsByApplication_args() + args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.description = description + args.applicationId = applicationId + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByDesc(self): + def recv_searchExperimentsByApplication(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3370,7 +3049,7 @@ def recv_searchExperimentsByDesc(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByDesc_result() + result = searchExperimentsByApplication_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3381,19 +3060,21 @@ def recv_searchExperimentsByDesc(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDesc failed: unknown result"); + if result.ae is not None: + raise result.ae + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); - def searchExperimentsByDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): + def searchExperimentsByStatus(self, authzToken, gatewayId, userName, experimentState, limit, offset): """ - Search Experiments by experiment name with pagination. Results will be sorted + Search Experiments by experiment status with pagination. Results will be sorted based on creation time DESC @param gatewayId Identifier of the requested gateway @param userName Username of the requested user - @param description - Experiment description to be matched + @param experimentState + Experiement state to be matched @param limit Amount of results to be fetched @param offset @@ -3403,27 +3084,27 @@ def searchExperimentsByDescWithPagination(self, authzToken, gatewayId, userName, - authzToken - gatewayId - userName - - description + - experimentState - limit - offset """ - self.send_searchExperimentsByDescWithPagination(authzToken, gatewayId, userName, description, limit, offset) - return self.recv_searchExperimentsByDescWithPagination() + self.send_searchExperimentsByStatus(authzToken, gatewayId, userName, experimentState, limit, offset) + return self.recv_searchExperimentsByStatus() - def send_searchExperimentsByDescWithPagination(self, authzToken, gatewayId, userName, description, limit, offset): - self._oprot.writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType.CALL, self._seqid) - args = searchExperimentsByDescWithPagination_args() + def send_searchExperimentsByStatus(self, authzToken, gatewayId, userName, experimentState, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByStatus', TMessageType.CALL, self._seqid) + args = searchExperimentsByStatus_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.description = description + args.experimentState = experimentState args.limit = limit args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByDescWithPagination(self): + def recv_searchExperimentsByStatus(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3431,7 +3112,7 @@ def recv_searchExperimentsByDescWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByDescWithPagination_result() + result = searchExperimentsByStatus_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3444,40 +3125,53 @@ def recv_searchExperimentsByDescWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByDescWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); - def searchExperimentsByApplication(self, gatewayId, userName, applicationId): + def searchExperimentsByCreationTime(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): """ - Search Experiments by application id + Search Experiments by experiment creation time with pagination. Results will be sorted + based on creation time DESC @param gatewayId Identifier of the requested gateway @param userName Username of the requested user - @param applicationId - Application id to be matched - @deprecated - Instead use searchExperimentsByApplicationWithPagination + @param fromTime + Start time of the experiments creation time + @param toTime + End time of the experiement creation time + @param limit + Amount of results to be fetched + @param offset + The starting point of the results to be fetched Parameters: + - authzToken - gatewayId - userName - - applicationId + - fromTime + - toTime + - limit + - offset """ - self.send_searchExperimentsByApplication(gatewayId, userName, applicationId) - return self.recv_searchExperimentsByApplication() + self.send_searchExperimentsByCreationTime(authzToken, gatewayId, userName, fromTime, toTime, limit, offset) + return self.recv_searchExperimentsByCreationTime() - def send_searchExperimentsByApplication(self, gatewayId, userName, applicationId): - self._oprot.writeMessageBegin('searchExperimentsByApplication', TMessageType.CALL, self._seqid) - args = searchExperimentsByApplication_args() + def send_searchExperimentsByCreationTime(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): + self._oprot.writeMessageBegin('searchExperimentsByCreationTime', TMessageType.CALL, self._seqid) + args = searchExperimentsByCreationTime_args() + args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.applicationId = applicationId + args.fromTime = fromTime + args.toTime = toTime + args.limit = limit + args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByApplication(self): + def recv_searchExperimentsByCreationTime(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3485,7 +3179,7 @@ def recv_searchExperimentsByApplication(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByApplication_result() + result = searchExperimentsByCreationTime_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3496,19 +3190,21 @@ def recv_searchExperimentsByApplication(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplication failed: unknown result"); + if result.ae is not None: + raise result.ae + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); - def searchExperimentsByApplicationWithPagination(self, authzToken, gatewayId, userName, applicationId, limit, offset): + def searchExperiments(self, authzToken, gatewayId, userName, filters, limit, offset): """ - Search Experiments by application id with pagination. Results will be sorted + Search Experiments by using multiple filter criteria with pagination. Results will be sorted based on creation time DESC @param gatewayId Identifier of the requested gateway @param userName Username of the requested user - @param applicationId - Application id to be matched + @param filters + map of multiple filter criteria. @param limit Amount of results to be fetched @param offset @@ -3518,27 +3214,27 @@ def searchExperimentsByApplicationWithPagination(self, authzToken, gatewayId, us - authzToken - gatewayId - userName - - applicationId + - filters - limit - offset """ - self.send_searchExperimentsByApplicationWithPagination(authzToken, gatewayId, userName, applicationId, limit, offset) - return self.recv_searchExperimentsByApplicationWithPagination() + self.send_searchExperiments(authzToken, gatewayId, userName, filters, limit, offset) + return self.recv_searchExperiments() - def send_searchExperimentsByApplicationWithPagination(self, authzToken, gatewayId, userName, applicationId, limit, offset): - self._oprot.writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType.CALL, self._seqid) - args = searchExperimentsByApplicationWithPagination_args() + def send_searchExperiments(self, authzToken, gatewayId, userName, filters, limit, offset): + self._oprot.writeMessageBegin('searchExperiments', TMessageType.CALL, self._seqid) + args = searchExperiments_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.applicationId = applicationId + args.filters = filters args.limit = limit args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByApplicationWithPagination(self): + def recv_searchExperiments(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3546,7 +3242,7 @@ def recv_searchExperimentsByApplicationWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByApplicationWithPagination_result() + result = searchExperiments_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3559,40 +3255,40 @@ def recv_searchExperimentsByApplicationWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByApplicationWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperiments failed: unknown result"); - def searchExperimentsByStatus(self, gatewayId, userName, experimentState): + def getExperimentStatistics(self, authzToken, gatewayId, fromTime, toTime): """ - Search Experiments by experiment status - + Get Experiment Statisitics for the given gateway for a specific time period @param gatewayId Identifier of the requested gateway - @param userName - Username of the requested user - @param experimentState - Experiement state to be matched - @deprecated - Instead use searchExperimentsByStatusWithPagination + @param fromTime + Starting date time + @param toTime + Ending data time + Parameters: + - authzToken - gatewayId - - userName - - experimentState + - fromTime + - toTime """ - self.send_searchExperimentsByStatus(gatewayId, userName, experimentState) - return self.recv_searchExperimentsByStatus() + self.send_getExperimentStatistics(authzToken, gatewayId, fromTime, toTime) + return self.recv_getExperimentStatistics() - def send_searchExperimentsByStatus(self, gatewayId, userName, experimentState): - self._oprot.writeMessageBegin('searchExperimentsByStatus', TMessageType.CALL, self._seqid) - args = searchExperimentsByStatus_args() + def send_getExperimentStatistics(self, authzToken, gatewayId, fromTime, toTime): + self._oprot.writeMessageBegin('getExperimentStatistics', TMessageType.CALL, self._seqid) + args = getExperimentStatistics_args() + args.authzToken = authzToken args.gatewayId = gatewayId - args.userName = userName - args.experimentState = experimentState + args.fromTime = fromTime + args.toTime = toTime args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByStatus(self): + def recv_getExperimentStatistics(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3600,7 +3296,7 @@ def recv_searchExperimentsByStatus(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByStatus_result() + result = getExperimentStatistics_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3611,19 +3307,17 @@ def recv_searchExperimentsByStatus(self): raise result.ace if result.ase is not None: raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatus failed: unknown result"); + if result.ae is not None: + raise result.ae + raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentStatistics failed: unknown result"); - def searchExperimentsByStatusWithPagination(self, authzToken, gatewayId, userName, experimentState, limit, offset): + def getExperimentsInProject(self, authzToken, projectId, limit, offset): """ - Search Experiments by experiment status with pagination. Results will be sorted + Get Experiments within project with pagination. Results will be sorted based on creation time DESC - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param experimentState - Experiement state to be matched + @param projectId + Identifier of the project @param limit Amount of results to be fetched @param offset @@ -3631,29 +3325,25 @@ def searchExperimentsByStatusWithPagination(self, authzToken, gatewayId, userNam Parameters: - authzToken - - gatewayId - - userName - - experimentState + - projectId - limit - offset """ - self.send_searchExperimentsByStatusWithPagination(authzToken, gatewayId, userName, experimentState, limit, offset) - return self.recv_searchExperimentsByStatusWithPagination() + self.send_getExperimentsInProject(authzToken, projectId, limit, offset) + return self.recv_getExperimentsInProject() - def send_searchExperimentsByStatusWithPagination(self, authzToken, gatewayId, userName, experimentState, limit, offset): - self._oprot.writeMessageBegin('searchExperimentsByStatusWithPagination', TMessageType.CALL, self._seqid) - args = searchExperimentsByStatusWithPagination_args() + def send_getExperimentsInProject(self, authzToken, projectId, limit, offset): + self._oprot.writeMessageBegin('getExperimentsInProject', TMessageType.CALL, self._seqid) + args = getExperimentsInProject_args() args.authzToken = authzToken - args.gatewayId = gatewayId - args.userName = userName - args.experimentState = experimentState + args.projectId = projectId args.limit = limit args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByStatusWithPagination(self): + def recv_getExperimentsInProject(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3661,7 +3351,7 @@ def recv_searchExperimentsByStatusWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByStatusWithPagination_result() + result = getExperimentsInProject_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3672,79 +3362,21 @@ def recv_searchExperimentsByStatusWithPagination(self): raise result.ace if result.ase is not None: raise result.ase + if result.pnfe is not None: + raise result.pnfe if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByStatusWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentsInProject failed: unknown result"); - def searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): + def getUserExperiments(self, authzToken, gatewayId, userName, limit, offset): """ - Search Experiments by experiment creation time - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param fromTime - Start time of the experiments creation time - @param toTime - End time of the experiement creation time - @deprecated - Instead use searchExperimentsByCreationTimeWithPagination - - Parameters: - - gatewayId - - userName - - fromTime - - toTime - """ - self.send_searchExperimentsByCreationTime(gatewayId, userName, fromTime, toTime) - return self.recv_searchExperimentsByCreationTime() - - def send_searchExperimentsByCreationTime(self, gatewayId, userName, fromTime, toTime): - self._oprot.writeMessageBegin('searchExperimentsByCreationTime', TMessageType.CALL, self._seqid) - args = searchExperimentsByCreationTime_args() - args.gatewayId = gatewayId - args.userName = userName - args.fromTime = fromTime - args.toTime = toTime - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_searchExperimentsByCreationTime(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = searchExperimentsByCreationTime_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTime failed: unknown result"); - - def searchExperimentsByCreationTimeWithPagination(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): - """ - Search Experiments by experiment creation time with pagination. Results will be sorted + Get experiments by user with pagination. Results will be sorted based on creation time DESC @param gatewayId - Identifier of the requested gateway + Identifier of the requesting gateway @param userName Username of the requested user - @param fromTime - Start time of the experiments creation time - @param toTime - End time of the experiement creation time @param limit Amount of results to be fetched @param offset @@ -3754,29 +3386,25 @@ def searchExperimentsByCreationTimeWithPagination(self, authzToken, gatewayId, u - authzToken - gatewayId - userName - - fromTime - - toTime - limit - offset """ - self.send_searchExperimentsByCreationTimeWithPagination(authzToken, gatewayId, userName, fromTime, toTime, limit, offset) - return self.recv_searchExperimentsByCreationTimeWithPagination() + self.send_getUserExperiments(authzToken, gatewayId, userName, limit, offset) + return self.recv_getUserExperiments() - def send_searchExperimentsByCreationTimeWithPagination(self, authzToken, gatewayId, userName, fromTime, toTime, limit, offset): - self._oprot.writeMessageBegin('searchExperimentsByCreationTimeWithPagination', TMessageType.CALL, self._seqid) - args = searchExperimentsByCreationTimeWithPagination_args() + def send_getUserExperiments(self, authzToken, gatewayId, userName, limit, offset): + self._oprot.writeMessageBegin('getUserExperiments', TMessageType.CALL, self._seqid) + args = getUserExperiments_args() args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName - args.fromTime = fromTime - args.toTime = toTime args.limit = limit args.offset = offset args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_searchExperimentsByCreationTimeWithPagination(self): + def recv_getUserExperiments(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: @@ -3784,7 +3412,7 @@ def recv_searchExperimentsByCreationTimeWithPagination(self): x.read(iprot) iprot.readMessageEnd() raise x - result = searchExperimentsByCreationTimeWithPagination_result() + result = getUserExperiments_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: @@ -3797,334 +3425,7 @@ def recv_searchExperimentsByCreationTimeWithPagination(self): raise result.ase if result.ae is not None: raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperimentsByCreationTimeWithPagination failed: unknown result"); - - def searchExperiments(self, authzToken, gatewayId, userName, filters, limit, offset): - """ - Search Experiments by using multiple filter criteria with pagination. Results will be sorted - based on creation time DESC - - @param gatewayId - Identifier of the requested gateway - @param userName - Username of the requested user - @param filters - map of multiple filter criteria. - @param limit - Amount of results to be fetched - @param offset - The starting point of the results to be fetched - - Parameters: - - authzToken - - gatewayId - - userName - - filters - - limit - - offset - """ - self.send_searchExperiments(authzToken, gatewayId, userName, filters, limit, offset) - return self.recv_searchExperiments() - - def send_searchExperiments(self, authzToken, gatewayId, userName, filters, limit, offset): - self._oprot.writeMessageBegin('searchExperiments', TMessageType.CALL, self._seqid) - args = searchExperiments_args() - args.authzToken = authzToken - args.gatewayId = gatewayId - args.userName = userName - args.filters = filters - args.limit = limit - args.offset = offset - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_searchExperiments(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = searchExperiments_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - if result.ae is not None: - raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "searchExperiments failed: unknown result"); - - def getExperimentStatistics(self, authzToken, gatewayId, fromTime, toTime): - """ - Get Experiment Statisitics for the given gateway for a specific time period - @param gatewayId - Identifier of the requested gateway - @param fromTime - Starting date time - @param toTime - Ending data time - - - Parameters: - - authzToken - - gatewayId - - fromTime - - toTime - """ - self.send_getExperimentStatistics(authzToken, gatewayId, fromTime, toTime) - return self.recv_getExperimentStatistics() - - def send_getExperimentStatistics(self, authzToken, gatewayId, fromTime, toTime): - self._oprot.writeMessageBegin('getExperimentStatistics', TMessageType.CALL, self._seqid) - args = getExperimentStatistics_args() - args.authzToken = authzToken - args.gatewayId = gatewayId - args.fromTime = fromTime - args.toTime = toTime - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getExperimentStatistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getExperimentStatistics_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - if result.ae is not None: - raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "getExperimentStatistics failed: unknown result"); - - def getAllExperimentsInProject(self, projectId): - """ - Get all Experiments within a Project - - @param projectId - Identifier of the project - @deprecated - Instead use getAllExperimentsInProjectWithPagination - - Parameters: - - projectId - """ - self.send_getAllExperimentsInProject(projectId) - return self.recv_getAllExperimentsInProject() - - def send_getAllExperimentsInProject(self, projectId): - self._oprot.writeMessageBegin('getAllExperimentsInProject', TMessageType.CALL, self._seqid) - args = getAllExperimentsInProject_args() - args.projectId = projectId - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getAllExperimentsInProject(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getAllExperimentsInProject_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - if result.pnfe is not None: - raise result.pnfe - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllExperimentsInProject failed: unknown result"); - - def getAllExperimentsInProjectWithPagination(self, authzToken, projectId, limit, offset): - """ - Get all Experiments within project with pagination. Results will be sorted - based on creation time DESC - - @param projectId - Identifier of the project - @param limit - Amount of results to be fetched - @param offset - The starting point of the results to be fetched - - Parameters: - - authzToken - - projectId - - limit - - offset - """ - self.send_getAllExperimentsInProjectWithPagination(authzToken, projectId, limit, offset) - return self.recv_getAllExperimentsInProjectWithPagination() - - def send_getAllExperimentsInProjectWithPagination(self, authzToken, projectId, limit, offset): - self._oprot.writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType.CALL, self._seqid) - args = getAllExperimentsInProjectWithPagination_args() - args.authzToken = authzToken - args.projectId = projectId - args.limit = limit - args.offset = offset - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getAllExperimentsInProjectWithPagination(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getAllExperimentsInProjectWithPagination_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - if result.pnfe is not None: - raise result.pnfe - if result.ae is not None: - raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllExperimentsInProjectWithPagination failed: unknown result"); - - def getAllUserExperiments(self, gatewayId, userName): - """ - Get all Experiments by user - - @param gatewayId - Identifier of the requesting gateway - @param userName - Username of the requested user - @deprecated - Instead use getAllUserExperimentsWithPagination - - Parameters: - - gatewayId - - userName - """ - self.send_getAllUserExperiments(gatewayId, userName) - return self.recv_getAllUserExperiments() - - def send_getAllUserExperiments(self, gatewayId, userName): - self._oprot.writeMessageBegin('getAllUserExperiments', TMessageType.CALL, self._seqid) - args = getAllUserExperiments_args() - args.gatewayId = gatewayId - args.userName = userName - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getAllUserExperiments(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getAllUserExperiments_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserExperiments failed: unknown result"); - - def getAllUserExperimentsWithPagination(self, authzToken, gatewayId, userName, limit, offset): - """ - Get all Experiments by user pagination. Results will be sorted - based on creation time DESC - - @param gatewayId - Identifier of the requesting gateway - @param userName - Username of the requested user - @param limit - Amount of results to be fetched - @param offset - The starting point of the results to be fetched - - Parameters: - - authzToken - - gatewayId - - userName - - limit - - offset - """ - self.send_getAllUserExperimentsWithPagination(authzToken, gatewayId, userName, limit, offset) - return self.recv_getAllUserExperimentsWithPagination() - - def send_getAllUserExperimentsWithPagination(self, authzToken, gatewayId, userName, limit, offset): - self._oprot.writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType.CALL, self._seqid) - args = getAllUserExperimentsWithPagination_args() - args.authzToken = authzToken - args.gatewayId = gatewayId - args.userName = userName - args.limit = limit - args.offset = offset - args.write(self._oprot) - self._oprot.writeMessageEnd() - self._oprot.trans.flush() - - def recv_getAllUserExperimentsWithPagination(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() - if mtype == TMessageType.EXCEPTION: - x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() - raise x - result = getAllUserExperimentsWithPagination_result() - result.read(iprot) - iprot.readMessageEnd() - if result.success is not None: - return result.success - if result.ire is not None: - raise result.ire - if result.ace is not None: - raise result.ace - if result.ase is not None: - raise result.ase - if result.ae is not None: - raise result.ae - raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllUserExperimentsWithPagination failed: unknown result"); + raise TApplicationException(TApplicationException.MISSING_RESULT, "getUserExperiments failed: unknown result"); def createExperiment(self, authzToken, gatewayId, experiment): """ @@ -8816,28 +8117,18 @@ def __init__(self, handler): self._processMap["updateProject"] = Processor.process_updateProject self._processMap["getProject"] = Processor.process_getProject self._processMap["deleteProject"] = Processor.process_deleteProject - self._processMap["getAllUserProjects"] = Processor.process_getAllUserProjects - self._processMap["getAllUserProjectsWithPagination"] = Processor.process_getAllUserProjectsWithPagination + self._processMap["getUserProjects"] = Processor.process_getUserProjects self._processMap["searchProjectsByProjectName"] = Processor.process_searchProjectsByProjectName - self._processMap["searchProjectsByProjectNameWithPagination"] = Processor.process_searchProjectsByProjectNameWithPagination self._processMap["searchProjectsByProjectDesc"] = Processor.process_searchProjectsByProjectDesc - self._processMap["searchProjectsByProjectDescWithPagination"] = Processor.process_searchProjectsByProjectDescWithPagination self._processMap["searchExperimentsByName"] = Processor.process_searchExperimentsByName - self._processMap["searchExperimentsByNameWithPagination"] = Processor.process_searchExperimentsByNameWithPagination self._processMap["searchExperimentsByDesc"] = Processor.process_searchExperimentsByDesc - self._processMap["searchExperimentsByDescWithPagination"] = Processor.process_searchExperimentsByDescWithPagination self._processMap["searchExperimentsByApplication"] = Processor.process_searchExperimentsByApplication - self._processMap["searchExperimentsByApplicationWithPagination"] = Processor.process_searchExperimentsByApplicationWithPagination self._processMap["searchExperimentsByStatus"] = Processor.process_searchExperimentsByStatus - self._processMap["searchExperimentsByStatusWithPagination"] = Processor.process_searchExperimentsByStatusWithPagination self._processMap["searchExperimentsByCreationTime"] = Processor.process_searchExperimentsByCreationTime - self._processMap["searchExperimentsByCreationTimeWithPagination"] = Processor.process_searchExperimentsByCreationTimeWithPagination self._processMap["searchExperiments"] = Processor.process_searchExperiments self._processMap["getExperimentStatistics"] = Processor.process_getExperimentStatistics - self._processMap["getAllExperimentsInProject"] = Processor.process_getAllExperimentsInProject - self._processMap["getAllExperimentsInProjectWithPagination"] = Processor.process_getAllExperimentsInProjectWithPagination - self._processMap["getAllUserExperiments"] = Processor.process_getAllUserExperiments - self._processMap["getAllUserExperimentsWithPagination"] = Processor.process_getAllUserExperimentsWithPagination + self._processMap["getExperimentsInProject"] = Processor.process_getExperimentsInProject + self._processMap["getUserExperiments"] = Processor.process_getUserExperiments self._processMap["createExperiment"] = Processor.process_createExperiment self._processMap["getExperiment"] = Processor.process_getExperiment self._processMap["updateExperiment"] = Processor.process_updateExperiment @@ -9225,31 +8516,13 @@ def process_deleteProject(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() - def process_getAllUserProjects(self, seqid, iprot, oprot): - args = getAllUserProjects_args() + def process_getUserProjects(self, seqid, iprot, oprot): + args = getUserProjects_args() args.read(iprot) iprot.readMessageEnd() - result = getAllUserProjects_result() + result = getUserProjects_result() try: - result.success = self._handler.getAllUserProjects(args.gatewayId, args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllUserProjects", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_getAllUserProjectsWithPagination(self, seqid, iprot, oprot): - args = getAllUserProjectsWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllUserProjectsWithPagination_result() - try: - result.success = self._handler.getAllUserProjectsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset) + result.success = self._handler.getUserProjects(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9258,7 +8531,7 @@ def process_getAllUserProjectsWithPagination(self, seqid, iprot, oprot): result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("getAllUserProjectsWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("getUserProjects", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9269,25 +8542,7 @@ def process_searchProjectsByProjectName(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchProjectsByProjectName_result() try: - result.success = self._handler.searchProjectsByProjectName(args.gatewayId, args.userName, args.projectName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchProjectsByProjectName", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchProjectsByProjectNameWithPagination(self, seqid, iprot, oprot): - args = searchProjectsByProjectNameWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchProjectsByProjectNameWithPagination_result() - try: - result.success = self._handler.searchProjectsByProjectNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset) + result.success = self._handler.searchProjectsByProjectName(args.authzToken, args.gatewayId, args.userName, args.projectName, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9296,7 +8551,7 @@ def process_searchProjectsByProjectNameWithPagination(self, seqid, iprot, oprot) result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchProjectsByProjectNameWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchProjectsByProjectName", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9307,25 +8562,7 @@ def process_searchProjectsByProjectDesc(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchProjectsByProjectDesc_result() try: - result.success = self._handler.searchProjectsByProjectDesc(args.gatewayId, args.userName, args.description) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchProjectsByProjectDesc", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchProjectsByProjectDescWithPagination(self, seqid, iprot, oprot): - args = searchProjectsByProjectDescWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchProjectsByProjectDescWithPagination_result() - try: - result.success = self._handler.searchProjectsByProjectDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset) + result.success = self._handler.searchProjectsByProjectDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9334,7 +8571,7 @@ def process_searchProjectsByProjectDescWithPagination(self, seqid, iprot, oprot) result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchProjectsByProjectDescWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchProjectsByProjectDesc", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9345,25 +8582,7 @@ def process_searchExperimentsByName(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchExperimentsByName_result() try: - result.success = self._handler.searchExperimentsByName(args.gatewayId, args.userName, args.expName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByName", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchExperimentsByNameWithPagination(self, seqid, iprot, oprot): - args = searchExperimentsByNameWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByNameWithPagination_result() - try: - result.success = self._handler.searchExperimentsByNameWithPagination(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset) + result.success = self._handler.searchExperimentsByName(args.authzToken, args.gatewayId, args.userName, args.expName, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9372,7 +8591,7 @@ def process_searchExperimentsByNameWithPagination(self, seqid, iprot, oprot): result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchExperimentsByNameWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchExperimentsByName", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9383,25 +8602,7 @@ def process_searchExperimentsByDesc(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchExperimentsByDesc_result() try: - result.success = self._handler.searchExperimentsByDesc(args.gatewayId, args.userName, args.description) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByDesc", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchExperimentsByDescWithPagination(self, seqid, iprot, oprot): - args = searchExperimentsByDescWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByDescWithPagination_result() - try: - result.success = self._handler.searchExperimentsByDescWithPagination(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset) + result.success = self._handler.searchExperimentsByDesc(args.authzToken, args.gatewayId, args.userName, args.description, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9410,7 +8611,7 @@ def process_searchExperimentsByDescWithPagination(self, seqid, iprot, oprot): result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchExperimentsByDescWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchExperimentsByDesc", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9421,25 +8622,7 @@ def process_searchExperimentsByApplication(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchExperimentsByApplication_result() try: - result.success = self._handler.searchExperimentsByApplication(args.gatewayId, args.userName, args.applicationId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByApplication", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchExperimentsByApplicationWithPagination(self, seqid, iprot, oprot): - args = searchExperimentsByApplicationWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByApplicationWithPagination_result() - try: - result.success = self._handler.searchExperimentsByApplicationWithPagination(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset) + result.success = self._handler.searchExperimentsByApplication(args.authzToken, args.gatewayId, args.userName, args.applicationId, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9448,7 +8631,7 @@ def process_searchExperimentsByApplicationWithPagination(self, seqid, iprot, opr result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchExperimentsByApplicationWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchExperimentsByApplication", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9459,25 +8642,7 @@ def process_searchExperimentsByStatus(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchExperimentsByStatus_result() try: - result.success = self._handler.searchExperimentsByStatus(args.gatewayId, args.userName, args.experimentState) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByStatus", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchExperimentsByStatusWithPagination(self, seqid, iprot, oprot): - args = searchExperimentsByStatusWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByStatusWithPagination_result() - try: - result.success = self._handler.searchExperimentsByStatusWithPagination(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset) + result.success = self._handler.searchExperimentsByStatus(args.authzToken, args.gatewayId, args.userName, args.experimentState, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9486,7 +8651,7 @@ def process_searchExperimentsByStatusWithPagination(self, seqid, iprot, oprot): result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchExperimentsByStatusWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchExperimentsByStatus", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9497,25 +8662,7 @@ def process_searchExperimentsByCreationTime(self, seqid, iprot, oprot): iprot.readMessageEnd() result = searchExperimentsByCreationTime_result() try: - result.success = self._handler.searchExperimentsByCreationTime(args.gatewayId, args.userName, args.fromTime, args.toTime) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("searchExperimentsByCreationTime", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_searchExperimentsByCreationTimeWithPagination(self, seqid, iprot, oprot): - args = searchExperimentsByCreationTimeWithPagination_args() - args.read(iprot) - iprot.readMessageEnd() - result = searchExperimentsByCreationTimeWithPagination_result() - try: - result.success = self._handler.searchExperimentsByCreationTimeWithPagination(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset) + result.success = self._handler.searchExperimentsByCreationTime(args.authzToken, args.gatewayId, args.userName, args.fromTime, args.toTime, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9524,7 +8671,7 @@ def process_searchExperimentsByCreationTimeWithPagination(self, seqid, iprot, op result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("searchExperimentsByCreationTimeWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("searchExperimentsByCreationTime", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -9569,33 +8716,13 @@ def process_getExperimentStatistics(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() - def process_getAllExperimentsInProject(self, seqid, iprot, oprot): - args = getAllExperimentsInProject_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllExperimentsInProject_result() - try: - result.success = self._handler.getAllExperimentsInProject(args.projectId) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - except apache.airavata.api.error.ttypes.ProjectNotFoundException, pnfe: - result.pnfe = pnfe - oprot.writeMessageBegin("getAllExperimentsInProject", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_getAllExperimentsInProjectWithPagination(self, seqid, iprot, oprot): - args = getAllExperimentsInProjectWithPagination_args() + def process_getExperimentsInProject(self, seqid, iprot, oprot): + args = getExperimentsInProject_args() args.read(iprot) iprot.readMessageEnd() - result = getAllExperimentsInProjectWithPagination_result() + result = getExperimentsInProject_result() try: - result.success = self._handler.getAllExperimentsInProjectWithPagination(args.authzToken, args.projectId, args.limit, args.offset) + result.success = self._handler.getExperimentsInProject(args.authzToken, args.projectId, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9606,36 +8733,18 @@ def process_getAllExperimentsInProjectWithPagination(self, seqid, iprot, oprot): result.pnfe = pnfe except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("getAllExperimentsInProjectWithPagination", TMessageType.REPLY, seqid) - result.write(oprot) - oprot.writeMessageEnd() - oprot.trans.flush() - - def process_getAllUserExperiments(self, seqid, iprot, oprot): - args = getAllUserExperiments_args() - args.read(iprot) - iprot.readMessageEnd() - result = getAllUserExperiments_result() - try: - result.success = self._handler.getAllUserExperiments(args.gatewayId, args.userName) - except apache.airavata.api.error.ttypes.InvalidRequestException, ire: - result.ire = ire - except apache.airavata.api.error.ttypes.AiravataClientException, ace: - result.ace = ace - except apache.airavata.api.error.ttypes.AiravataSystemException, ase: - result.ase = ase - oprot.writeMessageBegin("getAllUserExperiments", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("getExperimentsInProject", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() - def process_getAllUserExperimentsWithPagination(self, seqid, iprot, oprot): - args = getAllUserExperimentsWithPagination_args() + def process_getUserExperiments(self, seqid, iprot, oprot): + args = getUserExperiments_args() args.read(iprot) iprot.readMessageEnd() - result = getAllUserExperimentsWithPagination_result() + result = getUserExperiments_result() try: - result.success = self._handler.getAllUserExperimentsWithPagination(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset) + result.success = self._handler.getUserExperiments(args.authzToken, args.gatewayId, args.userName, args.limit, args.offset) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -9644,7 +8753,7 @@ def process_getAllUserExperimentsWithPagination(self, seqid, iprot, oprot): result.ase = ase except apache.airavata.api.error.ttypes.AuthorizationException, ae: result.ae = ae - oprot.writeMessageBegin("getAllUserExperimentsWithPagination", TMessageType.REPLY, seqid) + oprot.writeMessageBegin("getUserExperiments", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() @@ -14235,2404 +13344,12 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRUCT: - self.ae = apache.airavata.api.error.ttypes.AuthorizationException() - self.ae.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('deleteProject_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.BOOL, 0) - oprot.writeBool(self.success) - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() - if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 5) - self.ae.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.pnfe) - value = (value * 31) ^ hash(self.ae) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class getAllUserProjects_args: - """ - Attributes: - - gatewayId - - userName - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - ) - - def __init__(self, gatewayId=None, userName=None,): - self.gatewayId = gatewayId - self.userName = userName - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('getAllUserProjects_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class getAllUserProjects_result: - """ - Attributes: - - success - - ire - - ace - - ase - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype19, _size16) = iprot.readListBegin() - for _i20 in xrange(_size16): - _elem21 = apache.airavata.model.workspace.ttypes.Project() - _elem21.read(iprot) - self.success.append(_elem21) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('getAllUserProjects_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter22 in self.success: - iter22.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class getAllUserProjectsWithPagination_args: - """ - Attributes: - - authzToken - - gatewayId - - userName - - limit - - offset - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.I32, 'limit', None, None, ), # 4 - (5, TType.I32, 'offset', None, None, ), # 5 - ) - - def __init__(self, authzToken=None, gatewayId=None, userName=None, limit=None, offset=None,): - self.authzToken = authzToken - self.gatewayId = gatewayId - self.userName = userName - self.limit = limit - self.offset = offset - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() - self.authzToken.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.I32: - self.limit = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.offset = iprot.readI32(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('getAllUserProjectsWithPagination_args') - if self.authzToken is not None: - oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) - self.authzToken.write(oprot) - oprot.writeFieldEnd() - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 2) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 4) - oprot.writeI32(self.limit) - oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 5) - oprot.writeI32(self.offset) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.authzToken is None: - raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class getAllUserProjectsWithPagination_result: - """ - Attributes: - - success - - ire - - ace - - ase - - ae - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - self.ae = ae - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype26, _size23) = iprot.readListBegin() - for _i27 in xrange(_size23): - _elem28 = apache.airavata.model.workspace.ttypes.Project() - _elem28.read(iprot) - self.success.append(_elem28) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.ae = apache.airavata.api.error.ttypes.AuthorizationException() - self.ae.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('getAllUserProjectsWithPagination_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter29 in self.success: - iter29.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 4) - self.ae.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.ae) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectName_args: - """ - Attributes: - - gatewayId - - userName - - projectName - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'projectName', None, None, ), # 3 - ) - - def __init__(self, gatewayId=None, userName=None, projectName=None,): - self.gatewayId = gatewayId - self.userName = userName - self.projectName = projectName - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.projectName = iprot.readString(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectName_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.projectName is not None: - oprot.writeFieldBegin('projectName', TType.STRING, 3) - oprot.writeString(self.projectName) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.projectName is None: - raise TProtocol.TProtocolException(message='Required field projectName is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.projectName) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectName_result: - """ - Attributes: - - success - - ire - - ace - - ase - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype33, _size30) = iprot.readListBegin() - for _i34 in xrange(_size30): - _elem35 = apache.airavata.model.workspace.ttypes.Project() - _elem35.read(iprot) - self.success.append(_elem35) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectName_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter36 in self.success: - iter36.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectNameWithPagination_args: - """ - Attributes: - - authzToken - - gatewayId - - userName - - projectName - - limit - - offset - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.STRING, 'projectName', None, None, ), # 4 - (5, TType.I32, 'limit', None, None, ), # 5 - (6, TType.I32, 'offset', None, None, ), # 6 - ) - - def __init__(self, authzToken=None, gatewayId=None, userName=None, projectName=None, limit=None, offset=None,): - self.authzToken = authzToken - self.gatewayId = gatewayId - self.userName = userName - self.projectName = projectName - self.limit = limit - self.offset = offset - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() - self.authzToken.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.projectName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.limit = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.offset = iprot.readI32(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectNameWithPagination_args') - if self.authzToken is not None: - oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) - self.authzToken.write(oprot) - oprot.writeFieldEnd() - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 2) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.projectName is not None: - oprot.writeFieldBegin('projectName', TType.STRING, 4) - oprot.writeString(self.projectName) - oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 5) - oprot.writeI32(self.limit) - oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 6) - oprot.writeI32(self.offset) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.authzToken is None: - raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.projectName is None: - raise TProtocol.TProtocolException(message='Required field projectName is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.projectName) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectNameWithPagination_result: - """ - Attributes: - - success - - ire - - ace - - ase - - ae - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - self.ae = ae - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype40, _size37) = iprot.readListBegin() - for _i41 in xrange(_size37): - _elem42 = apache.airavata.model.workspace.ttypes.Project() - _elem42.read(iprot) - self.success.append(_elem42) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.ae = apache.airavata.api.error.ttypes.AuthorizationException() - self.ae.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectNameWithPagination_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter43 in self.success: - iter43.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 4) - self.ae.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.ae) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectDesc_args: - """ - Attributes: - - gatewayId - - userName - - description - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'description', None, None, ), # 3 - ) - - def __init__(self, gatewayId=None, userName=None, description=None,): - self.gatewayId = gatewayId - self.userName = userName - self.description = description - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.description = iprot.readString(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectDesc_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.description) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectDesc_result: - """ - Attributes: - - success - - ire - - ace - - ase - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype47, _size44) = iprot.readListBegin() - for _i48 in xrange(_size44): - _elem49 = apache.airavata.model.workspace.ttypes.Project() - _elem49.read(iprot) - self.success.append(_elem49) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectDesc_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter50 in self.success: - iter50.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectDescWithPagination_args: - """ - Attributes: - - authzToken - - gatewayId - - userName - - description - - limit - - offset - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.STRING, 'description', None, None, ), # 4 - (5, TType.I32, 'limit', None, None, ), # 5 - (6, TType.I32, 'offset', None, None, ), # 6 - ) - - def __init__(self, authzToken=None, gatewayId=None, userName=None, description=None, limit=None, offset=None,): - self.authzToken = authzToken - self.gatewayId = gatewayId - self.userName = userName - self.description = description - self.limit = limit - self.offset = offset - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() - self.authzToken.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.description = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.limit = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.offset = iprot.readI32(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectDescWithPagination_args') - if self.authzToken is not None: - oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) - self.authzToken.write(oprot) - oprot.writeFieldEnd() - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 2) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 4) - oprot.writeString(self.description) - oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 5) - oprot.writeI32(self.limit) - oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 6) - oprot.writeI32(self.offset) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.authzToken is None: - raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.description) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchProjectsByProjectDescWithPagination_result: - """ - Attributes: - - success - - ire - - ace - - ase - - ae - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - self.ae = ae - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype54, _size51) = iprot.readListBegin() - for _i55 in xrange(_size51): - _elem56 = apache.airavata.model.workspace.ttypes.Project() - _elem56.read(iprot) - self.success.append(_elem56) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.ae = apache.airavata.api.error.ttypes.AuthorizationException() - self.ae.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchProjectsByProjectDescWithPagination_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter57 in self.success: - iter57.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 4) - self.ae.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.ae) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByName_args: - """ - Attributes: - - gatewayId - - userName - - expName - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'expName', None, None, ), # 3 - ) - - def __init__(self, gatewayId=None, userName=None, expName=None,): - self.gatewayId = gatewayId - self.userName = userName - self.expName = expName - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.expName = iprot.readString(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByName_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.expName is not None: - oprot.writeFieldBegin('expName', TType.STRING, 3) - oprot.writeString(self.expName) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.expName is None: - raise TProtocol.TProtocolException(message='Required field expName is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.expName) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByName_result: - """ - Attributes: - - success - - ire - - ace - - ase - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype61, _size58) = iprot.readListBegin() - for _i62 in xrange(_size58): - _elem63 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem63.read(iprot) - self.success.append(_elem63) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByName_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter64 in self.success: - iter64.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByNameWithPagination_args: - """ - Attributes: - - authzToken - - gatewayId - - userName - - expName - - limit - - offset - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.STRING, 'expName', None, None, ), # 4 - (5, TType.I32, 'limit', None, None, ), # 5 - (6, TType.I32, 'offset', None, None, ), # 6 - ) - - def __init__(self, authzToken=None, gatewayId=None, userName=None, expName=None, limit=None, offset=None,): - self.authzToken = authzToken - self.gatewayId = gatewayId - self.userName = userName - self.expName = expName - self.limit = limit - self.offset = offset - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() - self.authzToken.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.expName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.limit = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.offset = iprot.readI32(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByNameWithPagination_args') - if self.authzToken is not None: - oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) - self.authzToken.write(oprot) - oprot.writeFieldEnd() - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 2) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.expName is not None: - oprot.writeFieldBegin('expName', TType.STRING, 4) - oprot.writeString(self.expName) - oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 5) - oprot.writeI32(self.limit) - oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 6) - oprot.writeI32(self.offset) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.authzToken is None: - raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.expName is None: - raise TProtocol.TProtocolException(message='Required field expName is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.expName) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByNameWithPagination_result: - """ - Attributes: - - success - - ire - - ace - - ase - - ae - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - self.ae = ae - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype68, _size65) = iprot.readListBegin() - for _i69 in xrange(_size65): - _elem70 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem70.read(iprot) - self.success.append(_elem70) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: - self.ae = apache.airavata.api.error.ttypes.AuthorizationException() - self.ae.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByNameWithPagination_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter71 in self.success: - iter71.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 4) - self.ae.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.ae) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByDesc_args: - """ - Attributes: - - gatewayId - - userName - - description - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'description', None, None, ), # 3 - ) - - def __init__(self, gatewayId=None, userName=None, description=None,): - self.gatewayId = gatewayId - self.userName = userName - self.description = description - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.description = iprot.readString(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByDesc_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 3) - oprot.writeString(self.description) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.description) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByDesc_result: - """ - Attributes: - - success - - ire - - ace - - ase - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype75, _size72) = iprot.readListBegin() - for _i76 in xrange(_size72): - _elem77 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem77.read(iprot) - self.success.append(_elem77) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByDesc_result') - if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter78 in self.success: - iter78.write(oprot) - oprot.writeListEnd() - oprot.writeFieldEnd() - if self.ire is not None: - oprot.writeFieldBegin('ire', TType.STRUCT, 1) - self.ire.write(oprot) - oprot.writeFieldEnd() - if self.ace is not None: - oprot.writeFieldBegin('ace', TType.STRUCT, 2) - self.ace.write(oprot) - oprot.writeFieldEnd() - if self.ase is not None: - oprot.writeFieldBegin('ase', TType.STRUCT, 3) - self.ase.write(oprot) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ire) - value = (value * 31) ^ hash(self.ace) - value = (value * 31) ^ hash(self.ase) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByDescWithPagination_args: - """ - Attributes: - - authzToken - - gatewayId - - userName - - description - - limit - - offset - """ - - thrift_spec = ( - None, # 0 - (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.STRING, 'description', None, None, ), # 4 - (5, TType.I32, 'limit', None, None, ), # 5 - (6, TType.I32, 'offset', None, None, ), # 6 - ) - - def __init__(self, authzToken=None, gatewayId=None, userName=None, description=None, limit=None, offset=None,): - self.authzToken = authzToken - self.gatewayId = gatewayId - self.userName = userName - self.description = description - self.limit = limit - self.offset = offset - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 1: - if ftype == TType.STRUCT: - self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() - self.authzToken.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRING: - self.userName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.description = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.I32: - self.limit = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.I32: - self.offset = iprot.readI32(); - else: - iprot.skip(ftype) - else: - iprot.skip(ftype) - iprot.readFieldEnd() - iprot.readStructEnd() - - def write(self, oprot): - if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: - oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) - return - oprot.writeStructBegin('searchExperimentsByDescWithPagination_args') - if self.authzToken is not None: - oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) - self.authzToken.write(oprot) - oprot.writeFieldEnd() - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 2) - oprot.writeString(self.gatewayId) - oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 3) - oprot.writeString(self.userName) - oprot.writeFieldEnd() - if self.description is not None: - oprot.writeFieldBegin('description', TType.STRING, 4) - oprot.writeString(self.description) - oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 5) - oprot.writeI32(self.limit) - oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 6) - oprot.writeI32(self.offset) - oprot.writeFieldEnd() - oprot.writeFieldStop() - oprot.writeStructEnd() - - def validate(self): - if self.authzToken is None: - raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.description is None: - raise TProtocol.TProtocolException(message='Required field description is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') - return - - - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.description) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) - return value - - def __repr__(self): - L = ['%s=%r' % (key, value) - for key, value in self.__dict__.iteritems()] - return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) - - def __eq__(self, other): - return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ - - def __ne__(self, other): - return not (self == other) - -class searchExperimentsByDescWithPagination_result: - """ - Attributes: - - success - - ire - - ace - - ase - - ae - """ - - thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 - (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 - (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 - (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 - ) - - def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): - self.success = success - self.ire = ire - self.ace = ace - self.ase = ase - self.ae = ae - - def read(self, iprot): - if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: - fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) - return - iprot.readStructBegin() - while True: - (fname, ftype, fid) = iprot.readFieldBegin() - if ftype == TType.STOP: - break - if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype82, _size79) = iprot.readListBegin() - for _i83 in xrange(_size79): - _elem84 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem84.read(iprot) - self.success.append(_elem84) - iprot.readListEnd() - else: - iprot.skip(ftype) - elif fid == 1: - if ftype == TType.STRUCT: - self.ire = apache.airavata.api.error.ttypes.InvalidRequestException() - self.ire.read(iprot) - else: - iprot.skip(ftype) - elif fid == 2: - if ftype == TType.STRUCT: - self.ace = apache.airavata.api.error.ttypes.AiravataClientException() - self.ace.read(iprot) - else: - iprot.skip(ftype) - elif fid == 3: - if ftype == TType.STRUCT: - self.ase = apache.airavata.api.error.ttypes.AiravataSystemException() - self.ase.read(iprot) - else: - iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: self.ae = apache.airavata.api.error.ttypes.AuthorizationException() self.ae.read(iprot) else: @@ -16646,13 +13363,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByDescWithPagination_result') + oprot.writeStructBegin('deleteProject_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter85 in self.success: - iter85.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.BOOL, 0) + oprot.writeBool(self.success) oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -16666,8 +13380,12 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 4) + oprot.writeFieldBegin('ae', TType.STRUCT, 5) self.ae.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16683,6 +13401,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) + value = (value * 31) ^ hash(self.pnfe) value = (value * 31) ^ hash(self.ae) return value @@ -16697,25 +13416,31 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplication_args: +class getUserProjects_args: """ Attributes: + - authzToken - gatewayId - userName - - applicationId + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.STRING, 'applicationId', None, None, ), # 3 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.STRING, 'userName', None, None, ), # 3 + (4, TType.I32, 'limit', None, None, ), # 4 + (5, TType.I32, 'offset', None, None, ), # 5 ) - def __init__(self, gatewayId=None, userName=None, applicationId=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, limit=None, offset=None,): + self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.applicationId = applicationId + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -16727,18 +13452,29 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.userName = iprot.readString(); + self.gatewayId = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: if ftype == TType.STRING: - self.applicationId = iprot.readString(); + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -16750,37 +13486,51 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplication_args') + oprot.writeStructBegin('getUserProjects_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.applicationId is not None: - oprot.writeFieldBegin('applicationId', TType.STRING, 3) - oprot.writeString(self.applicationId) + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 4) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 5) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.applicationId is None: - raise TProtocol.TProtocolException(message='Required field applicationId is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.applicationId) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -16794,27 +13544,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplication_result: +class getUserProjects_result: """ Attributes: - success - ire - ace - ase + - ae """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.ae = ae def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -16828,11 +13581,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype89, _size86) = iprot.readListBegin() - for _i90 in xrange(_size86): - _elem91 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem91.read(iprot) - self.success.append(_elem91) + (_etype19, _size16) = iprot.readListBegin() + for _i20 in xrange(_size16): + _elem21 = apache.airavata.model.workspace.ttypes.Project() + _elem21.read(iprot) + self.success.append(_elem21) iprot.readListEnd() else: iprot.skip(ftype) @@ -16854,6 +13607,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.ae = apache.airavata.api.error.ttypes.AuthorizationException() + self.ae.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -16863,12 +13622,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplication_result') + oprot.writeStructBegin('getUserProjects_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter92 in self.success: - iter92.write(oprot) + for iter22 in self.success: + iter22.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -16883,6 +13642,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.ae is not None: + oprot.writeFieldBegin('ae', TType.STRUCT, 4) + self.ae.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -16896,6 +13659,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) + value = (value * 31) ^ hash(self.ae) return value def __repr__(self): @@ -16909,13 +13673,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplicationWithPagination_args: +class searchProjectsByProjectName_args: """ Attributes: - authzToken - gatewayId - userName - - applicationId + - projectName - limit - offset """ @@ -16925,16 +13689,16 @@ class searchExperimentsByApplicationWithPagination_args: (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.STRING, 'applicationId', None, None, ), # 4 + (4, TType.STRING, 'projectName', None, None, ), # 4 (5, TType.I32, 'limit', None, None, ), # 5 (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, authzToken=None, gatewayId=None, userName=None, applicationId=None, limit=None, offset=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, projectName=None, limit=None, offset=None,): self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.applicationId = applicationId + self.projectName = projectName self.limit = limit self.offset = offset @@ -16965,7 +13729,7 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRING: - self.applicationId = iprot.readString(); + self.projectName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: @@ -16987,7 +13751,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplicationWithPagination_args') + oprot.writeStructBegin('searchProjectsByProjectName_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -17000,9 +13764,9 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.applicationId is not None: - oprot.writeFieldBegin('applicationId', TType.STRING, 4) - oprot.writeString(self.applicationId) + if self.projectName is not None: + oprot.writeFieldBegin('projectName', TType.STRING, 4) + oprot.writeString(self.projectName) oprot.writeFieldEnd() if self.limit is not None: oprot.writeFieldBegin('limit', TType.I32, 5) @@ -17022,8 +13786,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.applicationId is None: - raise TProtocol.TProtocolException(message='Required field applicationId is unset!') + if self.projectName is None: + raise TProtocol.TProtocolException(message='Required field projectName is unset!') if self.limit is None: raise TProtocol.TProtocolException(message='Required field limit is unset!') if self.offset is None: @@ -17036,7 +13800,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.applicationId) + value = (value * 31) ^ hash(self.projectName) value = (value * 31) ^ hash(self.limit) value = (value * 31) ^ hash(self.offset) return value @@ -17052,7 +13816,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByApplicationWithPagination_result: +class searchProjectsByProjectName_result: """ Attributes: - success @@ -17063,7 +13827,7 @@ class searchExperimentsByApplicationWithPagination_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -17089,11 +13853,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype96, _size93) = iprot.readListBegin() - for _i97 in xrange(_size93): - _elem98 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem98.read(iprot) - self.success.append(_elem98) + (_etype26, _size23) = iprot.readListBegin() + for _i27 in xrange(_size23): + _elem28 = apache.airavata.model.workspace.ttypes.Project() + _elem28.read(iprot) + self.success.append(_elem28) iprot.readListEnd() else: iprot.skip(ftype) @@ -17130,12 +13894,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByApplicationWithPagination_result') + oprot.writeStructBegin('searchProjectsByProjectName_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter99 in self.success: - iter99.write(oprot) + for iter29 in self.success: + iter29.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17181,25 +13945,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatus_args: +class searchProjectsByProjectDesc_args: """ Attributes: + - authzToken - gatewayId - userName - - experimentState + - description + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.I32, 'experimentState', None, None, ), # 3 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.STRING, 'userName', None, None, ), # 3 + (4, TType.STRING, 'description', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, gatewayId=None, userName=None, experimentState=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, description=None, limit=None, offset=None,): + self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.experimentState = experimentState + self.description = description + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -17211,18 +13984,34 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: self.gatewayId = iprot.readString(); else: iprot.skip(ftype) - elif fid == 2: + elif fid == 3: if ftype == TType.STRING: self.userName = iprot.readString(); else: iprot.skip(ftype) - elif fid == 3: + elif fid == 4: + if ftype == TType.STRING: + self.description = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 5: if ftype == TType.I32: - self.experimentState = iprot.readI32(); + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -17234,37 +14023,58 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatus_args') + oprot.writeStructBegin('searchProjectsByProjectDesc_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.experimentState is not None: - oprot.writeFieldBegin('experimentState', TType.I32, 3) - oprot.writeI32(self.experimentState) + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 4) + oprot.writeString(self.description) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 5) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 6) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.experimentState is None: - raise TProtocol.TProtocolException(message='Required field experimentState is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.experimentState) + value = (value * 31) ^ hash(self.description) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -17278,27 +14088,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatus_result: +class searchProjectsByProjectDesc_result: """ Attributes: - success - ire - ace - ase + - ae """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.workspace.ttypes.Project, apache.airavata.model.workspace.ttypes.Project.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.ae = ae def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -17312,11 +14125,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype103, _size100) = iprot.readListBegin() - for _i104 in xrange(_size100): - _elem105 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem105.read(iprot) - self.success.append(_elem105) + (_etype33, _size30) = iprot.readListBegin() + for _i34 in xrange(_size30): + _elem35 = apache.airavata.model.workspace.ttypes.Project() + _elem35.read(iprot) + self.success.append(_elem35) iprot.readListEnd() else: iprot.skip(ftype) @@ -17338,6 +14151,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.ae = apache.airavata.api.error.ttypes.AuthorizationException() + self.ae.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -17347,12 +14166,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatus_result') + oprot.writeStructBegin('searchProjectsByProjectDesc_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter106 in self.success: - iter106.write(oprot) + for iter36 in self.success: + iter36.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17367,6 +14186,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.ae is not None: + oprot.writeFieldBegin('ae', TType.STRUCT, 4) + self.ae.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17380,6 +14203,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) + value = (value * 31) ^ hash(self.ae) return value def __repr__(self): @@ -17393,13 +14217,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatusWithPagination_args: +class searchExperimentsByName_args: """ Attributes: - authzToken - gatewayId - userName - - experimentState + - expName - limit - offset """ @@ -17409,16 +14233,16 @@ class searchExperimentsByStatusWithPagination_args: (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.I32, 'experimentState', None, None, ), # 4 + (4, TType.STRING, 'expName', None, None, ), # 4 (5, TType.I32, 'limit', None, None, ), # 5 (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, authzToken=None, gatewayId=None, userName=None, experimentState=None, limit=None, offset=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, expName=None, limit=None, offset=None,): self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.experimentState = experimentState + self.expName = expName self.limit = limit self.offset = offset @@ -17448,8 +14272,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I32: - self.experimentState = iprot.readI32(); + if ftype == TType.STRING: + self.expName = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: @@ -17471,7 +14295,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatusWithPagination_args') + oprot.writeStructBegin('searchExperimentsByName_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -17484,9 +14308,9 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.experimentState is not None: - oprot.writeFieldBegin('experimentState', TType.I32, 4) - oprot.writeI32(self.experimentState) + if self.expName is not None: + oprot.writeFieldBegin('expName', TType.STRING, 4) + oprot.writeString(self.expName) oprot.writeFieldEnd() if self.limit is not None: oprot.writeFieldBegin('limit', TType.I32, 5) @@ -17506,8 +14330,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.experimentState is None: - raise TProtocol.TProtocolException(message='Required field experimentState is unset!') + if self.expName is None: + raise TProtocol.TProtocolException(message='Required field expName is unset!') if self.limit is None: raise TProtocol.TProtocolException(message='Required field limit is unset!') if self.offset is None: @@ -17520,7 +14344,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.experimentState) + value = (value * 31) ^ hash(self.expName) value = (value * 31) ^ hash(self.limit) value = (value * 31) ^ hash(self.offset) return value @@ -17536,7 +14360,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByStatusWithPagination_result: +class searchExperimentsByName_result: """ Attributes: - success @@ -17573,11 +14397,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype110, _size107) = iprot.readListBegin() - for _i111 in xrange(_size107): - _elem112 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem112.read(iprot) - self.success.append(_elem112) + (_etype40, _size37) = iprot.readListBegin() + for _i41 in xrange(_size37): + _elem42 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem42.read(iprot) + self.success.append(_elem42) iprot.readListEnd() else: iprot.skip(ftype) @@ -17614,12 +14438,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByStatusWithPagination_result') + oprot.writeStructBegin('searchExperimentsByName_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter113 in self.success: - iter113.write(oprot) + for iter43 in self.success: + iter43.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17665,28 +14489,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTime_args: +class searchExperimentsByDesc_args: """ Attributes: + - authzToken - gatewayId - userName - - fromTime - - toTime + - description + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 - (3, TType.I64, 'fromTime', None, None, ), # 3 - (4, TType.I64, 'toTime', None, None, ), # 4 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.STRING, 'userName', None, None, ), # 3 + (4, TType.STRING, 'description', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, gatewayId=None, userName=None, fromTime=None, toTime=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, description=None, limit=None, offset=None,): + self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.fromTime = fromTime - self.toTime = toTime + self.description = description + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -17698,23 +14528,34 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.userName = iprot.readString(); + self.gatewayId = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I64: - self.fromTime = iprot.readI64(); + if ftype == TType.STRING: + self.userName = iprot.readString(); else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I64: - self.toTime = iprot.readI64(); + if ftype == TType.STRING: + self.description = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -17726,44 +14567,58 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTime_args') + oprot.writeStructBegin('searchExperimentsByDesc_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.fromTime is not None: - oprot.writeFieldBegin('fromTime', TType.I64, 3) - oprot.writeI64(self.fromTime) + if self.description is not None: + oprot.writeFieldBegin('description', TType.STRING, 4) + oprot.writeString(self.description) oprot.writeFieldEnd() - if self.toTime is not None: - oprot.writeFieldBegin('toTime', TType.I64, 4) - oprot.writeI64(self.toTime) + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 5) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 6) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.fromTime is None: - raise TProtocol.TProtocolException(message='Required field fromTime is unset!') - if self.toTime is None: - raise TProtocol.TProtocolException(message='Required field toTime is unset!') + if self.description is None: + raise TProtocol.TProtocolException(message='Required field description is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.fromTime) - value = (value * 31) ^ hash(self.toTime) + value = (value * 31) ^ hash(self.description) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -17777,13 +14632,14 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTime_result: +class searchExperimentsByDesc_result: """ Attributes: - success - ire - ace - ase + - ae """ thrift_spec = ( @@ -17791,13 +14647,15 @@ class searchExperimentsByCreationTime_result: (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.ae = ae def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -17811,11 +14669,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype117, _size114) = iprot.readListBegin() - for _i118 in xrange(_size114): - _elem119 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem119.read(iprot) - self.success.append(_elem119) + (_etype47, _size44) = iprot.readListBegin() + for _i48 in xrange(_size44): + _elem49 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem49.read(iprot) + self.success.append(_elem49) iprot.readListEnd() else: iprot.skip(ftype) @@ -17837,6 +14695,12 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.ae = apache.airavata.api.error.ttypes.AuthorizationException() + self.ae.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -17846,12 +14710,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTime_result') + oprot.writeStructBegin('searchExperimentsByDesc_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter120 in self.success: - iter120.write(oprot) + for iter50 in self.success: + iter50.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -17866,6 +14730,10 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.ae is not None: + oprot.writeFieldBegin('ae', TType.STRUCT, 4) + self.ae.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17879,6 +14747,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) + value = (value * 31) ^ hash(self.ae) return value def __repr__(self): @@ -17892,14 +14761,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTimeWithPagination_args: +class searchExperimentsByApplication_args: """ Attributes: - authzToken - gatewayId - userName - - fromTime - - toTime + - applicationId - limit - offset """ @@ -17909,18 +14777,16 @@ class searchExperimentsByCreationTimeWithPagination_args: (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.I64, 'fromTime', None, None, ), # 4 - (5, TType.I64, 'toTime', None, None, ), # 5 - (6, TType.I32, 'limit', None, None, ), # 6 - (7, TType.I32, 'offset', None, None, ), # 7 + (4, TType.STRING, 'applicationId', None, None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, authzToken=None, gatewayId=None, userName=None, fromTime=None, toTime=None, limit=None, offset=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, applicationId=None, limit=None, offset=None,): self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.fromTime = fromTime - self.toTime = toTime + self.applicationId = applicationId self.limit = limit self.offset = offset @@ -17950,21 +14816,16 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I64: - self.fromTime = iprot.readI64(); + if ftype == TType.STRING: + self.applicationId = iprot.readString(); else: iprot.skip(ftype) elif fid == 5: - if ftype == TType.I64: - self.toTime = iprot.readI64(); - else: - iprot.skip(ftype) - elif fid == 6: if ftype == TType.I32: self.limit = iprot.readI32(); else: iprot.skip(ftype) - elif fid == 7: + elif fid == 6: if ftype == TType.I32: self.offset = iprot.readI32(); else: @@ -17978,7 +14839,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTimeWithPagination_args') + oprot.writeStructBegin('searchExperimentsByApplication_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -17991,20 +14852,16 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.fromTime is not None: - oprot.writeFieldBegin('fromTime', TType.I64, 4) - oprot.writeI64(self.fromTime) - oprot.writeFieldEnd() - if self.toTime is not None: - oprot.writeFieldBegin('toTime', TType.I64, 5) - oprot.writeI64(self.toTime) + if self.applicationId is not None: + oprot.writeFieldBegin('applicationId', TType.STRING, 4) + oprot.writeString(self.applicationId) oprot.writeFieldEnd() if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 6) + oprot.writeFieldBegin('limit', TType.I32, 5) oprot.writeI32(self.limit) oprot.writeFieldEnd() if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 7) + oprot.writeFieldBegin('offset', TType.I32, 6) oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18017,10 +14874,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') - if self.fromTime is None: - raise TProtocol.TProtocolException(message='Required field fromTime is unset!') - if self.toTime is None: - raise TProtocol.TProtocolException(message='Required field toTime is unset!') + if self.applicationId is None: + raise TProtocol.TProtocolException(message='Required field applicationId is unset!') if self.limit is None: raise TProtocol.TProtocolException(message='Required field limit is unset!') if self.offset is None: @@ -18033,8 +14888,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.fromTime) - value = (value * 31) ^ hash(self.toTime) + value = (value * 31) ^ hash(self.applicationId) value = (value * 31) ^ hash(self.limit) value = (value * 31) ^ hash(self.offset) return value @@ -18050,7 +14904,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperimentsByCreationTimeWithPagination_result: +class searchExperimentsByApplication_result: """ Attributes: - success @@ -18087,11 +14941,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype124, _size121) = iprot.readListBegin() - for _i125 in xrange(_size121): - _elem126 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem126.read(iprot) - self.success.append(_elem126) + (_etype54, _size51) = iprot.readListBegin() + for _i55 in xrange(_size51): + _elem56 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem56.read(iprot) + self.success.append(_elem56) iprot.readListEnd() else: iprot.skip(ftype) @@ -18128,12 +14982,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperimentsByCreationTimeWithPagination_result') + oprot.writeStructBegin('searchExperimentsByApplication_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter127 in self.success: - iter127.write(oprot) + for iter57 in self.success: + iter57.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -18179,13 +15033,13 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperiments_args: +class searchExperimentsByStatus_args: """ Attributes: - authzToken - gatewayId - userName - - filters + - experimentState - limit - offset """ @@ -18195,16 +15049,16 @@ class searchExperiments_args: (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 (3, TType.STRING, 'userName', None, None, ), # 3 - (4, TType.MAP, 'filters', (TType.I32,None,TType.STRING,None), None, ), # 4 + (4, TType.I32, 'experimentState', None, None, ), # 4 (5, TType.I32, 'limit', None, None, ), # 5 (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, authzToken=None, gatewayId=None, userName=None, filters=None, limit=None, offset=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, experimentState=None, limit=None, offset=None,): self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName - self.filters = filters + self.experimentState = experimentState self.limit = limit self.offset = offset @@ -18234,14 +15088,8 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.MAP: - self.filters = {} - (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() - for _i132 in xrange(_size128): - _key133 = iprot.readI32(); - _val134 = iprot.readString(); - self.filters[_key133] = _val134 - iprot.readMapEnd() + if ftype == TType.I32: + self.experimentState = iprot.readI32(); else: iprot.skip(ftype) elif fid == 5: @@ -18263,7 +15111,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperiments_args') + oprot.writeStructBegin('searchExperimentsByStatus_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -18276,13 +15124,9 @@ def write(self, oprot): oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() - if self.filters is not None: - oprot.writeFieldBegin('filters', TType.MAP, 4) - oprot.writeMapBegin(TType.I32, TType.STRING, len(self.filters)) - for kiter135,viter136 in self.filters.items(): - oprot.writeI32(kiter135) - oprot.writeString(viter136) - oprot.writeMapEnd() + if self.experimentState is not None: + oprot.writeFieldBegin('experimentState', TType.I32, 4) + oprot.writeI32(self.experimentState) oprot.writeFieldEnd() if self.limit is not None: oprot.writeFieldBegin('limit', TType.I32, 5) @@ -18302,6 +15146,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.experimentState is None: + raise TProtocol.TProtocolException(message='Required field experimentState is unset!') if self.limit is None: raise TProtocol.TProtocolException(message='Required field limit is unset!') if self.offset is None: @@ -18314,7 +15160,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) - value = (value * 31) ^ hash(self.filters) + value = (value * 31) ^ hash(self.experimentState) value = (value * 31) ^ hash(self.limit) value = (value * 31) ^ hash(self.offset) return value @@ -18330,7 +15176,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class searchExperiments_result: +class searchExperimentsByStatus_result: """ Attributes: - success @@ -18367,11 +15213,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype140, _size137) = iprot.readListBegin() - for _i141 in xrange(_size137): - _elem142 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() - _elem142.read(iprot) - self.success.append(_elem142) + (_etype61, _size58) = iprot.readListBegin() + for _i62 in xrange(_size58): + _elem63 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem63.read(iprot) + self.success.append(_elem63) iprot.readListEnd() else: iprot.skip(ftype) @@ -18408,12 +15254,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('searchExperiments_result') + oprot.writeStructBegin('searchExperimentsByStatus_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter143 in self.success: - iter143.write(oprot) + for iter64 in self.success: + iter64.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -18459,28 +15305,37 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getExperimentStatistics_args: +class searchExperimentsByCreationTime_args: """ Attributes: - authzToken - gatewayId + - userName - fromTime - toTime + - limit + - offset """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.I64, 'fromTime', None, None, ), # 3 - (4, TType.I64, 'toTime', None, None, ), # 4 + (3, TType.STRING, 'userName', None, None, ), # 3 + (4, TType.I64, 'fromTime', None, None, ), # 4 + (5, TType.I64, 'toTime', None, None, ), # 5 + (6, TType.I32, 'limit', None, None, ), # 6 + (7, TType.I32, 'offset', None, None, ), # 7 ) - def __init__(self, authzToken=None, gatewayId=None, fromTime=None, toTime=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None, fromTime=None, toTime=None, limit=None, offset=None,): self.authzToken = authzToken self.gatewayId = gatewayId + self.userName = userName self.fromTime = fromTime self.toTime = toTime + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -18503,15 +15358,30 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.I64: self.fromTime = iprot.readI64(); else: iprot.skip(ftype) - elif fid == 4: + elif fid == 5: if ftype == TType.I64: self.toTime = iprot.readI64(); else: iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.offset = iprot.readI32(); + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -18521,7 +15391,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getExperimentStatistics_args') + oprot.writeStructBegin('searchExperimentsByCreationTime_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -18530,14 +15400,26 @@ def write(self, oprot): oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 3) + oprot.writeString(self.userName) + oprot.writeFieldEnd() if self.fromTime is not None: - oprot.writeFieldBegin('fromTime', TType.I64, 3) + oprot.writeFieldBegin('fromTime', TType.I64, 4) oprot.writeI64(self.fromTime) oprot.writeFieldEnd() if self.toTime is not None: - oprot.writeFieldBegin('toTime', TType.I64, 4) + oprot.writeFieldBegin('toTime', TType.I64, 5) oprot.writeI64(self.toTime) oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 6) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 7) + oprot.writeI32(self.offset) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18546,10 +15428,16 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') if self.fromTime is None: raise TProtocol.TProtocolException(message='Required field fromTime is unset!') if self.toTime is None: raise TProtocol.TProtocolException(message='Required field toTime is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return @@ -18557,8 +15445,11 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) + value = (value * 31) ^ hash(self.userName) value = (value * 31) ^ hash(self.fromTime) value = (value * 31) ^ hash(self.toTime) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -18572,7 +15463,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getExperimentStatistics_result: +class searchExperimentsByCreationTime_result: """ Attributes: - success @@ -18583,7 +15474,7 @@ class getExperimentStatistics_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (apache.airavata.model.experiment.ttypes.ExperimentStatistics, apache.airavata.model.experiment.ttypes.ExperimentStatistics.thrift_spec), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 @@ -18607,9 +15498,14 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = apache.airavata.model.experiment.ttypes.ExperimentStatistics() - self.success.read(iprot) + if ftype == TType.LIST: + self.success = [] + (_etype68, _size65) = iprot.readListBegin() + for _i69 in xrange(_size65): + _elem70 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem70.read(iprot) + self.success.append(_elem70) + iprot.readListEnd() else: iprot.skip(ftype) elif fid == 1: @@ -18645,10 +15541,13 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getExperimentStatistics_result') + oprot.writeStructBegin('searchExperimentsByCreationTime_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter71 in self.success: + iter71.write(oprot) + oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -18693,19 +15592,34 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProject_args: +class searchExperiments_args: """ Attributes: - - projectId + - authzToken + - gatewayId + - userName + - filters + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'projectId', None, None, ), # 1 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.STRING, 'userName', None, None, ), # 3 + (4, TType.MAP, 'filters', (TType.I32,None,TType.STRING,None), None, ), # 4 + (5, TType.I32, 'limit', None, None, ), # 5 + (6, TType.I32, 'offset', None, None, ), # 6 ) - def __init__(self, projectId=None,): - self.projectId = projectId + def __init__(self, authzToken=None, gatewayId=None, userName=None, filters=None, limit=None, offset=None,): + self.authzToken = authzToken + self.gatewayId = gatewayId + self.userName = userName + self.filters = filters + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -18717,8 +15631,40 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.userName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.MAP: + self.filters = {} + (_ktype73, _vtype74, _size72 ) = iprot.readMapBegin() + for _i76 in xrange(_size72): + _key77 = iprot.readI32(); + _val78 = iprot.readString(); + self.filters[_key77] = _val78 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -18730,23 +15676,60 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProject_args') - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 1) - oprot.writeString(self.projectId) + oprot.writeStructBegin('searchExperiments_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) + oprot.writeString(self.gatewayId) + oprot.writeFieldEnd() + if self.userName is not None: + oprot.writeFieldBegin('userName', TType.STRING, 3) + oprot.writeString(self.userName) + oprot.writeFieldEnd() + if self.filters is not None: + oprot.writeFieldBegin('filters', TType.MAP, 4) + oprot.writeMapBegin(TType.I32, TType.STRING, len(self.filters)) + for kiter79,viter80 in self.filters.items(): + oprot.writeI32(kiter79) + oprot.writeString(viter80) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 5) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 6) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.userName is None: + raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.projectId) + value = (value * 31) ^ hash(self.authzToken) + value = (value * 31) ^ hash(self.gatewayId) + value = (value * 31) ^ hash(self.userName) + value = (value * 31) ^ hash(self.filters) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -18760,30 +15743,30 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProject_result: +class searchExperiments_result: """ Attributes: - success - ire - ace - ase - - pnfe + - ae """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentModel, apache.airavata.model.experiment.ttypes.ExperimentModel.thrift_spec)), None, ), # 0 + (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentSummaryModel, apache.airavata.model.experiment.ttypes.ExperimentSummaryModel.thrift_spec)), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 + (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe + self.ae = ae def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -18797,11 +15780,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype147, _size144) = iprot.readListBegin() - for _i148 in xrange(_size144): - _elem149 = apache.airavata.model.experiment.ttypes.ExperimentModel() - _elem149.read(iprot) - self.success.append(_elem149) + (_etype84, _size81) = iprot.readListBegin() + for _i85 in xrange(_size81): + _elem86 = apache.airavata.model.experiment.ttypes.ExperimentSummaryModel() + _elem86.read(iprot) + self.success.append(_elem86) iprot.readListEnd() else: iprot.skip(ftype) @@ -18825,8 +15808,8 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 4: if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) + self.ae = apache.airavata.api.error.ttypes.AuthorizationException() + self.ae.read(iprot) else: iprot.skip(ftype) else: @@ -18838,12 +15821,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProject_result') + oprot.writeStructBegin('searchExperiments_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter150 in self.success: - iter150.write(oprot) + for iter87 in self.success: + iter87.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -18858,9 +15841,9 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) + if self.ae is not None: + oprot.writeFieldBegin('ae', TType.STRUCT, 4) + self.ae.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18875,7 +15858,7 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.pnfe) + value = (value * 31) ^ hash(self.ae) return value def __repr__(self): @@ -18889,28 +15872,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProjectWithPagination_args: +class getExperimentStatistics_args: """ Attributes: - authzToken - - projectId - - limit - - offset + - gatewayId + - fromTime + - toTime """ thrift_spec = ( None, # 0 (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 - (2, TType.STRING, 'projectId', None, None, ), # 2 - (3, TType.I32, 'limit', None, None, ), # 3 - (4, TType.I32, 'offset', None, None, ), # 4 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.I64, 'fromTime', None, None, ), # 3 + (4, TType.I64, 'toTime', None, None, ), # 4 ) - def __init__(self, authzToken=None, projectId=None, limit=None, offset=None,): + def __init__(self, authzToken=None, gatewayId=None, fromTime=None, toTime=None,): self.authzToken = authzToken - self.projectId = projectId - self.limit = limit - self.offset = offset + self.gatewayId = gatewayId + self.fromTime = fromTime + self.toTime = toTime def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -18929,17 +15912,17 @@ def read(self, iprot): iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.projectId = iprot.readString(); + self.gatewayId = iprot.readString(); else: iprot.skip(ftype) elif fid == 3: - if ftype == TType.I32: - self.limit = iprot.readI32(); + if ftype == TType.I64: + self.fromTime = iprot.readI64(); else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.I32: - self.offset = iprot.readI32(); + if ftype == TType.I64: + self.toTime = iprot.readI64(); else: iprot.skip(ftype) else: @@ -18951,22 +15934,22 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProjectWithPagination_args') + oprot.writeStructBegin('getExperimentStatistics_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) oprot.writeFieldEnd() - if self.projectId is not None: - oprot.writeFieldBegin('projectId', TType.STRING, 2) - oprot.writeString(self.projectId) + if self.gatewayId is not None: + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) + oprot.writeString(self.gatewayId) oprot.writeFieldEnd() - if self.limit is not None: - oprot.writeFieldBegin('limit', TType.I32, 3) - oprot.writeI32(self.limit) + if self.fromTime is not None: + oprot.writeFieldBegin('fromTime', TType.I64, 3) + oprot.writeI64(self.fromTime) oprot.writeFieldEnd() - if self.offset is not None: - oprot.writeFieldBegin('offset', TType.I32, 4) - oprot.writeI32(self.offset) + if self.toTime is not None: + oprot.writeFieldBegin('toTime', TType.I64, 4) + oprot.writeI64(self.toTime) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18974,21 +15957,21 @@ def write(self, oprot): def validate(self): if self.authzToken is None: raise TProtocol.TProtocolException(message='Required field authzToken is unset!') - if self.projectId is None: - raise TProtocol.TProtocolException(message='Required field projectId is unset!') - if self.limit is None: - raise TProtocol.TProtocolException(message='Required field limit is unset!') - if self.offset is None: - raise TProtocol.TProtocolException(message='Required field offset is unset!') + if self.gatewayId is None: + raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.fromTime is None: + raise TProtocol.TProtocolException(message='Required field fromTime is unset!') + if self.toTime is None: + raise TProtocol.TProtocolException(message='Required field toTime is unset!') return def __hash__(self): value = 17 value = (value * 31) ^ hash(self.authzToken) - value = (value * 31) ^ hash(self.projectId) - value = (value * 31) ^ hash(self.limit) - value = (value * 31) ^ hash(self.offset) + value = (value * 31) ^ hash(self.gatewayId) + value = (value * 31) ^ hash(self.fromTime) + value = (value * 31) ^ hash(self.toTime) return value def __repr__(self): @@ -19002,32 +15985,29 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllExperimentsInProjectWithPagination_result: +class getExperimentStatistics_result: """ Attributes: - success - ire - ace - ase - - pnfe - ae """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(apache.airavata.model.experiment.ttypes.ExperimentModel, apache.airavata.model.experiment.ttypes.ExperimentModel.thrift_spec)), None, ), # 0 + (0, TType.STRUCT, 'success', (apache.airavata.model.experiment.ttypes.ExperimentStatistics, apache.airavata.model.experiment.ttypes.ExperimentStatistics.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 - (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 - (5, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 5 + (4, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 4 ) - def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None, ae=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase - self.pnfe = pnfe self.ae = ae def read(self, iprot): @@ -19040,14 +16020,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype154, _size151) = iprot.readListBegin() - for _i155 in xrange(_size151): - _elem156 = apache.airavata.model.experiment.ttypes.ExperimentModel() - _elem156.read(iprot) - self.success.append(_elem156) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = apache.airavata.model.experiment.ttypes.ExperimentStatistics() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -19069,12 +16044,6 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 4: - if ftype == TType.STRUCT: - self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() - self.pnfe.read(iprot) - else: - iprot.skip(ftype) - elif fid == 5: if ftype == TType.STRUCT: self.ae = apache.airavata.api.error.ttypes.AuthorizationException() self.ae.read(iprot) @@ -19089,13 +16058,10 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllExperimentsInProjectWithPagination_result') + oprot.writeStructBegin('getExperimentStatistics_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter157 in self.success: - iter157.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.ire is not None: oprot.writeFieldBegin('ire', TType.STRUCT, 1) @@ -19109,12 +16075,8 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() - if self.pnfe is not None: - oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) - self.pnfe.write(oprot) - oprot.writeFieldEnd() if self.ae is not None: - oprot.writeFieldBegin('ae', TType.STRUCT, 5) + oprot.writeFieldBegin('ae', TType.STRUCT, 4) self.ae.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19130,7 +16092,6 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) - value = (value * 31) ^ hash(self.pnfe) value = (value * 31) ^ hash(self.ae) return value @@ -19145,22 +16106,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperiments_args: +class getExperimentsInProject_args: """ Attributes: - - gatewayId - - userName + - authzToken + - projectId + - limit + - offset """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'projectId', None, None, ), # 2 + (3, TType.I32, 'limit', None, None, ), # 3 + (4, TType.I32, 'offset', None, None, ), # 4 ) - def __init__(self, gatewayId=None, userName=None,): - self.gatewayId = gatewayId - self.userName = userName + def __init__(self, authzToken=None, projectId=None, limit=None, offset=None,): + self.authzToken = authzToken + self.projectId = projectId + self.limit = limit + self.offset = offset def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19172,13 +16139,24 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRING: - self.gatewayId = iprot.readString(); + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) else: iprot.skip(ftype) elif fid == 2: if ftype == TType.STRING: - self.userName = iprot.readString(); + self.projectId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.limit = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.offset = iprot.readI32(); else: iprot.skip(ftype) else: @@ -19190,30 +16168,44 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperiments_args') - if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) - oprot.writeString(self.gatewayId) + oprot.writeStructBegin('getExperimentsInProject_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) oprot.writeFieldEnd() - if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) - oprot.writeString(self.userName) + if self.projectId is not None: + oprot.writeFieldBegin('projectId', TType.STRING, 2) + oprot.writeString(self.projectId) + oprot.writeFieldEnd() + if self.limit is not None: + oprot.writeFieldBegin('limit', TType.I32, 3) + oprot.writeI32(self.limit) + oprot.writeFieldEnd() + if self.offset is not None: + oprot.writeFieldBegin('offset', TType.I32, 4) + oprot.writeI32(self.offset) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): - if self.gatewayId is None: - raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') - if self.userName is None: - raise TProtocol.TProtocolException(message='Required field userName is unset!') + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') + if self.projectId is None: + raise TProtocol.TProtocolException(message='Required field projectId is unset!') + if self.limit is None: + raise TProtocol.TProtocolException(message='Required field limit is unset!') + if self.offset is None: + raise TProtocol.TProtocolException(message='Required field offset is unset!') return def __hash__(self): value = 17 - value = (value * 31) ^ hash(self.gatewayId) - value = (value * 31) ^ hash(self.userName) + value = (value * 31) ^ hash(self.authzToken) + value = (value * 31) ^ hash(self.projectId) + value = (value * 31) ^ hash(self.limit) + value = (value * 31) ^ hash(self.offset) return value def __repr__(self): @@ -19227,13 +16219,15 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperiments_result: +class getExperimentsInProject_result: """ Attributes: - success - ire - ace - ase + - pnfe + - ae """ thrift_spec = ( @@ -19241,13 +16235,17 @@ class getAllUserExperiments_result: (1, TType.STRUCT, 'ire', (apache.airavata.api.error.ttypes.InvalidRequestException, apache.airavata.api.error.ttypes.InvalidRequestException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'ace', (apache.airavata.api.error.ttypes.AiravataClientException, apache.airavata.api.error.ttypes.AiravataClientException.thrift_spec), None, ), # 2 (3, TType.STRUCT, 'ase', (apache.airavata.api.error.ttypes.AiravataSystemException, apache.airavata.api.error.ttypes.AiravataSystemException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'pnfe', (apache.airavata.api.error.ttypes.ProjectNotFoundException, apache.airavata.api.error.ttypes.ProjectNotFoundException.thrift_spec), None, ), # 4 + (5, TType.STRUCT, 'ae', (apache.airavata.api.error.ttypes.AuthorizationException, apache.airavata.api.error.ttypes.AuthorizationException.thrift_spec), None, ), # 5 ) - def __init__(self, success=None, ire=None, ace=None, ase=None,): + def __init__(self, success=None, ire=None, ace=None, ase=None, pnfe=None, ae=None,): self.success = success self.ire = ire self.ace = ace self.ase = ase + self.pnfe = pnfe + self.ae = ae def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -19261,11 +16259,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype161, _size158) = iprot.readListBegin() - for _i162 in xrange(_size158): - _elem163 = apache.airavata.model.experiment.ttypes.ExperimentModel() - _elem163.read(iprot) - self.success.append(_elem163) + (_etype91, _size88) = iprot.readListBegin() + for _i92 in xrange(_size88): + _elem93 = apache.airavata.model.experiment.ttypes.ExperimentModel() + _elem93.read(iprot) + self.success.append(_elem93) iprot.readListEnd() else: iprot.skip(ftype) @@ -19287,6 +16285,18 @@ def read(self, iprot): self.ase.read(iprot) else: iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.pnfe = apache.airavata.api.error.ttypes.ProjectNotFoundException() + self.pnfe.read(iprot) + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRUCT: + self.ae = apache.airavata.api.error.ttypes.AuthorizationException() + self.ae.read(iprot) + else: + iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -19296,12 +16306,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperiments_result') + oprot.writeStructBegin('getExperimentsInProject_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter164 in self.success: - iter164.write(oprot) + for iter94 in self.success: + iter94.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -19316,6 +16326,14 @@ def write(self, oprot): oprot.writeFieldBegin('ase', TType.STRUCT, 3) self.ase.write(oprot) oprot.writeFieldEnd() + if self.pnfe is not None: + oprot.writeFieldBegin('pnfe', TType.STRUCT, 4) + self.pnfe.write(oprot) + oprot.writeFieldEnd() + if self.ae is not None: + oprot.writeFieldBegin('ae', TType.STRUCT, 5) + self.ae.write(oprot) + oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -19329,6 +16347,8 @@ def __hash__(self): value = (value * 31) ^ hash(self.ire) value = (value * 31) ^ hash(self.ace) value = (value * 31) ^ hash(self.ase) + value = (value * 31) ^ hash(self.pnfe) + value = (value * 31) ^ hash(self.ae) return value def __repr__(self): @@ -19342,7 +16362,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperimentsWithPagination_args: +class getUserExperiments_args: """ Attributes: - authzToken @@ -19412,7 +16432,7 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperimentsWithPagination_args') + oprot.writeStructBegin('getUserExperiments_args') if self.authzToken is not None: oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) self.authzToken.write(oprot) @@ -19470,7 +16490,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class getAllUserExperimentsWithPagination_result: +class getUserExperiments_result: """ Attributes: - success @@ -19507,11 +16527,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype168, _size165) = iprot.readListBegin() - for _i169 in xrange(_size165): - _elem170 = apache.airavata.model.experiment.ttypes.ExperimentModel() - _elem170.read(iprot) - self.success.append(_elem170) + (_etype98, _size95) = iprot.readListBegin() + for _i99 in xrange(_size95): + _elem100 = apache.airavata.model.experiment.ttypes.ExperimentModel() + _elem100.read(iprot) + self.success.append(_elem100) iprot.readListEnd() else: iprot.skip(ftype) @@ -19548,12 +16568,12 @@ def write(self, oprot): if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return - oprot.writeStructBegin('getAllUserExperimentsWithPagination_result') + oprot.writeStructBegin('getUserExperiments_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter171 in self.success: - iter171.write(oprot) + for iter101 in self.success: + iter101.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -21365,11 +18385,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype175, _size172) = iprot.readListBegin() - for _i176 in xrange(_size172): - _elem177 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() - _elem177.read(iprot) - self.success.append(_elem177) + (_etype105, _size102) = iprot.readListBegin() + for _i106 in xrange(_size102): + _elem107 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() + _elem107.read(iprot) + self.success.append(_elem107) iprot.readListEnd() else: iprot.skip(ftype) @@ -21416,8 +18436,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter178 in self.success: - iter178.write(oprot) + for iter108 in self.success: + iter108.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -21591,11 +18611,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype182, _size179) = iprot.readListBegin() - for _i183 in xrange(_size179): - _elem184 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() - _elem184.read(iprot) - self.success.append(_elem184) + (_etype112, _size109) = iprot.readListBegin() + for _i113 in xrange(_size109): + _elem114 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() + _elem114.read(iprot) + self.success.append(_elem114) iprot.readListEnd() else: iprot.skip(ftype) @@ -21642,8 +18662,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter185 in self.success: - iter185.write(oprot) + for iter115 in self.success: + iter115.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -21817,12 +18837,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype187, _vtype188, _size186 ) = iprot.readMapBegin() - for _i190 in xrange(_size186): - _key191 = iprot.readString(); - _val192 = apache.airavata.model.status.ttypes.JobStatus() - _val192.read(iprot) - self.success[_key191] = _val192 + (_ktype117, _vtype118, _size116 ) = iprot.readMapBegin() + for _i120 in xrange(_size116): + _key121 = iprot.readString(); + _val122 = apache.airavata.model.status.ttypes.JobStatus() + _val122.read(iprot) + self.success[_key121] = _val122 iprot.readMapEnd() else: iprot.skip(ftype) @@ -21869,9 +18889,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter193,viter194 in self.success.items(): - oprot.writeString(kiter193) - viter194.write(oprot) + for kiter123,viter124 in self.success.items(): + oprot.writeString(kiter123) + viter124.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -22045,11 +19065,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype198, _size195) = iprot.readListBegin() - for _i199 in xrange(_size195): - _elem200 = apache.airavata.model.job.ttypes.JobModel() - _elem200.read(iprot) - self.success.append(_elem200) + (_etype128, _size125) = iprot.readListBegin() + for _i129 in xrange(_size125): + _elem130 = apache.airavata.model.job.ttypes.JobModel() + _elem130.read(iprot) + self.success.append(_elem130) iprot.readListEnd() else: iprot.skip(ftype) @@ -22096,8 +19116,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter201 in self.success: - iter201.write(oprot) + for iter131 in self.success: + iter131.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -23354,11 +20374,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype205, _size202) = iprot.readListBegin() - for _i206 in xrange(_size202): - _elem207 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationModule() - _elem207.read(iprot) - self.success.append(_elem207) + (_etype135, _size132) = iprot.readListBegin() + for _i136 in xrange(_size132): + _elem137 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationModule() + _elem137.read(iprot) + self.success.append(_elem137) iprot.readListEnd() else: iprot.skip(ftype) @@ -23399,8 +20419,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter208 in self.success: - iter208.write(oprot) + for iter138 in self.success: + iter138.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -24614,11 +21634,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype212, _size209) = iprot.readListBegin() - for _i213 in xrange(_size209): - _elem214 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationDeploymentDescription() - _elem214.read(iprot) - self.success.append(_elem214) + (_etype142, _size139) = iprot.readListBegin() + for _i143 in xrange(_size139): + _elem144 = apache.airavata.model.appcatalog.appdeployment.ttypes.ApplicationDeploymentDescription() + _elem144.read(iprot) + self.success.append(_elem144) iprot.readListEnd() else: iprot.skip(ftype) @@ -24659,8 +21679,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter215 in self.success: - iter215.write(oprot) + for iter145 in self.success: + iter145.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -24826,10 +21846,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype219, _size216) = iprot.readListBegin() - for _i220 in xrange(_size216): - _elem221 = iprot.readString(); - self.success.append(_elem221) + (_etype149, _size146) = iprot.readListBegin() + for _i150 in xrange(_size146): + _elem151 = iprot.readString(); + self.success.append(_elem151) iprot.readListEnd() else: iprot.skip(ftype) @@ -24870,8 +21890,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter222 in self.success: - oprot.writeString(iter222) + for iter152 in self.success: + oprot.writeString(iter152) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -25882,11 +22902,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype224, _vtype225, _size223 ) = iprot.readMapBegin() - for _i227 in xrange(_size223): - _key228 = iprot.readString(); - _val229 = iprot.readString(); - self.success[_key228] = _val229 + (_ktype154, _vtype155, _size153 ) = iprot.readMapBegin() + for _i157 in xrange(_size153): + _key158 = iprot.readString(); + _val159 = iprot.readString(); + self.success[_key158] = _val159 iprot.readMapEnd() else: iprot.skip(ftype) @@ -25927,9 +22947,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter230,viter231 in self.success.items(): - oprot.writeString(kiter230) - oprot.writeString(viter231) + for kiter160,viter161 in self.success.items(): + oprot.writeString(kiter160) + oprot.writeString(viter161) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -26095,11 +23115,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype235, _size232) = iprot.readListBegin() - for _i236 in xrange(_size232): - _elem237 = apache.airavata.model.appcatalog.appinterface.ttypes.ApplicationInterfaceDescription() - _elem237.read(iprot) - self.success.append(_elem237) + (_etype165, _size162) = iprot.readListBegin() + for _i166 in xrange(_size162): + _elem167 = apache.airavata.model.appcatalog.appinterface.ttypes.ApplicationInterfaceDescription() + _elem167.read(iprot) + self.success.append(_elem167) iprot.readListEnd() else: iprot.skip(ftype) @@ -26140,8 +23160,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter238 in self.success: - iter238.write(oprot) + for iter168 in self.success: + iter168.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -26307,11 +23327,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype242, _size239) = iprot.readListBegin() - for _i243 in xrange(_size239): - _elem244 = apache.airavata.model.application.io.ttypes.InputDataObjectType() - _elem244.read(iprot) - self.success.append(_elem244) + (_etype172, _size169) = iprot.readListBegin() + for _i173 in xrange(_size169): + _elem174 = apache.airavata.model.application.io.ttypes.InputDataObjectType() + _elem174.read(iprot) + self.success.append(_elem174) iprot.readListEnd() else: iprot.skip(ftype) @@ -26352,8 +23372,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter245 in self.success: - iter245.write(oprot) + for iter175 in self.success: + iter175.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -26519,11 +23539,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype249, _size246) = iprot.readListBegin() - for _i250 in xrange(_size246): - _elem251 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() - _elem251.read(iprot) - self.success.append(_elem251) + (_etype179, _size176) = iprot.readListBegin() + for _i180 in xrange(_size176): + _elem181 = apache.airavata.model.application.io.ttypes.OutputDataObjectType() + _elem181.read(iprot) + self.success.append(_elem181) iprot.readListEnd() else: iprot.skip(ftype) @@ -26564,8 +23584,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter252 in self.success: - iter252.write(oprot) + for iter182 in self.success: + iter182.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -26731,11 +23751,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype254, _vtype255, _size253 ) = iprot.readMapBegin() - for _i257 in xrange(_size253): - _key258 = iprot.readString(); - _val259 = iprot.readString(); - self.success[_key258] = _val259 + (_ktype184, _vtype185, _size183 ) = iprot.readMapBegin() + for _i187 in xrange(_size183): + _key188 = iprot.readString(); + _val189 = iprot.readString(); + self.success[_key188] = _val189 iprot.readMapEnd() else: iprot.skip(ftype) @@ -26776,9 +23796,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter260,viter261 in self.success.items(): - oprot.writeString(kiter260) - oprot.writeString(viter261) + for kiter190,viter191 in self.success.items(): + oprot.writeString(kiter190) + oprot.writeString(viter191) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -27337,11 +24357,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype263, _vtype264, _size262 ) = iprot.readMapBegin() - for _i266 in xrange(_size262): - _key267 = iprot.readString(); - _val268 = iprot.readString(); - self.success[_key267] = _val268 + (_ktype193, _vtype194, _size192 ) = iprot.readMapBegin() + for _i196 in xrange(_size192): + _key197 = iprot.readString(); + _val198 = iprot.readString(); + self.success[_key197] = _val198 iprot.readMapEnd() else: iprot.skip(ftype) @@ -27382,9 +24402,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter269,viter270 in self.success.items(): - oprot.writeString(kiter269) - oprot.writeString(viter270) + for kiter199,viter200 in self.success.items(): + oprot.writeString(kiter199) + oprot.writeString(viter200) oprot.writeMapEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -33579,11 +30599,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.jobSubmissionPriorityMap = {} - (_ktype272, _vtype273, _size271 ) = iprot.readMapBegin() - for _i275 in xrange(_size271): - _key276 = iprot.readString(); - _val277 = iprot.readI32(); - self.jobSubmissionPriorityMap[_key276] = _val277 + (_ktype202, _vtype203, _size201 ) = iprot.readMapBegin() + for _i205 in xrange(_size201): + _key206 = iprot.readString(); + _val207 = iprot.readI32(); + self.jobSubmissionPriorityMap[_key206] = _val207 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33604,9 +30624,9 @@ def write(self, oprot): if self.jobSubmissionPriorityMap is not None: oprot.writeFieldBegin('jobSubmissionPriorityMap', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.I32, len(self.jobSubmissionPriorityMap)) - for kiter278,viter279 in self.jobSubmissionPriorityMap.items(): - oprot.writeString(kiter278) - oprot.writeI32(viter279) + for kiter208,viter209 in self.jobSubmissionPriorityMap.items(): + oprot.writeString(kiter208) + oprot.writeI32(viter209) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33792,11 +30812,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.dataMovementPriorityMap = {} - (_ktype281, _vtype282, _size280 ) = iprot.readMapBegin() - for _i284 in xrange(_size280): - _key285 = iprot.readString(); - _val286 = iprot.readI32(); - self.dataMovementPriorityMap[_key285] = _val286 + (_ktype211, _vtype212, _size210 ) = iprot.readMapBegin() + for _i214 in xrange(_size210): + _key215 = iprot.readString(); + _val216 = iprot.readI32(); + self.dataMovementPriorityMap[_key215] = _val216 iprot.readMapEnd() else: iprot.skip(ftype) @@ -33817,9 +30837,9 @@ def write(self, oprot): if self.dataMovementPriorityMap is not None: oprot.writeFieldBegin('dataMovementPriorityMap', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.I32, len(self.dataMovementPriorityMap)) - for kiter287,viter288 in self.dataMovementPriorityMap.items(): - oprot.writeString(kiter287) - oprot.writeI32(viter288) + for kiter217,viter218 in self.dataMovementPriorityMap.items(): + oprot.writeString(kiter217) + oprot.writeI32(viter218) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -36857,11 +33877,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype292, _size289) = iprot.readListBegin() - for _i293 in xrange(_size289): - _elem294 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.ComputeResourcePreference() - _elem294.read(iprot) - self.success.append(_elem294) + (_etype222, _size219) = iprot.readListBegin() + for _i223 in xrange(_size219): + _elem224 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.ComputeResourcePreference() + _elem224.read(iprot) + self.success.append(_elem224) iprot.readListEnd() else: iprot.skip(ftype) @@ -36902,8 +33922,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter295 in self.success: - iter295.write(oprot) + for iter225 in self.success: + iter225.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -37054,11 +34074,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype299, _size296) = iprot.readListBegin() - for _i300 in xrange(_size296): - _elem301 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.GatewayResourceProfile() - _elem301.read(iprot) - self.success.append(_elem301) + (_etype229, _size226) = iprot.readListBegin() + for _i230 in xrange(_size226): + _elem231 = apache.airavata.model.appcatalog.gatewayprofile.ttypes.GatewayResourceProfile() + _elem231.read(iprot) + self.success.append(_elem231) iprot.readListEnd() else: iprot.skip(ftype) @@ -37099,8 +34119,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter302 in self.success: - iter302.write(oprot) + for iter232 in self.success: + iter232.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: @@ -37718,10 +34738,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype306, _size303) = iprot.readListBegin() - for _i307 in xrange(_size303): - _elem308 = iprot.readString(); - self.success.append(_elem308) + (_etype236, _size233) = iprot.readListBegin() + for _i237 in xrange(_size233): + _elem238 = iprot.readString(); + self.success.append(_elem238) iprot.readListEnd() else: iprot.skip(ftype) @@ -37762,8 +34782,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter309 in self.success: - oprot.writeString(iter309) + for iter239 in self.success: + oprot.writeString(iter239) oprot.writeListEnd() oprot.writeFieldEnd() if self.ire is not None: diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/constants.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/constants.py index b3c034e0c0..ae922f1d82 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/constants.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/constants.py @@ -9,4 +9,4 @@ from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * -AIRAVATA_API_VERSION = "0.15.0" +AIRAVATA_API_VERSION = "0.16.0" diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java index d5ba6a179d..42314f290a 100644 --- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java +++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchBES.java @@ -346,7 +346,7 @@ public static String createMPIExperimentForFSD(Airavata.Client client) throws TE public static List getExperimentsForUser(Airavata.Client client, String user) { try { - return client.getAllUserExperiments(DEFAULT_GATEWAY, user); + return client.getUserExperiments(new AuthzToken(""), DEFAULT_GATEWAY, user, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -361,7 +361,7 @@ public static List getExperimentsForUser(Airavata.Client client public static List getAllUserProject(Airavata.Client client, String user) { try { - return client.getAllUserProjects(DEFAULT_GATEWAY, user); + return client.getUserProjects(new AuthzToken(""), DEFAULT_GATEWAY, user, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -376,7 +376,7 @@ public static List getAllUserProject(Airavata.Client client, String use public static List searchProjectsByProjectName(Airavata.Client client, String user, String projectName) { try { - return client.searchProjectsByProjectName(DEFAULT_GATEWAY, user, projectName); + return client.searchProjectsByProjectName(new AuthzToken(""), DEFAULT_GATEWAY, user, projectName, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -391,7 +391,7 @@ public static List searchProjectsByProjectName(Airavata.Client client, public static List searchProjectsByProjectDesc(Airavata.Client client, String user, String desc) { try { - return client.searchProjectsByProjectDesc(DEFAULT_GATEWAY, user, desc); + return client.searchProjectsByProjectDesc(new AuthzToken(""), DEFAULT_GATEWAY, user, desc, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -407,7 +407,7 @@ public static List searchProjectsByProjectDesc(Airavata.Client client, public static List searchExperimentsByName(Airavata.Client client, String user, String expName) { try { - return client.searchExperimentsByName(DEFAULT_GATEWAY, user, expName); + return client.searchExperimentsByName(new AuthzToken(""), DEFAULT_GATEWAY, user, expName, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -422,7 +422,7 @@ public static List searchExperimentsByName(Airavata.Clie public static List searchExperimentsByDesc(Airavata.Client client, String user, String desc) { try { - return client.searchExperimentsByDesc(DEFAULT_GATEWAY, user, desc); + return client.searchExperimentsByDesc(new AuthzToken(""), DEFAULT_GATEWAY, user, desc, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -437,7 +437,7 @@ public static List searchExperimentsByDesc(Airavata.Clie public static List searchExperimentsByApplication(Airavata.Client client, String user, String app) { try { - return client.searchExperimentsByApplication(DEFAULT_GATEWAY, user, app); + return client.searchExperimentsByApplication(new AuthzToken(""), DEFAULT_GATEWAY, user, app, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { diff --git a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java index 00cff0bdc5..21eedf56c4 100644 --- a/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java +++ b/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/CreateLaunchExperiment.java @@ -1463,7 +1463,7 @@ public static void launchExperiment(Airavata.Client client, String expId) public static List getExperimentsForUser(Airavata.Client client, String user) { try { - return client.getAllUserExperiments(DEFAULT_GATEWAY, user); + return client.getUserExperiments(new AuthzToken(""), DEFAULT_GATEWAY, user, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1478,7 +1478,7 @@ public static List getExperimentsForUser(Airavata.Client client public static List getAllUserProject(Airavata.Client client, String user) { try { - return client.getAllUserProjects(DEFAULT_GATEWAY, user); + return client.getUserProjects(new AuthzToken(""), DEFAULT_GATEWAY, user, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1493,7 +1493,7 @@ public static List getAllUserProject(Airavata.Client client, String use public static List searchProjectsByProjectName(Airavata.Client client, String user, String projectName) { try { - return client.searchProjectsByProjectName(DEFAULT_GATEWAY, user, projectName); + return client.searchProjectsByProjectName(new AuthzToken(""), DEFAULT_GATEWAY, user, projectName, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1508,7 +1508,7 @@ public static List searchProjectsByProjectName(Airavata.Client client, public static List searchProjectsByProjectDesc(Airavata.Client client, String user, String desc) { try { - return client.searchProjectsByProjectDesc(DEFAULT_GATEWAY, user, desc); + return client.searchProjectsByProjectDesc(new AuthzToken(""), DEFAULT_GATEWAY, user, desc, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1524,7 +1524,7 @@ public static List searchProjectsByProjectDesc(Airavata.Client client, public static List searchExperimentsByName(Airavata.Client client, String user, String expName) { try { - return client.searchExperimentsByName(DEFAULT_GATEWAY, user, expName); + return client.searchExperimentsByName(new AuthzToken(""), DEFAULT_GATEWAY, user, expName, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1539,7 +1539,7 @@ public static List searchExperimentsByName(Airavata.Clie public static List searchExperimentsByDesc(Airavata.Client client, String user, String desc) { try { - return client.searchExperimentsByDesc(DEFAULT_GATEWAY, user, desc); + return client.searchExperimentsByDesc(new AuthzToken(""), DEFAULT_GATEWAY, user, desc, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { @@ -1554,7 +1554,7 @@ public static List searchExperimentsByDesc(Airavata.Clie public static List searchExperimentsByApplication(Airavata.Client client, String user, String app) { try { - return client.searchExperimentsByApplication(DEFAULT_GATEWAY, user, app); + return client.searchExperimentsByApplication(new AuthzToken(""), DEFAULT_GATEWAY, user, app, -1, 0); } catch (AiravataSystemException e) { e.printStackTrace(); } catch (InvalidRequestException e) { diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java index 6f66aac6a5..683090c8f0 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/Workflow.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Workflow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Workflow"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java index 714dbec5d2..50af806264 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationDeploymentDescription.java @@ -77,7 +77,7 @@ * assigns to the environment variable "NAME" the value * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ApplicationDeploymentDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationDeploymentDescription"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java index 02f4a43f1d..bee403bc87 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/ApplicationModule.java @@ -66,7 +66,7 @@ * Descriprion of the Module * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ApplicationModule implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationModule"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java index b667e71cb5..7c815bc2c2 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appdeployment/SetEnvPaths.java @@ -60,7 +60,7 @@ * value: * Value of the environment variable to set */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class SetEnvPaths implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetEnvPaths"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java index e35aa68b36..8a7e4afa29 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/appinterface/ApplicationInterfaceDescription.java @@ -64,7 +64,7 @@ * Outputs generated from the application * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ApplicationInterfaceDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ApplicationInterfaceDescription"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java index 8382a1659b..83e51ce7b4 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/BatchQueue.java @@ -57,7 +57,7 @@ * maxRunTime: * Maximum allowed run time in hours. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class BatchQueue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BatchQueue"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java index 9238baa58b..4fb0364c46 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/CloudJobSubmission.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class CloudJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloudJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java index 5f38ba8fcb..845633ecf1 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ComputeResourceDescription.java @@ -80,7 +80,7 @@ * Map of file systems type and the path. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ComputeResourceDescription implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputeResourceDescription"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java index 1e7c83ef44..80e18bd988 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/DataMovementInterface.java @@ -61,7 +61,7 @@ * Lower the numerical number, higher the priority * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class DataMovementInterface implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataMovementInterface"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java index 087160ffe8..c8522a1c7c 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GlobusJobSubmission.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class GlobusJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GlobusJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java index 4b0ca9ce1e..e67289bc5a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/GridFTPDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class GridFTPDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GridFTPDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java index 37b3fad7db..eb3a8d0e8d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/JobSubmissionInterface.java @@ -61,7 +61,7 @@ * Lower the numerical number, higher the priority * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobSubmissionInterface implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobSubmissionInterface"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java index 8bb8b64ac2..46bdfe7342 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-defualt port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class LOCALDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LOCALDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java index 72e72fe771..0cfe509eb4 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/LOCALSubmission.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class LOCALSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LOCALSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java index 93a7dde441..c863803498 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/ResourceJobManager.java @@ -68,7 +68,7 @@ * An enumeration of commonly used manager commands. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ResourceJobManager implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ResourceJobManager"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java index a9a6b7485b..d341ea72d4 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SCPDataMovement.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class SCPDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SCPDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java index c093005ed5..4763ac9cf1 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/SSHJobSubmission.java @@ -60,7 +60,7 @@ * sshPort: * If a non-default port needs to used, specify it. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class SSHJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SSHJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java index f927a5453e..bb47669750 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreDataMovement.java @@ -57,7 +57,7 @@ * unicoreEndPointURL: * unicoreGateway End Point. The provider will query this service to fetch required service end points. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class UnicoreDataMovement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnicoreDataMovement"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java index 3fe05ca600..2b3cb3f157 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/computeresource/UnicoreJobSubmission.java @@ -59,7 +59,7 @@ * authenticationMode * The authenticationMode defines the way certificate is fetched. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class UnicoreJobSubmission implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnicoreJobSubmission"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java index 386e7d2f1a..f830898c52 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/ComputeResourcePreference.java @@ -81,7 +81,7 @@ * account to be used has to be added to the allocation. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ComputeResourcePreference implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputeResourcePreference"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java index ac77c29209..3c3679180a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/appcatalog/gatewayprofile/GatewayResourceProfile.java @@ -62,7 +62,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class GatewayResourceProfile implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GatewayResourceProfile"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java index 66de03e009..773c99ad49 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/InputDataObjectType.java @@ -77,7 +77,7 @@ * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class InputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InputDataObjectType"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java index 56e254b778..6869b4fe5d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/application/io/OutputDataObjectType.java @@ -77,7 +77,7 @@ * Any metadat. This is typically ignore by Airavata and is used by gateways for application configuration. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class OutputDataObjectType implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OutputDataObjectType"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java index 4ed6a22835..7bce8dec69 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ErrorModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ErrorModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ErrorModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java index 6bc7bda877..20c16d7a6e 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidationResults.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ValidationResults implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidationResults"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java index 170347540b..7e4ee5c959 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/commons/ValidatorResult.java @@ -58,7 +58,7 @@ * during the experiment launch operation * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ValidatorResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidatorResult"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java index 87976a0934..7706e6f507 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataClientException.java @@ -66,7 +66,7 @@ * parameter: If the error applied to a particular input parameter, this will * indicate which parameter. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class AiravataClientException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AiravataClientException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java index 85fb474fa0..d455fe6882 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AiravataSystemException.java @@ -61,7 +61,7 @@ * message: This may contain additional information about the error * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class AiravataSystemException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AiravataSystemException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java index 16e15c74e2..76103d55ca 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthenticationException.java @@ -56,7 +56,7 @@ * * message: contains the cause of the authorization failure. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class AuthenticationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthenticationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java index 48f82be7c5..875a0d2b75 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/AuthorizationException.java @@ -56,7 +56,7 @@ * * message: contains the authorization failure message */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class AuthorizationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthorizationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java index 614f9dd75a..7414d74ae2 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ExperimentNotFoundException.java @@ -58,7 +58,7 @@ * * key: The value passed from the client in the identifier, which was not found. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentNotFoundException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentNotFoundException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java index 5316c124e1..4ab1e4848a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/InvalidRequestException.java @@ -57,7 +57,7 @@ * * message: contains the associated error message. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class InvalidRequestException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidRequestException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java index 0daa9aa139..ba51235ac3 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/LaunchValidationException.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class LaunchValidationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LaunchValidationException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java index 56faf1df9c..798188fc27 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ProjectNotFoundException.java @@ -56,7 +56,7 @@ * 2: optional string key * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProjectNotFoundException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProjectNotFoundException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java index a0e900474f..929e2a6ea9 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/TimedOutException.java @@ -54,7 +54,7 @@ /** * This exception is thrown when RPC timeout gets exceeded. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TimedOutException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TimedOutException"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java index 4eddc9d50d..1c9633e284 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidationResults.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ValidationResults implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidationResults"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java index aa785ef991..0edbe4342d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/error/ValidatorResult.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ValidatorResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ValidatorResult"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java index 2c8d6a6ced..c36294c72b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentModel.java @@ -67,7 +67,7 @@ * experimentDescription: * The verbose description of the experiment. This is an optional parameter. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java index 3e29e1bbb7..0d16761924 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentStatistics.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatistics"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java index e087960e31..0b60ed02db 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/ExperimentSummaryModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentSummaryModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentSummaryModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java index 55abd1a81d..3fb384b634 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/experiment/UserConfigurationDataModel.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class UserConfigurationDataModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserConfigurationDataModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java index f92661a221..7bd252fc29 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/job/JobModel.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java index 38d1b77062..d4f9538783 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ExperimentStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java index 046fe9a1d5..e7ceeafe0b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java index f100ccbf8a..ff4d5a4b81 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java index a664b1d9ae..3a302c0954 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/JobStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java index fc37413320..0ab05c7add 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/Message.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Message implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Message"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java index a59b5afea1..6c29b24e50 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java index d4e4f76523..92d4c04933 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java index 975912ad12..c8de5ed804 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java index 4ba15f4950..07efd6232b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessSubmitEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessSubmitEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java index 3f0ff64b3b..7e3b54acb7 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessTerminateEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessTerminateEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessTerminateEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java index 6c5697e8eb..1f16b5693b 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskIdentifier.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskIdentifier"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java index c84dde447c..5658f55e5d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskOutputChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskOutputChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskOutputChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java index c6a50f5823..fef48081b0 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskStatusChangeEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatusChangeEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java index 644dcb12e8..30bf5f3eb9 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/TaskStatusChangeRequestEvent.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskStatusChangeRequestEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatusChangeRequestEvent"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java index d5d09f7704..dbf6111525 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/process/ProcessModel.java @@ -60,7 +60,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java index 1fbaeea79d..b863e8ca37 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/scheduling/ComputationalResourceSchedulingModel.java @@ -56,7 +56,7 @@ * * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ComputationalResourceSchedulingModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ComputationalResourceSchedulingModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java index 2a6264d73d..02ee084360 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/security/AuthzToken.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class AuthzToken implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AuthzToken"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java index fbdc394be5..1fd7d0b900 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ExperimentStatus.java @@ -64,7 +64,7 @@ * User friendly reason on how the state is inferred. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ExperimentStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExperimentStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java index 42a579d45f..ef54285715 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/JobStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class JobStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("JobStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java index 9b1fc3a58d..e338b4fbaf 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/ProcessStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class ProcessStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ProcessStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java index 0603a67d7b..2dc96004ed 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/status/TaskStatus.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskStatus"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java index 52515208bc..dcb6c85632 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/DataStagingTaskModel.java @@ -58,7 +58,7 @@ * A friendly description of the task, usally used to communicate information to users. * */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class DataStagingTaskModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DataStagingTaskModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java index d7c35bcc8b..135512431f 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/task/TaskModel.java @@ -60,7 +60,7 @@ * subTaskModel: * A generic byte object for the Task developer to store internal serialized data into registry catalogs. */ -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class TaskModel implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TaskModel"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java index e4d9466d8a..4ba6f30c7d 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Gateway.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Gateway implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Gateway"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java index 4ff7b33d8e..65b4506cfa 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Group.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Group implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Group"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java index 0ea46f7e09..007afccb8a 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/Project.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class Project implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Project"); diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java index d0e10bcbcb..058b656a43 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/workspace/User.java @@ -51,7 +51,7 @@ import org.slf4j.LoggerFactory; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) -@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-1") +@Generated(value = "Autogenerated by Thrift Compiler (0.9.2)", date = "2015-8-3") public class User implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User"); diff --git a/thrift-interface-descriptions/airavata-api/airavata_api.thrift b/thrift-interface-descriptions/airavata-api/airavata_api.thrift index fbf5a47aa2..f62b13d51a 100644 --- a/thrift-interface-descriptions/airavata-api/airavata_api.thrift +++ b/thrift-interface-descriptions/airavata-api/airavata_api.thrift @@ -60,7 +60,7 @@ namespace js ApacheAiravataAPI * in a change to major/minor version numbers. * */ -const string AIRAVATA_API_VERSION = "0.15.0" +const string AIRAVATA_API_VERSION = "0.16.0" service Airavata { @@ -200,22 +200,6 @@ service Airavata { 4: airavata_errors.ProjectNotFoundException pnfe, 5: airavata_errors.AuthorizationException ae) - /** - * Get all Project by user - * - * @param gatewayId - * The identifier for the requested gateway. - * - * @param userName - * The Project Object described in the workspace_model - * @deprecated Instead use getAllUserProjectsWithPagination - **/ - list getAllUserProjects (1: required string gatewayId, - 2: required string userName) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Get all Project by user with pagination. Results will be ordered based * on creation time DESC @@ -229,7 +213,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched **/ - list getAllUserProjectsWithPagination (1: required security_model.AuthzToken authzToken, + list getUserProjects(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required i32 limit, @@ -239,24 +223,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Get all Project for user by project name - * - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param projectName - * The name of the project on which the results to be fetched - * @deprecated Instead use searchProjectsByProjectNameWithPagination - */ - list searchProjectsByProjectName (1: required string gatewayId, - 2: required string userName, - 3: required string projectName) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Get all Project for user by project name with pagination.Results will be ordered based * on creation time DESC @@ -272,7 +238,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchProjectsByProjectNameWithPagination (1: required security_model.AuthzToken authzToken, + list searchProjectsByProjectName (1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required string projectName, @@ -283,22 +249,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Get all Project for user by project description - * @param gatewayId - * The identifier for the requested gateway. - * @param userName - * The identifier of the user - * @param description - * The description to be matched - * @deprecated Instead use searchProjectsByProjectDescWithPagination - */ - list searchProjectsByProjectDesc (1: required string gatewayId, - 2: required string userName, 3: required string description) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Search and get all Projects for user by project description with pagination. Results * will be ordered based on creation time DESC @@ -314,7 +264,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchProjectsByProjectDescWithPagination (1: required security_model.AuthzToken authzToken, + list searchProjectsByProjectDesc(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required string description, @@ -325,26 +275,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param useNname - * Username of the requested user - * @param expName - * Experiment name to be matched - * @deprecated - * Instead use searchExperimentsByNameWithPagination - * - */ - list searchExperimentsByName (1: required string gatewayId, - 2: required string userName, 3: required string expName) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -360,7 +290,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchExperimentsByNameWithPagination (1: required security_model.AuthzToken authzToken, + list searchExperimentsByName(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required string expName, @@ -371,24 +301,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Search Experiments by experiment name - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param description - * Experiment description to be matched - * @deprecated - * Instead use searchExperimentsByDescWithPagination - */ - list searchExperimentsByDesc (1: required string gatewayId, - 2: required string userName, 3: required string description) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Search Experiments by experiment name with pagination. Results will be sorted * based on creation time DESC @@ -404,7 +316,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchExperimentsByDescWithPagination (1: required security_model.AuthzToken authzToken, + list searchExperimentsByDesc(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required string description, @@ -415,24 +327,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - - /** - * Search Experiments by application id - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param applicationId - * Application id to be matched - * @deprecated - * Instead use searchExperimentsByApplicationWithPagination - */ - list searchExperimentsByApplication (1: required string gatewayId, - 2: required string userName, 3: required string applicationId) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) /** * Search Experiments by application id with pagination. Results will be sorted * based on creation time DESC @@ -448,7 +342,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchExperimentsByApplicationWithPagination (1: required security_model.AuthzToken authzToken, + list searchExperimentsByApplication(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required string applicationId, @@ -458,23 +352,6 @@ service Airavata { 2: airavata_errors.AiravataClientException ace, 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Search Experiments by experiment status - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param experimentState - * Experiement state to be matched - * @deprecated - * Instead use searchExperimentsByStatusWithPagination - */ - list searchExperimentsByStatus (1: required string gatewayId, - 2: required string userName, 3: required status_models.ExperimentState experimentState) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) /** * Search Experiments by experiment status with pagination. Results will be sorted @@ -491,7 +368,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchExperimentsByStatusWithPagination (1: required security_model.AuthzToken authzToken, + list searchExperimentsByStatus(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required status_models.ExperimentState experimentState, @@ -502,26 +379,6 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Search Experiments by experiment creation time - * - * @param gatewayId - * Identifier of the requested gateway - * @param userName - * Username of the requested user - * @param fromTime - * Start time of the experiments creation time - * @param toTime - * End time of the experiement creation time - * @deprecated - * Instead use searchExperimentsByCreationTimeWithPagination - */ - list searchExperimentsByCreationTime (1: required string gatewayId, - 2: required string userName, 3: required i64 fromTime, 4: required i64 toTime) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** * Search Experiments by experiment creation time with pagination. Results will be sorted * based on creation time DESC @@ -539,7 +396,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list searchExperimentsByCreationTimeWithPagination (1: required security_model.AuthzToken authzToken, + list searchExperimentsByCreationTime(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required i64 fromTime, @@ -595,22 +452,9 @@ service Airavata { 3: airavata_errors.AiravataSystemException ase, 4: airavata_errors.AuthorizationException ae) - /** - * Get all Experiments within a Project - * - * @param projectId - * Identifier of the project - * @deprecated - * Instead use getAllExperimentsInProjectWithPagination - */ - list getAllExperimentsInProject(1: required string projectId) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase, - 4: airavata_errors.ProjectNotFoundException pnfe) /** - * Get all Experiments within project with pagination. Results will be sorted + * Get Experiments within project with pagination. Results will be sorted * based on creation time DESC * * @param projectId @@ -620,7 +464,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list getAllExperimentsInProjectWithPagination(1: required security_model.AuthzToken authzToken, + list getExperimentsInProject(1: required security_model.AuthzToken authzToken, 2: required string projectId, 3: required i32 limit, 4: required i32 offset) @@ -630,25 +474,8 @@ service Airavata { 4: airavata_errors.ProjectNotFoundException pnfe, 5: airavata_errors.AuthorizationException ae) - - /** - * Get all Experiments by user - * - * @param gatewayId - * Identifier of the requesting gateway - * @param userName - * Username of the requested user - * @deprecated - * Instead use getAllUserExperimentsWithPagination - */ - list getAllUserExperiments(1: required string gatewayId, - 2: required string userName) - throws (1: airavata_errors.InvalidRequestException ire, - 2: airavata_errors.AiravataClientException ace, - 3: airavata_errors.AiravataSystemException ase) - /** - * Get all Experiments by user pagination. Results will be sorted + * Get experiments by user with pagination. Results will be sorted * based on creation time DESC * * @param gatewayId @@ -660,7 +487,7 @@ service Airavata { * @param offset * The starting point of the results to be fetched */ - list getAllUserExperimentsWithPagination(1: required security_model.AuthzToken authzToken, + list getUserExperiments(1: required security_model.AuthzToken authzToken, 2: required string gatewayId, 3: required string userName, 4: required i32 limit, From eb4a737c5150ae7313d4038808ddce8d1564abd1 Mon Sep 17 00:00:00 2001 From: Supun Nakandala Date: Mon, 3 Aug 2015 02:06:37 +0530 Subject: [PATCH 13/18] adding Authz token as a parameter for Airavata credential store API methods --- .../server/handler/AiravataServerHandler.java | 9 +- .../org/apache/airavata/api/Airavata.java | 423 ++++++++++++++++-- .../main/resources/lib/airavata/Airavata.cpp | 102 ++++- .../main/resources/lib/airavata/Airavata.h | 85 ++-- .../lib/airavata/Airavata_server.skeleton.cpp | 7 +- .../resources/lib/Airavata/API/Airavata.php | 126 +++++- .../lib/apache/airavata/api/Airavata-remote | 24 +- .../lib/apache/airavata/api/Airavata.py | 111 +++-- .../airavata-api/airavata_api.thrift | 10 +- 9 files changed, 731 insertions(+), 166 deletions(-) diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index 50097a1963..ee1a5a84bf 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -244,17 +244,20 @@ private boolean isGatewayExistInternal(String gatewayId) throws InvalidRequestEx } @Override - public String generateAndRegisterSSHKeys(String gatewayId, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + @SecurityCheck + public String generateAndRegisterSSHKeys(AuthzToken authzToken, String gatewayId, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { return null; } @Override - public String getSSHPubKey(String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + @SecurityCheck + public String getSSHPubKey(AuthzToken authzToken, String airavataCredStoreToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { return null; } @Override - public Map getAllUserSSHPubKeys(String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { + @SecurityCheck + public Map getAllUserSSHPubKeys(AuthzToken authzToken, String userName) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException { return null; } diff --git 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 index c52fe55cd7..4a19fdbfcd 100644 --- 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 @@ -91,14 +91,15 @@ public interface Iface { * * * + * @param authzToken * @param gatewayId * @param userName */ - public String generateAndRegisterSSHKeys(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public String generateAndRegisterSSHKeys(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; - public String getSSHPubKey(String airavataCredStoreToken) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public String getSSHPubKey(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; - public Map getAllUserSSHPubKeys(String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; + public Map getAllUserSSHPubKeys(org.apache.airavata.model.security.AuthzToken authzToken, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException; /** * Creates a Project with basic metadata. @@ -1762,11 +1763,11 @@ public interface AsyncIface { public void isGatewayExist(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void generateAndRegisterSSHKeys(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void generateAndRegisterSSHKeys(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getSSHPubKey(String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getSSHPubKey(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getAllUserSSHPubKeys(String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getAllUserSSHPubKeys(org.apache.airavata.model.security.AuthzToken authzToken, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void createProject(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, org.apache.airavata.model.workspace.Project project, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2252,15 +2253,16 @@ public boolean recv_isGatewayExist() throws org.apache.airavata.model.error.Inva throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isGatewayExist failed: unknown result"); } - public String generateAndRegisterSSHKeys(String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public String generateAndRegisterSSHKeys(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - send_generateAndRegisterSSHKeys(gatewayId, userName); + send_generateAndRegisterSSHKeys(authzToken, gatewayId, userName); return recv_generateAndRegisterSSHKeys(); } - public void send_generateAndRegisterSSHKeys(String gatewayId, String userName) throws org.apache.thrift.TException + public void send_generateAndRegisterSSHKeys(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName) throws org.apache.thrift.TException { generateAndRegisterSSHKeys_args args = new generateAndRegisterSSHKeys_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); sendBase("generateAndRegisterSSHKeys", args); @@ -2285,15 +2287,16 @@ public String recv_generateAndRegisterSSHKeys() throws org.apache.airavata.model throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); } - public String getSSHPubKey(String airavataCredStoreToken) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public String getSSHPubKey(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - send_getSSHPubKey(airavataCredStoreToken); + send_getSSHPubKey(authzToken, airavataCredStoreToken); return recv_getSSHPubKey(); } - public void send_getSSHPubKey(String airavataCredStoreToken) throws org.apache.thrift.TException + public void send_getSSHPubKey(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken) throws org.apache.thrift.TException { getSSHPubKey_args args = new getSSHPubKey_args(); + args.setAuthzToken(authzToken); args.setAiravataCredStoreToken(airavataCredStoreToken); sendBase("getSSHPubKey", args); } @@ -2317,15 +2320,16 @@ public String recv_getSSHPubKey() throws org.apache.airavata.model.error.Invalid throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSSHPubKey failed: unknown result"); } - public Map getAllUserSSHPubKeys(String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException + public Map getAllUserSSHPubKeys(org.apache.airavata.model.security.AuthzToken authzToken, String userName) throws org.apache.airavata.model.error.InvalidRequestException, org.apache.airavata.model.error.AiravataClientException, org.apache.airavata.model.error.AiravataSystemException, org.apache.thrift.TException { - send_getAllUserSSHPubKeys(userName); + send_getAllUserSSHPubKeys(authzToken, userName); return recv_getAllUserSSHPubKeys(); } - public void send_getAllUserSSHPubKeys(String userName) throws org.apache.thrift.TException + public void send_getAllUserSSHPubKeys(org.apache.airavata.model.security.AuthzToken authzToken, String userName) throws org.apache.thrift.TException { getAllUserSSHPubKeys_args args = new getAllUserSSHPubKeys_args(); + args.setAuthzToken(authzToken); args.setUserName(userName); sendBase("getAllUserSSHPubKeys", args); } @@ -6560,18 +6564,20 @@ public boolean getResult() throws org.apache.airavata.model.error.InvalidRequest } } - public void generateAndRegisterSSHKeys(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void generateAndRegisterSSHKeys(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - generateAndRegisterSSHKeys_call method_call = new generateAndRegisterSSHKeys_call(gatewayId, userName, resultHandler, this, ___protocolFactory, ___transport); + generateAndRegisterSSHKeys_call method_call = new generateAndRegisterSSHKeys_call(authzToken, gatewayId, userName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class generateAndRegisterSSHKeys_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.apache.airavata.model.security.AuthzToken authzToken; private String gatewayId; private String userName; - public generateAndRegisterSSHKeys_call(String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public generateAndRegisterSSHKeys_call(org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName, org.apache.thrift.async.AsyncMethodCallback 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; this.userName = userName; } @@ -6579,6 +6585,7 @@ public generateAndRegisterSSHKeys_call(String gatewayId, String userName, org.ap public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("generateAndRegisterSSHKeys", org.apache.thrift.protocol.TMessageType.CALL, 0)); generateAndRegisterSSHKeys_args args = new generateAndRegisterSSHKeys_args(); + args.setAuthzToken(authzToken); args.setGatewayId(gatewayId); args.setUserName(userName); args.write(prot); @@ -6595,23 +6602,26 @@ public String getResult() throws org.apache.airavata.model.error.InvalidRequestE } } - public void getSSHPubKey(String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getSSHPubKey(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getSSHPubKey_call method_call = new getSSHPubKey_call(airavataCredStoreToken, resultHandler, this, ___protocolFactory, ___transport); + getSSHPubKey_call method_call = new getSSHPubKey_call(authzToken, airavataCredStoreToken, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getSSHPubKey_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.apache.airavata.model.security.AuthzToken authzToken; private String airavataCredStoreToken; - public getSSHPubKey_call(String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getSSHPubKey_call(org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken, org.apache.thrift.async.AsyncMethodCallback 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.airavataCredStoreToken = airavataCredStoreToken; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSSHPubKey", org.apache.thrift.protocol.TMessageType.CALL, 0)); getSSHPubKey_args args = new getSSHPubKey_args(); + args.setAuthzToken(authzToken); args.setAiravataCredStoreToken(airavataCredStoreToken); args.write(prot); prot.writeMessageEnd(); @@ -6627,23 +6637,26 @@ public String getResult() throws org.apache.airavata.model.error.InvalidRequestE } } - public void getAllUserSSHPubKeys(String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getAllUserSSHPubKeys(org.apache.airavata.model.security.AuthzToken authzToken, String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); - getAllUserSSHPubKeys_call method_call = new getAllUserSSHPubKeys_call(userName, resultHandler, this, ___protocolFactory, ___transport); + getAllUserSSHPubKeys_call method_call = new getAllUserSSHPubKeys_call(authzToken, userName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; ___manager.call(method_call); } public static class getAllUserSSHPubKeys_call extends org.apache.thrift.async.TAsyncMethodCall { + private org.apache.airavata.model.security.AuthzToken authzToken; private String userName; - public getAllUserSSHPubKeys_call(String userName, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public getAllUserSSHPubKeys_call(org.apache.airavata.model.security.AuthzToken authzToken, String userName, org.apache.thrift.async.AsyncMethodCallback 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.userName = userName; } public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUserSSHPubKeys", org.apache.thrift.protocol.TMessageType.CALL, 0)); getAllUserSSHPubKeys_args args = new getAllUserSSHPubKeys_args(); + args.setAuthzToken(authzToken); args.setUserName(userName); args.write(prot); prot.writeMessageEnd(); @@ -11053,7 +11066,7 @@ protected boolean isOneway() { public generateAndRegisterSSHKeys_result getResult(I iface, generateAndRegisterSSHKeys_args args) throws org.apache.thrift.TException { generateAndRegisterSSHKeys_result result = new generateAndRegisterSSHKeys_result(); try { - result.success = iface.generateAndRegisterSSHKeys(args.gatewayId, args.userName); + result.success = iface.generateAndRegisterSSHKeys(args.authzToken, args.gatewayId, args.userName); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -11081,7 +11094,7 @@ protected boolean isOneway() { public getSSHPubKey_result getResult(I iface, getSSHPubKey_args args) throws org.apache.thrift.TException { getSSHPubKey_result result = new getSSHPubKey_result(); try { - result.success = iface.getSSHPubKey(args.airavataCredStoreToken); + result.success = iface.getSSHPubKey(args.authzToken, args.airavataCredStoreToken); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -11109,7 +11122,7 @@ protected boolean isOneway() { public getAllUserSSHPubKeys_result getResult(I iface, getAllUserSSHPubKeys_args args) throws org.apache.thrift.TException { getAllUserSSHPubKeys_result result = new getAllUserSSHPubKeys_result(); try { - result.success = iface.getAllUserSSHPubKeys(args.userName); + result.success = iface.getAllUserSSHPubKeys(args.authzToken, args.userName); } catch (org.apache.airavata.model.error.InvalidRequestException ire) { result.ire = ire; } catch (org.apache.airavata.model.error.AiravataClientException ace) { @@ -15083,7 +15096,7 @@ protected boolean isOneway() { } public void start(I iface, generateAndRegisterSSHKeys_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.generateAndRegisterSSHKeys(args.gatewayId, args.userName,resultHandler); + iface.generateAndRegisterSSHKeys(args.authzToken, args.gatewayId, args.userName,resultHandler); } } @@ -15150,7 +15163,7 @@ protected boolean isOneway() { } public void start(I iface, getSSHPubKey_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSSHPubKey(args.airavataCredStoreToken,resultHandler); + iface.getSSHPubKey(args.authzToken, args.airavataCredStoreToken,resultHandler); } } @@ -15217,7 +15230,7 @@ protected boolean isOneway() { } public void start(I iface, getAllUserSSHPubKeys_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.getAllUserSSHPubKeys(args.userName,resultHandler); + iface.getAllUserSSHPubKeys(args.authzToken, args.userName,resultHandler); } } @@ -31606,8 +31619,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isGatewayExist_resul public static class generateAndRegisterSSHKeys_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("generateAndRegisterSSHKeys_args"); - 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)1); - 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)2); + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -31615,13 +31629,15 @@ public static class generateAndRegisterSSHKeys_args implements org.apache.thrift schemes.put(TupleScheme.class, new generateAndRegisterSSHKeys_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public String gatewayId; // required public 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 { - GATEWAY_ID((short)1, "gatewayId"), - USER_NAME((short)2, "userName"); + AUTHZ_TOKEN((short)1, "authzToken"), + GATEWAY_ID((short)2, "gatewayId"), + USER_NAME((short)3, "userName"); private static final Map byName = new HashMap(); @@ -31636,9 +31652,11 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // GATEWAY_ID + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // GATEWAY_ID return GATEWAY_ID; - case 2: // USER_NAME + case 3: // USER_NAME return USER_NAME; default: return null; @@ -31683,6 +31701,8 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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, @@ -31695,10 +31715,12 @@ public generateAndRegisterSSHKeys_args() { } public generateAndRegisterSSHKeys_args( + org.apache.airavata.model.security.AuthzToken authzToken, String gatewayId, String userName) { this(); + this.authzToken = authzToken; this.gatewayId = gatewayId; this.userName = userName; } @@ -31707,6 +31729,9 @@ public generateAndRegisterSSHKeys_args( * Performs a deep copy on other. */ public generateAndRegisterSSHKeys_args(generateAndRegisterSSHKeys_args other) { + if (other.isSetAuthzToken()) { + this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); + } if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } @@ -31721,10 +31746,35 @@ public generateAndRegisterSSHKeys_args deepCopy() { @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 generateAndRegisterSSHKeys_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 String getGatewayId() { return this.gatewayId; } @@ -31775,6 +31825,14 @@ public void setUserNameIsSet(boolean value) { public void setFieldValue(_Fields field, 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(); @@ -31796,6 +31854,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case GATEWAY_ID: return getGatewayId(); @@ -31813,6 +31874,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case GATEWAY_ID: return isSetGatewayId(); case USER_NAME: @@ -31834,6 +31897,15 @@ public boolean equals(generateAndRegisterSSHKeys_args that) { if (that == null) return false; + 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) { @@ -31859,6 +31931,11 @@ public boolean equals(generateAndRegisterSSHKeys_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_gatewayId = true && (isSetGatewayId()); list.add(present_gatewayId); if (present_gatewayId) @@ -31880,6 +31957,16 @@ public int compareTo(generateAndRegisterSSHKeys_args other) { int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetGatewayId()).compareTo(other.isSetGatewayId()); if (lastComparison != 0) { return lastComparison; @@ -31920,6 +32007,14 @@ public String toString() { StringBuilder sb = new StringBuilder("generateAndRegisterSSHKeys_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"); @@ -31941,6 +32036,9 @@ public String 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()); } @@ -31948,6 +32046,9 @@ public void validate() throws org.apache.thrift.TException { 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 { @@ -31984,7 +32085,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, generateAndRegister break; } switch (schemeField.id) { - case 1: // GATEWAY_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); @@ -31992,7 +32102,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, generateAndRegister org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // USER_NAME + case 3: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -32015,6 +32125,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, generateAndRegiste 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); @@ -32042,6 +32157,7 @@ private static class generateAndRegisterSSHKeys_argsTupleScheme extends TupleSch @Override public void write(org.apache.thrift.protocol.TProtocol prot, generateAndRegisterSSHKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; + struct.authzToken.write(oprot); oprot.writeString(struct.gatewayId); oprot.writeString(struct.userName); } @@ -32049,6 +32165,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, generateAndRegister @Override public void read(org.apache.thrift.protocol.TProtocol prot, generateAndRegisterSSHKeys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (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(); @@ -32743,7 +32862,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, generateAndRegisterS public static class getSSHPubKey_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSSHPubKey_args"); - private static final org.apache.thrift.protocol.TField AIRAVATA_CRED_STORE_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("airavataCredStoreToken", org.apache.thrift.protocol.TType.STRING, (short)1); + 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 AIRAVATA_CRED_STORE_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("airavataCredStoreToken", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -32751,11 +32871,13 @@ public static class getSSHPubKey_args implements org.apache.thrift.TBase byName = new HashMap(); @@ -32770,7 +32892,9 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // AIRAVATA_CRED_STORE_TOKEN + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // AIRAVATA_CRED_STORE_TOKEN return AIRAVATA_CRED_STORE_TOKEN; default: return null; @@ -32815,6 +32939,8 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.AIRAVATA_CRED_STORE_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("airavataCredStoreToken", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); @@ -32825,9 +32951,11 @@ public getSSHPubKey_args() { } public getSSHPubKey_args( + org.apache.airavata.model.security.AuthzToken authzToken, String airavataCredStoreToken) { this(); + this.authzToken = authzToken; this.airavataCredStoreToken = airavataCredStoreToken; } @@ -32835,6 +32963,9 @@ public getSSHPubKey_args( * Performs a deep copy on other. */ public getSSHPubKey_args(getSSHPubKey_args other) { + if (other.isSetAuthzToken()) { + this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); + } if (other.isSetAiravataCredStoreToken()) { this.airavataCredStoreToken = other.airavataCredStoreToken; } @@ -32846,9 +32977,34 @@ public getSSHPubKey_args deepCopy() { @Override public void clear() { + this.authzToken = null; this.airavataCredStoreToken = null; } + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public getSSHPubKey_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 String getAiravataCredStoreToken() { return this.airavataCredStoreToken; } @@ -32875,6 +33031,14 @@ public void setAiravataCredStoreTokenIsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case AUTHZ_TOKEN: + if (value == null) { + unsetAuthzToken(); + } else { + setAuthzToken((org.apache.airavata.model.security.AuthzToken)value); + } + break; + case AIRAVATA_CRED_STORE_TOKEN: if (value == null) { unsetAiravataCredStoreToken(); @@ -32888,6 +33052,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case AIRAVATA_CRED_STORE_TOKEN: return getAiravataCredStoreToken(); @@ -32902,6 +33069,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case AIRAVATA_CRED_STORE_TOKEN: return isSetAiravataCredStoreToken(); } @@ -32921,6 +33090,15 @@ public boolean equals(getSSHPubKey_args that) { if (that == null) return false; + 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_airavataCredStoreToken = true && this.isSetAiravataCredStoreToken(); boolean that_present_airavataCredStoreToken = true && that.isSetAiravataCredStoreToken(); if (this_present_airavataCredStoreToken || that_present_airavataCredStoreToken) { @@ -32937,6 +33115,11 @@ public boolean equals(getSSHPubKey_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_airavataCredStoreToken = true && (isSetAiravataCredStoreToken()); list.add(present_airavataCredStoreToken); if (present_airavataCredStoreToken) @@ -32953,6 +33136,16 @@ public int compareTo(getSSHPubKey_args other) { int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetAiravataCredStoreToken()).compareTo(other.isSetAiravataCredStoreToken()); if (lastComparison != 0) { return lastComparison; @@ -32983,6 +33176,14 @@ public String toString() { StringBuilder sb = new StringBuilder("getSSHPubKey_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("airavataCredStoreToken:"); if (this.airavataCredStoreToken == null) { sb.append("null"); @@ -32996,10 +33197,16 @@ public String 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 (airavataCredStoreToken == null) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'airavataCredStoreToken' 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 { @@ -33036,7 +33243,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getSSHPubKey_args s break; } switch (schemeField.id) { - case 1: // AIRAVATA_CRED_STORE_TOKEN + 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: // AIRAVATA_CRED_STORE_TOKEN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.airavataCredStoreToken = iprot.readString(); struct.setAiravataCredStoreTokenIsSet(true); @@ -33059,6 +33275,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getSSHPubKey_args struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.authzToken != null) { + oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC); + struct.authzToken.write(oprot); + oprot.writeFieldEnd(); + } if (struct.airavataCredStoreToken != null) { oprot.writeFieldBegin(AIRAVATA_CRED_STORE_TOKEN_FIELD_DESC); oprot.writeString(struct.airavataCredStoreToken); @@ -33081,12 +33302,16 @@ private static class getSSHPubKey_argsTupleScheme extends TupleScheme, java.io.Serializable, Cloneable, Comparable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUserSSHPubKeys_args"); - 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)1); + 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 USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("userName", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -33787,11 +34013,13 @@ public static class getAllUserSSHPubKeys_args implements org.apache.thrift.TBase schemes.put(TupleScheme.class, new getAllUserSSHPubKeys_argsTupleSchemeFactory()); } + public org.apache.airavata.model.security.AuthzToken authzToken; // required public 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 { - USER_NAME((short)1, "userName"); + AUTHZ_TOKEN((short)1, "authzToken"), + USER_NAME((short)2, "userName"); private static final Map byName = new HashMap(); @@ -33806,7 +34034,9 @@ public enum _Fields implements org.apache.thrift.TFieldIdEnum { */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // USER_NAME + case 1: // AUTHZ_TOKEN + return AUTHZ_TOKEN; + case 2: // USER_NAME return USER_NAME; default: return null; @@ -33851,6 +34081,8 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 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.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 = Collections.unmodifiableMap(tmpMap); @@ -33861,9 +34093,11 @@ public getAllUserSSHPubKeys_args() { } public getAllUserSSHPubKeys_args( + org.apache.airavata.model.security.AuthzToken authzToken, String userName) { this(); + this.authzToken = authzToken; this.userName = userName; } @@ -33871,6 +34105,9 @@ public getAllUserSSHPubKeys_args( * Performs a deep copy on other. */ public getAllUserSSHPubKeys_args(getAllUserSSHPubKeys_args other) { + if (other.isSetAuthzToken()) { + this.authzToken = new org.apache.airavata.model.security.AuthzToken(other.authzToken); + } if (other.isSetUserName()) { this.userName = other.userName; } @@ -33882,9 +34119,34 @@ public getAllUserSSHPubKeys_args deepCopy() { @Override public void clear() { + this.authzToken = null; this.userName = null; } + public org.apache.airavata.model.security.AuthzToken getAuthzToken() { + return this.authzToken; + } + + public getAllUserSSHPubKeys_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 String getUserName() { return this.userName; } @@ -33911,6 +34173,14 @@ public void setUserNameIsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { + case AUTHZ_TOKEN: + if (value == null) { + unsetAuthzToken(); + } else { + setAuthzToken((org.apache.airavata.model.security.AuthzToken)value); + } + break; + case USER_NAME: if (value == null) { unsetUserName(); @@ -33924,6 +34194,9 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case AUTHZ_TOKEN: + return getAuthzToken(); + case USER_NAME: return getUserName(); @@ -33938,6 +34211,8 @@ public boolean isSet(_Fields field) { } switch (field) { + case AUTHZ_TOKEN: + return isSetAuthzToken(); case USER_NAME: return isSetUserName(); } @@ -33957,6 +34232,15 @@ public boolean equals(getAllUserSSHPubKeys_args that) { if (that == null) return false; + 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_userName = true && this.isSetUserName(); boolean that_present_userName = true && that.isSetUserName(); if (this_present_userName || that_present_userName) { @@ -33973,6 +34257,11 @@ public boolean equals(getAllUserSSHPubKeys_args that) { public int hashCode() { List list = new ArrayList(); + boolean present_authzToken = true && (isSetAuthzToken()); + list.add(present_authzToken); + if (present_authzToken) + list.add(authzToken); + boolean present_userName = true && (isSetUserName()); list.add(present_userName); if (present_userName) @@ -33989,6 +34278,16 @@ public int compareTo(getAllUserSSHPubKeys_args other) { int lastComparison = 0; + lastComparison = 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 = Boolean.valueOf(isSetUserName()).compareTo(other.isSetUserName()); if (lastComparison != 0) { return lastComparison; @@ -34019,6 +34318,14 @@ public String toString() { StringBuilder sb = new StringBuilder("getAllUserSSHPubKeys_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("userName:"); if (this.userName == null) { sb.append("null"); @@ -34032,10 +34339,16 @@ public String 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 (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 { @@ -34072,7 +34385,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, getAllUserSSHPubKey break; } switch (schemeField.id) { - case 1: // USER_NAME + 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: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.userName = iprot.readString(); struct.setUserNameIsSet(true); @@ -34095,6 +34417,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, getAllUserSSHPubKe struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.authzToken != null) { + oprot.writeFieldBegin(AUTHZ_TOKEN_FIELD_DESC); + struct.authzToken.write(oprot); + oprot.writeFieldEnd(); + } if (struct.userName != null) { oprot.writeFieldBegin(USER_NAME_FIELD_DESC); oprot.writeString(struct.userName); @@ -34117,12 +34444,16 @@ private static class getAllUserSSHPubKeys_argsTupleScheme extends TupleSchemeauthzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->gatewayId); isset_gatewayId = true; @@ -2069,7 +2078,7 @@ uint32_t Airavata_generateAndRegisterSSHKeys_args::read(::apache::thrift::protoc xfer += iprot->skip(ftype); } break; - case 2: + case 3: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -2086,6 +2095,8 @@ uint32_t Airavata_generateAndRegisterSSHKeys_args::read(::apache::thrift::protoc xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) @@ -2098,11 +2109,15 @@ uint32_t Airavata_generateAndRegisterSSHKeys_args::write(::apache::thrift::proto oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_generateAndRegisterSSHKeys_args"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); @@ -2122,11 +2137,15 @@ uint32_t Airavata_generateAndRegisterSSHKeys_pargs::write(::apache::thrift::prot oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_generateAndRegisterSSHKeys_pargs"); - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->gatewayId))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 3); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); @@ -2318,6 +2337,7 @@ uint32_t Airavata_getSSHPubKey_args::read(::apache::thrift::protocol::TProtocol* using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_airavataCredStoreToken = false; while (true) @@ -2329,6 +2349,14 @@ uint32_t Airavata_getSSHPubKey_args::read(::apache::thrift::protocol::TProtocol* switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->airavataCredStoreToken); isset_airavataCredStoreToken = true; @@ -2345,6 +2373,8 @@ uint32_t Airavata_getSSHPubKey_args::read(::apache::thrift::protocol::TProtocol* xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_airavataCredStoreToken) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; @@ -2355,7 +2385,11 @@ uint32_t Airavata_getSSHPubKey_args::write(::apache::thrift::protocol::TProtocol oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_getSSHPubKey_args"); - xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->airavataCredStoreToken); xfer += oprot->writeFieldEnd(); @@ -2375,7 +2409,11 @@ uint32_t Airavata_getSSHPubKey_pargs::write(::apache::thrift::protocol::TProtoco oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_getSSHPubKey_pargs"); - xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("airavataCredStoreToken", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->airavataCredStoreToken))); xfer += oprot->writeFieldEnd(); @@ -2567,6 +2605,7 @@ uint32_t Airavata_getAllUserSSHPubKeys_args::read(::apache::thrift::protocol::TP using ::apache::thrift::protocol::TProtocolException; + bool isset_authzToken = false; bool isset_userName = false; while (true) @@ -2578,6 +2617,14 @@ uint32_t Airavata_getAllUserSSHPubKeys_args::read(::apache::thrift::protocol::TP switch (fid) { case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->authzToken.read(iprot); + isset_authzToken = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->userName); isset_userName = true; @@ -2594,6 +2641,8 @@ uint32_t Airavata_getAllUserSSHPubKeys_args::read(::apache::thrift::protocol::TP xfer += iprot->readStructEnd(); + if (!isset_authzToken) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_userName) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; @@ -2604,7 +2653,11 @@ uint32_t Airavata_getAllUserSSHPubKeys_args::write(::apache::thrift::protocol::T oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_getAllUserSSHPubKeys_args"); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->authzToken.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString(this->userName); xfer += oprot->writeFieldEnd(); @@ -2624,7 +2677,11 @@ uint32_t Airavata_getAllUserSSHPubKeys_pargs::write(::apache::thrift::protocol:: oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Airavata_getAllUserSSHPubKeys_pargs"); - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeFieldBegin("authzToken", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->authzToken)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 2); xfer += oprot->writeString((*(this->userName))); xfer += oprot->writeFieldEnd(); @@ -36970,18 +37027,19 @@ bool AiravataClient::recv_isGatewayExist() throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "isGatewayExist failed: unknown result"); } -void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) +void AiravataClient::generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) { - send_generateAndRegisterSSHKeys(gatewayId, userName); + send_generateAndRegisterSSHKeys(authzToken, gatewayId, userName); recv_generateAndRegisterSSHKeys(_return); } -void AiravataClient::send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName) +void AiravataClient::send_generateAndRegisterSSHKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) { int32_t cseqid = 0; oprot_->writeMessageBegin("generateAndRegisterSSHKeys", ::apache::thrift::protocol::T_CALL, cseqid); Airavata_generateAndRegisterSSHKeys_pargs args; + args.authzToken = &authzToken; args.gatewayId = &gatewayId; args.userName = &userName; args.write(oprot_); @@ -37038,18 +37096,19 @@ void AiravataClient::recv_generateAndRegisterSSHKeys(std::string& _return) throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); } -void AiravataClient::getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) +void AiravataClient::getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken) { - send_getSSHPubKey(airavataCredStoreToken); + send_getSSHPubKey(authzToken, airavataCredStoreToken); recv_getSSHPubKey(_return); } -void AiravataClient::send_getSSHPubKey(const std::string& airavataCredStoreToken) +void AiravataClient::send_getSSHPubKey(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken) { int32_t cseqid = 0; oprot_->writeMessageBegin("getSSHPubKey", ::apache::thrift::protocol::T_CALL, cseqid); Airavata_getSSHPubKey_pargs args; + args.authzToken = &authzToken; args.airavataCredStoreToken = &airavataCredStoreToken; args.write(oprot_); @@ -37105,18 +37164,19 @@ void AiravataClient::recv_getSSHPubKey(std::string& _return) throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "getSSHPubKey failed: unknown result"); } -void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const std::string& userName) +void AiravataClient::getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) { - send_getAllUserSSHPubKeys(userName); + send_getAllUserSSHPubKeys(authzToken, userName); recv_getAllUserSSHPubKeys(_return); } -void AiravataClient::send_getAllUserSSHPubKeys(const std::string& userName) +void AiravataClient::send_getAllUserSSHPubKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) { int32_t cseqid = 0; oprot_->writeMessageBegin("getAllUserSSHPubKeys", ::apache::thrift::protocol::T_CALL, cseqid); Airavata_getAllUserSSHPubKeys_pargs args; + args.authzToken = &authzToken; args.userName = &userName; args.write(oprot_); @@ -45355,7 +45415,7 @@ void AiravataProcessor::process_generateAndRegisterSSHKeys(int32_t seqid, ::apac Airavata_generateAndRegisterSSHKeys_result result; try { - iface_->generateAndRegisterSSHKeys(result.success, args.gatewayId, args.userName); + iface_->generateAndRegisterSSHKeys(result.success, args.authzToken, args.gatewayId, args.userName); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -45418,7 +45478,7 @@ void AiravataProcessor::process_getSSHPubKey(int32_t seqid, ::apache::thrift::pr Airavata_getSSHPubKey_result result; try { - iface_->getSSHPubKey(result.success, args.airavataCredStoreToken); + iface_->getSSHPubKey(result.success, args.authzToken, args.airavataCredStoreToken); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; @@ -45481,7 +45541,7 @@ void AiravataProcessor::process_getAllUserSSHPubKeys(int32_t seqid, ::apache::th Airavata_getAllUserSSHPubKeys_result result; try { - iface_->getAllUserSSHPubKeys(result.success, args.userName); + iface_->getAllUserSSHPubKeys(result.success, args.authzToken, args.userName); result.__isset.success = true; } catch ( ::apache::airavata::api::error::InvalidRequestException &ire) { result.ire = ire; diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h index bd3cd79e21..88a9de440d 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h @@ -62,12 +62,13 @@ class AiravataIf { * * * + * @param authzToken * @param gatewayId * @param userName */ - virtual void generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) = 0; - virtual void getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) = 0; - virtual void getAllUserSSHPubKeys(std::map & _return, const std::string& userName) = 0; + virtual void generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) = 0; + virtual void getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken) = 0; + virtual void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) = 0; /** * Creates a Project with basic metadata. @@ -1739,13 +1740,13 @@ class AiravataNull : virtual public AiravataIf { bool _return = false; return _return; } - void generateAndRegisterSSHKeys(std::string& /* _return */, const std::string& /* gatewayId */, const std::string& /* userName */) { + void generateAndRegisterSSHKeys(std::string& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const std::string& /* userName */) { return; } - void getSSHPubKey(std::string& /* _return */, const std::string& /* airavataCredStoreToken */) { + void getSSHPubKey(std::string& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* airavataCredStoreToken */) { return; } - void getAllUserSSHPubKeys(std::map & /* _return */, const std::string& /* userName */) { + void getAllUserSSHPubKeys(std::map & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* userName */) { return; } void createProject(std::string& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const ::apache::airavata::model::workspace::Project& /* project */) { @@ -3158,8 +3159,8 @@ class Airavata_isGatewayExist_presult { class Airavata_generateAndRegisterSSHKeys_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "1E6476DBB101101BCE4A4B190EDEB468"; + static const uint8_t binary_fingerprint[16]; // = {0x1E,0x64,0x76,0xDB,0xB1,0x01,0x10,0x1B,0xCE,0x4A,0x4B,0x19,0x0E,0xDE,0xB4,0x68}; Airavata_generateAndRegisterSSHKeys_args(const Airavata_generateAndRegisterSSHKeys_args&); Airavata_generateAndRegisterSSHKeys_args& operator=(const Airavata_generateAndRegisterSSHKeys_args&); @@ -3167,15 +3168,20 @@ class Airavata_generateAndRegisterSSHKeys_args { } virtual ~Airavata_generateAndRegisterSSHKeys_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string gatewayId; std::string userName; + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); + void __set_gatewayId(const std::string& val); void __set_userName(const std::string& val); bool operator == (const Airavata_generateAndRegisterSSHKeys_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(gatewayId == rhs.gatewayId)) return false; if (!(userName == rhs.userName)) @@ -3198,11 +3204,12 @@ class Airavata_generateAndRegisterSSHKeys_args { class Airavata_generateAndRegisterSSHKeys_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + static const char* ascii_fingerprint; // = "1E6476DBB101101BCE4A4B190EDEB468"; + static const uint8_t binary_fingerprint[16]; // = {0x1E,0x64,0x76,0xDB,0xB1,0x01,0x10,0x1B,0xCE,0x4A,0x4B,0x19,0x0E,0xDE,0xB4,0x68}; virtual ~Airavata_generateAndRegisterSSHKeys_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* gatewayId; const std::string* userName; @@ -3302,8 +3309,8 @@ class Airavata_generateAndRegisterSSHKeys_presult { class Airavata_getSSHPubKey_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; Airavata_getSSHPubKey_args(const Airavata_getSSHPubKey_args&); Airavata_getSSHPubKey_args& operator=(const Airavata_getSSHPubKey_args&); @@ -3311,12 +3318,17 @@ class Airavata_getSSHPubKey_args { } virtual ~Airavata_getSSHPubKey_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string airavataCredStoreToken; + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); + void __set_airavataCredStoreToken(const std::string& val); bool operator == (const Airavata_getSSHPubKey_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(airavataCredStoreToken == rhs.airavataCredStoreToken)) return false; return true; @@ -3337,11 +3349,12 @@ class Airavata_getSSHPubKey_args { class Airavata_getSSHPubKey_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; virtual ~Airavata_getSSHPubKey_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* airavataCredStoreToken; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -3440,8 +3453,8 @@ class Airavata_getSSHPubKey_presult { class Airavata_getAllUserSSHPubKeys_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; Airavata_getAllUserSSHPubKeys_args(const Airavata_getAllUserSSHPubKeys_args&); Airavata_getAllUserSSHPubKeys_args& operator=(const Airavata_getAllUserSSHPubKeys_args&); @@ -3449,12 +3462,17 @@ class Airavata_getAllUserSSHPubKeys_args { } virtual ~Airavata_getAllUserSSHPubKeys_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; std::string userName; + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); + void __set_userName(const std::string& val); bool operator == (const Airavata_getAllUserSSHPubKeys_args & rhs) const { + if (!(authzToken == rhs.authzToken)) + return false; if (!(userName == rhs.userName)) return false; return true; @@ -3475,11 +3493,12 @@ class Airavata_getAllUserSSHPubKeys_args { class Airavata_getAllUserSSHPubKeys_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; virtual ~Airavata_getAllUserSSHPubKeys_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; const std::string* userName; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; @@ -20488,14 +20507,14 @@ class AiravataClient : virtual public AiravataIf { bool isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId); void send_isGatewayExist(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId); bool recv_isGatewayExist(); - void generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName); - void send_generateAndRegisterSSHKeys(const std::string& gatewayId, const std::string& userName); + void generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName); + void send_generateAndRegisterSSHKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName); void recv_generateAndRegisterSSHKeys(std::string& _return); - void getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken); - void send_getSSHPubKey(const std::string& airavataCredStoreToken); + void getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken); + void send_getSSHPubKey(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken); void recv_getSSHPubKey(std::string& _return); - void getAllUserSSHPubKeys(std::map & _return, const std::string& userName); - void send_getAllUserSSHPubKeys(const std::string& userName); + void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName); + void send_getAllUserSSHPubKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName); void recv_getAllUserSSHPubKeys(std::map & _return); void createProject(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project); void send_createProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project); @@ -21165,33 +21184,33 @@ class AiravataMultiface : virtual public AiravataIf { return ifaces_[i]->isGatewayExist(authzToken, gatewayId); } - void generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) { + void generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->generateAndRegisterSSHKeys(_return, gatewayId, userName); + ifaces_[i]->generateAndRegisterSSHKeys(_return, authzToken, gatewayId, userName); } - ifaces_[i]->generateAndRegisterSSHKeys(_return, gatewayId, userName); + ifaces_[i]->generateAndRegisterSSHKeys(_return, authzToken, gatewayId, userName); return; } - void getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) { + void getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->getSSHPubKey(_return, airavataCredStoreToken); + ifaces_[i]->getSSHPubKey(_return, authzToken, airavataCredStoreToken); } - ifaces_[i]->getSSHPubKey(_return, airavataCredStoreToken); + ifaces_[i]->getSSHPubKey(_return, authzToken, airavataCredStoreToken); return; } - void getAllUserSSHPubKeys(std::map & _return, const std::string& userName) { + void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) { size_t sz = ifaces_.size(); size_t i = 0; for (; i < (sz - 1); ++i) { - ifaces_[i]->getAllUserSSHPubKeys(_return, userName); + ifaces_[i]->getAllUserSSHPubKeys(_return, authzToken, userName); } - ifaces_[i]->getAllUserSSHPubKeys(_return, userName); + ifaces_[i]->getAllUserSSHPubKeys(_return, authzToken, userName); return; } diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp index 8f8ff247b2..7e8b86d0c5 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp @@ -95,20 +95,21 @@ class AiravataHandler : virtual public AiravataIf { * * * + * @param authzToken * @param gatewayId * @param userName */ - void generateAndRegisterSSHKeys(std::string& _return, const std::string& gatewayId, const std::string& userName) { + void generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) { // Your implementation goes here printf("generateAndRegisterSSHKeys\n"); } - void getSSHPubKey(std::string& _return, const std::string& airavataCredStoreToken) { + void getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken) { // Your implementation goes here printf("getSSHPubKey\n"); } - void getAllUserSSHPubKeys(std::map & _return, const std::string& userName) { + void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) { // Your implementation goes here printf("getAllUserSSHPubKeys\n"); } diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php index 38e6e6acbd..0928ada56e 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php @@ -103,6 +103,7 @@ public function isGatewayExist(\Airavata\Model\Security\AuthzToken $authzToken, * * * + * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $gatewayId * @param string $userName * @return string @@ -110,23 +111,25 @@ public function isGatewayExist(\Airavata\Model\Security\AuthzToken $authzToken, * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException */ - public function generateAndRegisterSSHKeys($gatewayId, $userName); + public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName); /** + * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $airavataCredStoreToken * @return string * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException */ - public function getSSHPubKey($airavataCredStoreToken); + public function getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken); /** + * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userName * @return array * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException */ - public function getAllUserSSHPubKeys($userName); + public function getAllUserSSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $userName); /** * Creates a Project with basic metadata. * A Project is a container of experiments. @@ -2967,15 +2970,16 @@ public function recv_isGatewayExist() throw new \Exception("isGatewayExist failed: unknown result"); } - public function generateAndRegisterSSHKeys($gatewayId, $userName) + public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName) { - $this->send_generateAndRegisterSSHKeys($gatewayId, $userName); + $this->send_generateAndRegisterSSHKeys($authzToken, $gatewayId, $userName); return $this->recv_generateAndRegisterSSHKeys(); } - public function send_generateAndRegisterSSHKeys($gatewayId, $userName) + public function send_generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName) { $args = new \Airavata\API\Airavata_generateAndRegisterSSHKeys_args(); + $args->authzToken = $authzToken; $args->gatewayId = $gatewayId; $args->userName = $userName; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); @@ -3028,15 +3032,16 @@ public function recv_generateAndRegisterSSHKeys() throw new \Exception("generateAndRegisterSSHKeys failed: unknown result"); } - public function getSSHPubKey($airavataCredStoreToken) + public function getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken) { - $this->send_getSSHPubKey($airavataCredStoreToken); + $this->send_getSSHPubKey($authzToken, $airavataCredStoreToken); return $this->recv_getSSHPubKey(); } - public function send_getSSHPubKey($airavataCredStoreToken) + public function send_getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken) { $args = new \Airavata\API\Airavata_getSSHPubKey_args(); + $args->authzToken = $authzToken; $args->airavataCredStoreToken = $airavataCredStoreToken; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -3088,15 +3093,16 @@ public function recv_getSSHPubKey() throw new \Exception("getSSHPubKey failed: unknown result"); } - public function getAllUserSSHPubKeys($userName) + public function getAllUserSSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $userName) { - $this->send_getAllUserSSHPubKeys($userName); + $this->send_getAllUserSSHPubKeys($authzToken, $userName); return $this->recv_getAllUserSSHPubKeys(); } - public function send_getAllUserSSHPubKeys($userName) + public function send_getAllUserSSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $userName) { $args = new \Airavata\API\Airavata_getAllUserSSHPubKeys_args(); + $args->authzToken = $authzToken; $args->userName = $userName; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -12045,6 +12051,10 @@ public function write($output) { class Airavata_generateAndRegisterSSHKeys_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -12058,16 +12068,24 @@ public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( 'var' => 'gatewayId', 'type' => TType::STRING, ), - 2 => array( + 3 => array( 'var' => 'userName', 'type' => TType::STRING, ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } @@ -12097,13 +12115,21 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; - case 2: + case 3: if ($ftype == TType::STRING) { $xfer += $input->readString($this->userName); } else { @@ -12123,13 +12149,21 @@ public function read($input) public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Airavata_generateAndRegisterSSHKeys_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } @@ -12293,6 +12327,10 @@ public function write($output) { class Airavata_getSSHPubKey_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -12302,12 +12340,20 @@ public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( 'var' => 'airavataCredStoreToken', 'type' => TType::STRING, ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['airavataCredStoreToken'])) { $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; } @@ -12334,6 +12380,14 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->airavataCredStoreToken); } else { @@ -12353,8 +12407,16 @@ public function read($input) public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->airavataCredStoreToken !== null) { - $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 1); + $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); $xfer += $output->writeString($this->airavataCredStoreToken); $xfer += $output->writeFieldEnd(); } @@ -12518,6 +12580,10 @@ public function write($output) { class Airavata_getAllUserSSHPubKeys_args { static $_TSPEC; + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; /** * @var string */ @@ -12527,12 +12593,20 @@ public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( 'var' => 'userName', 'type' => TType::STRING, ), ); } if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } if (isset($vals['userName'])) { $this->userName = $vals['userName']; } @@ -12559,6 +12633,14 @@ public function read($input) switch ($fid) { case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: if ($ftype == TType::STRING) { $xfer += $input->readString($this->userName); } else { @@ -12578,8 +12660,16 @@ public function read($input) public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Airavata_getAllUserSSHPubKeys_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 1); + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote index 99b3ee16de..470ca441bd 100755 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote @@ -31,9 +31,9 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' bool deleteGateway(AuthzToken authzToken, string gatewayId)') print(' getAllGateways(AuthzToken authzToken)') print(' bool isGatewayExist(AuthzToken authzToken, string gatewayId)') - print(' string generateAndRegisterSSHKeys(string gatewayId, string userName)') - print(' string getSSHPubKey(string airavataCredStoreToken)') - print(' getAllUserSSHPubKeys(string userName)') + print(' string generateAndRegisterSSHKeys(AuthzToken authzToken, string gatewayId, string userName)') + print(' string getSSHPubKey(AuthzToken authzToken, string airavataCredStoreToken)') + print(' getAllUserSSHPubKeys(AuthzToken authzToken, string userName)') print(' string createProject(AuthzToken authzToken, string gatewayId, Project project)') print(' void updateProject(AuthzToken authzToken, string projectId, Project updatedProject)') print(' Project getProject(AuthzToken authzToken, string projectId)') @@ -240,22 +240,22 @@ elif cmd == 'isGatewayExist': pp.pprint(client.isGatewayExist(eval(args[0]),args[1],)) elif cmd == 'generateAndRegisterSSHKeys': - if len(args) != 2: - print('generateAndRegisterSSHKeys requires 2 args') + if len(args) != 3: + print('generateAndRegisterSSHKeys requires 3 args') sys.exit(1) - pp.pprint(client.generateAndRegisterSSHKeys(args[0],args[1],)) + pp.pprint(client.generateAndRegisterSSHKeys(eval(args[0]),args[1],args[2],)) elif cmd == 'getSSHPubKey': - if len(args) != 1: - print('getSSHPubKey requires 1 args') + if len(args) != 2: + print('getSSHPubKey requires 2 args') sys.exit(1) - pp.pprint(client.getSSHPubKey(args[0],)) + pp.pprint(client.getSSHPubKey(eval(args[0]),args[1],)) elif cmd == 'getAllUserSSHPubKeys': - if len(args) != 1: - print('getAllUserSSHPubKeys requires 1 args') + if len(args) != 2: + print('getAllUserSSHPubKeys requires 2 args') sys.exit(1) - pp.pprint(client.getAllUserSSHPubKeys(args[0],)) + pp.pprint(client.getAllUserSSHPubKeys(eval(args[0]),args[1],)) elif cmd == 'createProject': if len(args) != 3: diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py index d4de9965be..f3c5799777 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata.py @@ -75,7 +75,7 @@ def isGatewayExist(self, authzToken, gatewayId): """ pass - def generateAndRegisterSSHKeys(self, gatewayId, userName): + def generateAndRegisterSSHKeys(self, authzToken, gatewayId, userName): """ Generate and Register SSH Key Pair with Airavata Credential Store. @@ -93,21 +93,24 @@ def generateAndRegisterSSHKeys(self, gatewayId, userName): Parameters: + - authzToken - gatewayId - userName """ pass - def getSSHPubKey(self, airavataCredStoreToken): + def getSSHPubKey(self, authzToken, airavataCredStoreToken): """ Parameters: + - authzToken - airavataCredStoreToken """ pass - def getAllUserSSHPubKeys(self, userName): + def getAllUserSSHPubKeys(self, authzToken, userName): """ Parameters: + - authzToken - userName """ pass @@ -2373,7 +2376,7 @@ def recv_isGatewayExist(self): raise result.ae raise TApplicationException(TApplicationException.MISSING_RESULT, "isGatewayExist failed: unknown result"); - def generateAndRegisterSSHKeys(self, gatewayId, userName): + def generateAndRegisterSSHKeys(self, authzToken, gatewayId, userName): """ Generate and Register SSH Key Pair with Airavata Credential Store. @@ -2391,15 +2394,17 @@ def generateAndRegisterSSHKeys(self, gatewayId, userName): Parameters: + - authzToken - gatewayId - userName """ - self.send_generateAndRegisterSSHKeys(gatewayId, userName) + self.send_generateAndRegisterSSHKeys(authzToken, gatewayId, userName) return self.recv_generateAndRegisterSSHKeys() - def send_generateAndRegisterSSHKeys(self, gatewayId, userName): + def send_generateAndRegisterSSHKeys(self, authzToken, gatewayId, userName): self._oprot.writeMessageBegin('generateAndRegisterSSHKeys', TMessageType.CALL, self._seqid) args = generateAndRegisterSSHKeys_args() + args.authzToken = authzToken args.gatewayId = gatewayId args.userName = userName args.write(self._oprot) @@ -2427,17 +2432,19 @@ def recv_generateAndRegisterSSHKeys(self): raise result.ase raise TApplicationException(TApplicationException.MISSING_RESULT, "generateAndRegisterSSHKeys failed: unknown result"); - def getSSHPubKey(self, airavataCredStoreToken): + def getSSHPubKey(self, authzToken, airavataCredStoreToken): """ Parameters: + - authzToken - airavataCredStoreToken """ - self.send_getSSHPubKey(airavataCredStoreToken) + self.send_getSSHPubKey(authzToken, airavataCredStoreToken) return self.recv_getSSHPubKey() - def send_getSSHPubKey(self, airavataCredStoreToken): + def send_getSSHPubKey(self, authzToken, airavataCredStoreToken): self._oprot.writeMessageBegin('getSSHPubKey', TMessageType.CALL, self._seqid) args = getSSHPubKey_args() + args.authzToken = authzToken args.airavataCredStoreToken = airavataCredStoreToken args.write(self._oprot) self._oprot.writeMessageEnd() @@ -2464,17 +2471,19 @@ def recv_getSSHPubKey(self): raise result.ase raise TApplicationException(TApplicationException.MISSING_RESULT, "getSSHPubKey failed: unknown result"); - def getAllUserSSHPubKeys(self, userName): + def getAllUserSSHPubKeys(self, authzToken, userName): """ Parameters: + - authzToken - userName """ - self.send_getAllUserSSHPubKeys(userName) + self.send_getAllUserSSHPubKeys(authzToken, userName) return self.recv_getAllUserSSHPubKeys() - def send_getAllUserSSHPubKeys(self, userName): + def send_getAllUserSSHPubKeys(self, authzToken, userName): self._oprot.writeMessageBegin('getAllUserSSHPubKeys', TMessageType.CALL, self._seqid) args = getAllUserSSHPubKeys_args() + args.authzToken = authzToken args.userName = userName args.write(self._oprot) self._oprot.writeMessageEnd() @@ -8382,7 +8391,7 @@ def process_generateAndRegisterSSHKeys(self, seqid, iprot, oprot): iprot.readMessageEnd() result = generateAndRegisterSSHKeys_result() try: - result.success = self._handler.generateAndRegisterSSHKeys(args.gatewayId, args.userName) + result.success = self._handler.generateAndRegisterSSHKeys(args.authzToken, args.gatewayId, args.userName) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -8400,7 +8409,7 @@ def process_getSSHPubKey(self, seqid, iprot, oprot): iprot.readMessageEnd() result = getSSHPubKey_result() try: - result.success = self._handler.getSSHPubKey(args.airavataCredStoreToken) + result.success = self._handler.getSSHPubKey(args.authzToken, args.airavataCredStoreToken) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -8418,7 +8427,7 @@ def process_getAllUserSSHPubKeys(self, seqid, iprot, oprot): iprot.readMessageEnd() result = getAllUserSSHPubKeys_result() try: - result.success = self._handler.getAllUserSSHPubKeys(args.userName) + result.success = self._handler.getAllUserSSHPubKeys(args.authzToken, args.userName) except apache.airavata.api.error.ttypes.InvalidRequestException, ire: result.ire = ire except apache.airavata.api.error.ttypes.AiravataClientException, ace: @@ -12000,17 +12009,20 @@ def __ne__(self, other): class generateAndRegisterSSHKeys_args: """ Attributes: + - authzToken - gatewayId - userName """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'gatewayId', None, None, ), # 1 - (2, TType.STRING, 'userName', None, None, ), # 2 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'gatewayId', None, None, ), # 2 + (3, TType.STRING, 'userName', None, None, ), # 3 ) - def __init__(self, gatewayId=None, userName=None,): + def __init__(self, authzToken=None, gatewayId=None, userName=None,): + self.authzToken = authzToken self.gatewayId = gatewayId self.userName = userName @@ -12024,11 +12036,17 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: self.gatewayId = iprot.readString(); else: iprot.skip(ftype) - elif fid == 2: + elif fid == 3: if ftype == TType.STRING: self.userName = iprot.readString(); else: @@ -12043,18 +12061,24 @@ def write(self, oprot): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('generateAndRegisterSSHKeys_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.gatewayId is not None: - oprot.writeFieldBegin('gatewayId', TType.STRING, 1) + oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 2) + oprot.writeFieldBegin('userName', TType.STRING, 3) oprot.writeString(self.userName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') if self.userName is None: @@ -12064,6 +12088,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.gatewayId) value = (value * 31) ^ hash(self.userName) return value @@ -12188,15 +12213,18 @@ def __ne__(self, other): class getSSHPubKey_args: """ Attributes: + - authzToken - airavataCredStoreToken """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'airavataCredStoreToken', None, None, ), # 1 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'airavataCredStoreToken', None, None, ), # 2 ) - def __init__(self, airavataCredStoreToken=None,): + def __init__(self, authzToken=None, airavataCredStoreToken=None,): + self.authzToken = authzToken self.airavataCredStoreToken = airavataCredStoreToken def read(self, iprot): @@ -12209,6 +12237,12 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: self.airavataCredStoreToken = iprot.readString(); else: @@ -12223,14 +12257,20 @@ def write(self, oprot): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('getSSHPubKey_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.airavataCredStoreToken is not None: - oprot.writeFieldBegin('airavataCredStoreToken', TType.STRING, 1) + oprot.writeFieldBegin('airavataCredStoreToken', TType.STRING, 2) oprot.writeString(self.airavataCredStoreToken) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.airavataCredStoreToken is None: raise TProtocol.TProtocolException(message='Required field airavataCredStoreToken is unset!') return @@ -12238,6 +12278,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.airavataCredStoreToken) return value @@ -12361,15 +12402,18 @@ def __ne__(self, other): class getAllUserSSHPubKeys_args: """ Attributes: + - authzToken - userName """ thrift_spec = ( None, # 0 - (1, TType.STRING, 'userName', None, None, ), # 1 + (1, TType.STRUCT, 'authzToken', (apache.airavata.model.security.ttypes.AuthzToken, apache.airavata.model.security.ttypes.AuthzToken.thrift_spec), None, ), # 1 + (2, TType.STRING, 'userName', None, None, ), # 2 ) - def __init__(self, userName=None,): + def __init__(self, authzToken=None, userName=None,): + self.authzToken = authzToken self.userName = userName def read(self, iprot): @@ -12382,6 +12426,12 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: + if ftype == TType.STRUCT: + self.authzToken = apache.airavata.model.security.ttypes.AuthzToken() + self.authzToken.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: if ftype == TType.STRING: self.userName = iprot.readString(); else: @@ -12396,14 +12446,20 @@ def write(self, oprot): oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) return oprot.writeStructBegin('getAllUserSSHPubKeys_args') + if self.authzToken is not None: + oprot.writeFieldBegin('authzToken', TType.STRUCT, 1) + self.authzToken.write(oprot) + oprot.writeFieldEnd() if self.userName is not None: - oprot.writeFieldBegin('userName', TType.STRING, 1) + oprot.writeFieldBegin('userName', TType.STRING, 2) oprot.writeString(self.userName) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.authzToken is None: + raise TProtocol.TProtocolException(message='Required field authzToken is unset!') if self.userName is None: raise TProtocol.TProtocolException(message='Required field userName is unset!') return @@ -12411,6 +12467,7 @@ def validate(self): def __hash__(self): value = 17 + value = (value * 31) ^ hash(self.authzToken) value = (value * 31) ^ hash(self.userName) return value diff --git a/thrift-interface-descriptions/airavata-api/airavata_api.thrift b/thrift-interface-descriptions/airavata-api/airavata_api.thrift index f62b13d51a..d34c29d552 100644 --- a/thrift-interface-descriptions/airavata-api/airavata_api.thrift +++ b/thrift-interface-descriptions/airavata-api/airavata_api.thrift @@ -135,17 +135,21 @@ service Airavata { * **/ - string generateAndRegisterSSHKeys (1: required string gatewayId, 2: required string userName) + string generateAndRegisterSSHKeys (1: required security_model.AuthzToken authzToken, + 2: required string gatewayId, + 3: required string userName) throws (1: airavata_errors.InvalidRequestException ire, 2: airavata_errors.AiravataClientException ace, 3: airavata_errors.AiravataSystemException ase) - string getSSHPubKey (1: required string airavataCredStoreToken) + string getSSHPubKey (1: required security_model.AuthzToken authzToken, + 2: required string airavataCredStoreToken) throws (1: airavata_errors.InvalidRequestException ire, 2: airavata_errors.AiravataClientException ace, 3: airavata_errors.AiravataSystemException ase) - map getAllUserSSHPubKeys (1: required string userName) + map getAllUserSSHPubKeys (1: required security_model.AuthzToken authzToken, + 2: required string userName) throws (1: airavata_errors.InvalidRequestException ire, 2: airavata_errors.AiravataClientException ace, 3: airavata_errors.AiravataSystemException ase) From f903d601405a2ba8182d864437fd4a2c97a4b74a Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Mon, 3 Aug 2015 15:38:36 -0400 Subject: [PATCH 14/18] Update experiment status according to the process status changes --- .../lib/airavata/messaging_events_types.cpp | 29 ++++- .../lib/airavata/messaging_events_types.h | 11 +- .../Airavata/Model/Messaging/Event/Types.php | 25 +++- .../airavata/model/messaging/event/ttypes.py | 21 +++- .../messaging/event/ProcessSubmitEvent.java | 109 ++++++++++++++++- .../gfac/server/GfacServerHandler.java | 22 +++- .../core/impl/RabbitMQStatusConsumer.java | 19 +-- .../core/impl/GFACPassiveJobSubmitter.java | 8 +- .../server/OrchestratorServerHandler.java | 113 ++++++++++++++---- .../orchestrator/util/OrchestratorUtils.java | 45 +++++++ .../airavata-api/messaging_events.thrift | 3 +- 11 files changed, 354 insertions(+), 51 deletions(-) create mode 100644 modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.cpp index b32a98751e..154c49cb64 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.cpp @@ -1285,12 +1285,16 @@ void ProcessSubmitEvent::__set_gatewayId(const std::string& val) { this->gatewayId = val; } +void ProcessSubmitEvent::__set_experimentId(const std::string& val) { + this->experimentId = val; +} + void ProcessSubmitEvent::__set_tokenId(const std::string& val) { this->tokenId = val; } -const char* ProcessSubmitEvent::ascii_fingerprint = "AB879940BD15B6B25691265F7384B271"; -const uint8_t ProcessSubmitEvent::binary_fingerprint[16] = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; +const char* ProcessSubmitEvent::ascii_fingerprint = "C93D890311F28844166CF6E571EB3AC2"; +const uint8_t ProcessSubmitEvent::binary_fingerprint[16] = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; uint32_t ProcessSubmitEvent::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -1305,6 +1309,7 @@ uint32_t ProcessSubmitEvent::read(::apache::thrift::protocol::TProtocol* iprot) bool isset_processId = false; bool isset_gatewayId = false; + bool isset_experimentId = false; bool isset_tokenId = false; while (true) @@ -1332,6 +1337,14 @@ uint32_t ProcessSubmitEvent::read(::apache::thrift::protocol::TProtocol* iprot) } break; case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->experimentId); + isset_experimentId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->tokenId); isset_tokenId = true; @@ -1352,6 +1365,8 @@ uint32_t ProcessSubmitEvent::read(::apache::thrift::protocol::TProtocol* iprot) throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_gatewayId) throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_experimentId) + throw TProtocolException(TProtocolException::INVALID_DATA); if (!isset_tokenId) throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; @@ -1370,7 +1385,11 @@ uint32_t ProcessSubmitEvent::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeString(this->gatewayId); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeFieldBegin("experimentId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->experimentId); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tokenId", ::apache::thrift::protocol::T_STRING, 4); xfer += oprot->writeString(this->tokenId); xfer += oprot->writeFieldEnd(); @@ -1384,17 +1403,20 @@ void swap(ProcessSubmitEvent &a, ProcessSubmitEvent &b) { using ::std::swap; swap(a.processId, b.processId); swap(a.gatewayId, b.gatewayId); + swap(a.experimentId, b.experimentId); swap(a.tokenId, b.tokenId); } ProcessSubmitEvent::ProcessSubmitEvent(const ProcessSubmitEvent& other29) { processId = other29.processId; gatewayId = other29.gatewayId; + experimentId = other29.experimentId; tokenId = other29.tokenId; } ProcessSubmitEvent& ProcessSubmitEvent::operator=(const ProcessSubmitEvent& other30) { processId = other30.processId; gatewayId = other30.gatewayId; + experimentId = other30.experimentId; tokenId = other30.tokenId; return *this; } @@ -1403,6 +1425,7 @@ std::ostream& operator<<(std::ostream& out, const ProcessSubmitEvent& obj) { out << "ProcessSubmitEvent("; out << "processId=" << to_string(obj.processId); out << ", " << "gatewayId=" << to_string(obj.gatewayId); + out << ", " << "experimentId=" << to_string(obj.experimentId); out << ", " << "tokenId=" << to_string(obj.tokenId); out << ")"; return out; diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.h index 33071acc5d..63556e4ee3 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/messaging_events_types.h @@ -509,23 +509,26 @@ void swap(JobIdentifier &a, JobIdentifier &b); class ProcessSubmitEvent { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + static const char* ascii_fingerprint; // = "C93D890311F28844166CF6E571EB3AC2"; + static const uint8_t binary_fingerprint[16]; // = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; ProcessSubmitEvent(const ProcessSubmitEvent&); ProcessSubmitEvent& operator=(const ProcessSubmitEvent&); - ProcessSubmitEvent() : processId(), gatewayId(), tokenId() { + ProcessSubmitEvent() : processId(), gatewayId(), experimentId(), tokenId() { } virtual ~ProcessSubmitEvent() throw(); std::string processId; std::string gatewayId; + std::string experimentId; std::string tokenId; void __set_processId(const std::string& val); void __set_gatewayId(const std::string& val); + void __set_experimentId(const std::string& val); + void __set_tokenId(const std::string& val); bool operator == (const ProcessSubmitEvent & rhs) const @@ -534,6 +537,8 @@ class ProcessSubmitEvent { return false; if (!(gatewayId == rhs.gatewayId)) return false; + if (!(experimentId == rhs.experimentId)) + return false; if (!(tokenId == rhs.tokenId)) return false; return true; diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Messaging/Event/Types.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Messaging/Event/Types.php index c6dce6c0c6..6fa7020c6e 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Messaging/Event/Types.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/Model/Messaging/Event/Types.php @@ -1156,6 +1156,10 @@ class ProcessSubmitEvent { * @var string */ public $gatewayId = null; + /** + * @var string + */ + public $experimentId = null; /** * @var string */ @@ -1173,6 +1177,10 @@ public function __construct($vals=null) { 'type' => TType::STRING, ), 3 => array( + 'var' => 'experimentId', + 'type' => TType::STRING, + ), + 4 => array( 'var' => 'tokenId', 'type' => TType::STRING, ), @@ -1185,6 +1193,9 @@ public function __construct($vals=null) { if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } + if (isset($vals['experimentId'])) { + $this->experimentId = $vals['experimentId']; + } if (isset($vals['tokenId'])) { $this->tokenId = $vals['tokenId']; } @@ -1225,6 +1236,13 @@ public function read($input) } break; case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->experimentId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: if ($ftype == TType::STRING) { $xfer += $input->readString($this->tokenId); } else { @@ -1254,8 +1272,13 @@ public function write($output) { $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } + if ($this->experimentId !== null) { + $xfer += $output->writeFieldBegin('experimentId', TType::STRING, 3); + $xfer += $output->writeString($this->experimentId); + $xfer += $output->writeFieldEnd(); + } if ($this->tokenId !== null) { - $xfer += $output->writeFieldBegin('tokenId', TType::STRING, 3); + $xfer += $output->writeFieldBegin('tokenId', TType::STRING, 4); $xfer += $output->writeString($this->tokenId); $xfer += $output->writeFieldEnd(); } diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/messaging/event/ttypes.py b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/messaging/event/ttypes.py index 24fbc4b63f..629dba2fd5 100644 --- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/messaging/event/ttypes.py +++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/model/messaging/event/ttypes.py @@ -932,6 +932,7 @@ class ProcessSubmitEvent: Attributes: - processId - gatewayId + - experimentId - tokenId """ @@ -939,12 +940,14 @@ class ProcessSubmitEvent: None, # 0 (1, TType.STRING, 'processId', None, None, ), # 1 (2, TType.STRING, 'gatewayId', None, None, ), # 2 - (3, TType.STRING, 'tokenId', None, None, ), # 3 + (3, TType.STRING, 'experimentId', None, None, ), # 3 + (4, TType.STRING, 'tokenId', None, None, ), # 4 ) - def __init__(self, processId=None, gatewayId=None, tokenId=None,): + def __init__(self, processId=None, gatewayId=None, experimentId=None, tokenId=None,): self.processId = processId self.gatewayId = gatewayId + self.experimentId = experimentId self.tokenId = tokenId def read(self, iprot): @@ -967,6 +970,11 @@ def read(self, iprot): else: iprot.skip(ftype) elif fid == 3: + if ftype == TType.STRING: + self.experimentId = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: if ftype == TType.STRING: self.tokenId = iprot.readString(); else: @@ -989,8 +997,12 @@ def write(self, oprot): oprot.writeFieldBegin('gatewayId', TType.STRING, 2) oprot.writeString(self.gatewayId) oprot.writeFieldEnd() + if self.experimentId is not None: + oprot.writeFieldBegin('experimentId', TType.STRING, 3) + oprot.writeString(self.experimentId) + oprot.writeFieldEnd() if self.tokenId is not None: - oprot.writeFieldBegin('tokenId', TType.STRING, 3) + oprot.writeFieldBegin('tokenId', TType.STRING, 4) oprot.writeString(self.tokenId) oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1001,6 +1013,8 @@ def validate(self): raise TProtocol.TProtocolException(message='Required field processId is unset!') if self.gatewayId is None: raise TProtocol.TProtocolException(message='Required field gatewayId is unset!') + if self.experimentId is None: + raise TProtocol.TProtocolException(message='Required field experimentId is unset!') if self.tokenId is None: raise TProtocol.TProtocolException(message='Required field tokenId is unset!') return @@ -1010,6 +1024,7 @@ def __hash__(self): value = 17 value = (value * 31) ^ hash(self.processId) value = (value * 31) ^ hash(self.gatewayId) + value = (value * 31) ^ hash(self.experimentId) value = (value * 31) ^ hash(self.tokenId) return value diff --git a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java index 07efd6232b..0e92f526a9 100644 --- a/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java +++ b/airavata-api/airavata-data-models/src/main/java/org/apache/airavata/model/messaging/event/ProcessSubmitEvent.java @@ -57,7 +57,8 @@ public class ProcessSubmitEvent implements org.apache.thrift.TBase, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -67,13 +68,15 @@ public class ProcessSubmitEvent implements org.apache.thrift.TBase byName = new HashMap(); @@ -92,7 +95,9 @@ public static _Fields findByThriftId(int fieldId) { return PROCESS_ID; case 2: // GATEWAY_ID return GATEWAY_ID; - case 3: // TOKEN_ID + case 3: // EXPERIMENT_ID + return EXPERIMENT_ID; + case 4: // TOKEN_ID return TOKEN_ID; default: return null; @@ -141,6 +146,8 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); 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.EXPERIMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("experimentId", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TOKEN_ID, new org.apache.thrift.meta_data.FieldMetaData("tokenId", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); @@ -153,11 +160,13 @@ public ProcessSubmitEvent() { public ProcessSubmitEvent( String processId, String gatewayId, + String experimentId, String tokenId) { this(); this.processId = processId; this.gatewayId = gatewayId; + this.experimentId = experimentId; this.tokenId = tokenId; } @@ -171,6 +180,9 @@ public ProcessSubmitEvent(ProcessSubmitEvent other) { if (other.isSetGatewayId()) { this.gatewayId = other.gatewayId; } + if (other.isSetExperimentId()) { + this.experimentId = other.experimentId; + } if (other.isSetTokenId()) { this.tokenId = other.tokenId; } @@ -184,6 +196,7 @@ public ProcessSubmitEvent deepCopy() { public void clear() { this.processId = null; this.gatewayId = null; + this.experimentId = null; this.tokenId = null; } @@ -233,6 +246,29 @@ public void setGatewayIdIsSet(boolean value) { } } + public String getExperimentId() { + return this.experimentId; + } + + public void setExperimentId(String experimentId) { + this.experimentId = experimentId; + } + + public void unsetExperimentId() { + this.experimentId = null; + } + + /** Returns true if field experimentId is set (has been assigned a value) and false otherwise */ + public boolean isSetExperimentId() { + return this.experimentId != null; + } + + public void setExperimentIdIsSet(boolean value) { + if (!value) { + this.experimentId = null; + } + } + public String getTokenId() { return this.tokenId; } @@ -274,6 +310,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case EXPERIMENT_ID: + if (value == null) { + unsetExperimentId(); + } else { + setExperimentId((String)value); + } + break; + case TOKEN_ID: if (value == null) { unsetTokenId(); @@ -293,6 +337,9 @@ public Object getFieldValue(_Fields field) { case GATEWAY_ID: return getGatewayId(); + case EXPERIMENT_ID: + return getExperimentId(); + case TOKEN_ID: return getTokenId(); @@ -311,6 +358,8 @@ public boolean isSet(_Fields field) { return isSetProcessId(); case GATEWAY_ID: return isSetGatewayId(); + case EXPERIMENT_ID: + return isSetExperimentId(); case TOKEN_ID: return isSetTokenId(); } @@ -348,6 +397,15 @@ public boolean equals(ProcessSubmitEvent that) { return false; } + boolean this_present_experimentId = true && this.isSetExperimentId(); + boolean that_present_experimentId = true && that.isSetExperimentId(); + if (this_present_experimentId || that_present_experimentId) { + if (!(this_present_experimentId && that_present_experimentId)) + return false; + if (!this.experimentId.equals(that.experimentId)) + return false; + } + boolean this_present_tokenId = true && this.isSetTokenId(); boolean that_present_tokenId = true && that.isSetTokenId(); if (this_present_tokenId || that_present_tokenId) { @@ -374,6 +432,11 @@ public int hashCode() { if (present_gatewayId) list.add(gatewayId); + boolean present_experimentId = true && (isSetExperimentId()); + list.add(present_experimentId); + if (present_experimentId) + list.add(experimentId); + boolean present_tokenId = true && (isSetTokenId()); list.add(present_tokenId); if (present_tokenId) @@ -410,6 +473,16 @@ public int compareTo(ProcessSubmitEvent other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetExperimentId()).compareTo(other.isSetExperimentId()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetExperimentId()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.experimentId, other.experimentId); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetTokenId()).compareTo(other.isSetTokenId()); if (lastComparison != 0) { return lastComparison; @@ -456,6 +529,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("experimentId:"); + if (this.experimentId == null) { + sb.append("null"); + } else { + sb.append(this.experimentId); + } + first = false; + if (!first) sb.append(", "); sb.append("tokenId:"); if (this.tokenId == null) { sb.append("null"); @@ -477,6 +558,10 @@ public void validate() throws org.apache.thrift.TException { throw new org.apache.thrift.protocol.TProtocolException("Required field 'gatewayId' is unset! Struct:" + toString()); } + if (!isSetExperimentId()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'experimentId' is unset! Struct:" + toString()); + } + if (!isSetTokenId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tokenId' is unset! Struct:" + toString()); } @@ -534,7 +619,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ProcessSubmitEvent org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // TOKEN_ID + case 3: // EXPERIMENT_ID + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.experimentId = iprot.readString(); + struct.setExperimentIdIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // TOKEN_ID if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.tokenId = iprot.readString(); struct.setTokenIdIsSet(true); @@ -565,6 +658,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ProcessSubmitEvent oprot.writeString(struct.gatewayId); oprot.writeFieldEnd(); } + if (struct.experimentId != null) { + oprot.writeFieldBegin(EXPERIMENT_ID_FIELD_DESC); + oprot.writeString(struct.experimentId); + oprot.writeFieldEnd(); + } if (struct.tokenId != null) { oprot.writeFieldBegin(TOKEN_ID_FIELD_DESC); oprot.writeString(struct.tokenId); @@ -589,6 +687,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ProcessSubmitEvent TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.processId); oprot.writeString(struct.gatewayId); + oprot.writeString(struct.experimentId); oprot.writeString(struct.tokenId); } @@ -599,6 +698,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ProcessSubmitEvent s struct.setProcessIdIsSet(true); struct.gatewayId = iprot.readString(); struct.setGatewayIdIsSet(true); + struct.experimentId = iprot.readString(); + struct.setExperimentIdIsSet(true); struct.tokenId = iprot.readString(); struct.setTokenIdIsSet(true); } diff --git a/modules/gfac/gfac-service/src/main/java/org/apache/airavata/gfac/server/GfacServerHandler.java b/modules/gfac/gfac-service/src/main/java/org/apache/airavata/gfac/server/GfacServerHandler.java index 56d9d9c440..3fbe245fc6 100644 --- a/modules/gfac/gfac-service/src/main/java/org/apache/airavata/gfac/server/GfacServerHandler.java +++ b/modules/gfac/gfac-service/src/main/java/org/apache/airavata/gfac/server/GfacServerHandler.java @@ -23,6 +23,7 @@ import org.apache.airavata.common.exception.AiravataException; import org.apache.airavata.common.exception.AiravataStartupException; import org.apache.airavata.common.exception.ApplicationSettingsException; +import org.apache.airavata.common.utils.AiravataUtils; import org.apache.airavata.common.utils.ServerSettings; import org.apache.airavata.common.utils.ThriftUtils; import org.apache.airavata.common.utils.listener.AbstractActivityListener; @@ -38,6 +39,7 @@ import org.apache.airavata.messaging.core.MessagingConstants; import org.apache.airavata.messaging.core.Publisher; import org.apache.airavata.messaging.core.impl.RabbitMQProcessLaunchConsumer; +import org.apache.airavata.messaging.core.impl.RabbitMQStatusPublisher; import org.apache.airavata.model.messaging.event.*; import org.apache.airavata.model.status.ProcessState; import org.apache.airavata.model.status.ProcessStatus; @@ -91,8 +93,11 @@ public GfacServerHandler() throws AiravataStartupException { } private void initAMQPClient() throws AiravataException { + // init process consumer rabbitMQProcessLaunchConsumer = Factory.getProcessLaunchConsumer(); rabbitMQProcessLaunchConsumer.listen(new ProcessLaunchMessageHandler()); + // init status publisher + statusPublisher = new RabbitMQStatusPublisher(); } private void startCuratorClient() throws ApplicationSettingsException { @@ -217,7 +222,9 @@ public void onMessage(MessageContext message) { ProcessStatus status = new ProcessStatus(); status.setState(ProcessState.EXECUTING); status.setTimeOfStateChange(Calendar.getInstance().getTimeInMillis()); - Factory.getDefaultExpCatalog().update(ExperimentCatalogModelType.PROCESS_STATUS, status, event.getProcessId()); + Factory.getDefaultExpCatalog().update(ExperimentCatalogModelType.PROCESS_STATUS, status, event + .getProcessId()); + publishProcessStatus(event, status); try { GFacUtils.createProcessZKNode(curatorClient, gfacServerName, event.getProcessId(), message .getDeliveryTag(), @@ -231,6 +238,8 @@ public void onMessage(MessageContext message) { log.error(e.getMessage(), e); //nobody is listening so nothing to throw } catch (RegistryException e) { log.error("Error while updating experiment status", e); + } catch (AiravataException e) { + log.error("Error while publishing process status", e); } } else if (message.getType().equals(MessageType.TERMINATEPROCESS)) { ProcessTerminateEvent event = new ProcessTerminateEvent(); @@ -258,4 +267,15 @@ public void onMessage(MessageContext message) { } } } + + private void publishProcessStatus(ProcessSubmitEvent event, ProcessStatus status) throws AiravataException { + ProcessIdentifier identifier = new ProcessIdentifier(event.getProcessId(), + event.getExperimentId(), + event.getGatewayId()); + ProcessStatusChangeEvent processStatusChangeEvent = new ProcessStatusChangeEvent(status.getState(), identifier); + MessageContext msgCtx = new MessageContext(processStatusChangeEvent, MessageType.PROCESS, + AiravataUtils.getId(MessageType.PROCESS.name()), event.getGatewayId()); + msgCtx.setUpdatedTime(AiravataUtils.getCurrentTimestamp()); + statusPublisher.publish(msgCtx); + } } diff --git a/modules/messaging/core/src/main/java/org/apache/airavata/messaging/core/impl/RabbitMQStatusConsumer.java b/modules/messaging/core/src/main/java/org/apache/airavata/messaging/core/impl/RabbitMQStatusConsumer.java index 83725e275c..46784bf3e7 100644 --- a/modules/messaging/core/src/main/java/org/apache/airavata/messaging/core/impl/RabbitMQStatusConsumer.java +++ b/modules/messaging/core/src/main/java/org/apache/airavata/messaging/core/impl/RabbitMQStatusConsumer.java @@ -45,7 +45,8 @@ import java.util.Map; public class RabbitMQStatusConsumer implements Consumer { - private static Logger log = LoggerFactory.getLogger(RabbitMQStatusConsumer.class); + public static final String EXCHANGE_TYPE = "topic"; + private static Logger log = LoggerFactory.getLogger(RabbitMQStatusConsumer.class); private String exchangeName; private String url; @@ -88,7 +89,7 @@ public void shutdownCompleted(ShutdownSignalException cause) { channel = connection.createChannel(); channel.basicQos(prefetchCount); - channel.exchangeDeclare(exchangeName, "topic", false); + channel.exchangeDeclare(exchangeName, EXCHANGE_TYPE, false); } catch (Exception e) { String msg = "could not open channel for exchange " + exchangeName; @@ -162,13 +163,13 @@ public void handleDelivery(String consumerTag, event = experimentStatusChangeEvent; gatewayId = experimentStatusChangeEvent.getGatewayId(); } else if (message.getMessageType().equals(MessageType.PROCESS)) { - /* WorkflowNodeStatusChangeEvent wfnStatusChangeEvent = new WorkflowNodeStatusChangeEvent(); - ThriftUtils.createThriftFromBytes(message.getEvent(), wfnStatusChangeEvent); - log.debug(" Message Received with message id '" + message.getMessageId() - + "' and with message type '" + message.getMessageType() + "' with status " + - wfnStatusChangeEvent.getState()); - event = wfnStatusChangeEvent; - gatewayId = wfnStatusChangeEvent.getWorkflowNodeIdentity().getGatewayId();*/ + ProcessStatusChangeEvent processStatusChangeEvent = new ProcessStatusChangeEvent(); + ThriftUtils.createThriftFromBytes(message.getEvent(), processStatusChangeEvent); + log.debug("Message Recieved with message id :" + message.getMessageId() + " and with " + + "message type " + message.getMessageType() + " with status " + + processStatusChangeEvent.getState()); + event = processStatusChangeEvent; + gatewayId = processStatusChangeEvent.getProcessIdentity().getGatewayId(); } else if (message.getMessageType().equals(MessageType.TASK)) { TaskStatusChangeEvent taskStatusChangeEvent = new TaskStatusChangeEvent(); ThriftUtils.createThriftFromBytes(message.getEvent(), taskStatusChangeEvent); diff --git a/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/impl/GFACPassiveJobSubmitter.java b/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/impl/GFACPassiveJobSubmitter.java index f600b724d5..02ecfe1e18 100644 --- a/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/impl/GFACPassiveJobSubmitter.java +++ b/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/impl/GFACPassiveJobSubmitter.java @@ -90,9 +90,11 @@ public boolean submit(String experimentId, String processId, String tokenId) thr if (gatewayId == null || gatewayId.isEmpty()) { gatewayId = ServerSettings.getDefaultUserGateway(); } - ProcessSubmitEvent processSubmitEvent = new ProcessSubmitEvent(processId, gatewayId, tokenId); - MessageContext messageContext = new MessageContext(processSubmitEvent, MessageType.LAUNCHPROCESS, "LAUNCH.TASK-" + UUID.randomUUID().toString(), gatewayId); - messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp()); + ProcessSubmitEvent processSubmitEvent = new ProcessSubmitEvent(processId, gatewayId, experimentId, + tokenId); + MessageContext messageContext = new MessageContext(processSubmitEvent, MessageType.LAUNCHPROCESS, "LAUNCH" + + ".TASK-" + UUID.randomUUID().toString(), gatewayId); + messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp()); publisher.publish(messageContext); } catch (Exception e) { logger.error(e.getMessage(), e); diff --git a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java index 404e0c2270..15f7133aae 100644 --- a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java +++ b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java @@ -25,12 +25,16 @@ import org.apache.airavata.common.exception.ApplicationSettingsException; import org.apache.airavata.common.utils.AiravataUtils; import org.apache.airavata.common.utils.ServerSettings; +import org.apache.airavata.common.utils.ThriftUtils; import org.apache.airavata.credential.store.store.CredentialReader; import org.apache.airavata.gfac.core.GFacUtils; import org.apache.airavata.gfac.core.scheduler.HostScheduler; import org.apache.airavata.messaging.core.MessageContext; +import org.apache.airavata.messaging.core.MessageHandler; +import org.apache.airavata.messaging.core.MessagingConstants; import org.apache.airavata.messaging.core.Publisher; import org.apache.airavata.messaging.core.PublisherFactory; +import org.apache.airavata.messaging.core.impl.RabbitMQStatusConsumer; import org.apache.airavata.model.appcatalog.appdeployment.ApplicationDeploymentDescription; import org.apache.airavata.model.appcatalog.appinterface.ApplicationInterfaceDescription; import org.apache.airavata.model.appcatalog.computeresource.ComputeResourceDescription; @@ -40,6 +44,8 @@ import org.apache.airavata.model.experiment.UserConfigurationDataModel; import org.apache.airavata.model.messaging.event.ExperimentStatusChangeEvent; import org.apache.airavata.model.messaging.event.MessageType; +import org.apache.airavata.model.messaging.event.ProcessIdentifier; +import org.apache.airavata.model.messaging.event.ProcessStatusChangeEvent; import org.apache.airavata.model.process.ProcessModel; import org.apache.airavata.model.status.ExperimentState; import org.apache.airavata.model.status.ExperimentStatus; @@ -48,14 +54,17 @@ import org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl; import org.apache.airavata.orchestrator.cpi.orchestrator_cpi_serviceConstants; import org.apache.airavata.orchestrator.util.OrchestratorServerThreadPoolExecutor; +import org.apache.airavata.orchestrator.util.OrchestratorUtils; import org.apache.airavata.registry.core.app.catalog.resources.AppCatAbstractResource; import org.apache.airavata.registry.core.experiment.catalog.impl.RegistryFactory; import org.apache.airavata.registry.core.experiment.catalog.resources.AbstractExpCatResource; import org.apache.airavata.registry.cpi.*; +import org.apache.thrift.TBase; import org.apache.thrift.TException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; @@ -70,6 +79,7 @@ public class OrchestratorServerHandler implements OrchestratorService.Iface { private String airavataUserName; private String gatewayName; private Publisher publisher; + private RabbitMQStatusConsumer statusConsumer; /** * Query orchestrator server to fetch the CPI version @@ -92,20 +102,18 @@ public OrchestratorServerHandler() throws OrchestratorException{ // the required properties orchestrator = new SimpleOrchestratorImpl(); experimentCatalog = RegistryFactory.getDefaultExpCatalog(); - appCatalog = RegistryFactory.getAppCatalog(); + appCatalog = RegistryFactory.getAppCatalog(); orchestrator.initialize(); orchestrator.getOrchestratorContext().setPublisher(this.publisher); - } catch (OrchestratorException e) { - log.error(e.getMessage(), e); - throw new OrchestratorException("Error while initializing orchestrator service", e); - } catch (RegistryException e) { - log.error(e.getMessage(), e); - throw new OrchestratorException("Error while initializing orchestrator service", e); - } catch (AppCatalogException e) { - log.error(e.getMessage(), e); - throw new OrchestratorException("Error while initializing orchestrator service", e); - } - } + String brokerUrl = ServerSettings.getSetting(MessagingConstants.RABBITMQ_BROKER_URL); + String exchangeName = ServerSettings.getSetting(MessagingConstants.RABBITMQ_STATUS_EXCHANGE_NAME); + statusConsumer = new RabbitMQStatusConsumer(brokerUrl, exchangeName); + statusConsumer.listen(new ProcessStatusHandler()); + } catch (OrchestratorException | RegistryException | AppCatalogException | AiravataException e) { + log.error(e.getMessage(), e); + throw new OrchestratorException("Error while initializing orchestrator service", e); + } + } /** * * After creating the experiment Data user have the * experimentID as the @@ -457,19 +465,78 @@ private boolean launchSingleAppExperiment() throws TException { } } catch (Exception e) { - ExperimentStatus status = new ExperimentStatus(); - status.setState(ExperimentState.FAILED); - status.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); - try { - experimentCatalog.update(ExperimentCatalogModelType.EXPERIMENT_STATUS, status, experimentId); - } catch (RegistryException e1) { - log.error(experimentId, "Error while updating experiment status to " + status.toString(), e); - throw new TException(e); - } - log.error(experimentId, "Error while updating task status, hence updated experiment status to " + status.toString(), e); - throw new TException(e); + ExperimentStatus status = new ExperimentStatus(ExperimentState.FAILED); + status.setReason("Error while updating task status"); + OrchestratorUtils.updageExperimentStatus(experimentId, status); + log.error(experimentId, "Error while updating task status, hence updated experiment status to " + + ExperimentState.FAILED, e); + throw new TException(e); } return true; } + } + + private class ProcessStatusHandler implements MessageHandler { + + @Override + public Map getProperties() { + Map props = new HashMap<>(); + List routingKeys = new ArrayList<>(); +// routingKeys.add("*"); // listen for gateway level messages +// routingKeys.add("*.*"); // listen for gateway/experiment level messages + routingKeys.add("*.*.*"); // listern for gateway/experiment/process level messages + props.put(MessagingConstants.RABBIT_ROUTING_KEY, routingKeys); + return props; + } + + /** + * This method only handle MessageType.PROCESS type messages. + * @param message + */ + @Override + public void onMessage(MessageContext message) { + if (message.getType().equals(MessageType.PROCESS)) { + try { + ProcessStatusChangeEvent processStatusChangeEvent = new ProcessStatusChangeEvent(); + TBase event = message.getEvent(); + byte[] bytes = ThriftUtils.serializeThriftObject(event); + ThriftUtils.createThriftFromBytes(bytes, processStatusChangeEvent); + ExperimentStatus status = new ExperimentStatus(); + ProcessIdentifier processIdentity = processStatusChangeEvent.getProcessIdentity(); + switch (processStatusChangeEvent.getState()) { + case PRE_PROCESSING: + status.setState(ExperimentState.EXECUTING); + status.setReason("process started"); + break; + case COMPLETED: + status.setState(ExperimentState.COMPLETED); + status.setReason("process completed"); + break; + case FAILED: + status.setState(ExperimentState.FAILED); + status.setReason("process failed"); + break; + case CANCELED: + status.setState(ExperimentState.CANCELED); + status.setReason("process cancelled"); + break; + default: + // ignore other status changes, thoes will not affect for experiment status changes + return; + } + if (status.getState() != null) { + OrchestratorUtils.updageExperimentStatus(processIdentity.getExperimentId(), status); + log.info("expId : " + processIdentity.getExperimentId() + " :- Experiment status updated to ", status.getState()); + } + } catch (TException e) { + log.error("Message Id : " + message.getMessageId() + ", Message type : " + message.getType() + + "Error" + " while prcessing process status change event"); + } + } else { + System.out.println("Message Recieved with message id " + message.getMessageId() + " and with message " + + "type " + message.getType().name()); + } + } + } } diff --git a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java new file mode 100644 index 0000000000..5b2cab9d90 --- /dev/null +++ b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java @@ -0,0 +1,45 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.airavata.orchestrator.util; + +import org.apache.airavata.common.utils.AiravataUtils; +import org.apache.airavata.model.status.ExperimentState; +import org.apache.airavata.model.status.ExperimentStatus; +import org.apache.airavata.registry.core.experiment.catalog.impl.RegistryFactory; +import org.apache.airavata.registry.cpi.ExperimentCatalogModelType; +import org.apache.airavata.registry.cpi.RegistryException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class OrchestratorUtils { + private static final Logger log = LoggerFactory.getLogger(OrchestratorUtils.class); + + public static void updageExperimentStatus(String experimentId, ExperimentStatus status) { + status.setState(ExperimentState.FAILED); + status.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); + try { + RegistryFactory.getDefaultExpCatalog().update(ExperimentCatalogModelType.EXPERIMENT_STATUS, status, + experimentId); + } catch (RegistryException e) { + log.error("expId : " + experimentId + " Error while updating experiment status to " + status.toString(), e); + } + } +} diff --git a/thrift-interface-descriptions/airavata-api/messaging_events.thrift b/thrift-interface-descriptions/airavata-api/messaging_events.thrift index 599a2ee8b9..eed07dab61 100644 --- a/thrift-interface-descriptions/airavata-api/messaging_events.thrift +++ b/thrift-interface-descriptions/airavata-api/messaging_events.thrift @@ -111,7 +111,8 @@ struct JobIdentifier { struct ProcessSubmitEvent{ 1: required string processId, 2: required string gatewayId, - 3: required string tokenId + 3: required string experimentId, + 4: required string tokenId } struct ProcessTerminateEvent{ From a68eb18235b9f41069ad7801b4103fe8a6444b3b Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Mon, 3 Aug 2015 20:33:52 -0400 Subject: [PATCH 15/18] Show most recent experiment state to client --- .../server/OrchestratorServerHandler.java | 17 +++++++++++++++-- .../orchestrator/util/OrchestratorUtils.java | 2 -- .../resources/ExperimentStatusResource.java | 3 ++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java index 15f7133aae..8427d0ccef 100644 --- a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java +++ b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/server/OrchestratorServerHandler.java @@ -505,10 +505,21 @@ public void onMessage(MessageContext message) { ExperimentStatus status = new ExperimentStatus(); ProcessIdentifier processIdentity = processStatusChangeEvent.getProcessIdentity(); switch (processStatusChangeEvent.getState()) { - case PRE_PROCESSING: +// case CREATED: +// case VALIDATED: +// case PRE_PROCESSING: +// break; + case CONFIGURING_WORKSPACE: status.setState(ExperimentState.EXECUTING); status.setReason("process started"); break; +// case INPUT_DATA_STAGING: +// case EXECUTING: +// case MONITORING: +// case OUTPUT_DATA_STAGING: +// case POST_PROCESSING: +// case CANCELLING: +// break; case COMPLETED: status.setState(ExperimentState.COMPLETED); status.setReason("process completed"); @@ -526,8 +537,10 @@ public void onMessage(MessageContext message) { return; } if (status.getState() != null) { + status.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); OrchestratorUtils.updageExperimentStatus(processIdentity.getExperimentId(), status); - log.info("expId : " + processIdentity.getExperimentId() + " :- Experiment status updated to ", status.getState()); + log.info("expId : " + processIdentity.getExperimentId() + " :- Experiment status updated to " + + status.getState()); } } catch (TException e) { log.error("Message Id : " + message.getMessageId() + ", Message type : " + message.getType() + diff --git a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java index 5b2cab9d90..4d4b04e7e5 100644 --- a/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java +++ b/modules/orchestrator/orchestrator-service/src/main/java/org/apache/airavata/orchestrator/util/OrchestratorUtils.java @@ -33,8 +33,6 @@ public class OrchestratorUtils { private static final Logger log = LoggerFactory.getLogger(OrchestratorUtils.class); public static void updageExperimentStatus(String experimentId, ExperimentStatus status) { - status.setState(ExperimentState.FAILED); - status.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); try { RegistryFactory.getDefaultExpCatalog().update(ExperimentCatalogModelType.EXPERIMENT_STATUS, status, experimentId); diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ExperimentStatusResource.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ExperimentStatusResource.java index 9cb4747cfb..103a69e026 100644 --- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ExperimentStatusResource.java +++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ExperimentStatusResource.java @@ -126,7 +126,8 @@ public void save() throws RegistryException{ experimentStatus.setExperimentId(experimentId); experimentStatus.setState(state); experimentStatus.setReason(reason); - em.persist(experimentStatus); + experimentStatus.setTimeOfStateChange(timeOfStateChange); + em.persist(experimentStatus); em.getTransaction().commit(); em.close(); } catch (Exception e) { From 0fbb6a84d8818a5259759f8ba8a6d3048ac3ca0a Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Tue, 4 Aug 2015 16:40:11 -0400 Subject: [PATCH 16/18] user correct version class --- .../server/handler/AiravataServerHandler.java | 3 +- .../airavata/api/airavataAPIConstants.java | 70 ---------------- .../apache/airavata/gfac/core/GFacUtils.java | 21 +++-- .../gfac/core/context/ProcessContext.java | 7 ++ .../gfac/impl/task/SSHJobSubmissionTask.java | 81 +++++++++---------- .../gfac/monitor/email/EmailBasedMonitor.java | 29 +++++-- 6 files changed, 80 insertions(+), 131 deletions(-) delete mode 100644 airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavataAPIConstants.java diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index ee1a5a84bf..6d092457ec 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -23,6 +23,7 @@ import org.apache.airavata.api.Airavata; import org.apache.airavata.api.airavataAPIConstants; +import org.apache.airavata.api.airavata_apiConstants; import org.apache.airavata.api.server.security.SecurityCheck; import org.apache.airavata.common.exception.AiravataException; import org.apache.airavata.common.exception.ApplicationSettingsException; @@ -95,7 +96,7 @@ public AiravataServerHandler() { public String getAPIVersion(AuthzToken authzToken) throws InvalidRequestException, AiravataClientException, AiravataSystemException, AuthorizationException, TException { - return airavataAPIConstants.AIRAVATA_API_VERSION; + return airavata_apiConstants.AIRAVATA_API_VERSION; } @Override diff --git a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavataAPIConstants.java b/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavataAPIConstants.java deleted file mode 100644 index 0c82e0f1bb..0000000000 --- a/airavata-api/airavata-api-stubs/src/main/java/org/apache/airavata/api/airavataAPIConstants.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -package org.apache.airavata.api; - -import org.apache.thrift.scheme.IScheme; -import org.apache.thrift.scheme.SchemeFactory; -import org.apache.thrift.scheme.StandardScheme; - -import org.apache.thrift.scheme.TupleScheme; -import org.apache.thrift.protocol.TTupleProtocol; -import org.apache.thrift.protocol.TProtocolException; -import org.apache.thrift.EncodingUtils; -import org.apache.thrift.TException; -import org.apache.thrift.async.AsyncMethodCallback; -import org.apache.thrift.server.AbstractNonblockingServer.*; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -import java.util.EnumMap; -import java.util.Set; -import java.util.HashSet; -import java.util.EnumSet; -import java.util.Collections; -import java.util.BitSet; -import java.nio.ByteBuffer; -import java.util.Arrays; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -@SuppressWarnings("all") public class airavataAPIConstants { - - /** - * Airavata Interface Versions depend upon this Thrift Interface File. When Making changes, please edit the - * Version Constants according to Semantic Versioning Specification (SemVer) http://semver.org. - * - * Note: The Airavata API version may be different from the Airavata software release versions. - * - * The Airavata API version is composed as a dot delimited string with major, minor, and patch level components. - * - * - Major: Incremented for backward incompatible changes. An example would be changes to interfaces. - * - Minor: Incremented for backward compatible changes. An example would be the addition of a new optional methods. - * - Patch: Incremented for bug fixes. The patch level should be increased for every edit that doesn't result - * in a change to major/minor version numbers. - * - */ - public static final String AIRAVATA_API_VERSION = "0.15.0"; - -} diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java index af10218429..45af599a4f 100644 --- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java +++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java @@ -234,24 +234,21 @@ public static String createGsiftpURIAsString(String host, String localPath) return buf.toString(); } - public static void saveJobStatus(TaskContext taskContext, - JobModel jobModel, JobState state) throws GFacException { + public static void saveJobStatus(ProcessContext processContext, JobModel jobModel) throws GFacException { try { // first we save job jobModel to the registry for sa and then save the job status. - ProcessContext processContext = taskContext.getParentProcessContext(); + JobStatus jobStatus = jobModel.getJobStatus(); ExperimentCatalog experimentCatalog = processContext.getExperimentCatalog(); - JobStatus status = new JobStatus(); - status.setJobState(state); - jobModel.setJobStatus(status); - status.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); - CompositeIdentifier ids = new CompositeIdentifier(taskContext.getTaskId(), jobModel.getJobId()); - experimentCatalog.add(ExpCatChildDataType.JOB_STATUS, status, ids); - JobIdentifier identifier = new JobIdentifier(jobModel.getJobId(), taskContext.getTaskModel().getTaskId(), + jobModel.setJobStatus(jobStatus); + jobStatus.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); + CompositeIdentifier ids = new CompositeIdentifier(jobModel.getTaskId(), jobModel.getJobId()); + experimentCatalog.add(ExpCatChildDataType.JOB_STATUS, jobStatus, ids); + JobIdentifier identifier = new JobIdentifier(jobModel.getJobId(), jobModel.getTaskId(), processContext.getProcessId(), processContext.getProcessModel().getExperimentId(), processContext.getGatewayId()); - JobStatusChangeEvent jobStatusChangeEvent = new JobStatusChangeEvent(state, identifier); + JobStatusChangeEvent jobStatusChangeEvent = new JobStatusChangeEvent(jobStatus.getJobState(), identifier); MessageContext msgCtx = new MessageContext(jobStatusChangeEvent, MessageType.JOB, AiravataUtils.getId - (MessageType.JOB.name()), taskContext.getParentProcessContext().getGatewayId()); + (MessageType.JOB.name()), processContext.getGatewayId()); msgCtx.setUpdatedTime(AiravataUtils.getCurrentTimestamp()); processContext.getStatusPublisher().publish(msgCtx); } catch (Exception e) { diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/context/ProcessContext.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/context/ProcessContext.java index 9e1ac06eca..400478764c 100644 --- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/context/ProcessContext.java +++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/context/ProcessContext.java @@ -21,6 +21,7 @@ package org.apache.airavata.gfac.core.context; +import org.apache.airavata.common.utils.AiravataUtils; import org.apache.airavata.gfac.core.GFacUtils; import org.apache.airavata.gfac.core.cluster.RemoteCluster; import org.apache.airavata.messaging.core.Publisher; @@ -35,6 +36,7 @@ import org.apache.airavata.model.appcatalog.gatewayprofile.GatewayResourceProfile; import org.apache.airavata.model.job.JobModel; import org.apache.airavata.model.process.ProcessModel; +import org.apache.airavata.model.status.JobStatus; import org.apache.airavata.model.status.ProcessState; import org.apache.airavata.model.status.ProcessStatus; import org.apache.airavata.registry.cpi.AppCatalog; @@ -272,6 +274,11 @@ public void setDataMovementProtocol(DataMovementProtocol dataMovementProtocol) { } public JobModel getJobModel() { + if (jobModel == null) { + jobModel = new JobModel(); + jobModel.setWorkingDir(getWorkingDir()); + jobModel.setCreationTime(AiravataUtils.getCurrentTimestamp().getTime()); + } return jobModel; } diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SSHJobSubmissionTask.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SSHJobSubmissionTask.java index c282f17813..b47e5d2562 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SSHJobSubmissionTask.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/task/SSHJobSubmissionTask.java @@ -56,16 +56,11 @@ public void init(Map propertyMap) throws TaskException { @Override public TaskStatus execute(TaskContext taskContext){ - TaskStatus status = new TaskStatus(TaskState.COMPLETED); // set to completed. + TaskStatus taskStatus = new TaskStatus(TaskState.COMPLETED); // set to completed. try { ProcessContext processContext = taskContext.getParentProcessContext(); JobModel jobModel = processContext.getJobModel(); - if (jobModel == null) { - jobModel = new JobModel(); - jobModel.setWorkingDir(processContext.getWorkingDir()); - jobModel.setTaskId(taskContext.getTaskId()); - jobModel.setCreationTime(AiravataUtils.getCurrentTimestamp().getTime()); - } + jobModel.setTaskId(taskContext.getTaskId()); RemoteCluster remoteCluster = processContext.getRemoteCluster(); JobDescriptor jobDescriptor = GFacUtils.createJobDescriptor(processContext); jobModel.setJobName(jobDescriptor.getJobName()); @@ -74,25 +69,27 @@ public TaskStatus execute(TaskContext taskContext){ if (resourceJobManager != null) { jConfig = Factory.getJobManagerConfiguration(resourceJobManager); } + JobStatus jobStatus = new JobStatus(); File jobFile = GFacUtils.createJobFile(jobDescriptor, jConfig); if (jobFile != null && jobFile.exists()) { jobModel.setJobDescription(FileUtils.readFileToString(jobFile)); String jobId = remoteCluster.submitBatchJob(jobFile.getPath(), processContext.getWorkingDir()); if (jobId != null && !jobId.isEmpty()) { jobModel.setJobId(jobId); - GFacUtils.saveJobStatus(taskContext, jobModel, JobState.SUBMITTED); -// publisher.publish(new GfacExperimentStateChangeRequest(new MonitorID(jobExecutionContext) -// , GfacExperimentState.JOBSUBMITTED)); - processContext.setJobModel(jobModel); + jobStatus.setJobState(JobState.SUBMITTED); + jobStatus.setReason("Successfully Submitted to " + taskContext.getParentProcessContext() + .getComputeResourceDescription().getHostName()); + jobModel.setJobStatus(jobStatus); + GFacUtils.saveJobStatus(taskContext.getParentProcessContext(), jobModel); if (verifyJobSubmissionByJobId(remoteCluster, jobId)) { -// publisher.publish(new GfacExperimentStateChangeRequest(new MonitorID(jobExecutionContext) -// , GfacExperimentState.JOBSUBMITTED)); - GFacUtils.saveJobStatus(taskContext, jobModel, JobState.QUEUED); + jobStatus.setJobState(JobState.QUEUED); + jobStatus.setReason("Verification step succeeded"); + jobModel.setJobStatus(jobStatus); + GFacUtils.saveJobStatus(taskContext.getParentProcessContext(), jobModel); } - status = new TaskStatus(TaskState.COMPLETED); - status.setReason("Submitted job to compute resource"); + taskStatus = new TaskStatus(TaskState.COMPLETED); + taskStatus.setReason("Submitted job to compute resource"); } else { - processContext.setJobModel(jobModel); int verificationTryCount = 0; while (verificationTryCount++ < 3) { String verifyJobId = verifyJobSubmission(remoteCluster, jobModel); @@ -100,13 +97,15 @@ public TaskStatus execute(TaskContext taskContext){ // JobStatus either changed from SUBMITTED to QUEUED or directly to QUEUED jobId = verifyJobId; jobModel.setJobId(jobId); -// publisher.publish(new GfacExperimentStateChangeRequest(new MonitorID(jobExecutionContext) -// , GfacExperimentState.JOBSUBMITTED)); - GFacUtils.saveJobStatus(taskContext, jobModel, JobState.QUEUED); - status.setState(TaskState.COMPLETED); - status.setReason("Submitted job to compute resource"); + jobStatus.setJobState(JobState.QUEUED); + jobStatus.setReason("Verification step succeeded"); + jobModel.setJobStatus(jobStatus); + GFacUtils.saveJobStatus(taskContext.getParentProcessContext(), jobModel); + taskStatus.setState(TaskState.COMPLETED); + taskStatus.setReason("Submitted job to compute resource"); break; } + log.info("Verify step return invalid jobId, retry verification step in {} secs", verificationTryCount); Thread.sleep(verificationTryCount * 1000); } } @@ -117,23 +116,23 @@ public TaskStatus execute(TaskContext taskContext){ "doesn't return a valid JobId. " + "Hence changing experiment state to Failed"; log.error(msg); GFacUtils.saveErrorDetails(processContext, msg); - status.setState(TaskState.FAILED); - status.setReason("Couldn't find job id in both submitted and verified steps"); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason("Couldn't find job id in both submitted and verified steps"); } } else { - status.setState(TaskState.FAILED); + taskStatus.setState(TaskState.FAILED); if (jobFile == null) { - status.setReason("JobFile is null"); + taskStatus.setReason("JobFile is null"); } else { - status.setReason("Job file doesn't exist"); + taskStatus.setReason("Job file doesn't exist"); } } } catch (AppCatalogException e) { String msg = "Error while instatiating app catalog"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); @@ -141,8 +140,8 @@ public TaskStatus execute(TaskContext taskContext){ } catch (ApplicationSettingsException e) { String msg = "Error occurred while creating job descriptor"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); @@ -150,8 +149,8 @@ public TaskStatus execute(TaskContext taskContext){ } catch (GFacException e) { String msg = "Error occurred while creating job descriptor"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); @@ -159,8 +158,8 @@ public TaskStatus execute(TaskContext taskContext){ } catch (SSHApiException e) { String msg = "Error occurred while submitting the job"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); @@ -168,8 +167,8 @@ public TaskStatus execute(TaskContext taskContext){ } catch (IOException e) { String msg = "Error while reading the content of the job file"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); @@ -177,21 +176,21 @@ public TaskStatus execute(TaskContext taskContext){ } catch (InterruptedException e) { String msg = "Error occurred while verifying the job submission"; log.error(msg, e); - status.setState(TaskState.FAILED); - status.setReason(msg); + taskStatus.setState(TaskState.FAILED); + taskStatus.setReason(msg); ErrorModel errorModel = new ErrorModel(); errorModel.setActualErrorMessage(e.getMessage()); errorModel.setUserFriendlyMessage(msg); taskContext.getTaskModel().setTaskError(errorModel); } - taskContext.setTaskStatus(status); + taskContext.setTaskStatus(taskStatus); try { GFacUtils.saveAndPublishTaskStatus(taskContext); } catch (GFacException e) { log.error("Error while saving task status", e); } - return status; + return taskStatus; } private boolean verifyJobSubmissionByJobId(RemoteCluster remoteCluster, String jobID) throws SSHApiException { diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java index 9ecd7008cb..efa0641d85 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/monitor/email/EmailBasedMonitor.java @@ -24,6 +24,7 @@ import org.apache.airavata.common.utils.ServerSettings; import org.apache.airavata.gfac.core.GFacException; import org.apache.airavata.gfac.core.GFacThreadPoolExecutor; +import org.apache.airavata.gfac.core.GFacUtils; import org.apache.airavata.gfac.core.config.ResourceConfig; import org.apache.airavata.gfac.core.context.ProcessContext; import org.apache.airavata.gfac.core.monitor.EmailParser; @@ -35,7 +36,9 @@ import org.apache.airavata.gfac.monitor.email.parser.SLURMEmailParser; import org.apache.airavata.gfac.monitor.email.parser.UGEEmailParser; import org.apache.airavata.model.appcatalog.computeresource.ResourceJobManagerType; +import org.apache.airavata.model.job.JobModel; import org.apache.airavata.model.status.JobState; +import org.apache.airavata.model.status.JobStatus; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -258,6 +261,8 @@ private void process(JobStatusResult jobStatusResult, ProcessContext processCont JobState resultState = jobStatusResult.getState(); // TODO : update job state on process context boolean runOutflowTasks = false; + JobStatus jobStatus = new JobStatus(); + JobModel jobModel = processContext.getJobModel(); String jobDetails = "JobName : " + jobStatusResult.getJobName() + ", JobId : " + jobStatusResult.getJobId(); // TODO - Handle all other valid JobStates if (resultState == JobState.COMPLETE) { @@ -269,19 +274,33 @@ private void process(JobStatusResult jobStatusResult, ProcessContext processCont log.info("[EJM]: Job Queued email received, " + jobDetails); }else if (resultState == JobState.ACTIVE) { // nothing special thing to do, update the status change to rabbit mq at the end of this method. + jobStatus.setJobState(JobState.QUEUED); + jobStatus.setReason("Queued email received"); log.info("[EJM]: Job Active email received, " + jobDetails); }else if (resultState == JobState.FAILED) { jobMonitorMap.remove(jobStatusResult.getJobId()); runOutflowTasks = true; + jobStatus.setJobState(JobState.FAILED); + jobStatus.setReason("Failed email received"); log.info("[EJM]: Job failed email received , removed job from job monitoring. " + jobDetails); }else if (resultState == JobState.CANCELED) { jobMonitorMap.remove(jobStatusResult.getJobId()); runOutflowTasks = false; // Do we need to run out handlers in canceled case? + jobStatus.setJobState(JobState.CANCELED); + jobStatus.setReason("Canceled email received"); log.info("[EJM]: Job canceled mail received, removed job from job monitoring. " + jobDetails); - } - log.info("[EJM]: Publishing status changes to amqp. " + jobDetails); - publishJobStatusChange(processContext); + if (jobStatus.getJobState() != null) { + try { + jobModel.setJobStatus(jobStatus); + log.info("[EJM]: Publishing status changes to amqp. " + jobDetails); + GFacUtils.saveJobStatus(processContext, jobModel); + } catch (GFacException e) { + log.error("expId: {}, processId: {}, taskId: {}, jobId: {} :- Error while save and publishing Job " + + "status {}", processContext.getExperimentId(), processContext.getProcessId(), jobModel + .getTaskId(), jobModel.getJobId(), jobStatus.getJobState()); + } + } if (runOutflowTasks) { log.info("[EJM]: Calling Out Handler chain of " + jobDetails); @@ -293,10 +312,6 @@ private void process(JobStatusResult jobStatusResult, ProcessContext processCont } } - private void publishJobStatusChange(ProcessContext processContext) { - // TODO : implement this - } - private void writeEnvelopeOnError(Message m) throws MessagingException { Address[] a; // FROM From 51332d3d6116bb9155be4e288a8b181121f8c608 Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Tue, 4 Aug 2015 16:44:33 -0400 Subject: [PATCH 17/18] Fixed compilation issue --- .../airavata/api/server/handler/AiravataServerHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java index 6d092457ec..73767abe75 100644 --- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java +++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java @@ -22,7 +22,6 @@ package org.apache.airavata.api.server.handler; import org.apache.airavata.api.Airavata; -import org.apache.airavata.api.airavataAPIConstants; import org.apache.airavata.api.airavata_apiConstants; import org.apache.airavata.api.server.security.SecurityCheck; import org.apache.airavata.common.exception.AiravataException; From 4f6e8c5e61915e92384059919d24abb9e837a6ff Mon Sep 17 00:00:00 2001 From: Shameera Rathanyaka Date: Sat, 15 Aug 2015 13:58:57 -0400 Subject: [PATCH 18/18] HPCRemoteCluster throw exceptions with message and original exception --- .../org/apache/airavata/gfac/impl/HPCRemoteCluster.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java index fa73898fb1..a3fb80ec55 100644 --- a/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java +++ b/modules/gfac/gfac-impl/src/main/java/org/apache/airavata/gfac/impl/HPCRemoteCluster.java @@ -107,7 +107,7 @@ public void scpTo(String localFile, String remoteFile) throws SSHApiException { try { session.connect(); } catch (JSchException e1) { - throw new SSHApiException("JSch Session connection failed"); + throw new SSHApiException("JSch Session connection failed", e1); } } if (retry == 0) { @@ -138,7 +138,7 @@ public void scpFrom(String remoteFile, String localFile) throws SSHApiException try { session.connect(); } catch (JSchException e1) { - throw new SSHApiException("JSch Session connection failed"); + throw new SSHApiException("JSch Session connection failed", e1); } } if (retry == 0) { @@ -174,7 +174,7 @@ public void makeDirectory(String directoryPath) throws SSHApiException { log.info("Creating directory: " + serverInfo.getHost() + ":" + directoryPath); SSHUtils.makeDirectory(directoryPath, session); } catch (JSchException | IOException e) { - throw new SSHApiException("Failed to create directory " + serverInfo.getHost() + ":" + directoryPath); + throw new SSHApiException("Failed to create directory " + serverInfo.getHost() + ":" + directoryPath, e); } } @@ -223,7 +223,7 @@ public List listDirectory(String directoryPath) throws SSHApiException { log.info("Creating directory: " + serverInfo.getHost() + ":" + directoryPath); return SSHUtils.listDirectory(directoryPath, session); } catch (JSchException | IOException e) { - throw new SSHApiException("Failed to list directory " + serverInfo.getHost() + ":" + directoryPath); + throw new SSHApiException("Failed to list directory " + serverInfo.getHost() + ":" + directoryPath, e); } }