You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/08/02 22:42:00 UTC
[1/5] airavata-php-gateway git commit: making project summary in PGA
compatible with airavata master
Repository: airavata-php-gateway
Updated Branches:
refs/heads/master f52056f73 -> fc78eeff7
making project summary in PGA compatible with airavata master
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/0e6904b2
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/0e6904b2
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/0e6904b2
Branch: refs/heads/master
Commit: 0e6904b2e55c787b71736841c0ed24ca725e70c1
Parents: f52056f
Author: Supun Nakandala <sc...@apache.org>
Authored: Mon Aug 3 01:15:12 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Mon Aug 3 01:15:12 2015 +0530
----------------------------------------------------------------------
app/libraries/ProjectUtilities.php | 2 +-
app/views/project/summary.blade.php | 57 ++++++++++++++++----------------
2 files changed, 29 insertions(+), 30 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0e6904b2/app/libraries/ProjectUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ProjectUtilities.php b/app/libraries/ProjectUtilities.php
index 47a640e..487f9be 100644
--- a/app/libraries/ProjectUtilities.php
+++ b/app/libraries/ProjectUtilities.php
@@ -162,7 +162,7 @@ class ProjectUtilities
$experiments = array();
try {
- $experiments = Airavata::getAllExperimentsInProject(Session::get('authz-token'), $projectId);
+ $experiments = Airavata::getAllExperimentsInProjectWithPagination(Session::get('authz-token'), $projectId, -1, 0);
} catch (InvalidRequestException $ire) {
CommonUtilities::print_error_message('InvalidRequestException!<br><br>' . $ire->getMessage());
} catch (AiravataClientException $ace) {
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0e6904b2/app/views/project/summary.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/summary.blade.php b/app/views/project/summary.blade.php
index 1340f01..9945aec 100755
--- a/app/views/project/summary.blade.php
+++ b/app/views/project/summary.blade.php
@@ -10,6 +10,7 @@
<?php
$project = ProjectUtilities::get_project($_GET['projId']);
?>
+
<h1>Project Summary
@if( !isset($dashboard))
<small><a href="{{ URL::to('/') }}/project/summary?projId={{ $project->projectID }}"
@@ -39,19 +40,35 @@
echo '<th>Compute Resource</th>';
echo '<th>Last Modified Time</th>';
echo '<th>Experiment Status</th>';
- echo '<th>Job Status</th>';
+// echo '<th>Job Status</th>';
echo '</tr>';
foreach ($experiments as $experiment) {
- $expValues = ExperimentUtilities::get_experiment_values($experiment, ProjectUtilities::get_project($experiment->projectID), true);
- $expValues["jobState"] = ExperimentUtilities::get_job_status($experiment);
- $applicationInterface = AppUtilities::get_application_interface($experiment->applicationId);
+ $expValues = ExperimentUtilities::get_experiment_values($experiment, ProjectUtilities::get_project($experiment->projectId), true);
+// $expValues["jobState"] = ExperimentUtilities::get_job_status($experiment);
+ $applicationInterface = AppUtilities::get_application_interface($experiment->executionId);
echo '<tr>';
+ echo '<td>'. $experiment->experimentName . '</td>';
+
+ echo "<td>$applicationInterface->applicationName</td>";
+
echo '<td>';
+ try {
+ $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
+ ->computationalResourceScheduling->resourceHostId);
+ if (!empty($cr)) {
+ echo $cr->hostName;
+ }
+ } catch (Exception $ex) {
+ //Error while retrieving the CR
+ }
+ echo '</td>';
+ echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"] . '"></td>';
+ echo '<td>';
switch ($expValues["experimentStatusString"]) {
case 'CANCELING':
@@ -77,41 +94,23 @@
case 'CANCELING':
case 'COMPLETED':
echo '<a class="' . $textClass . '" href="' . URL::to('/') . '/experiment/summary?expId=' .
- $experiment->experimentID . '">' . $experiment->name . '</a>';
+ $experiment->experimentId . '">' . $expValues["experimentStatusString"] . '</a>';
break;
default:
echo '<a class="' . $textClass . '" href="' . URL::to('/') . '/experiment/summary?expId=' .
- $experiment->experimentID . '">' . $experiment->name . '</a>' .
+ $experiment->experimentId . '">' . $expValues["experimentStatusString"] . '</a>' .
' <a href="' . URL::to('/') . '/experiment/edit?expId=' .
- $experiment->experimentID .
+ $experiment->experimentId .
'" title="Edit"><span class="glyphicon glyphicon-pencil"></span></a>';
break;
}
-
echo '</td>';
- echo "<td>$applicationInterface->applicationName</td>";
-
- echo '<td>';
- try {
- $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
- ->computationalResourceScheduling->resourceHostId);
- if (!empty($cr)) {
- echo $cr->hostName;
- }
- } catch (Exception $ex) {
- //Error while retrieving the CR
- }
- echo '</td>';
- echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"] . '"></td>';
-
- echo '<td>'. $expValues["experimentStatusString"] . '</td>';
-
- if ($expValues["jobState"]) echo '
- <td>' . $expValues["jobState"] . '</td>';
- else
- echo '<td></td>';
+// if ($expValues["jobState"]) echo '
+// <td>' . $expValues["jobState"] . '</td>';
+// else
+// echo '<td></td>';
echo '</tr>';
}
[3/5] airavata-php-gateway git commit: updating Airavata API thrift
generated class.
Posted by sc...@apache.org.
updating Airavata API thrift generated class.
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/da784f90
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/da784f90
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/da784f90
Branch: refs/heads/master
Commit: da784f90ce4d0732bd21b1bf429d255e9cbd7207
Parents: 0e6904b
Author: Supun Nakandala <sc...@apache.org>
Authored: Mon Aug 3 01:20:52 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Mon Aug 3 01:20:52 2015 +0530
----------------------------------------------------------------------
app/libraries/Airavata/API/Airavata.php | 6121 +++++---------------------
1 file changed, 1177 insertions(+), 4944 deletions(-)
----------------------------------------------------------------------
[2/5] airavata-php-gateway git commit: updating Airavata API thrift
generated class.
Posted by sc...@apache.org.
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/da784f90/app/libraries/Airavata/API/Airavata.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index fba2a7c..2f21ee0 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -188,25 +188,6 @@ interface AiravataIf {
*/
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
* *
@@ -233,26 +214,6 @@ interface AiravataIf {
*/
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);
- /**
* Get all Project for user by project name with pagination.Results will be ordered based
* on creation time DESC
*
@@ -281,25 +242,6 @@ interface AiravataIf {
*/
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);
- /**
* Search and get all Projects for user by project description with pagination. Results
* will be ordered based on creation time DESC
*
@@ -328,28 +270,6 @@ interface AiravataIf {
*/
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);
- /**
* Search Experiments by experiment name with pagination. Results will be sorted
* based on creation time DESC
*
@@ -378,27 +298,6 @@ interface AiravataIf {
*/
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);
- /**
* Search Experiments by experiment name with pagination. Results will be sorted
* based on creation time DESC
*
@@ -427,27 +326,6 @@ interface AiravataIf {
*/
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);
- /**
* Search Experiments by application id with pagination. Results will be sorted
* based on creation time DESC
*
@@ -476,27 +354,6 @@ interface AiravataIf {
*/
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);
- /**
* Search Experiments by experiment status with pagination. Results will be sorted
* based on creation time DESC
*
@@ -525,30 +382,6 @@ interface AiravataIf {
*/
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);
- /**
* Search Experiments by experiment creation time with pagination. Results will be sorted
* based on creation time DESC
*
@@ -629,22 +462,6 @@ interface AiravataIf {
*/
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
* based on creation time DESC
*
@@ -668,24 +485,6 @@ interface AiravataIf {
*/
public function getAllExperimentsInProjectWithPagination(\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
* based on creation time DESC
*
@@ -3613,67 +3412,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("deleteProject failed: unknown result");
}
- public function getAllUserProjects($gatewayId, $userName)
- {
- $this->send_getAllUserProjects($gatewayId, $userName);
- return $this->recv_getAllUserProjects();
- }
-
- public function send_getAllUserProjects($gatewayId, $userName)
- {
- $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);
@@ -3741,68 +3479,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("getAllUserProjectsWithPagination failed: unknown result");
}
- public function searchProjectsByProjectName($gatewayId, $userName, $projectName)
- {
- $this->send_searchProjectsByProjectName($gatewayId, $userName, $projectName);
- return $this->recv_searchProjectsByProjectName();
- }
-
- public function send_searchProjectsByProjectName($gatewayId, $userName, $projectName)
- {
- $args = new \Airavata\API\Airavata_searchProjectsByProjectName_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->projectName = $projectName;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchProjectsByProjectName', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchProjectsByProjectName()
- {
- $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_searchProjectsByProjectName_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_searchProjectsByProjectName_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("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);
@@ -3871,68 +3547,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchProjectsByProjectNameWithPagination failed: unknown result");
}
- public function searchProjectsByProjectDesc($gatewayId, $userName, $description)
- {
- $this->send_searchProjectsByProjectDesc($gatewayId, $userName, $description);
- return $this->recv_searchProjectsByProjectDesc();
- }
-
- public function send_searchProjectsByProjectDesc($gatewayId, $userName, $description)
- {
- $args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->description = $description;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchProjectsByProjectDesc', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchProjectsByProjectDesc()
- {
- $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_searchProjectsByProjectDesc_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_searchProjectsByProjectDesc_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("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);
@@ -4001,68 +3615,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchProjectsByProjectDescWithPagination failed: unknown result");
}
- public function searchExperimentsByName($gatewayId, $userName, $expName)
- {
- $this->send_searchExperimentsByName($gatewayId, $userName, $expName);
- return $this->recv_searchExperimentsByName();
- }
-
- public function send_searchExperimentsByName($gatewayId, $userName, $expName)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByName_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->expName = $expName;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByName', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperimentsByName()
- {
- $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_searchExperimentsByName_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_searchExperimentsByName_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("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);
@@ -4131,68 +3683,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchExperimentsByNameWithPagination failed: unknown result");
}
- public function searchExperimentsByDesc($gatewayId, $userName, $description)
- {
- $this->send_searchExperimentsByDesc($gatewayId, $userName, $description);
- return $this->recv_searchExperimentsByDesc();
- }
-
- public function send_searchExperimentsByDesc($gatewayId, $userName, $description)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByDesc_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->description = $description;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByDesc', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperimentsByDesc()
- {
- $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_searchExperimentsByDesc_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_searchExperimentsByDesc_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("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);
@@ -4261,68 +3751,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchExperimentsByDescWithPagination failed: unknown result");
}
- public function searchExperimentsByApplication($gatewayId, $userName, $applicationId)
- {
- $this->send_searchExperimentsByApplication($gatewayId, $userName, $applicationId);
- return $this->recv_searchExperimentsByApplication();
- }
-
- public function send_searchExperimentsByApplication($gatewayId, $userName, $applicationId)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByApplication_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->applicationId = $applicationId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplication', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByApplication', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperimentsByApplication()
- {
- $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_searchExperimentsByApplication_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_searchExperimentsByApplication_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("searchExperimentsByApplication failed: unknown result");
- }
-
public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
{
$this->send_searchExperimentsByApplicationWithPagination($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
@@ -4391,68 +3819,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchExperimentsByApplicationWithPagination failed: unknown result");
}
- public function searchExperimentsByStatus($gatewayId, $userName, $experimentState)
- {
- $this->send_searchExperimentsByStatus($gatewayId, $userName, $experimentState);
- return $this->recv_searchExperimentsByStatus();
- }
-
- public function send_searchExperimentsByStatus($gatewayId, $userName, $experimentState)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->experimentState = $experimentState;
- $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());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- 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_searchExperimentsByStatus_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_searchExperimentsByStatus_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("searchExperimentsByStatus failed: unknown result");
- }
-
public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
{
$this->send_searchExperimentsByStatusWithPagination($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
@@ -4521,69 +3887,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("searchExperimentsByStatusWithPagination failed: unknown result");
}
- public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime)
- {
- $this->send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime);
- return $this->recv_searchExperimentsByCreationTime();
- }
-
- public function send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
- $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());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- 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_searchExperimentsByCreationTime_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_searchExperimentsByCreationTime_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("searchExperimentsByCreationTime failed: unknown result");
- }
-
public function searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
{
$this->send_searchExperimentsByCreationTimeWithPagination($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
@@ -4787,69 +4090,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
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);
@@ -4919,67 +4159,6 @@ class AiravataClient implements \Airavata\API\AiravataIf {
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");
- }
-
public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
$this->send_getAllUserExperimentsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset);
@@ -14450,3055 +13629,14 @@ class Airavata_getProject_result {
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;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getProject_result');
- if ($this->success !== null) {
- if (!is_object($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->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->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;
- }
-
-}
-
-class Airavata_deleteProject_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $projectId = 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' => 'projectId',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['projectId'])) {
- $this->projectId = $vals['projectId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_deleteProject_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->projectId);
- } 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_deleteProject_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->projectId !== null) {
- $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2);
- $xfer += $output->writeString($this->projectId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_deleteProject_result {
- static $_TSPEC;
-
- /**
- * @var bool
- */
- 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\ProjectNotFoundException
- */
- public $pnfe = 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::BOOL,
- ),
- 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' => '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)) {
- 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['pnfe'])) {
- $this->pnfe = $vals['pnfe'];
- }
- if (isset($vals['ae'])) {
- $this->ae = $vals['ae'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_deleteProject_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::BOOL) {
- $xfer += $input->readBool($this->success);
- } 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->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;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_deleteProject_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
- $xfer += $output->writeBool($this->success);
- $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->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;
- }
-
-}
-
-class Airavata_getAllUserProjects_args {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $gatewayId = null;
- /**
- * @var string
- */
- public $userName = 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,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['gatewayId'])) {
- $this->gatewayId = $vals['gatewayId'];
- }
- if (isset($vals['userName'])) {
- $this->userName = $vals['userName'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllUserProjects_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;
- default:
- $xfer += $input->skip($ftype);
- break;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_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();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllUserProjects_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_getAllUserProjects_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();
- $_size16 = 0;
- $_etype19 = 0;
- $xfer += $input->readListBegin($_etype19, $_size16);
- for ($_i20 = 0; $_i20 < $_size16; ++$_i20)
- {
- $elem21 = null;
- $elem21 = new \Airavata\Model\Workspace\Project();
- $xfer += $elem21->read($input);
- $this->success []= $elem21;
- }
- $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_getAllUserProjects_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 $iter22)
- {
- $xfer += $iter22->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_getAllUserProjectsWithPagination_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $gatewayId = null;
- /**
- * @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,
- ),
- 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_getAllUserProjectsWithPagination_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::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;
- }
- $xfer += $input->readFieldEnd();
- }
- $xfer += $input->readStructEnd();
- return $xfer;
- }
-
- public function write($output) {
- $xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_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->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;
- }
-
-}
-
-class Airavata_getAllUserProjectsWithPagination_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_getAllUserProjectsWithPagination_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();
- $_size23 = 0;
- $_etype26 = 0;
- $xfer += $input->readListBegin($_etype26, $_size23);
- for ($_i27 = 0; $_i27 < $_size23; ++$_i27)
- {
- $elem28 = null;
- $elem28 = new \Airavata\Model\Workspace\Project();
- $xfer += $elem28->read($input);
- $this->success []= $elem28;
- }
- $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_getAllUserProjectsWithPagination_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 $iter29)
- {
- $xfer += $iter29->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_searchProjectsByProjectName_args {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $gatewayId = null;
- /**
- * @var string
- */
- public $userName = null;
- /**
- * @var string
- */
- public $projectName = 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' => 'projectName',
- '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['projectName'])) {
- $this->projectName = $vals['projectName'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_searchProjectsByProjectName_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->projectName);
- } 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_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->projectName !== null) {
- $xfer += $output->writeFieldBegin('projectName', TType::STRING, 3);
- $xfer += $output->writeString($this->projectName);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_searchProjectsByProjectName_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_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)
-
<TRUNCATED>
[4/5] airavata-php-gateway git commit: Revert "making project summary
in PGA compatible with airavata master"
Posted by sc...@apache.org.
Revert "making project summary in PGA compatible with airavata master"
This reverts commit 0e6904b2e55c787b71736841c0ed24ca725e70c1.
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/c9049644
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/c9049644
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/c9049644
Branch: refs/heads/master
Commit: c904964434123cbcdee6717e018981011af2ad72
Parents: da784f9
Author: Supun Nakandala <sc...@apache.org>
Authored: Mon Aug 3 02:07:41 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Mon Aug 3 02:07:41 2015 +0530
----------------------------------------------------------------------
app/libraries/ProjectUtilities.php | 2 +-
app/views/project/summary.blade.php | 57 ++++++++++++++++----------------
2 files changed, 30 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c9049644/app/libraries/ProjectUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ProjectUtilities.php b/app/libraries/ProjectUtilities.php
index 487f9be..47a640e 100644
--- a/app/libraries/ProjectUtilities.php
+++ b/app/libraries/ProjectUtilities.php
@@ -162,7 +162,7 @@ class ProjectUtilities
$experiments = array();
try {
- $experiments = Airavata::getAllExperimentsInProjectWithPagination(Session::get('authz-token'), $projectId, -1, 0);
+ $experiments = Airavata::getAllExperimentsInProject(Session::get('authz-token'), $projectId);
} catch (InvalidRequestException $ire) {
CommonUtilities::print_error_message('InvalidRequestException!<br><br>' . $ire->getMessage());
} catch (AiravataClientException $ace) {
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c9049644/app/views/project/summary.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/summary.blade.php b/app/views/project/summary.blade.php
index 9945aec..1340f01 100755
--- a/app/views/project/summary.blade.php
+++ b/app/views/project/summary.blade.php
@@ -10,7 +10,6 @@
<?php
$project = ProjectUtilities::get_project($_GET['projId']);
?>
-
<h1>Project Summary
@if( !isset($dashboard))
<small><a href="{{ URL::to('/') }}/project/summary?projId={{ $project->projectID }}"
@@ -40,35 +39,19 @@
echo '<th>Compute Resource</th>';
echo '<th>Last Modified Time</th>';
echo '<th>Experiment Status</th>';
-// echo '<th>Job Status</th>';
+ echo '<th>Job Status</th>';
echo '</tr>';
foreach ($experiments as $experiment) {
- $expValues = ExperimentUtilities::get_experiment_values($experiment, ProjectUtilities::get_project($experiment->projectId), true);
-// $expValues["jobState"] = ExperimentUtilities::get_job_status($experiment);
- $applicationInterface = AppUtilities::get_application_interface($experiment->executionId);
+ $expValues = ExperimentUtilities::get_experiment_values($experiment, ProjectUtilities::get_project($experiment->projectID), true);
+ $expValues["jobState"] = ExperimentUtilities::get_job_status($experiment);
+ $applicationInterface = AppUtilities::get_application_interface($experiment->applicationId);
echo '<tr>';
- echo '<td>'. $experiment->experimentName . '</td>';
-
- echo "<td>$applicationInterface->applicationName</td>";
-
echo '<td>';
- try {
- $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
- ->computationalResourceScheduling->resourceHostId);
- if (!empty($cr)) {
- echo $cr->hostName;
- }
- } catch (Exception $ex) {
- //Error while retrieving the CR
- }
- echo '</td>';
- echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"] . '"></td>';
- echo '<td>';
switch ($expValues["experimentStatusString"]) {
case 'CANCELING':
@@ -94,23 +77,41 @@
case 'CANCELING':
case 'COMPLETED':
echo '<a class="' . $textClass . '" href="' . URL::to('/') . '/experiment/summary?expId=' .
- $experiment->experimentId . '">' . $expValues["experimentStatusString"] . '</a>';
+ $experiment->experimentID . '">' . $experiment->name . '</a>';
break;
default:
echo '<a class="' . $textClass . '" href="' . URL::to('/') . '/experiment/summary?expId=' .
- $experiment->experimentId . '">' . $expValues["experimentStatusString"] . '</a>' .
+ $experiment->experimentID . '">' . $experiment->name . '</a>' .
' <a href="' . URL::to('/') . '/experiment/edit?expId=' .
- $experiment->experimentId .
+ $experiment->experimentID .
'" title="Edit"><span class="glyphicon glyphicon-pencil"></span></a>';
break;
}
+
echo '</td>';
-// if ($expValues["jobState"]) echo '
-// <td>' . $expValues["jobState"] . '</td>';
-// else
-// echo '<td></td>';
+ echo "<td>$applicationInterface->applicationName</td>";
+
+ echo '<td>';
+ try {
+ $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
+ ->computationalResourceScheduling->resourceHostId);
+ if (!empty($cr)) {
+ echo $cr->hostName;
+ }
+ } catch (Exception $ex) {
+ //Error while retrieving the CR
+ }
+ echo '</td>';
+ echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"] . '"></td>';
+
+ echo '<td>'. $expValues["experimentStatusString"] . '</td>';
+
+ if ($expValues["jobState"]) echo '
+ <td>' . $expValues["jobState"] . '</td>';
+ else
+ echo '<td></td>';
echo '</tr>';
}
[5/5] airavata-php-gateway git commit: updating Airavata API thrift
generated class.
Posted by sc...@apache.org.
updating Airavata API thrift generated class.
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/fc78eeff
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/fc78eeff
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/fc78eeff
Branch: refs/heads/master
Commit: fc78eeff77199762d418995f5dcf7d95e2e76161
Parents: c904964
Author: Supun Nakandala <sc...@apache.org>
Authored: Mon Aug 3 02:11:31 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Mon Aug 3 02:11:31 2015 +0530
----------------------------------------------------------------------
app/libraries/Airavata/API/Airavata.php | 360 +++++++++++++--------------
app/libraries/ExperimentUtilities.php | 2 +-
app/libraries/ProjectUtilities.php | 2 +-
3 files changed, 182 insertions(+), 182 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/fc78eeff/app/libraries/Airavata/API/Airavata.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index 2f21ee0..a5aa302 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -212,7 +212,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
+ public function getAllUserProjects(\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
@@ -240,7 +240,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
+ 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
@@ -268,7 +268,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
+ 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
@@ -296,7 +296,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset);
+ 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
@@ -324,7 +324,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
+ 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
@@ -352,7 +352,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
+ 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
@@ -380,7 +380,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
+ 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
@@ -411,7 +411,7 @@ interface AiravataIf {
* @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
@@ -483,7 +483,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\ProjectNotFoundException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset);
+ public function getAllExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset);
/**
* Get all Experiments by user pagination. Results will be sorted
* based on creation time DESC
@@ -508,7 +508,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
+ public function getAllUserExperiments(\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
@@ -3412,15 +3412,15 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("deleteProject failed: unknown result");
}
- public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function getAllUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $this->send_getAllUserProjectsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset);
- return $this->recv_getAllUserProjectsWithPagination();
+ $this->send_getAllUserProjects($authzToken, $gatewayId, $userName, $limit, $offset);
+ return $this->recv_getAllUserProjects();
}
- public function send_getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function send_getAllUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_args();
+ $args = new \Airavata\API\Airavata_getAllUserProjects_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3429,21 +3429,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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_, 'getAllUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserProjectsWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllUserProjects', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserProjectsWithPagination()
+ 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_getAllUserProjectsWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserProjects_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3457,7 +3457,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_result();
+ $result = new \Airavata\API\Airavata_getAllUserProjects_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3476,18 +3476,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllUserProjectsWithPagination failed: unknown result");
+ throw new \Exception("getAllUserProjects failed: unknown result");
}
- public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
+ public function searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
{
- $this->send_searchProjectsByProjectNameWithPagination($authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
- return $this->recv_searchProjectsByProjectNameWithPagination();
+ $this->send_searchProjectsByProjectName($authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
+ return $this->recv_searchProjectsByProjectName();
}
- public function send_searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
+ public function send_searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchProjectsByProjectName_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3497,21 +3497,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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());
+ thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchProjectsByProjectName', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchProjectsByProjectNameWithPagination()
+ public function recv_searchProjectsByProjectName()
{
$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());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectName_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3525,7 +3525,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchProjectsByProjectName_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3544,18 +3544,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchProjectsByProjectNameWithPagination failed: unknown result");
+ throw new \Exception("searchProjectsByProjectName failed: unknown result");
}
- public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
+ public function searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $this->send_searchProjectsByProjectDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset);
- return $this->recv_searchProjectsByProjectDescWithPagination();
+ $this->send_searchProjectsByProjectDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset);
+ return $this->recv_searchProjectsByProjectDesc();
}
- public function send_searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
+ public function send_searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3565,21 +3565,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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());
+ thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchProjectsByProjectDesc', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchProjectsByProjectDescWithPagination()
+ public function recv_searchProjectsByProjectDesc()
{
$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());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchProjectsByProjectDesc_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3593,7 +3593,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchProjectsByProjectDesc_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3612,18 +3612,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchProjectsByProjectDescWithPagination failed: unknown result");
+ throw new \Exception("searchProjectsByProjectDesc failed: unknown result");
}
- public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
+ public function searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
{
- $this->send_searchExperimentsByNameWithPagination($authzToken, $gatewayId, $userName, $expName, $limit, $offset);
- return $this->recv_searchExperimentsByNameWithPagination();
+ $this->send_searchExperimentsByName($authzToken, $gatewayId, $userName, $expName, $limit, $offset);
+ return $this->recv_searchExperimentsByName();
}
- public function send_searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
+ public function send_searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByName_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3633,21 +3633,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByName', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByName', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByNameWithPagination()
+ public function recv_searchExperimentsByName()
{
$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());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByName_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3661,7 +3661,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByName_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3680,18 +3680,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByNameWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByName failed: unknown result");
}
- public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
+ public function searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $this->send_searchExperimentsByDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset);
- return $this->recv_searchExperimentsByDescWithPagination();
+ $this->send_searchExperimentsByDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset);
+ return $this->recv_searchExperimentsByDesc();
}
- public function send_searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
+ public function send_searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByDesc_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3701,21 +3701,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByDesc', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByDesc', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByDescWithPagination()
+ public function recv_searchExperimentsByDesc()
{
$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());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByDesc_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3729,7 +3729,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByDesc_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3748,18 +3748,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByDescWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByDesc failed: unknown result");
}
- public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
+ public function searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
{
- $this->send_searchExperimentsByApplicationWithPagination($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
- return $this->recv_searchExperimentsByApplicationWithPagination();
+ $this->send_searchExperimentsByApplication($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
+ return $this->recv_searchExperimentsByApplication();
}
- public function send_searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
+ public function send_searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByApplication_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3769,21 +3769,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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_, 'searchExperimentsByApplication', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByApplication', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByApplicationWithPagination()
+ public function recv_searchExperimentsByApplication()
{
$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_searchExperimentsByApplication_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3797,7 +3797,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByApplication_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3816,18 +3816,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByApplicationWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByApplication failed: unknown result");
}
- public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
+ public function searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
{
- $this->send_searchExperimentsByStatusWithPagination($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
- return $this->recv_searchExperimentsByStatusWithPagination();
+ $this->send_searchExperimentsByStatus($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
+ return $this->recv_searchExperimentsByStatus();
}
- public function send_searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
+ public function send_searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3837,21 +3837,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByStatusWithPagination', 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_searchExperimentsByStatusWithPagination()
+ 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_searchExperimentsByStatusWithPagination_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;
@@ -3865,7 +3865,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3884,18 +3884,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByStatusWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByStatus failed: unknown result");
}
- 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)
{
- $this->send_searchExperimentsByCreationTimeWithPagination($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
- return $this->recv_searchExperimentsByCreationTimeWithPagination();
+ $this->send_searchExperimentsByCreationTime($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
+ return $this->recv_searchExperimentsByCreationTime();
}
- public function send_searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
+ public function send_searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3906,21 +3906,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByCreationTimeWithPagination', 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_searchExperimentsByCreationTimeWithPagination()
+ 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_searchExperimentsByCreationTimeWithPagination_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;
@@ -3934,7 +3934,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3953,7 +3953,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByCreationTimeWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByCreationTime failed: unknown result");
}
public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset)
@@ -4090,15 +4090,15 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("getExperimentStatistics failed: unknown result");
}
- public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
+ public function getAllExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
{
- $this->send_getAllExperimentsInProjectWithPagination($authzToken, $projectId, $limit, $offset);
- return $this->recv_getAllExperimentsInProjectWithPagination();
+ $this->send_getAllExperimentsInProject($authzToken, $projectId, $limit, $offset);
+ return $this->recv_getAllExperimentsInProject();
}
- public function send_getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
+ public function send_getAllExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_args();
+ $args = new \Airavata\API\Airavata_getAllExperimentsInProject_args();
$args->authzToken = $authzToken;
$args->projectId = $projectId;
$args->limit = $limit;
@@ -4106,21 +4106,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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());
+ thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllExperimentsInProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllExperimentsInProjectWithPagination()
+ 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_getAllExperimentsInProjectWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllExperimentsInProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4134,7 +4134,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_result();
+ $result = new \Airavata\API\Airavata_getAllExperimentsInProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4156,18 +4156,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllExperimentsInProjectWithPagination failed: unknown result");
+ throw new \Exception("getAllExperimentsInProject failed: unknown result");
}
- public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function getAllUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $this->send_getAllUserExperimentsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset);
- return $this->recv_getAllUserExperimentsWithPagination();
+ $this->send_getAllUserExperiments($authzToken, $gatewayId, $userName, $limit, $offset);
+ return $this->recv_getAllUserExperiments();
}
- public function send_getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function send_getAllUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_args();
+ $args = new \Airavata\API\Airavata_getAllUserExperiments_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -4176,21 +4176,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$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_, 'getAllUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getAllUserExperiments', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserExperimentsWithPagination()
+ 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_getAllUserExperimentsWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getAllUserExperiments_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4204,7 +4204,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_result();
+ $result = new \Airavata\API\Airavata_getAllUserExperiments_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4223,7 +4223,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllUserExperimentsWithPagination failed: unknown result");
+ throw new \Exception("getAllUserExperiments failed: unknown result");
}
public function createExperiment(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Experiment\ExperimentModel $experiment)
@@ -13999,7 +13999,7 @@ class Airavata_deleteProject_result {
}
-class Airavata_getAllUserProjectsWithPagination_args {
+class Airavata_getAllUserProjects_args {
static $_TSPEC;
/**
@@ -14069,7 +14069,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
}
public function getName() {
- return 'Airavata_getAllUserProjectsWithPagination_args';
+ return 'Airavata_getAllUserProjects_args';
}
public function read($input)
@@ -14135,7 +14135,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_args');
+ $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -14171,7 +14171,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
}
-class Airavata_getAllUserProjectsWithPagination_result {
+class Airavata_getAllUserProjects_result {
static $_TSPEC;
/**
@@ -14249,7 +14249,7 @@ class Airavata_getAllUserProjectsWithPagination_result {
}
public function getName() {
- return 'Airavata_getAllUserProjectsWithPagination_result';
+ return 'Airavata_getAllUserProjects_result';
}
public function read($input)
@@ -14329,7 +14329,7 @@ class Airavata_getAllUserProjectsWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_result');
+ $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -14374,7 +14374,7 @@ class Airavata_getAllUserProjectsWithPagination_result {
}
-class Airavata_searchProjectsByProjectNameWithPagination_args {
+class Airavata_searchProjectsByProjectName_args {
static $_TSPEC;
/**
@@ -14455,7 +14455,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_args {
}
public function getName() {
- return 'Airavata_searchProjectsByProjectNameWithPagination_args';
+ return 'Airavata_searchProjectsByProjectName_args';
}
public function read($input)
@@ -14528,7 +14528,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_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);
@@ -14569,7 +14569,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_args {
}
-class Airavata_searchProjectsByProjectNameWithPagination_result {
+class Airavata_searchProjectsByProjectName_result {
static $_TSPEC;
/**
@@ -14647,7 +14647,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_result {
}
public function getName() {
- return 'Airavata_searchProjectsByProjectNameWithPagination_result';
+ return 'Airavata_searchProjectsByProjectName_result';
}
public function read($input)
@@ -14727,7 +14727,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectNameWithPagination_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);
@@ -14772,7 +14772,7 @@ class Airavata_searchProjectsByProjectNameWithPagination_result {
}
-class Airavata_searchProjectsByProjectDescWithPagination_args {
+class Airavata_searchProjectsByProjectDesc_args {
static $_TSPEC;
/**
@@ -14853,7 +14853,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_args {
}
public function getName() {
- return 'Airavata_searchProjectsByProjectDescWithPagination_args';
+ return 'Airavata_searchProjectsByProjectDesc_args';
}
public function read($input)
@@ -14926,7 +14926,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_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);
@@ -14967,7 +14967,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_args {
}
-class Airavata_searchProjectsByProjectDescWithPagination_result {
+class Airavata_searchProjectsByProjectDesc_result {
static $_TSPEC;
/**
@@ -15045,7 +15045,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_result {
}
public function getName() {
- return 'Airavata_searchProjectsByProjectDescWithPagination_result';
+ return 'Airavata_searchProjectsByProjectDesc_result';
}
public function read($input)
@@ -15125,7 +15125,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDescWithPagination_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);
@@ -15170,7 +15170,7 @@ class Airavata_searchProjectsByProjectDescWithPagination_result {
}
-class Airavata_searchExperimentsByNameWithPagination_args {
+class Airavata_searchExperimentsByName_args {
static $_TSPEC;
/**
@@ -15251,7 +15251,7 @@ class Airavata_searchExperimentsByNameWithPagination_args {
}
public function getName() {
- return 'Airavata_searchExperimentsByNameWithPagination_args';
+ return 'Airavata_searchExperimentsByName_args';
}
public function read($input)
@@ -15324,7 +15324,7 @@ class Airavata_searchExperimentsByNameWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_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);
@@ -15365,7 +15365,7 @@ class Airavata_searchExperimentsByNameWithPagination_args {
}
-class Airavata_searchExperimentsByNameWithPagination_result {
+class Airavata_searchExperimentsByName_result {
static $_TSPEC;
/**
@@ -15443,7 +15443,7 @@ class Airavata_searchExperimentsByNameWithPagination_result {
}
public function getName() {
- return 'Airavata_searchExperimentsByNameWithPagination_result';
+ return 'Airavata_searchExperimentsByName_result';
}
public function read($input)
@@ -15523,7 +15523,7 @@ class Airavata_searchExperimentsByNameWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByNameWithPagination_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);
@@ -15568,7 +15568,7 @@ class Airavata_searchExperimentsByNameWithPagination_result {
}
-class Airavata_searchExperimentsByDescWithPagination_args {
+class Airavata_searchExperimentsByDesc_args {
static $_TSPEC;
/**
@@ -15649,7 +15649,7 @@ class Airavata_searchExperimentsByDescWithPagination_args {
}
public function getName() {
- return 'Airavata_searchExperimentsByDescWithPagination_args';
+ return 'Airavata_searchExperimentsByDesc_args';
}
public function read($input)
@@ -15722,7 +15722,7 @@ class Airavata_searchExperimentsByDescWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_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);
@@ -15763,7 +15763,7 @@ class Airavata_searchExperimentsByDescWithPagination_args {
}
-class Airavata_searchExperimentsByDescWithPagination_result {
+class Airavata_searchExperimentsByDesc_result {
static $_TSPEC;
/**
@@ -15841,7 +15841,7 @@ class Airavata_searchExperimentsByDescWithPagination_result {
}
public function getName() {
- return 'Airavata_searchExperimentsByDescWithPagination_result';
+ return 'Airavata_searchExperimentsByDesc_result';
}
public function read($input)
@@ -15921,7 +15921,7 @@ class Airavata_searchExperimentsByDescWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByDescWithPagination_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);
@@ -15966,7 +15966,7 @@ class Airavata_searchExperimentsByDescWithPagination_result {
}
-class Airavata_searchExperimentsByApplicationWithPagination_args {
+class Airavata_searchExperimentsByApplication_args {
static $_TSPEC;
/**
@@ -16047,7 +16047,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_args {
}
public function getName() {
- return 'Airavata_searchExperimentsByApplicationWithPagination_args';
+ return 'Airavata_searchExperimentsByApplication_args';
}
public function read($input)
@@ -16120,7 +16120,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_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);
@@ -16161,7 +16161,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_args {
}
-class Airavata_searchExperimentsByApplicationWithPagination_result {
+class Airavata_searchExperimentsByApplication_result {
static $_TSPEC;
/**
@@ -16239,7 +16239,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_result {
}
public function getName() {
- return 'Airavata_searchExperimentsByApplicationWithPagination_result';
+ return 'Airavata_searchExperimentsByApplication_result';
}
public function read($input)
@@ -16319,7 +16319,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByApplicationWithPagination_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);
@@ -16364,7 +16364,7 @@ class Airavata_searchExperimentsByApplicationWithPagination_result {
}
-class Airavata_searchExperimentsByStatusWithPagination_args {
+class Airavata_searchExperimentsByStatus_args {
static $_TSPEC;
/**
@@ -16445,7 +16445,7 @@ class Airavata_searchExperimentsByStatusWithPagination_args {
}
public function getName() {
- return 'Airavata_searchExperimentsByStatusWithPagination_args';
+ return 'Airavata_searchExperimentsByStatus_args';
}
public function read($input)
@@ -16518,7 +16518,7 @@ class Airavata_searchExperimentsByStatusWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_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);
@@ -16559,7 +16559,7 @@ class Airavata_searchExperimentsByStatusWithPagination_args {
}
-class Airavata_searchExperimentsByStatusWithPagination_result {
+class Airavata_searchExperimentsByStatus_result {
static $_TSPEC;
/**
@@ -16637,7 +16637,7 @@ class Airavata_searchExperimentsByStatusWithPagination_result {
}
public function getName() {
- return 'Airavata_searchExperimentsByStatusWithPagination_result';
+ return 'Airavata_searchExperimentsByStatus_result';
}
public function read($input)
@@ -16717,7 +16717,7 @@ class Airavata_searchExperimentsByStatusWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByStatusWithPagination_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);
@@ -16762,7 +16762,7 @@ class Airavata_searchExperimentsByStatusWithPagination_result {
}
-class Airavata_searchExperimentsByCreationTimeWithPagination_args {
+class Airavata_searchExperimentsByCreationTime_args {
static $_TSPEC;
/**
@@ -16854,7 +16854,7 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_args {
}
public function getName() {
- return 'Airavata_searchExperimentsByCreationTimeWithPagination_args';
+ return 'Airavata_searchExperimentsByCreationTime_args';
}
public function read($input)
@@ -16934,7 +16934,7 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_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);
@@ -16980,7 +16980,7 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_args {
}
-class Airavata_searchExperimentsByCreationTimeWithPagination_result {
+class Airavata_searchExperimentsByCreationTime_result {
static $_TSPEC;
/**
@@ -17058,7 +17058,7 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_result {
}
public function getName() {
- return 'Airavata_searchExperimentsByCreationTimeWithPagination_result';
+ return 'Airavata_searchExperimentsByCreationTime_result';
}
public function read($input)
@@ -17138,7 +17138,7 @@ class Airavata_searchExperimentsByCreationTimeWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTimeWithPagination_result');
+ $xfer += $output->writeStructBegin('Airavata_searchExperimentsByCreationTime_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -17944,7 +17944,7 @@ class Airavata_getExperimentStatistics_result {
}
-class Airavata_getAllExperimentsInProjectWithPagination_args {
+class Airavata_getAllExperimentsInProject_args {
static $_TSPEC;
/**
@@ -18003,7 +18003,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_args {
}
public function getName() {
- return 'Airavata_getAllExperimentsInProjectWithPagination_args';
+ return 'Airavata_getAllExperimentsInProject_args';
}
public function read($input)
@@ -18062,7 +18062,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_args');
+ $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -18093,7 +18093,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_args {
}
-class Airavata_getAllExperimentsInProjectWithPagination_result {
+class Airavata_getAllExperimentsInProject_result {
static $_TSPEC;
/**
@@ -18183,7 +18183,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_result {
}
public function getName() {
- return 'Airavata_getAllExperimentsInProjectWithPagination_result';
+ return 'Airavata_getAllExperimentsInProject_result';
}
public function read($input)
@@ -18271,7 +18271,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProjectWithPagination_result');
+ $xfer += $output->writeStructBegin('Airavata_getAllExperimentsInProject_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -18321,7 +18321,7 @@ class Airavata_getAllExperimentsInProjectWithPagination_result {
}
-class Airavata_getAllUserExperimentsWithPagination_args {
+class Airavata_getAllUserExperiments_args {
static $_TSPEC;
/**
@@ -18391,7 +18391,7 @@ class Airavata_getAllUserExperimentsWithPagination_args {
}
public function getName() {
- return 'Airavata_getAllUserExperimentsWithPagination_args';
+ return 'Airavata_getAllUserExperiments_args';
}
public function read($input)
@@ -18457,7 +18457,7 @@ class Airavata_getAllUserExperimentsWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_args');
+ $xfer += $output->writeStructBegin('Airavata_getAllUserExperiments_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -18493,7 +18493,7 @@ class Airavata_getAllUserExperimentsWithPagination_args {
}
-class Airavata_getAllUserExperimentsWithPagination_result {
+class Airavata_getAllUserExperiments_result {
static $_TSPEC;
/**
@@ -18571,7 +18571,7 @@ class Airavata_getAllUserExperimentsWithPagination_result {
}
public function getName() {
- return 'Airavata_getAllUserExperimentsWithPagination_result';
+ return 'Airavata_getAllUserExperiments_result';
}
public function read($input)
@@ -18651,7 +18651,7 @@ class Airavata_getAllUserExperimentsWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserExperimentsWithPagination_result');
+ $xfer += $output->writeStructBegin('Airavata_getAllUserExperiments_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/fc78eeff/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 9419c1f..a7fa822 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -917,7 +917,7 @@ class ExperimentUtilities
$experiments = array();
try {
- $experiments = Airavata::getAllUserExperimentsWithPagination(Session::get('authz-token'),
+ $experiments = Airavata::getUserExperiments(Session::get('authz-token'),
Session::get('gateway_id'), Session::get('username'), $limit, $offset
);
} catch (InvalidRequestException $ire) {
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/fc78eeff/app/libraries/ProjectUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ProjectUtilities.php b/app/libraries/ProjectUtilities.php
index 47a640e..487f9be 100644
--- a/app/libraries/ProjectUtilities.php
+++ b/app/libraries/ProjectUtilities.php
@@ -162,7 +162,7 @@ class ProjectUtilities
$experiments = array();
try {
- $experiments = Airavata::getAllExperimentsInProject(Session::get('authz-token'), $projectId);
+ $experiments = Airavata::getAllExperimentsInProjectWithPagination(Session::get('authz-token'), $projectId, -1, 0);
} catch (InvalidRequestException $ire) {
CommonUtilities::print_error_message('InvalidRequestException!<br><br>' . $ire->getMessage());
} catch (AiravataClientException $ace) {