Updating thrift models to support staging environment
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index 30fecc2..c95ef31 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -1,7 +1,7 @@
<?php
namespace Airavata\API;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -3451,19 +3451,6 @@
*/
public function doesUserHaveSSHAccount(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId);
/**
- * Check if SSH account setup is complete for this user on the given compute resource.
- *
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $computeResourceId
- * @param string $airavataCredStoreToken
- * @return bool
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function isSSHSetupCompleteForUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $airavataCredStoreToken);
- /**
* Setup and return a UserComputeResourcePreference object for this user to SSH into the given compute resource with
* the given SSH credential. This method will only work if the compute resource has an SSHAccountProvisioner
* configured for it. The returned UserComputeResourcePreference object is not saved; it is up to the client to
@@ -4130,59 +4117,9 @@
* @throws \Airavata\API\Error\AuthorizationException
*/
public function getAllAccessibleUsers(\Airavata\Model\Security\AuthzToken $authzToken, $resourceId, $resourceType, $permissionType);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param \Airavata\Model\Group\GroupModel $groupModel
- * @return string
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param \Airavata\Model\Group\GroupModel $groupModel
- * @return bool
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $groupId
- * @param string $ownerId
- * @return bool
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $groupId
- * @return \Airavata\Model\Group\GroupModel
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId);
- /**
- * @param \Airavata\Model\Security\AuthzToken $authzToken
- * @param string $userName
- * @return \Airavata\Model\Group\GroupModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\AuthorizationException
- */
- public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName);
}
+
class AiravataClient implements \Airavata\API\AiravataIf {
protected $input_ = null;
protected $output_ = null;
@@ -12936,71 +12873,6 @@
throw new \Exception("doesUserHaveSSHAccount failed: unknown result");
}
- public function isSSHSetupCompleteForUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $airavataCredStoreToken)
- {
- $this->send_isSSHSetupCompleteForUserComputeResourcePreference($authzToken, $computeResourceId, $airavataCredStoreToken);
- return $this->recv_isSSHSetupCompleteForUserComputeResourcePreference();
- }
-
- public function send_isSSHSetupCompleteForUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $airavataCredStoreToken)
- {
- $args = new \Airavata\API\Airavata_isSSHSetupCompleteForUserComputeResourcePreference_args();
- $args->authzToken = $authzToken;
- $args->computeResourceId = $computeResourceId;
- $args->airavataCredStoreToken = $airavataCredStoreToken;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'isSSHSetupCompleteForUserComputeResourcePreference', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('isSSHSetupCompleteForUserComputeResourcePreference', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_isSSHSetupCompleteForUserComputeResourcePreference()
- {
- $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_isSSHSetupCompleteForUserComputeResourcePreference_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_isSSHSetupCompleteForUserComputeResourcePreference_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("isSSHSetupCompleteForUserComputeResourcePreference failed: unknown result");
- }
-
public function setupUserComputeResourcePreferencesForSSH(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId, $airavataCredStoreToken)
{
$this->send_setupUserComputeResourcePreferencesForSSH($authzToken, $computeResourceId, $userId, $airavataCredStoreToken);
@@ -15077,329 +14949,9 @@
throw new \Exception("getAllAccessibleUsers failed: unknown result");
}
- public function createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
- {
- $this->send_createGroup($authzToken, $groupModel);
- return $this->recv_createGroup();
- }
-
- public function send_createGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
- {
- $args = new \Airavata\API\Airavata_createGroup_args();
- $args->authzToken = $authzToken;
- $args->groupModel = $groupModel;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'createGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('createGroup', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_createGroup()
- {
- $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_createGroup_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_createGroup_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("createGroup failed: unknown result");
- }
-
- public function updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
- {
- $this->send_updateGroup($authzToken, $groupModel);
- return $this->recv_updateGroup();
- }
-
- public function send_updateGroup(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Group\GroupModel $groupModel)
- {
- $args = new \Airavata\API\Airavata_updateGroup_args();
- $args->authzToken = $authzToken;
- $args->groupModel = $groupModel;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'updateGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('updateGroup', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_updateGroup()
- {
- $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_updateGroup_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_updateGroup_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("updateGroup failed: unknown result");
- }
-
- public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
- {
- $this->send_deleteGroup($authzToken, $groupId, $ownerId);
- return $this->recv_deleteGroup();
- }
-
- public function send_deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
- {
- $args = new \Airavata\API\Airavata_deleteGroup_args();
- $args->authzToken = $authzToken;
- $args->groupId = $groupId;
- $args->ownerId = $ownerId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'deleteGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('deleteGroup', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_deleteGroup()
- {
- $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_deleteGroup_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_deleteGroup_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("deleteGroup failed: unknown result");
- }
-
- public function getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
- {
- $this->send_getGroup($authzToken, $groupId);
- return $this->recv_getGroup();
- }
-
- public function send_getGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId)
- {
- $args = new \Airavata\API\Airavata_getGroup_args();
- $args->authzToken = $authzToken;
- $args->groupId = $groupId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getGroup', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getGroup()
- {
- $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_getGroup_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_getGroup_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("getGroup failed: unknown result");
- }
-
- public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
- {
- $this->send_getAllGroupsUserBelongs($authzToken, $userName);
- return $this->recv_getAllGroupsUserBelongs();
- }
-
- public function send_getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
- {
- $args = new \Airavata\API\Airavata_getAllGroupsUserBelongs_args();
- $args->authzToken = $authzToken;
- $args->userName = $userName;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllGroupsUserBelongs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllGroupsUserBelongs', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllGroupsUserBelongs()
- {
- $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_getAllGroupsUserBelongs_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_getAllGroupsUserBelongs_result();
- $result->read($this->input_);
- $this->input_->readMessageEnd();
- }
- if ($result->success !== null) {
- return $result->success;
- }
- if ($result->ire !== null) {
- throw $result->ire;
- }
- if ($result->ace !== null) {
- throw $result->ace;
- }
- if ($result->ase !== null) {
- throw $result->ase;
- }
- if ($result->ae !== null) {
- throw $result->ae;
- }
- throw new \Exception("getAllGroupsUserBelongs failed: unknown result");
- }
-
}
+
// HELPER FUNCTIONS AND STRUCTURES
class Airavata_getAPIVersion_args {
@@ -56700,307 +56252,6 @@
}
-class Airavata_isSSHSetupCompleteForUserComputeResourcePreference_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $computeResourceId = null;
- /**
- * @var string
- */
- public $airavataCredStoreToken = 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' => 'computeResourceId',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'airavataCredStoreToken',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['computeResourceId'])) {
- $this->computeResourceId = $vals['computeResourceId'];
- }
- if (isset($vals['airavataCredStoreToken'])) {
- $this->airavataCredStoreToken = $vals['airavataCredStoreToken'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_isSSHSetupCompleteForUserComputeResourcePreference_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->computeResourceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->airavataCredStoreToken);
- } 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_isSSHSetupCompleteForUserComputeResourcePreference_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->computeResourceId !== null) {
- $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
- $xfer += $output->writeString($this->computeResourceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->airavataCredStoreToken !== null) {
- $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 3);
- $xfer += $output->writeString($this->airavataCredStoreToken);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_isSSHSetupCompleteForUserComputeResourcePreference_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\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' => '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_isSSHSetupCompleteForUserComputeResourcePreference_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->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_isSSHSetupCompleteForUserComputeResourcePreference_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->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_setupUserComputeResourcePreferencesForSSH_args {
static $_TSPEC;
@@ -66978,1460 +66229,4 @@
}
-class Airavata_createGroup_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var \Airavata\Model\Group\GroupModel
- */
- public $groupModel = 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' => 'groupModel',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['groupModel'])) {
- $this->groupModel = $vals['groupModel'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_createGroup_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::STRUCT) {
- $this->groupModel = new \Airavata\Model\Group\GroupModel();
- $xfer += $this->groupModel->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_createGroup_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->groupModel !== null) {
- if (!is_object($this->groupModel)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
- $xfer += $this->groupModel->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_createGroup_result {
- static $_TSPEC;
-
- /**
- * @var string
- */
- 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::STRING,
- ),
- 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_createGroup_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::STRING) {
- $xfer += $input->readString($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->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_createGroup_result');
- if ($this->success !== null) {
- $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
- $xfer += $output->writeString($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->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_updateGroup_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var \Airavata\Model\Group\GroupModel
- */
- public $groupModel = 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' => 'groupModel',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['groupModel'])) {
- $this->groupModel = $vals['groupModel'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_updateGroup_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::STRUCT) {
- $this->groupModel = new \Airavata\Model\Group\GroupModel();
- $xfer += $this->groupModel->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_updateGroup_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->groupModel !== null) {
- if (!is_object($this->groupModel)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('groupModel', TType::STRUCT, 2);
- $xfer += $this->groupModel->write($output);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_updateGroup_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\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' => '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_updateGroup_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->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_updateGroup_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->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_deleteGroup_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $groupId = null;
- /**
- * @var string
- */
- public $ownerId = 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' => 'groupId',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'ownerId',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['groupId'])) {
- $this->groupId = $vals['groupId'];
- }
- if (isset($vals['ownerId'])) {
- $this->ownerId = $vals['ownerId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_deleteGroup_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->groupId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->ownerId);
- } 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_deleteGroup_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->groupId !== null) {
- $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
- $xfer += $output->writeString($this->groupId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ownerId !== null) {
- $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
- $xfer += $output->writeString($this->ownerId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_deleteGroup_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\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' => '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_deleteGroup_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->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_deleteGroup_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->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_getGroup_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $groupId = 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' => 'groupId',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['groupId'])) {
- $this->groupId = $vals['groupId'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getGroup_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->groupId);
- } 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_getGroup_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->groupId !== null) {
- $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
- $xfer += $output->writeString($this->groupId);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getGroup_result {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Group\GroupModel
- */
- 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::STRUCT,
- 'class' => '\Airavata\Model\Group\GroupModel',
- ),
- 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_getGroup_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::STRUCT) {
- $this->success = new \Airavata\Model\Group\GroupModel();
- $xfer += $this->success->read($input);
- } 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_getGroup_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->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_getAllGroupsUserBelongs_args {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Security\AuthzToken
- */
- public $authzToken = null;
- /**
- * @var string
- */
- public $userName = 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' => 'userName',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['authzToken'])) {
- $this->authzToken = $vals['authzToken'];
- }
- if (isset($vals['userName'])) {
- $this->userName = $vals['userName'];
- }
- }
- }
-
- public function getName() {
- return 'Airavata_getAllGroupsUserBelongs_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->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_getAllGroupsUserBelongs_args');
- if ($this->authzToken !== null) {
- if (!is_object($this->authzToken)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1);
- $xfer += $this->authzToken->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->userName !== null) {
- $xfer += $output->writeFieldBegin('userName', TType::STRING, 2);
- $xfer += $output->writeString($this->userName);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class Airavata_getAllGroupsUserBelongs_result {
- static $_TSPEC;
-
- /**
- * @var \Airavata\Model\Group\GroupModel[]
- */
- 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\Group\GroupModel',
- ),
- ),
- 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_getAllGroupsUserBelongs_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();
- $_size327 = 0;
- $_etype330 = 0;
- $xfer += $input->readListBegin($_etype330, $_size327);
- for ($_i331 = 0; $_i331 < $_size327; ++$_i331)
- {
- $elem332 = null;
- $elem332 = new \Airavata\Model\Group\GroupModel();
- $xfer += $elem332->read($input);
- $this->success []= $elem332;
- }
- $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_getAllGroupsUserBelongs_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 $iter333)
- {
- $xfer += $iter333->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;
- }
-
-}
-
diff --git a/app/libraries/Airavata/API/Error/Types.php b/app/libraries/Airavata/API/Error/Types.php
index 0b5258d..97cedfa 100644
--- a/app/libraries/Airavata/API/Error/Types.php
+++ b/app/libraries/Airavata/API/Error/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\API\Error;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/API/Sharing/SharingRegistryService.php b/app/libraries/Airavata/API/Sharing/SharingRegistryService.php
new file mode 100644
index 0000000..c643efe
--- /dev/null
+++ b/app/libraries/Airavata/API/Sharing/SharingRegistryService.php
@@ -0,0 +1,15735 @@
+<?php
+namespace Airavata\API\Sharing;
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+interface SharingRegistryServiceIf {
+ /**
+ * <p>API method to create a new domain</p>
+ *
+ * @param \Airavata\Model\Sharing\Domain $domain
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createDomain(\Airavata\Model\Sharing\Domain $domain);
+ /**
+ * <p>API method to update a domain</p>
+ *
+ * @param \Airavata\Model\Sharing\Domain $domain
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateDomain(\Airavata\Model\Sharing\Domain $domain);
+ /**
+ * <p>API method to check Domain Exists</p>
+ *
+ * @param string $domainId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isDomainExists($domainId);
+ /**
+ * <p>API method to delete domain</p>
+ *
+ * @param string $domainId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteDomain($domainId);
+ /**
+ * <p>API method to retrieve a domain</p>
+ *
+ * @param string $domainId
+ * @return \Airavata\Model\Sharing\Domain <p>Domain is the entity that enables multi-tenency in this componenet. Every tenant will be
+ * operating separately it's own silo which is identified by the domain id. In the current implementation domain id
+ * will be same as the domain name</p>
+ * <li>domainId : Will be generated by the server based on the domain name</li>
+ * <li><b>name</b> : A single word name that identifies the domain e.g seagrid, ultrascan</li>
+ * <li>description : A short description for the domain</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getDomain($domainId);
+ /**
+ * <p>API method to get all domain.</p>
+ *
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\Domain[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getDomains($offset, $limit);
+ /**
+ * <p>API method to register a user in the system</p>
+ *
+ * @param \Airavata\Model\Sharing\User $user
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createUser(\Airavata\Model\Sharing\User $user);
+ /**
+ * <p>API method to update existing user</p>
+ *
+ * @param \Airavata\Model\Sharing\User $user
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updatedUser(\Airavata\Model\Sharing\User $user);
+ /**
+ * <p>API method to check User Exists</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isUserExists($domainId, $userId);
+ /**
+ * <p>API method to delete user</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteUser($domainId, $userId);
+ /**
+ * <p>API method to get a user</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @return \Airavata\Model\Sharing\User <p>User is the model used to register a user in the system. Minimal user information will be required to provide
+ * regarding the user.</p>
+ * <li><b>userId</b> : User id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for that user</li>
+ * <li><b>userName</b> : User name for the user</li>
+ * <li><b>firstName</b> : First name of the user</li>
+ * <li><b>lastName</b> : Last name of the user</li>
+ * <li><b>email</b> : Email address of the user</li>
+ * <li>icon : A binary field for storing the user icon</li>
+ * <li>createdTime : If client provides this value then the system will use it if not the current time will be set</li>
+ * <li>updatedTime : If client provides this value then the system will use it if not the current time will be set</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getUser($domainId, $userId);
+ /**
+ * <p>API method to get a list of users in a specific domain.</p>
+ * <li>domainId : Domain id</li>
+ * <li>offset : Starting result number</li>
+ * <li>limit : Number of max results to be sent</li>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getUsers($domainId, $offset, $limit);
+ /**
+ * <p>API method to create a new group</p>
+ *
+ * @param \Airavata\Model\Sharing\UserGroup $group
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function createGroup(\Airavata\Model\Sharing\UserGroup $group);
+ /**
+ * <p>API method to update a group</p>
+ *
+ * @param \Airavata\Model\Sharing\UserGroup $group
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateGroup(\Airavata\Model\Sharing\UserGroup $group);
+ /**
+ * <p>API method to check Group Exists</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isGroupExists($domainId, $groupId);
+ /**
+ * <p>API method to delete a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteGroup($domainId, $groupId);
+ /**
+ * <p>API method to get a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @return \Airavata\Model\Sharing\UserGroup <p>User group is a collection of users.</p>
+ * <li><b>groupId</b> : Group id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for this user group</li>
+ * <li><b>name</b> : Name for the user group. should be one word</li>
+ * <li>description : Short description for the group.</li>
+ * <li><b>ownerId</b> : Owner id of this group.</li>
+ * <li><b>groupType</b> : Group type (DOMAIN_LEVEL_GROUP, USER_LEVEL_GROUP)</li>
+ * <li><b>groupCardinality</b> : Group cardinality (SINGLE_USER, MULTI_USER)</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroup($domainId, $groupId);
+ /**
+ * <p>API method to get groups in a domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ */
+ public function getGroups($domainId, $offset, $limit);
+ /**
+ * <p>API method to add list of users to a group</p>
+ *
+ * @param string $domainId
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addUsersToGroup($domainId, array $userIds, $groupId);
+ /**
+ * <p>API method to remove users from a group</p>
+ *
+ * @param string $domainId
+ * @param string[] $userIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeUsersFromGroup($domainId, array $userIds, $groupId);
+ /**
+ * <p>API method to transfer group ownership</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $newOwnerId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function transferGroupOwnership($domainId, $groupId, $newOwnerId);
+ /**
+ * <p>API method to add Admin for a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addGroupAdmins($domainId, $groupId, array $adminIds);
+ /**
+ * <p>API method to remove Admin for a group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string[] $adminIds
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeGroupAdmins($domainId, $groupId, array $adminIds);
+ /**
+ * <p>API method to check whether the user has Admin access for the group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $adminId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function hasAdminAccess($domainId, $groupId, $adminId);
+ /**
+ * <p>API method to check whether the user has Admin access for the group</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param string $ownerId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function hasOwnerAccess($domainId, $groupId, $ownerId);
+ /**
+ * <p>API method to get list of child users in a group. Only the direct members will be returned.</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit);
+ /**
+ * <p>API method to get list of child groups in a group. Only the direct members will be returned.</p>
+ *
+ * @param string $domainId
+ * @param string $groupId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit);
+ /**
+ * <p>API method to add a child group to a parent group.</p>
+ *
+ * @param string $domainId
+ * @param string[] $childIds
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function addChildGroupsToParentGroup($domainId, array $childIds, $groupId);
+ /**
+ * <p>API method to remove a child group from parent group.</p>
+ *
+ * @param string $domainId
+ * @param string $childId
+ * @param string $groupId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function removeChildGroupFromParentGroup($domainId, $childId, $groupId);
+ /**
+ * @param string $domainId
+ * @param string $userId
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getAllMemberGroupsForUser($domainId, $userId);
+ /**
+ * <p>API method to create a new entity type</p>
+ *
+ * @param \Airavata\Model\Sharing\EntityType $entityType
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createEntityType(\Airavata\Model\Sharing\EntityType $entityType);
+ /**
+ * <p>API method to update entity type</p>
+ *
+ * @param \Airavata\Model\Sharing\EntityType $entityType
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateEntityType(\Airavata\Model\Sharing\EntityType $entityType);
+ /**
+ * <p>API method to check EntityType Exists</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isEntityTypeExists($domainId, $entityTypeId);
+ /**
+ * <p>API method to delete entity type</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteEntityType($domainId, $entityTypeId);
+ /**
+ * <p>API method to get an entity type</p>
+ *
+ * @param string $domainId
+ * @param string $entityTypeId
+ * @return \Airavata\Model\Sharing\EntityType <p>client defined entity types</p>
+ * <li><b>entityTypeId</b> : Entity type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id of the domain.</li>
+ * <li><b>name</b> : Name for the entity type. Should be a single word.</li>
+ * <li>description : Short description for the entity type.</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntityType($domainId, $entityTypeId);
+ /**
+ * <p>API method to get entity types in a domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\EntityType[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntityTypes($domainId, $offset, $limit);
+ /**
+ * <p>API method to register new entity</p>
+ *
+ * @param \Airavata\Model\Sharing\Entity $entity
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function createEntity(\Airavata\Model\Sharing\Entity $entity);
+ /**
+ * <p>API method to update entity</p>
+ *
+ * @param \Airavata\Model\Sharing\Entity $entity
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updateEntity(\Airavata\Model\Sharing\Entity $entity);
+ /**
+ * <p>API method to check Entity Exists</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isEntityExists($domainId, $entityId);
+ /**
+ * <p>API method to delete entity</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deleteEntity($domainId, $entityId);
+ /**
+ * <p>API method to get entity</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @return \Airavata\Model\Sharing\Entity <p>Entity object which is used to register an entity in the system.</p>
+ * <li><b>entityId</b> : Entity id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>entityTypeId</b> : Entity type id</li>
+ * <li><b>ownerId</b> : Owner id</li>
+ * <li>parentEntityId : Parent entity id</li>
+ * <li><b>name</b> : Name</li>
+ * <li>description : Short description for the entity</li>
+ * <li>binaryData : Any information stored in binary format</li>
+ * <li>fullText : A string which will be considered for full text search</li>
+ * <li><b>originalEntityCreationTime</b> : When registering old records what is the original entity creation time. If not
+ * set will be default to current time</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getEntity($domainId, $entityId);
+ /**
+ * <p>API method to search entities</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @param \Airavata\Model\Sharing\SearchCriteria[] $filters
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\Entity[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function searchEntities($domainId, $userId, array $filters, $offset, $limit);
+ /**
+ * <p>API method to get a list of shared users given the entity id</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\User[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getListOfSharedUsers($domainId, $entityId, $permissionTypeId);
+ /**
+ * <p>API method to get a list of shared groups given the entity id</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\UserGroup[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getListOfSharedGroups($domainId, $entityId, $permissionTypeId);
+ /**
+ * <p>API method to create permission type</p>
+ *
+ * @param \Airavata\Model\Sharing\PermissionType $permissionType
+ * @return string
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ * @throws \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public function createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType);
+ /**
+ * <p>API method to update permission type</p>
+ *
+ * @param \Airavata\Model\Sharing\PermissionType $permissionType
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType);
+ /**
+ * <p>API method to check Permission Exists</p>
+ *
+ * @param string $dimainId
+ * @param string $permissionId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function isPermissionExists($dimainId, $permissionId);
+ /**
+ * <p>API method to delete permission type</p>
+ *
+ * @param string $domainId
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function deletePermissionType($domainId, $permissionTypeId);
+ /**
+ * <p>API method to get permission type</p>
+ *
+ * @param string $domainId
+ * @param string $permissionTypeId
+ * @return \Airavata\Model\Sharing\PermissionType <p>Object for creating client defined permission type</p>
+ * <li><b>permissionTypeId</b> : Permission type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>name</b> : Single word name for the permission</li>
+ * <li>description : Short description for the permission type</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ *
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getPermissionType($domainId, $permissionTypeId);
+ /**
+ * <p>API method to get list of permission types in a given domainId.</p>
+ *
+ * @param string $domainId
+ * @param int $offset
+ * @param int $limit
+ * @return \Airavata\Model\Sharing\PermissionType[]
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function getPermissionTypes($domainId, $offset, $limit);
+ /**
+ * <p>API method to share an entity with users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $userList
+ * @param string $perssionTypeId
+ * @param bool $cascadePermission
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function shareEntityWithUsers($domainId, $entityId, array $userList, $perssionTypeId, $cascadePermission);
+ /**
+ * <p>API method to revoke sharing from a list of users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $userList
+ * @param string $perssionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $perssionTypeId);
+ /**
+ * <p>API method to share an entity with list of groups</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $groupList
+ * @param string $perssionTypeId
+ * @param bool $cascadePermission
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function shareEntityWithGroups($domainId, $entityId, array $groupList, $perssionTypeId, $cascadePermission);
+ /**
+ * <p>API method to revoke sharing from list of users</p>
+ *
+ * @param string $domainId
+ * @param string $entityId
+ * @param string[] $groupList
+ * @param string $perssionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $perssionTypeId);
+ /**
+ * <p>API method to check whether a user has access to a specific entity</p>
+ *
+ * @param string $domainId
+ * @param string $userId
+ * @param string $entityId
+ * @param string $permissionTypeId
+ * @return bool
+ * @throws \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public function userHasAccess($domainId, $userId, $entityId, $permissionTypeId);
+}
+
+
+class SharingRegistryServiceClient implements \Airavata\API\Sharing\SharingRegistryServiceIf {
+ protected $input_ = null;
+ protected $output_ = null;
+
+ protected $seqid_ = 0;
+
+ public function __construct($input, $output=null) {
+ $this->input_ = $input;
+ $this->output_ = $output ? $output : $input;
+ }
+
+ public function createDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $this->send_createDomain($domain);
+ return $this->recv_createDomain();
+ }
+
+ public function send_createDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createDomain_args();
+ $args->domain = $domain;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createDomain_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\Sharing\SharingRegistryService_createDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createDomain failed: unknown result");
+ }
+
+ public function updateDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $this->send_updateDomain($domain);
+ return $this->recv_updateDomain();
+ }
+
+ public function send_updateDomain(\Airavata\Model\Sharing\Domain $domain)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateDomain_args();
+ $args->domain = $domain;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateDomain_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\Sharing\SharingRegistryService_updateDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateDomain failed: unknown result");
+ }
+
+ public function isDomainExists($domainId)
+ {
+ $this->send_isDomainExists($domainId);
+ return $this->recv_isDomainExists();
+ }
+
+ public function send_isDomainExists($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isDomainExists_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isDomainExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isDomainExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isDomainExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isDomainExists_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\Sharing\SharingRegistryService_isDomainExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isDomainExists failed: unknown result");
+ }
+
+ public function deleteDomain($domainId)
+ {
+ $this->send_deleteDomain($domainId);
+ return $this->recv_deleteDomain();
+ }
+
+ public function send_deleteDomain($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteDomain_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteDomain_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\Sharing\SharingRegistryService_deleteDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteDomain failed: unknown result");
+ }
+
+ public function getDomain($domainId)
+ {
+ $this->send_getDomain($domainId);
+ return $this->recv_getDomain();
+ }
+
+ public function send_getDomain($domainId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getDomain_args();
+ $args->domainId = $domainId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getDomain', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getDomain', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getDomain()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getDomain_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\Sharing\SharingRegistryService_getDomain_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getDomain failed: unknown result");
+ }
+
+ public function getDomains($offset, $limit)
+ {
+ $this->send_getDomains($offset, $limit);
+ return $this->recv_getDomains();
+ }
+
+ public function send_getDomains($offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getDomains_args();
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getDomains', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getDomains', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getDomains()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getDomains_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\Sharing\SharingRegistryService_getDomains_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getDomains failed: unknown result");
+ }
+
+ public function createUser(\Airavata\Model\Sharing\User $user)
+ {
+ $this->send_createUser($user);
+ return $this->recv_createUser();
+ }
+
+ public function send_createUser(\Airavata\Model\Sharing\User $user)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createUser_args();
+ $args->user = $user;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createUser_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\Sharing\SharingRegistryService_createUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createUser failed: unknown result");
+ }
+
+ public function updatedUser(\Airavata\Model\Sharing\User $user)
+ {
+ $this->send_updatedUser($user);
+ return $this->recv_updatedUser();
+ }
+
+ public function send_updatedUser(\Airavata\Model\Sharing\User $user)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updatedUser_args();
+ $args->user = $user;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updatedUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updatedUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updatedUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updatedUser_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\Sharing\SharingRegistryService_updatedUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updatedUser failed: unknown result");
+ }
+
+ public function isUserExists($domainId, $userId)
+ {
+ $this->send_isUserExists($domainId, $userId);
+ return $this->recv_isUserExists();
+ }
+
+ public function send_isUserExists($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isUserExists_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isUserExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isUserExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isUserExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isUserExists_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\Sharing\SharingRegistryService_isUserExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isUserExists failed: unknown result");
+ }
+
+ public function deleteUser($domainId, $userId)
+ {
+ $this->send_deleteUser($domainId, $userId);
+ return $this->recv_deleteUser();
+ }
+
+ public function send_deleteUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteUser_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\Sharing\SharingRegistryService_deleteUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteUser failed: unknown result");
+ }
+
+ public function getUser($domainId, $userId)
+ {
+ $this->send_getUser($domainId, $userId);
+ return $this->recv_getUser();
+ }
+
+ public function send_getUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getUser_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\Sharing\SharingRegistryService_getUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getUser failed: unknown result");
+ }
+
+ public function getUsers($domainId, $offset, $limit)
+ {
+ $this->send_getUsers($domainId, $offset, $limit);
+ return $this->recv_getUsers();
+ }
+
+ public function send_getUsers($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getUsers_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getUsers_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\Sharing\SharingRegistryService_getUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getUsers failed: unknown result");
+ }
+
+ public function createGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $this->send_createGroup($group);
+ return $this->recv_createGroup();
+ }
+
+ public function send_createGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createGroup_args();
+ $args->group = $group;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createGroup_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\Sharing\SharingRegistryService_createGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("createGroup failed: unknown result");
+ }
+
+ public function updateGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $this->send_updateGroup($group);
+ return $this->recv_updateGroup();
+ }
+
+ public function send_updateGroup(\Airavata\Model\Sharing\UserGroup $group)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateGroup_args();
+ $args->group = $group;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateGroup_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\Sharing\SharingRegistryService_updateGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateGroup failed: unknown result");
+ }
+
+ public function isGroupExists($domainId, $groupId)
+ {
+ $this->send_isGroupExists($domainId, $groupId);
+ return $this->recv_isGroupExists();
+ }
+
+ public function send_isGroupExists($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isGroupExists_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isGroupExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isGroupExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isGroupExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isGroupExists_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\Sharing\SharingRegistryService_isGroupExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isGroupExists failed: unknown result");
+ }
+
+ public function deleteGroup($domainId, $groupId)
+ {
+ $this->send_deleteGroup($domainId, $groupId);
+ return $this->recv_deleteGroup();
+ }
+
+ public function send_deleteGroup($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteGroup_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\Sharing\SharingRegistryService_deleteGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteGroup failed: unknown result");
+ }
+
+ public function getGroup($domainId, $groupId)
+ {
+ $this->send_getGroup($domainId, $groupId);
+ return $this->recv_getGroup();
+ }
+
+ public function send_getGroup($domainId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroup_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\Sharing\SharingRegistryService_getGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroup failed: unknown result");
+ }
+
+ public function getGroups($domainId, $offset, $limit)
+ {
+ $this->send_getGroups($domainId, $offset, $limit);
+ return $this->recv_getGroups();
+ }
+
+ public function send_getGroups($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroups_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroups_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\Sharing\SharingRegistryService_getGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ throw new \Exception("getGroups failed: unknown result");
+ }
+
+ public function addUsersToGroup($domainId, array $userIds, $groupId)
+ {
+ $this->send_addUsersToGroup($domainId, $userIds, $groupId);
+ return $this->recv_addUsersToGroup();
+ }
+
+ public function send_addUsersToGroup($domainId, array $userIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addUsersToGroup_args();
+ $args->domainId = $domainId;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addUsersToGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addUsersToGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addUsersToGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addUsersToGroup_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\Sharing\SharingRegistryService_addUsersToGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addUsersToGroup failed: unknown result");
+ }
+
+ public function removeUsersFromGroup($domainId, array $userIds, $groupId)
+ {
+ $this->send_removeUsersFromGroup($domainId, $userIds, $groupId);
+ return $this->recv_removeUsersFromGroup();
+ }
+
+ public function send_removeUsersFromGroup($domainId, array $userIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeUsersFromGroup_args();
+ $args->domainId = $domainId;
+ $args->userIds = $userIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeUsersFromGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeUsersFromGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeUsersFromGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeUsersFromGroup_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\Sharing\SharingRegistryService_removeUsersFromGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeUsersFromGroup failed: unknown result");
+ }
+
+ public function transferGroupOwnership($domainId, $groupId, $newOwnerId)
+ {
+ $this->send_transferGroupOwnership($domainId, $groupId, $newOwnerId);
+ return $this->recv_transferGroupOwnership();
+ }
+
+ public function send_transferGroupOwnership($domainId, $groupId, $newOwnerId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_transferGroupOwnership_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->newOwnerId = $newOwnerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'transferGroupOwnership', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('transferGroupOwnership', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_transferGroupOwnership()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_transferGroupOwnership_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\Sharing\SharingRegistryService_transferGroupOwnership_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("transferGroupOwnership failed: unknown result");
+ }
+
+ public function addGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $this->send_addGroupAdmins($domainId, $groupId, $adminIds);
+ return $this->recv_addGroupAdmins();
+ }
+
+ public function send_addGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addGroupAdmins_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addGroupAdmins_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\Sharing\SharingRegistryService_addGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addGroupAdmins failed: unknown result");
+ }
+
+ public function removeGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $this->send_removeGroupAdmins($domainId, $groupId, $adminIds);
+ return $this->recv_removeGroupAdmins();
+ }
+
+ public function send_removeGroupAdmins($domainId, $groupId, array $adminIds)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeGroupAdmins_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminIds = $adminIds;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeGroupAdmins', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeGroupAdmins', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeGroupAdmins()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeGroupAdmins_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\Sharing\SharingRegistryService_removeGroupAdmins_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeGroupAdmins failed: unknown result");
+ }
+
+ public function hasAdminAccess($domainId, $groupId, $adminId)
+ {
+ $this->send_hasAdminAccess($domainId, $groupId, $adminId);
+ return $this->recv_hasAdminAccess();
+ }
+
+ public function send_hasAdminAccess($domainId, $groupId, $adminId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_hasAdminAccess_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->adminId = $adminId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasAdminAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasAdminAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasAdminAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_hasAdminAccess_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\Sharing\SharingRegistryService_hasAdminAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("hasAdminAccess failed: unknown result");
+ }
+
+ public function hasOwnerAccess($domainId, $groupId, $ownerId)
+ {
+ $this->send_hasOwnerAccess($domainId, $groupId, $ownerId);
+ return $this->recv_hasOwnerAccess();
+ }
+
+ public function send_hasOwnerAccess($domainId, $groupId, $ownerId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_hasOwnerAccess_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->ownerId = $ownerId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'hasOwnerAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('hasOwnerAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_hasOwnerAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_hasOwnerAccess_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\Sharing\SharingRegistryService_hasOwnerAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("hasOwnerAccess failed: unknown result");
+ }
+
+ public function getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit)
+ {
+ $this->send_getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit);
+ return $this->recv_getGroupMembersOfTypeUser();
+ }
+
+ public function send_getGroupMembersOfTypeUser($domainId, $groupId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupMembersOfTypeUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupMembersOfTypeUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupMembersOfTypeUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_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\Sharing\SharingRegistryService_getGroupMembersOfTypeUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroupMembersOfTypeUser failed: unknown result");
+ }
+
+ public function getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit)
+ {
+ $this->send_getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit);
+ return $this->recv_getGroupMembersOfTypeGroup();
+ }
+
+ public function send_getGroupMembersOfTypeGroup($domainId, $groupId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_args();
+ $args->domainId = $domainId;
+ $args->groupId = $groupId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getGroupMembersOfTypeGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getGroupMembersOfTypeGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getGroupMembersOfTypeGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_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\Sharing\SharingRegistryService_getGroupMembersOfTypeGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getGroupMembersOfTypeGroup failed: unknown result");
+ }
+
+ public function addChildGroupsToParentGroup($domainId, array $childIds, $groupId)
+ {
+ $this->send_addChildGroupsToParentGroup($domainId, $childIds, $groupId);
+ return $this->recv_addChildGroupsToParentGroup();
+ }
+
+ public function send_addChildGroupsToParentGroup($domainId, array $childIds, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_addChildGroupsToParentGroup_args();
+ $args->domainId = $domainId;
+ $args->childIds = $childIds;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'addChildGroupsToParentGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('addChildGroupsToParentGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_addChildGroupsToParentGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_addChildGroupsToParentGroup_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\Sharing\SharingRegistryService_addChildGroupsToParentGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("addChildGroupsToParentGroup failed: unknown result");
+ }
+
+ public function removeChildGroupFromParentGroup($domainId, $childId, $groupId)
+ {
+ $this->send_removeChildGroupFromParentGroup($domainId, $childId, $groupId);
+ return $this->recv_removeChildGroupFromParentGroup();
+ }
+
+ public function send_removeChildGroupFromParentGroup($domainId, $childId, $groupId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_args();
+ $args->domainId = $domainId;
+ $args->childId = $childId;
+ $args->groupId = $groupId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'removeChildGroupFromParentGroup', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('removeChildGroupFromParentGroup', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_removeChildGroupFromParentGroup()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_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\Sharing\SharingRegistryService_removeChildGroupFromParentGroup_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("removeChildGroupFromParentGroup failed: unknown result");
+ }
+
+ public function getAllMemberGroupsForUser($domainId, $userId)
+ {
+ $this->send_getAllMemberGroupsForUser($domainId, $userId);
+ return $this->recv_getAllMemberGroupsForUser();
+ }
+
+ public function send_getAllMemberGroupsForUser($domainId, $userId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getAllMemberGroupsForUser_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getAllMemberGroupsForUser', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getAllMemberGroupsForUser', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getAllMemberGroupsForUser()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getAllMemberGroupsForUser_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\Sharing\SharingRegistryService_getAllMemberGroupsForUser_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getAllMemberGroupsForUser failed: unknown result");
+ }
+
+ public function createEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $this->send_createEntityType($entityType);
+ return $this->recv_createEntityType();
+ }
+
+ public function send_createEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createEntityType_args();
+ $args->entityType = $entityType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createEntityType_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\Sharing\SharingRegistryService_createEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createEntityType failed: unknown result");
+ }
+
+ public function updateEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $this->send_updateEntityType($entityType);
+ return $this->recv_updateEntityType();
+ }
+
+ public function send_updateEntityType(\Airavata\Model\Sharing\EntityType $entityType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateEntityType_args();
+ $args->entityType = $entityType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateEntityType_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\Sharing\SharingRegistryService_updateEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateEntityType failed: unknown result");
+ }
+
+ public function isEntityTypeExists($domainId, $entityTypeId)
+ {
+ $this->send_isEntityTypeExists($domainId, $entityTypeId);
+ return $this->recv_isEntityTypeExists();
+ }
+
+ public function send_isEntityTypeExists($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isEntityTypeExists_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isEntityTypeExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isEntityTypeExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isEntityTypeExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isEntityTypeExists_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\Sharing\SharingRegistryService_isEntityTypeExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isEntityTypeExists failed: unknown result");
+ }
+
+ public function deleteEntityType($domainId, $entityTypeId)
+ {
+ $this->send_deleteEntityType($domainId, $entityTypeId);
+ return $this->recv_deleteEntityType();
+ }
+
+ public function send_deleteEntityType($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteEntityType_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteEntityType_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\Sharing\SharingRegistryService_deleteEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteEntityType failed: unknown result");
+ }
+
+ public function getEntityType($domainId, $entityTypeId)
+ {
+ $this->send_getEntityType($domainId, $entityTypeId);
+ return $this->recv_getEntityType();
+ }
+
+ public function send_getEntityType($domainId, $entityTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntityType_args();
+ $args->domainId = $domainId;
+ $args->entityTypeId = $entityTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntityType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntityType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntityType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntityType_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\Sharing\SharingRegistryService_getEntityType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntityType failed: unknown result");
+ }
+
+ public function getEntityTypes($domainId, $offset, $limit)
+ {
+ $this->send_getEntityTypes($domainId, $offset, $limit);
+ return $this->recv_getEntityTypes();
+ }
+
+ public function send_getEntityTypes($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntityTypes_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntityTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntityTypes', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntityTypes()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntityTypes_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\Sharing\SharingRegistryService_getEntityTypes_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntityTypes failed: unknown result");
+ }
+
+ public function createEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $this->send_createEntity($entity);
+ return $this->recv_createEntity();
+ }
+
+ public function send_createEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createEntity_args();
+ $args->entity = $entity;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createEntity_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\Sharing\SharingRegistryService_createEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("createEntity failed: unknown result");
+ }
+
+ public function updateEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $this->send_updateEntity($entity);
+ return $this->recv_updateEntity();
+ }
+
+ public function send_updateEntity(\Airavata\Model\Sharing\Entity $entity)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updateEntity_args();
+ $args->entity = $entity;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updateEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updateEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updateEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updateEntity_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\Sharing\SharingRegistryService_updateEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updateEntity failed: unknown result");
+ }
+
+ public function isEntityExists($domainId, $entityId)
+ {
+ $this->send_isEntityExists($domainId, $entityId);
+ return $this->recv_isEntityExists();
+ }
+
+ public function send_isEntityExists($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isEntityExists_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isEntityExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isEntityExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isEntityExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isEntityExists_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\Sharing\SharingRegistryService_isEntityExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isEntityExists failed: unknown result");
+ }
+
+ public function deleteEntity($domainId, $entityId)
+ {
+ $this->send_deleteEntity($domainId, $entityId);
+ return $this->recv_deleteEntity();
+ }
+
+ public function send_deleteEntity($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deleteEntity_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deleteEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deleteEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deleteEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deleteEntity_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\Sharing\SharingRegistryService_deleteEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deleteEntity failed: unknown result");
+ }
+
+ public function getEntity($domainId, $entityId)
+ {
+ $this->send_getEntity($domainId, $entityId);
+ return $this->recv_getEntity();
+ }
+
+ public function send_getEntity($domainId, $entityId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getEntity_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getEntity', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getEntity', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getEntity()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getEntity_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\Sharing\SharingRegistryService_getEntity_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getEntity failed: unknown result");
+ }
+
+ public function searchEntities($domainId, $userId, array $filters, $offset, $limit)
+ {
+ $this->send_searchEntities($domainId, $userId, $filters, $offset, $limit);
+ return $this->recv_searchEntities();
+ }
+
+ public function send_searchEntities($domainId, $userId, array $filters, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_searchEntities_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $args->filters = $filters;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'searchEntities', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('searchEntities', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_searchEntities()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_searchEntities_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\Sharing\SharingRegistryService_searchEntities_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("searchEntities failed: unknown result");
+ }
+
+ public function getListOfSharedUsers($domainId, $entityId, $permissionTypeId)
+ {
+ $this->send_getListOfSharedUsers($domainId, $entityId, $permissionTypeId);
+ return $this->recv_getListOfSharedUsers();
+ }
+
+ public function send_getListOfSharedUsers($domainId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getListOfSharedUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getListOfSharedUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getListOfSharedUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getListOfSharedUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getListOfSharedUsers_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\Sharing\SharingRegistryService_getListOfSharedUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getListOfSharedUsers failed: unknown result");
+ }
+
+ public function getListOfSharedGroups($domainId, $entityId, $permissionTypeId)
+ {
+ $this->send_getListOfSharedGroups($domainId, $entityId, $permissionTypeId);
+ return $this->recv_getListOfSharedGroups();
+ }
+
+ public function send_getListOfSharedGroups($domainId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getListOfSharedGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getListOfSharedGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getListOfSharedGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getListOfSharedGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getListOfSharedGroups_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\Sharing\SharingRegistryService_getListOfSharedGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getListOfSharedGroups failed: unknown result");
+ }
+
+ public function createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $this->send_createPermissionType($permissionType);
+ return $this->recv_createPermissionType();
+ }
+
+ public function send_createPermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_createPermissionType_args();
+ $args->permissionType = $permissionType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'createPermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('createPermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_createPermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_createPermissionType_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\Sharing\SharingRegistryService_createPermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ if ($result->dee !== null) {
+ throw $result->dee;
+ }
+ throw new \Exception("createPermissionType failed: unknown result");
+ }
+
+ public function updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $this->send_updatePermissionType($permissionType);
+ return $this->recv_updatePermissionType();
+ }
+
+ public function send_updatePermissionType(\Airavata\Model\Sharing\PermissionType $permissionType)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_updatePermissionType_args();
+ $args->permissionType = $permissionType;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'updatePermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('updatePermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_updatePermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_updatePermissionType_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\Sharing\SharingRegistryService_updatePermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("updatePermissionType failed: unknown result");
+ }
+
+ public function isPermissionExists($dimainId, $permissionId)
+ {
+ $this->send_isPermissionExists($dimainId, $permissionId);
+ return $this->recv_isPermissionExists();
+ }
+
+ public function send_isPermissionExists($dimainId, $permissionId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_isPermissionExists_args();
+ $args->dimainId = $dimainId;
+ $args->permissionId = $permissionId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'isPermissionExists', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('isPermissionExists', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_isPermissionExists()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_isPermissionExists_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\Sharing\SharingRegistryService_isPermissionExists_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("isPermissionExists failed: unknown result");
+ }
+
+ public function deletePermissionType($domainId, $permissionTypeId)
+ {
+ $this->send_deletePermissionType($domainId, $permissionTypeId);
+ return $this->recv_deletePermissionType();
+ }
+
+ public function send_deletePermissionType($domainId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_deletePermissionType_args();
+ $args->domainId = $domainId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'deletePermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('deletePermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_deletePermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_deletePermissionType_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\Sharing\SharingRegistryService_deletePermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("deletePermissionType failed: unknown result");
+ }
+
+ public function getPermissionType($domainId, $permissionTypeId)
+ {
+ $this->send_getPermissionType($domainId, $permissionTypeId);
+ return $this->recv_getPermissionType();
+ }
+
+ public function send_getPermissionType($domainId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getPermissionType_args();
+ $args->domainId = $domainId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getPermissionType', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getPermissionType', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getPermissionType()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getPermissionType_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\Sharing\SharingRegistryService_getPermissionType_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getPermissionType failed: unknown result");
+ }
+
+ public function getPermissionTypes($domainId, $offset, $limit)
+ {
+ $this->send_getPermissionTypes($domainId, $offset, $limit);
+ return $this->recv_getPermissionTypes();
+ }
+
+ public function send_getPermissionTypes($domainId, $offset, $limit)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_getPermissionTypes_args();
+ $args->domainId = $domainId;
+ $args->offset = $offset;
+ $args->limit = $limit;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'getPermissionTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('getPermissionTypes', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_getPermissionTypes()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_getPermissionTypes_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\Sharing\SharingRegistryService_getPermissionTypes_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("getPermissionTypes failed: unknown result");
+ }
+
+ public function shareEntityWithUsers($domainId, $entityId, array $userList, $perssionTypeId, $cascadePermission)
+ {
+ $this->send_shareEntityWithUsers($domainId, $entityId, $userList, $perssionTypeId, $cascadePermission);
+ return $this->recv_shareEntityWithUsers();
+ }
+
+ public function send_shareEntityWithUsers($domainId, $entityId, array $userList, $perssionTypeId, $cascadePermission)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_shareEntityWithUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->userList = $userList;
+ $args->perssionTypeId = $perssionTypeId;
+ $args->cascadePermission = $cascadePermission;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'shareEntityWithUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('shareEntityWithUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_shareEntityWithUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_shareEntityWithUsers_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\Sharing\SharingRegistryService_shareEntityWithUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("shareEntityWithUsers failed: unknown result");
+ }
+
+ public function revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $perssionTypeId)
+ {
+ $this->send_revokeEntitySharingFromUsers($domainId, $entityId, $userList, $perssionTypeId);
+ return $this->recv_revokeEntitySharingFromUsers();
+ }
+
+ public function send_revokeEntitySharingFromUsers($domainId, $entityId, array $userList, $perssionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->userList = $userList;
+ $args->perssionTypeId = $perssionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'revokeEntitySharingFromUsers', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('revokeEntitySharingFromUsers', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_revokeEntitySharingFromUsers()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_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\Sharing\SharingRegistryService_revokeEntitySharingFromUsers_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("revokeEntitySharingFromUsers failed: unknown result");
+ }
+
+ public function shareEntityWithGroups($domainId, $entityId, array $groupList, $perssionTypeId, $cascadePermission)
+ {
+ $this->send_shareEntityWithGroups($domainId, $entityId, $groupList, $perssionTypeId, $cascadePermission);
+ return $this->recv_shareEntityWithGroups();
+ }
+
+ public function send_shareEntityWithGroups($domainId, $entityId, array $groupList, $perssionTypeId, $cascadePermission)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_shareEntityWithGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->groupList = $groupList;
+ $args->perssionTypeId = $perssionTypeId;
+ $args->cascadePermission = $cascadePermission;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'shareEntityWithGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('shareEntityWithGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_shareEntityWithGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_shareEntityWithGroups_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\Sharing\SharingRegistryService_shareEntityWithGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("shareEntityWithGroups failed: unknown result");
+ }
+
+ public function revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $perssionTypeId)
+ {
+ $this->send_revokeEntitySharingFromGroups($domainId, $entityId, $groupList, $perssionTypeId);
+ return $this->recv_revokeEntitySharingFromGroups();
+ }
+
+ public function send_revokeEntitySharingFromGroups($domainId, $entityId, array $groupList, $perssionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_args();
+ $args->domainId = $domainId;
+ $args->entityId = $entityId;
+ $args->groupList = $groupList;
+ $args->perssionTypeId = $perssionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'revokeEntitySharingFromGroups', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('revokeEntitySharingFromGroups', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_revokeEntitySharingFromGroups()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_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\Sharing\SharingRegistryService_revokeEntitySharingFromGroups_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("revokeEntitySharingFromGroups failed: unknown result");
+ }
+
+ public function userHasAccess($domainId, $userId, $entityId, $permissionTypeId)
+ {
+ $this->send_userHasAccess($domainId, $userId, $entityId, $permissionTypeId);
+ return $this->recv_userHasAccess();
+ }
+
+ public function send_userHasAccess($domainId, $userId, $entityId, $permissionTypeId)
+ {
+ $args = new \Airavata\API\Sharing\SharingRegistryService_userHasAccess_args();
+ $args->domainId = $domainId;
+ $args->userId = $userId;
+ $args->entityId = $entityId;
+ $args->permissionTypeId = $permissionTypeId;
+ $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+ if ($bin_accel)
+ {
+ thrift_protocol_write_binary($this->output_, 'userHasAccess', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ }
+ else
+ {
+ $this->output_->writeMessageBegin('userHasAccess', TMessageType::CALL, $this->seqid_);
+ $args->write($this->output_);
+ $this->output_->writeMessageEnd();
+ $this->output_->getTransport()->flush();
+ }
+ }
+
+ public function recv_userHasAccess()
+ {
+ $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary');
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Sharing\SharingRegistryService_userHasAccess_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\Sharing\SharingRegistryService_userHasAccess_result();
+ $result->read($this->input_);
+ $this->input_->readMessageEnd();
+ }
+ if ($result->success !== null) {
+ return $result->success;
+ }
+ if ($result->sre !== null) {
+ throw $result->sre;
+ }
+ throw new \Exception("userHasAccess failed: unknown result");
+ }
+
+}
+
+
+// HELPER FUNCTIONS AND STRUCTURES
+
+class SharingRegistryService_createDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $domain = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domain',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domain'])) {
+ $this->domain = $vals['domain'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createDomain_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->domain = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->domain->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('SharingRegistryService_createDomain_args');
+ if ($this->domain !== null) {
+ if (!is_object($this->domain)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('domain', TType::STRUCT, 1);
+ $xfer += $this->domain->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createDomain_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $domain = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domain',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domain'])) {
+ $this->domain = $vals['domain'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateDomain_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->domain = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->domain->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('SharingRegistryService_updateDomain_args');
+ if ($this->domain !== null) {
+ if (!is_object($this->domain)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('domain', TType::STRUCT, 1);
+ $xfer += $this->domain->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateDomain_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isDomainExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isDomainExists_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->domainId);
+ } 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('SharingRegistryService_isDomainExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isDomainExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isDomainExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isDomainExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteDomain_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->domainId);
+ } 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('SharingRegistryService_deleteDomain_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteDomain_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteDomain_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomain_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomain_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->domainId);
+ } 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('SharingRegistryService_getDomain_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomain_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Domain',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomain_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\Domain();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getDomain_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomains_args {
+ static $_TSPEC;
+
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 2 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomains_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::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getDomains_args');
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 1);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 2);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getDomains_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Domain[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\Domain',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getDomains_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();
+ $_size0 = 0;
+ $_etype3 = 0;
+ $xfer += $input->readListBegin($_etype3, $_size0);
+ for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
+ {
+ $elem5 = null;
+ $elem5 = new \Airavata\Model\Sharing\Domain();
+ $xfer += $elem5->read($input);
+ $this->success []= $elem5;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getDomains_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 $iter6)
+ {
+ $xfer += $iter6->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $user = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'user',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['user'])) {
+ $this->user = $vals['user'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createUser_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->user = new \Airavata\Model\Sharing\User();
+ $xfer += $this->user->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('SharingRegistryService_createUser_args');
+ if ($this->user !== null) {
+ if (!is_object($this->user)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('user', TType::STRUCT, 1);
+ $xfer += $this->user->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createUser_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatedUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $user = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'user',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['user'])) {
+ $this->user = $vals['user'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatedUser_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->user = new \Airavata\Model\Sharing\User();
+ $xfer += $this->user->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('SharingRegistryService_updatedUser_args');
+ if ($this->user !== null) {
+ if (!is_object($this->user)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('user', TType::STRUCT, 1);
+ $xfer += $this->user->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatedUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatedUser_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updatedUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isUserExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isUserExists_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_isUserExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isUserExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isUserExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isUserExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteUser_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_deleteUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteUser_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteUser_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUser_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_getUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\User',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUser_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\User();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getUser_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUsers_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getUsers_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();
+ $_size7 = 0;
+ $_etype10 = 0;
+ $xfer += $input->readListBegin($_etype10, $_size7);
+ for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
+ {
+ $elem12 = null;
+ $elem12 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem12->read($input);
+ $this->success []= $elem12;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getUsers_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 $iter13)
+ {
+ $xfer += $iter13->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $group = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'group',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['group'])) {
+ $this->group = $vals['group'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createGroup_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->group = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->group->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('SharingRegistryService_createGroup_args');
+ if ($this->group !== null) {
+ if (!is_object($this->group)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('group', TType::STRUCT, 1);
+ $xfer += $this->group->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createGroup_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_createGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $group = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'group',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['group'])) {
+ $this->group = $vals['group'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateGroup_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->group = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->group->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('SharingRegistryService_updateGroup_args');
+ if ($this->group !== null) {
+ if (!is_object($this->group)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('group', TType::STRUCT, 1);
+ $xfer += $this->group->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isGroupExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isGroupExists_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_isGroupExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isGroupExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isGroupExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isGroupExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_deleteGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_getGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\UserGroup',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroup_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroup_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroups_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = 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\Sharing\UserGroup',
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroups_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();
+ $_size14 = 0;
+ $_etype17 = 0;
+ $xfer += $input->readListBegin($_etype17, $_size14);
+ for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
+ {
+ $elem19 = null;
+ $elem19 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem19->read($input);
+ $this->success []= $elem19;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_getGroups_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 $iter20)
+ {
+ $xfer += $iter20->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addUsersToGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addUsersToGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->userIds = array();
+ $_size21 = 0;
+ $_etype24 = 0;
+ $xfer += $input->readListBegin($_etype24, $_size21);
+ for ($_i25 = 0; $_i25 < $_size21; ++$_i25)
+ {
+ $elem26 = null;
+ $xfer += $input->readString($elem26);
+ $this->userIds []= $elem26;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_addUsersToGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter27)
+ {
+ $xfer += $output->writeString($iter27);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addUsersToGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addUsersToGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addUsersToGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeUsersFromGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $userIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userIds'])) {
+ $this->userIds = $vals['userIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeUsersFromGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->userIds = array();
+ $_size28 = 0;
+ $_etype31 = 0;
+ $xfer += $input->readListBegin($_etype31, $_size28);
+ for ($_i32 = 0; $_i32 < $_size28; ++$_i32)
+ {
+ $elem33 = null;
+ $xfer += $input->readString($elem33);
+ $this->userIds []= $elem33;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_removeUsersFromGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userIds !== null) {
+ if (!is_array($this->userIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userIds));
+ {
+ foreach ($this->userIds as $iter34)
+ {
+ $xfer += $output->writeString($iter34);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeUsersFromGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeUsersFromGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeUsersFromGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_transferGroupOwnership_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $newOwnerId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'newOwnerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['newOwnerId'])) {
+ $this->newOwnerId = $vals['newOwnerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_transferGroupOwnership_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->newOwnerId);
+ } 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('SharingRegistryService_transferGroupOwnership_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->newOwnerId !== null) {
+ $xfer += $output->writeFieldBegin('newOwnerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->newOwnerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_transferGroupOwnership_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_transferGroupOwnership_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_transferGroupOwnership_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addGroupAdmins_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size35 = 0;
+ $_etype38 = 0;
+ $xfer += $input->readListBegin($_etype38, $_size35);
+ for ($_i39 = 0; $_i39 < $_size35; ++$_i39)
+ {
+ $elem40 = null;
+ $xfer += $input->readString($elem40);
+ $this->adminIds []= $elem40;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_addGroupAdmins_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter41)
+ {
+ $xfer += $output->writeString($iter41);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addGroupAdmins_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeGroupAdmins_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string[]
+ */
+ public $adminIds = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminIds'])) {
+ $this->adminIds = $vals['adminIds'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeGroupAdmins_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->adminIds = array();
+ $_size42 = 0;
+ $_etype45 = 0;
+ $xfer += $input->readListBegin($_etype45, $_size42);
+ for ($_i46 = 0; $_i46 < $_size42; ++$_i46)
+ {
+ $elem47 = null;
+ $xfer += $input->readString($elem47);
+ $this->adminIds []= $elem47;
+ }
+ $xfer += $input->readListEnd();
+ } 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('SharingRegistryService_removeGroupAdmins_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminIds !== null) {
+ if (!is_array($this->adminIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('adminIds', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->adminIds));
+ {
+ foreach ($this->adminIds as $iter48)
+ {
+ $xfer += $output->writeString($iter48);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeGroupAdmins_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeGroupAdmins_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeGroupAdmins_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasAdminAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $adminId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['adminId'])) {
+ $this->adminId = $vals['adminId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasAdminAccess_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminId);
+ } 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('SharingRegistryService_hasAdminAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminId !== null) {
+ $xfer += $output->writeFieldBegin('adminId', TType::STRING, 3);
+ $xfer += $output->writeString($this->adminId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasAdminAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasAdminAccess_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_hasAdminAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasOwnerAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasOwnerAccess_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } 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('SharingRegistryService_hasOwnerAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 3);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_hasOwnerAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_hasOwnerAccess_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_hasOwnerAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 4 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeUser_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroupMembersOfTypeUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 3);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeUser_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();
+ $_size49 = 0;
+ $_etype52 = 0;
+ $xfer += $input->readListBegin($_etype52, $_size49);
+ for ($_i53 = 0; $_i53 < $_size49; ++$_i53)
+ {
+ $elem54 = null;
+ $elem54 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem54->read($input);
+ $this->success []= $elem54;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroupMembersOfTypeUser_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 $iter55)
+ {
+ $xfer += $iter55->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 4 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getGroupMembersOfTypeGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 2);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 3);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getGroupMembersOfTypeGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getGroupMembersOfTypeGroup_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();
+ $_size56 = 0;
+ $_etype59 = 0;
+ $xfer += $input->readListBegin($_etype59, $_size56);
+ for ($_i60 = 0; $_i60 < $_size56; ++$_i60)
+ {
+ $elem61 = null;
+ $elem61 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem61->read($input);
+ $this->success []= $elem61;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getGroupMembersOfTypeGroup_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 $iter62)
+ {
+ $xfer += $iter62->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addChildGroupsToParentGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string[]
+ */
+ public $childIds = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childIds',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childIds'])) {
+ $this->childIds = $vals['childIds'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addChildGroupsToParentGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::LST) {
+ $this->childIds = array();
+ $_size63 = 0;
+ $_etype66 = 0;
+ $xfer += $input->readListBegin($_etype66, $_size63);
+ for ($_i67 = 0; $_i67 < $_size63; ++$_i67)
+ {
+ $elem68 = null;
+ $xfer += $input->readString($elem68);
+ $this->childIds []= $elem68;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_addChildGroupsToParentGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childIds !== null) {
+ if (!is_array($this->childIds)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('childIds', TType::LST, 2);
+ {
+ $output->writeListBegin(TType::STRING, count($this->childIds));
+ {
+ foreach ($this->childIds as $iter69)
+ {
+ $xfer += $output->writeString($iter69);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_addChildGroupsToParentGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_addChildGroupsToParentGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_addChildGroupsToParentGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeChildGroupFromParentGroup_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $childId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childId'])) {
+ $this->childId = $vals['childId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeChildGroupFromParentGroup_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->childId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } 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('SharingRegistryService_removeChildGroupFromParentGroup_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childId !== null) {
+ $xfer += $output->writeFieldBegin('childId', TType::STRING, 2);
+ $xfer += $output->writeString($this->childId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_removeChildGroupFromParentGroup_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_removeChildGroupFromParentGroup_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_removeChildGroupFromParentGroup_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getAllMemberGroupsForUser_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getAllMemberGroupsForUser_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } 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('SharingRegistryService_getAllMemberGroupsForUser_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getAllMemberGroupsForUser_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getAllMemberGroupsForUser_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();
+ $_size70 = 0;
+ $_etype73 = 0;
+ $xfer += $input->readListBegin($_etype73, $_size70);
+ for ($_i74 = 0; $_i74 < $_size70; ++$_i74)
+ {
+ $elem75 = null;
+ $elem75 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem75->read($input);
+ $this->success []= $elem75;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getAllMemberGroupsForUser_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 $iter76)
+ {
+ $xfer += $iter76->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $entityType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityType'])) {
+ $this->entityType = $vals['entityType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntityType_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->entityType = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->entityType->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('SharingRegistryService_createEntityType_args');
+ if ($this->entityType !== null) {
+ if (!is_object($this->entityType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entityType', TType::STRUCT, 1);
+ $xfer += $this->entityType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntityType_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $entityType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityType'])) {
+ $this->entityType = $vals['entityType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntityType_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->entityType = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->entityType->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('SharingRegistryService_updateEntityType_args');
+ if ($this->entityType !== null) {
+ if (!is_object($this->entityType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entityType', TType::STRUCT, 1);
+ $xfer += $this->entityType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntityType_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityTypeExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityTypeExists_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_isEntityTypeExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityTypeExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityTypeExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isEntityTypeExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntityType_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_deleteEntityType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntityType_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteEntityType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityType_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } 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('SharingRegistryService_getEntityType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityType_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\EntityType',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityType_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntityType_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityTypes_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityTypes_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getEntityTypes_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntityTypes_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\EntityType[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\EntityType',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntityTypes_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();
+ $_size77 = 0;
+ $_etype80 = 0;
+ $xfer += $input->readListBegin($_etype80, $_size77);
+ for ($_i81 = 0; $_i81 < $_size77; ++$_i81)
+ {
+ $elem82 = null;
+ $elem82 = new \Airavata\Model\Sharing\EntityType();
+ $xfer += $elem82->read($input);
+ $this->success []= $elem82;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntityTypes_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 $iter83)
+ {
+ $xfer += $iter83->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $entity = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entity',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entity'])) {
+ $this->entity = $vals['entity'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntity_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->entity = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->entity->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('SharingRegistryService_createEntity_args');
+ if ($this->entity !== null) {
+ if (!is_object($this->entity)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entity', TType::STRUCT, 1);
+ $xfer += $this->entity->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createEntity_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_createEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $entity = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entity',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entity'])) {
+ $this->entity = $vals['entity'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntity_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->entity = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->entity->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('SharingRegistryService_updateEntity_args');
+ if ($this->entity !== null) {
+ if (!is_object($this->entity)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('entity', TType::STRUCT, 1);
+ $xfer += $this->entity->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updateEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updateEntity_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updateEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityExists_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_isEntityExists_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isEntityExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isEntityExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isEntityExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntity_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_deleteEntity_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deleteEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deleteEntity_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deleteEntity_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntity_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntity_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } 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('SharingRegistryService_getEntity_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getEntity_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\Entity',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getEntity_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\Entity();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getEntity_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_searchEntities_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var \Airavata\Model\Sharing\SearchCriteria[]
+ */
+ public $filters = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'filters',
+ 'type' => TType::LST,
+ 'etype' => TType::STRUCT,
+ 'elem' => array(
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SearchCriteria',
+ ),
+ ),
+ 4 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['filters'])) {
+ $this->filters = $vals['filters'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_searchEntities_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->filters = array();
+ $_size84 = 0;
+ $_etype87 = 0;
+ $xfer += $input->readListBegin($_etype87, $_size84);
+ for ($_i88 = 0; $_i88 < $_size84; ++$_i88)
+ {
+ $elem89 = null;
+ $elem89 = new \Airavata\Model\Sharing\SearchCriteria();
+ $xfer += $elem89->read($input);
+ $this->filters []= $elem89;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_searchEntities_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->filters !== null) {
+ if (!is_array($this->filters)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('filters', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRUCT, count($this->filters));
+ {
+ foreach ($this->filters as $iter90)
+ {
+ $xfer += $iter90->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 4);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 5);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_searchEntities_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\Entity[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\Entity',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_searchEntities_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();
+ $_size91 = 0;
+ $_etype94 = 0;
+ $xfer += $input->readListBegin($_etype94, $_size91);
+ for ($_i95 = 0; $_i95 < $_size91; ++$_i95)
+ {
+ $elem96 = null;
+ $elem96 = new \Airavata\Model\Sharing\Entity();
+ $xfer += $elem96->read($input);
+ $this->success []= $elem96;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_searchEntities_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 $iter97)
+ {
+ $xfer += $iter97->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedUsers_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getListOfSharedUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\User[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\User',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedUsers_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();
+ $_size98 = 0;
+ $_etype101 = 0;
+ $xfer += $input->readListBegin($_etype101, $_size98);
+ for ($_i102 = 0; $_i102 < $_size98; ++$_i102)
+ {
+ $elem103 = null;
+ $elem103 = new \Airavata\Model\Sharing\User();
+ $xfer += $elem103->read($input);
+ $this->success []= $elem103;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getListOfSharedUsers_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 $iter104)
+ {
+ $xfer += $iter104->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedGroups_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getListOfSharedGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getListOfSharedGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\UserGroup[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\UserGroup',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getListOfSharedGroups_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();
+ $_size105 = 0;
+ $_etype108 = 0;
+ $xfer += $input->readListBegin($_etype108, $_size105);
+ for ($_i109 = 0; $_i109 < $_size105; ++$_i109)
+ {
+ $elem110 = null;
+ $elem110 = new \Airavata\Model\Sharing\UserGroup();
+ $xfer += $elem110->read($input);
+ $this->success []= $elem110;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getListOfSharedGroups_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 $iter111)
+ {
+ $xfer += $iter111->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createPermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $permissionType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createPermissionType_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->permissionType = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->permissionType->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('SharingRegistryService_createPermissionType_args');
+ if ($this->permissionType !== null) {
+ if (!is_object($this->permissionType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('permissionType', TType::STRUCT, 1);
+ $xfer += $this->permissionType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_createPermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+ /**
+ * @var \Airavata\Model\Sharing\DuplicateEntryException
+ */
+ public $dee = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRING,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ 2 => array(
+ 'var' => 'dee',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\DuplicateEntryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ if (isset($vals['dee'])) {
+ $this->dee = $vals['dee'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_createPermissionType_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::STRING) {
+ $xfer += $input->readString($this->success);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRUCT) {
+ $this->dee = new \Airavata\Model\Sharing\DuplicateEntryException();
+ $xfer += $this->dee->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('SharingRegistryService_createPermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::STRING, 0);
+ $xfer += $output->writeString($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->dee !== null) {
+ $xfer += $output->writeFieldBegin('dee', TType::STRUCT, 2);
+ $xfer += $this->dee->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatePermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $permissionType = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionType',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionType'])) {
+ $this->permissionType = $vals['permissionType'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatePermissionType_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->permissionType = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->permissionType->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('SharingRegistryService_updatePermissionType_args');
+ if ($this->permissionType !== null) {
+ if (!is_object($this->permissionType)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('permissionType', TType::STRUCT, 1);
+ $xfer += $this->permissionType->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_updatePermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_updatePermissionType_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_updatePermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isPermissionExists_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $dimainId = null;
+ /**
+ * @var string
+ */
+ public $permissionId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'dimainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['dimainId'])) {
+ $this->dimainId = $vals['dimainId'];
+ }
+ if (isset($vals['permissionId'])) {
+ $this->permissionId = $vals['permissionId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isPermissionExists_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->dimainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionId);
+ } 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('SharingRegistryService_isPermissionExists_args');
+ if ($this->dimainId !== null) {
+ $xfer += $output->writeFieldBegin('dimainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->dimainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionId !== null) {
+ $xfer += $output->writeFieldBegin('permissionId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_isPermissionExists_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_isPermissionExists_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_isPermissionExists_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deletePermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deletePermissionType_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_deletePermissionType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_deletePermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_deletePermissionType_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_deletePermissionType_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionType_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionType_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_getPermissionType_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 2);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionType_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\PermissionType',
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionType_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::STRUCT) {
+ $this->success = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $this->success->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getPermissionType_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->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionTypes_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $offset = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
+ 3 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionTypes_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } 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('SharingRegistryService_getPermissionTypes_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 2);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 3);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_getPermissionTypes_result {
+ static $_TSPEC;
+
+ /**
+ * @var \Airavata\Model\Sharing\PermissionType[]
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = 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\Sharing\PermissionType',
+ ),
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_getPermissionTypes_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();
+ $_size112 = 0;
+ $_etype115 = 0;
+ $xfer += $input->readListBegin($_etype115, $_size112);
+ for ($_i116 = 0; $_i116 < $_size112; ++$_i116)
+ {
+ $elem117 = null;
+ $elem117 = new \Airavata\Model\Sharing\PermissionType();
+ $xfer += $elem117->read($input);
+ $this->success []= $elem117;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 1:
+ if ($ftype == TType::STRUCT) {
+ $this->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_getPermissionTypes_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 $iter118)
+ {
+ $xfer += $iter118->write($output);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $userList = null;
+ /**
+ * @var string
+ */
+ public $perssionTypeId = null;
+ /**
+ * @var bool
+ */
+ public $cascadePermission = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'perssionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'cascadePermission',
+ 'type' => TType::BOOL,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['userList'])) {
+ $this->userList = $vals['userList'];
+ }
+ if (isset($vals['perssionTypeId'])) {
+ $this->perssionTypeId = $vals['perssionTypeId'];
+ }
+ if (isset($vals['cascadePermission'])) {
+ $this->cascadePermission = $vals['cascadePermission'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithUsers_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->userList = array();
+ $_size119 = 0;
+ $_etype122 = 0;
+ $xfer += $input->readListBegin($_etype122, $_size119);
+ for ($_i123 = 0; $_i123 < $_size119; ++$_i123)
+ {
+ $elem124 = null;
+ $xfer += $input->readString($elem124);
+ $this->userList []= $elem124;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->perssionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->cascadePermission);
+ } 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('SharingRegistryService_shareEntityWithUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userList !== null) {
+ if (!is_array($this->userList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userList));
+ {
+ foreach ($this->userList as $iter125)
+ {
+ $xfer += $output->writeString($iter125);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->perssionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('perssionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->perssionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cascadePermission !== null) {
+ $xfer += $output->writeFieldBegin('cascadePermission', TType::BOOL, 5);
+ $xfer += $output->writeBool($this->cascadePermission);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithUsers_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_shareEntityWithUsers_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromUsers_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $userList = null;
+ /**
+ * @var string
+ */
+ public $perssionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'perssionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['userList'])) {
+ $this->userList = $vals['userList'];
+ }
+ if (isset($vals['perssionTypeId'])) {
+ $this->perssionTypeId = $vals['perssionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromUsers_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->userList = array();
+ $_size126 = 0;
+ $_etype129 = 0;
+ $xfer += $input->readListBegin($_etype129, $_size126);
+ for ($_i130 = 0; $_i130 < $_size126; ++$_i130)
+ {
+ $elem131 = null;
+ $xfer += $input->readString($elem131);
+ $this->userList []= $elem131;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->perssionTypeId);
+ } 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('SharingRegistryService_revokeEntitySharingFromUsers_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userList !== null) {
+ if (!is_array($this->userList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('userList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->userList));
+ {
+ foreach ($this->userList as $iter132)
+ {
+ $xfer += $output->writeString($iter132);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->perssionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('perssionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->perssionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromUsers_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromUsers_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_revokeEntitySharingFromUsers_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $groupList = null;
+ /**
+ * @var string
+ */
+ public $perssionTypeId = null;
+ /**
+ * @var bool
+ */
+ public $cascadePermission = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'perssionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'cascadePermission',
+ 'type' => TType::BOOL,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupList'])) {
+ $this->groupList = $vals['groupList'];
+ }
+ if (isset($vals['perssionTypeId'])) {
+ $this->perssionTypeId = $vals['perssionTypeId'];
+ }
+ if (isset($vals['cascadePermission'])) {
+ $this->cascadePermission = $vals['cascadePermission'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithGroups_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->groupList = array();
+ $_size133 = 0;
+ $_etype136 = 0;
+ $xfer += $input->readListBegin($_etype136, $_size133);
+ for ($_i137 = 0; $_i137 < $_size133; ++$_i137)
+ {
+ $elem138 = null;
+ $xfer += $input->readString($elem138);
+ $this->groupList []= $elem138;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->perssionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::BOOL) {
+ $xfer += $input->readBool($this->cascadePermission);
+ } 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('SharingRegistryService_shareEntityWithGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupList !== null) {
+ if (!is_array($this->groupList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->groupList));
+ {
+ foreach ($this->groupList as $iter139)
+ {
+ $xfer += $output->writeString($iter139);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->perssionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('perssionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->perssionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cascadePermission !== null) {
+ $xfer += $output->writeFieldBegin('cascadePermission', TType::BOOL, 5);
+ $xfer += $output->writeBool($this->cascadePermission);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_shareEntityWithGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_shareEntityWithGroups_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_shareEntityWithGroups_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromGroups_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string[]
+ */
+ public $groupList = null;
+ /**
+ * @var string
+ */
+ public $perssionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupList',
+ 'type' => TType::LST,
+ 'etype' => TType::STRING,
+ 'elem' => array(
+ 'type' => TType::STRING,
+ ),
+ ),
+ 4 => array(
+ 'var' => 'perssionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupList'])) {
+ $this->groupList = $vals['groupList'];
+ }
+ if (isset($vals['perssionTypeId'])) {
+ $this->perssionTypeId = $vals['perssionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromGroups_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::LST) {
+ $this->groupList = array();
+ $_size140 = 0;
+ $_etype143 = 0;
+ $xfer += $input->readListBegin($_etype143, $_size140);
+ for ($_i144 = 0; $_i144 < $_size140; ++$_i144)
+ {
+ $elem145 = null;
+ $xfer += $input->readString($elem145);
+ $this->groupList []= $elem145;
+ }
+ $xfer += $input->readListEnd();
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->perssionTypeId);
+ } 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('SharingRegistryService_revokeEntitySharingFromGroups_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupList !== null) {
+ if (!is_array($this->groupList)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('groupList', TType::LST, 3);
+ {
+ $output->writeListBegin(TType::STRING, count($this->groupList));
+ {
+ foreach ($this->groupList as $iter146)
+ {
+ $xfer += $output->writeString($iter146);
+ }
+ }
+ $output->writeListEnd();
+ }
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->perssionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('perssionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->perssionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_revokeEntitySharingFromGroups_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_revokeEntitySharingFromGroups_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_revokeEntitySharingFromGroups_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_userHasAccess_args {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_userHasAccess_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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->permissionTypeId);
+ } 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('SharingRegistryService_userHasAccess_args');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 3);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 4);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class SharingRegistryService_userHasAccess_result {
+ static $_TSPEC;
+
+ /**
+ * @var bool
+ */
+ public $success = null;
+ /**
+ * @var \Airavata\Model\Sharing\SharingRegistryException
+ */
+ public $sre = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 0 => array(
+ 'var' => 'success',
+ 'type' => TType::BOOL,
+ ),
+ 1 => array(
+ 'var' => 'sre',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\Sharing\SharingRegistryException',
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
+ if (isset($vals['sre'])) {
+ $this->sre = $vals['sre'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryService_userHasAccess_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->sre = new \Airavata\Model\Sharing\SharingRegistryException();
+ $xfer += $this->sre->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('SharingRegistryService_userHasAccess_result');
+ if ($this->success !== null) {
+ $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+ $xfer += $output->writeBool($this->success);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sre !== null) {
+ $xfer += $output->writeFieldBegin('sre', TType::STRUCT, 1);
+ $xfer += $this->sre->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+
diff --git a/app/libraries/Airavata/API/Sharing/Types.php b/app/libraries/Airavata/API/Sharing/Types.php
new file mode 100644
index 0000000..050b73e
--- /dev/null
+++ b/app/libraries/Airavata/API/Sharing/Types.php
@@ -0,0 +1,20 @@
+<?php
+namespace Airavata\API\Sharing;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+
diff --git a/app/libraries/Airavata/API/Types.php b/app/libraries/Airavata/API/Types.php
index 84e30af..f1235c6 100644
--- a/app/libraries/Airavata/API/Types.php
+++ b/app/libraries/Airavata/API/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\API;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php b/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
index abcb322..32ab54a 100644
--- a/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/AppDeployment/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\AppDeployment;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php b/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
index 2477b43..644539f 100644
--- a/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/AppInterface/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\AppInterface;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php b/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
deleted file mode 100644
index 47e6e24..0000000
--- a/app/libraries/Airavata/Model/AppCatalog/ComputeResource/Types.php
+++ /dev/null
@@ -1,2511 +0,0 @@
-<?php
-namespace Airavata\Model\AppCatalog\ComputeResource;
-
-/**
- * Autogenerated by Thrift Compiler (0.9.3)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-use Thrift\Base\TBase;
-use Thrift\Type\TType;
-use Thrift\Type\TMessageType;
-use Thrift\Exception\TException;
-use Thrift\Exception\TProtocolException;
-use Thrift\Protocol\TProtocol;
-use Thrift\Protocol\TBinaryProtocolAccelerated;
-use Thrift\Exception\TApplicationException;
-
-
-/**
- * * Enumeration of local resource job manager types supported by Airavata
- * *
- * * FORK:
- * * Forking of commands without any job manager
- * *
- * * PBS:
- * * Job manager supporting the Portal Batch System (PBS) protocol. Some examples include TORQUE, PBSPro, Grid Engine.
- * *
- * * SLURM:
- * * The Simple Linux Utility for Resource Management is a open source workload manager.
- * *
- * * UGE:
- * * Univa Grid Engine, a variation of PBS implementation.
- * *
- * * LSF:
- * * IBM Platform Load Sharing Facility is dominantly installed on IBM clusters.
- * *
- */
-final class ResourceJobManagerType {
- const FORK = 0;
- const PBS = 1;
- const SLURM = 2;
- const LSF = 3;
- const UGE = 4;
- const CLOUD = 5;
- const AIRAVATA_CUSTOM = 6;
- static public $__names = array(
- 0 => 'FORK',
- 1 => 'PBS',
- 2 => 'SLURM',
- 3 => 'LSF',
- 4 => 'UGE',
- 5 => 'CLOUD',
- 6 => 'AIRAVATA_CUSTOM',
- );
-}
-
-/**
- * Enumeration of resource job manager commands
- *
- * SUBMISSION:
- * Ex: qsub, sbatch
- *
- * JOBMONITORING:
- * Ex: qstat, squeue
- *
- * DELETION:
- * Ex: qdel, scancel
- *
- * CHECK_JOB:
- * Detailed Status about the Job. Ex: checkjob
- *
- * SHOW_QUEUE:
- * List of Queued Job by the schedular. Ex: showq
- *
- * SHOW_RESERVATION:
- * List all reservations. Ex:showres, show_res
- *
- * SHOW_START:
- * Display the start time of the specified job. Ex: showstart
- *
- */
-final class JobManagerCommand {
- const SUBMISSION = 0;
- const JOB_MONITORING = 1;
- const DELETION = 2;
- const CHECK_JOB = 3;
- const SHOW_QUEUE = 4;
- const SHOW_RESERVATION = 5;
- const SHOW_START = 6;
- static public $__names = array(
- 0 => 'SUBMISSION',
- 1 => 'JOB_MONITORING',
- 2 => 'DELETION',
- 3 => 'CHECK_JOB',
- 4 => 'SHOW_QUEUE',
- 5 => 'SHOW_RESERVATION',
- 6 => 'SHOW_START',
- );
-}
-
-/**
- * Enumeration of File Systems on the resource
- *
- * FORK:
- * Forking of commands without any job manager
- *
- * PBS:
- * Job manager supporting the Portal Batch System (PBS) protocol. Some examples include TORQUE, PBSPro, Grid Engine.
- *
- * UGE:
- * Univa Grid Engine, a variation of PBS implementation.
- *
- * SLURM:
- * The Simple Linux Utility for Resource Management is a open source workload manager.
- *
- */
-final class FileSystems {
- const HOME = 0;
- const WORK = 1;
- const LOCALTMP = 2;
- const SCRATCH = 3;
- const ARCHIVE = 4;
- static public $__names = array(
- 0 => 'HOME',
- 1 => 'WORK',
- 2 => 'LOCALTMP',
- 3 => 'SCRATCH',
- 4 => 'ARCHIVE',
- );
-}
-
-/**
- * Enumeration of Airavata supported Job Submission Mechanisms for High Performance Computing Clusters.
- *
- * SSH:
- * Execute remote job submission commands using via secure shell protocol.
- *
- * GRAM:
- * Execute remote jobs via Globus GRAM service.
- *
- * UNICORE:
- * Execute remote jobs via Unicore services
- *
- */
-final class JobSubmissionProtocol {
- const LOCAL = 0;
- const SSH = 1;
- const GLOBUS = 2;
- const UNICORE = 3;
- const CLOUD = 4;
- const SSH_FORK = 5;
- const LOCAL_FORK = 6;
- static public $__names = array(
- 0 => 'LOCAL',
- 1 => 'SSH',
- 2 => 'GLOBUS',
- 3 => 'UNICORE',
- 4 => 'CLOUD',
- 5 => 'SSH_FORK',
- 6 => 'LOCAL_FORK',
- );
-}
-
-/**
- * Monitoring modes
- *
- * POLL_JOB_MANAGER:
- * GFac need to pull job status changes.
- *
- * XSEDE_AMQP_SUBSCRIBE:
- * Server will publish job status changes to amqp servert.
- *
- *
- */
-final class MonitorMode {
- const POLL_JOB_MANAGER = 0;
- const CLOUD_JOB_MONITOR = 1;
- const JOB_EMAIL_NOTIFICATION_MONITOR = 2;
- const XSEDE_AMQP_SUBSCRIBE = 3;
- const FORK = 4;
- const LOCAL = 5;
- static public $__names = array(
- 0 => 'POLL_JOB_MANAGER',
- 1 => 'CLOUD_JOB_MONITOR',
- 2 => 'JOB_EMAIL_NOTIFICATION_MONITOR',
- 3 => 'XSEDE_AMQP_SUBSCRIBE',
- 4 => 'FORK',
- 5 => 'LOCAL',
- );
-}
-
-final class DMType {
- const COMPUTE_RESOURCE = 0;
- const STORAGE_RESOURCE = 1;
- static public $__names = array(
- 0 => 'COMPUTE_RESOURCE',
- 1 => 'STORAGE_RESOURCE',
- );
-}
-
-/**
- * Provider name
- *
- */
-final class ProviderName {
- const EC2 = 0;
- const AWSEC2 = 1;
- const RACKSPACE = 2;
- static public $__names = array(
- 0 => 'EC2',
- 1 => 'AWSEC2',
- 2 => 'RACKSPACE',
- );
-}
-
-/**
- * Resource Job Manager Information
- *
- * resourceJobManagerType:
- * A typical HPC cluster has a single Job Manager to manage the resources.
- *
- * pushMonitoringEndpoint:
- * If the job manager pushes out state changes to a database or bus, specify the service endpoint.
- * Ex: Moab Web Service, Moab MongoDB URL, AMQP (GLUE2) Broker
- *
- * jobManagerBinPath:
- * Path to the Job Manager Installation Binary directory.
- *
- * jobManagerCommands:
- * An enumeration of commonly used manager commands.
- *
- */
-class ResourceJobManager {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $resourceJobManagerId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var int
- */
- public $resourceJobManagerType = null;
- /**
- * @var string
- */
- public $pushMonitoringEndpoint = null;
- /**
- * @var string
- */
- public $jobManagerBinPath = null;
- /**
- * @var array
- */
- public $jobManagerCommands = null;
- /**
- * @var array
- */
- public $parallelismPrefix = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'resourceJobManagerId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'resourceJobManagerType',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'pushMonitoringEndpoint',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'jobManagerBinPath',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'jobManagerCommands',
- 'type' => TType::MAP,
- 'ktype' => TType::I32,
- 'vtype' => TType::STRING,
- 'key' => array(
- 'type' => TType::I32,
- ),
- 'val' => array(
- 'type' => TType::STRING,
- ),
- ),
- 6 => array(
- 'var' => 'parallelismPrefix',
- 'type' => TType::MAP,
- 'ktype' => TType::I32,
- 'vtype' => TType::STRING,
- 'key' => array(
- 'type' => TType::I32,
- ),
- 'val' => array(
- 'type' => TType::STRING,
- ),
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['resourceJobManagerId'])) {
- $this->resourceJobManagerId = $vals['resourceJobManagerId'];
- }
- if (isset($vals['resourceJobManagerType'])) {
- $this->resourceJobManagerType = $vals['resourceJobManagerType'];
- }
- if (isset($vals['pushMonitoringEndpoint'])) {
- $this->pushMonitoringEndpoint = $vals['pushMonitoringEndpoint'];
- }
- if (isset($vals['jobManagerBinPath'])) {
- $this->jobManagerBinPath = $vals['jobManagerBinPath'];
- }
- if (isset($vals['jobManagerCommands'])) {
- $this->jobManagerCommands = $vals['jobManagerCommands'];
- }
- if (isset($vals['parallelismPrefix'])) {
- $this->parallelismPrefix = $vals['parallelismPrefix'];
- }
- }
- }
-
- public function getName() {
- return 'ResourceJobManager';
- }
-
- 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->resourceJobManagerId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->resourceJobManagerType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->pushMonitoringEndpoint);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->jobManagerBinPath);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::MAP) {
- $this->jobManagerCommands = array();
- $_size0 = 0;
- $_ktype1 = 0;
- $_vtype2 = 0;
- $xfer += $input->readMapBegin($_ktype1, $_vtype2, $_size0);
- for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
- {
- $key5 = 0;
- $val6 = '';
- $xfer += $input->readI32($key5);
- $xfer += $input->readString($val6);
- $this->jobManagerCommands[$key5] = $val6;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::MAP) {
- $this->parallelismPrefix = array();
- $_size7 = 0;
- $_ktype8 = 0;
- $_vtype9 = 0;
- $xfer += $input->readMapBegin($_ktype8, $_vtype9, $_size7);
- for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
- {
- $key12 = 0;
- $val13 = '';
- $xfer += $input->readI32($key12);
- $xfer += $input->readString($val13);
- $this->parallelismPrefix[$key12] = $val13;
- }
- $xfer += $input->readMapEnd();
- } 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('ResourceJobManager');
- if ($this->resourceJobManagerId !== null) {
- $xfer += $output->writeFieldBegin('resourceJobManagerId', TType::STRING, 1);
- $xfer += $output->writeString($this->resourceJobManagerId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->resourceJobManagerType !== null) {
- $xfer += $output->writeFieldBegin('resourceJobManagerType', TType::I32, 2);
- $xfer += $output->writeI32($this->resourceJobManagerType);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->pushMonitoringEndpoint !== null) {
- $xfer += $output->writeFieldBegin('pushMonitoringEndpoint', TType::STRING, 3);
- $xfer += $output->writeString($this->pushMonitoringEndpoint);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->jobManagerBinPath !== null) {
- $xfer += $output->writeFieldBegin('jobManagerBinPath', TType::STRING, 4);
- $xfer += $output->writeString($this->jobManagerBinPath);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->jobManagerCommands !== null) {
- if (!is_array($this->jobManagerCommands)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('jobManagerCommands', TType::MAP, 5);
- {
- $output->writeMapBegin(TType::I32, TType::STRING, count($this->jobManagerCommands));
- {
- foreach ($this->jobManagerCommands as $kiter14 => $viter15)
- {
- $xfer += $output->writeI32($kiter14);
- $xfer += $output->writeString($viter15);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->parallelismPrefix !== null) {
- if (!is_array($this->parallelismPrefix)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('parallelismPrefix', TType::MAP, 6);
- {
- $output->writeMapBegin(TType::I32, TType::STRING, count($this->parallelismPrefix));
- {
- foreach ($this->parallelismPrefix as $kiter16 => $viter17)
- {
- $xfer += $output->writeI32($kiter16);
- $xfer += $output->writeString($viter17);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Batch Queue Information on SuperComputers
- *
- * maxRunTime:
- * Maximum allowed run time in hours.
- */
-class BatchQueue {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $queueName = null;
- /**
- * @var string
- */
- public $queueDescription = null;
- /**
- * @var int
- */
- public $maxRunTime = null;
- /**
- * @var int
- */
- public $maxNodes = null;
- /**
- * @var int
- */
- public $maxProcessors = null;
- /**
- * @var int
- */
- public $maxJobsInQueue = null;
- /**
- * @var int
- */
- public $maxMemory = null;
- /**
- * @var int
- */
- public $cpuPerNode = null;
- /**
- * @var int
- */
- public $defaultNodeCount = null;
- /**
- * @var int
- */
- public $defaultCPUCount = null;
- /**
- * @var int
- */
- public $defaultWalltime = null;
- /**
- * @var string
- */
- public $queueSpecificMacros = null;
- /**
- * @var bool
- */
- public $isDefaultQueue = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'queueName',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'queueDescription',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'maxRunTime',
- 'type' => TType::I32,
- ),
- 4 => array(
- 'var' => 'maxNodes',
- 'type' => TType::I32,
- ),
- 5 => array(
- 'var' => 'maxProcessors',
- 'type' => TType::I32,
- ),
- 6 => array(
- 'var' => 'maxJobsInQueue',
- 'type' => TType::I32,
- ),
- 7 => array(
- 'var' => 'maxMemory',
- 'type' => TType::I32,
- ),
- 8 => array(
- 'var' => 'cpuPerNode',
- 'type' => TType::I32,
- ),
- 9 => array(
- 'var' => 'defaultNodeCount',
- 'type' => TType::I32,
- ),
- 10 => array(
- 'var' => 'defaultCPUCount',
- 'type' => TType::I32,
- ),
- 11 => array(
- 'var' => 'defaultWalltime',
- 'type' => TType::I32,
- ),
- 12 => array(
- 'var' => 'queueSpecificMacros',
- 'type' => TType::STRING,
- ),
- 13 => array(
- 'var' => 'isDefaultQueue',
- 'type' => TType::BOOL,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['queueName'])) {
- $this->queueName = $vals['queueName'];
- }
- if (isset($vals['queueDescription'])) {
- $this->queueDescription = $vals['queueDescription'];
- }
- if (isset($vals['maxRunTime'])) {
- $this->maxRunTime = $vals['maxRunTime'];
- }
- if (isset($vals['maxNodes'])) {
- $this->maxNodes = $vals['maxNodes'];
- }
- if (isset($vals['maxProcessors'])) {
- $this->maxProcessors = $vals['maxProcessors'];
- }
- if (isset($vals['maxJobsInQueue'])) {
- $this->maxJobsInQueue = $vals['maxJobsInQueue'];
- }
- if (isset($vals['maxMemory'])) {
- $this->maxMemory = $vals['maxMemory'];
- }
- if (isset($vals['cpuPerNode'])) {
- $this->cpuPerNode = $vals['cpuPerNode'];
- }
- if (isset($vals['defaultNodeCount'])) {
- $this->defaultNodeCount = $vals['defaultNodeCount'];
- }
- if (isset($vals['defaultCPUCount'])) {
- $this->defaultCPUCount = $vals['defaultCPUCount'];
- }
- if (isset($vals['defaultWalltime'])) {
- $this->defaultWalltime = $vals['defaultWalltime'];
- }
- if (isset($vals['queueSpecificMacros'])) {
- $this->queueSpecificMacros = $vals['queueSpecificMacros'];
- }
- if (isset($vals['isDefaultQueue'])) {
- $this->isDefaultQueue = $vals['isDefaultQueue'];
- }
- }
- }
-
- public function getName() {
- return 'BatchQueue';
- }
-
- 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->queueName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->queueDescription);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxRunTime);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxNodes);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxProcessors);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxJobsInQueue);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 7:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxMemory);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 8:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->cpuPerNode);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 9:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultNodeCount);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 10:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultCPUCount);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 11:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultWalltime);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 12:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->queueSpecificMacros);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 13:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->isDefaultQueue);
- } 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('BatchQueue');
- if ($this->queueName !== null) {
- $xfer += $output->writeFieldBegin('queueName', TType::STRING, 1);
- $xfer += $output->writeString($this->queueName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->queueDescription !== null) {
- $xfer += $output->writeFieldBegin('queueDescription', TType::STRING, 2);
- $xfer += $output->writeString($this->queueDescription);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxRunTime !== null) {
- $xfer += $output->writeFieldBegin('maxRunTime', TType::I32, 3);
- $xfer += $output->writeI32($this->maxRunTime);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxNodes !== null) {
- $xfer += $output->writeFieldBegin('maxNodes', TType::I32, 4);
- $xfer += $output->writeI32($this->maxNodes);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxProcessors !== null) {
- $xfer += $output->writeFieldBegin('maxProcessors', TType::I32, 5);
- $xfer += $output->writeI32($this->maxProcessors);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxJobsInQueue !== null) {
- $xfer += $output->writeFieldBegin('maxJobsInQueue', TType::I32, 6);
- $xfer += $output->writeI32($this->maxJobsInQueue);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxMemory !== null) {
- $xfer += $output->writeFieldBegin('maxMemory', TType::I32, 7);
- $xfer += $output->writeI32($this->maxMemory);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->cpuPerNode !== null) {
- $xfer += $output->writeFieldBegin('cpuPerNode', TType::I32, 8);
- $xfer += $output->writeI32($this->cpuPerNode);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultNodeCount !== null) {
- $xfer += $output->writeFieldBegin('defaultNodeCount', TType::I32, 9);
- $xfer += $output->writeI32($this->defaultNodeCount);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultCPUCount !== null) {
- $xfer += $output->writeFieldBegin('defaultCPUCount', TType::I32, 10);
- $xfer += $output->writeI32($this->defaultCPUCount);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultWalltime !== null) {
- $xfer += $output->writeFieldBegin('defaultWalltime', TType::I32, 11);
- $xfer += $output->writeI32($this->defaultWalltime);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->queueSpecificMacros !== null) {
- $xfer += $output->writeFieldBegin('queueSpecificMacros', TType::STRING, 12);
- $xfer += $output->writeString($this->queueSpecificMacros);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->isDefaultQueue !== null) {
- $xfer += $output->writeFieldBegin('isDefaultQueue', TType::BOOL, 13);
- $xfer += $output->writeBool($this->isDefaultQueue);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Locally Fork Jobs as OS processes
- *
- * alternativeSSHHostName:
- * If the login to ssh is different than the hostname itself, specify it here
- *
- * sshPort:
- * If a non-default port needs to used, specify it.
- */
-class LOCALSubmission {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var \Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager
- */
- public $resourceJobManager = null;
- /**
- * @var int
- */
- public $securityProtocol = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'resourceJobManager',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager',
- ),
- 3 => array(
- 'var' => 'securityProtocol',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['resourceJobManager'])) {
- $this->resourceJobManager = $vals['resourceJobManager'];
- }
- if (isset($vals['securityProtocol'])) {
- $this->securityProtocol = $vals['securityProtocol'];
- }
- }
- }
-
- public function getName() {
- return 'LOCALSubmission';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRUCT) {
- $this->resourceJobManager = new \Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager();
- $xfer += $this->resourceJobManager->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->securityProtocol);
- } 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('LOCALSubmission');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->resourceJobManager !== null) {
- if (!is_object($this->resourceJobManager)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('resourceJobManager', TType::STRUCT, 2);
- $xfer += $this->resourceJobManager->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->securityProtocol !== null) {
- $xfer += $output->writeFieldBegin('securityProtocol', TType::I32, 3);
- $xfer += $output->writeI32($this->securityProtocol);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Authenticate using Secured Shell
- *
- * alternativeSSHHostName:
- * If the login to ssh is different than the hostname itself, specify it here
- *
- * sshPort:
- * If a non-default port needs to used, specify it.
- *
- * batchQueueEmailSenders:
- * If a resource always sends the monitoring from a specific address, specify the
- * full email address. If a resource sends emails from multiple addresses (
- * example: based on the submitted login node) then use the wildchar * to indicate
- * the same. Example: *@*.example.com or *@example.com
- *
- */
-class SSHJobSubmission {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var int
- */
- public $securityProtocol = null;
- /**
- * @var \Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager
- */
- public $resourceJobManager = null;
- /**
- * @var string
- */
- public $alternativeSSHHostName = null;
- /**
- * @var int
- */
- public $sshPort = 22;
- /**
- * @var int
- */
- public $monitorMode = null;
- /**
- * @var string[]
- */
- public $batchQueueEmailSenders = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'securityProtocol',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'resourceJobManager',
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager',
- ),
- 4 => array(
- 'var' => 'alternativeSSHHostName',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'sshPort',
- 'type' => TType::I32,
- ),
- 6 => array(
- 'var' => 'monitorMode',
- 'type' => TType::I32,
- ),
- 7 => array(
- 'var' => 'batchQueueEmailSenders',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['securityProtocol'])) {
- $this->securityProtocol = $vals['securityProtocol'];
- }
- if (isset($vals['resourceJobManager'])) {
- $this->resourceJobManager = $vals['resourceJobManager'];
- }
- if (isset($vals['alternativeSSHHostName'])) {
- $this->alternativeSSHHostName = $vals['alternativeSSHHostName'];
- }
- if (isset($vals['sshPort'])) {
- $this->sshPort = $vals['sshPort'];
- }
- if (isset($vals['monitorMode'])) {
- $this->monitorMode = $vals['monitorMode'];
- }
- if (isset($vals['batchQueueEmailSenders'])) {
- $this->batchQueueEmailSenders = $vals['batchQueueEmailSenders'];
- }
- }
- }
-
- public function getName() {
- return 'SSHJobSubmission';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->securityProtocol);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRUCT) {
- $this->resourceJobManager = new \Airavata\Model\AppCatalog\ComputeResource\ResourceJobManager();
- $xfer += $this->resourceJobManager->read($input);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->alternativeSSHHostName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->sshPort);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->monitorMode);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 7:
- if ($ftype == TType::LST) {
- $this->batchQueueEmailSenders = array();
- $_size18 = 0;
- $_etype21 = 0;
- $xfer += $input->readListBegin($_etype21, $_size18);
- for ($_i22 = 0; $_i22 < $_size18; ++$_i22)
- {
- $elem23 = null;
- $xfer += $input->readString($elem23);
- $this->batchQueueEmailSenders []= $elem23;
- }
- $xfer += $input->readListEnd();
- } 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('SSHJobSubmission');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->securityProtocol !== null) {
- $xfer += $output->writeFieldBegin('securityProtocol', TType::I32, 2);
- $xfer += $output->writeI32($this->securityProtocol);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->resourceJobManager !== null) {
- if (!is_object($this->resourceJobManager)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('resourceJobManager', TType::STRUCT, 3);
- $xfer += $this->resourceJobManager->write($output);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->alternativeSSHHostName !== null) {
- $xfer += $output->writeFieldBegin('alternativeSSHHostName', TType::STRING, 4);
- $xfer += $output->writeString($this->alternativeSSHHostName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->sshPort !== null) {
- $xfer += $output->writeFieldBegin('sshPort', TType::I32, 5);
- $xfer += $output->writeI32($this->sshPort);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->monitorMode !== null) {
- $xfer += $output->writeFieldBegin('monitorMode', TType::I32, 6);
- $xfer += $output->writeI32($this->monitorMode);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->batchQueueEmailSenders !== null) {
- if (!is_array($this->batchQueueEmailSenders)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('batchQueueEmailSenders', TType::LST, 7);
- {
- $output->writeListBegin(TType::STRING, count($this->batchQueueEmailSenders));
- {
- foreach ($this->batchQueueEmailSenders as $iter24)
- {
- $xfer += $output->writeString($iter24);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-class GlobusJobSubmission {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var int
- */
- public $securityProtocol = null;
- /**
- * @var string[]
- */
- public $globusGateKeeperEndPoint = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'securityProtocol',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'globusGateKeeperEndPoint',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['securityProtocol'])) {
- $this->securityProtocol = $vals['securityProtocol'];
- }
- if (isset($vals['globusGateKeeperEndPoint'])) {
- $this->globusGateKeeperEndPoint = $vals['globusGateKeeperEndPoint'];
- }
- }
- }
-
- public function getName() {
- return 'GlobusJobSubmission';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->securityProtocol);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::LST) {
- $this->globusGateKeeperEndPoint = array();
- $_size25 = 0;
- $_etype28 = 0;
- $xfer += $input->readListBegin($_etype28, $_size25);
- for ($_i29 = 0; $_i29 < $_size25; ++$_i29)
- {
- $elem30 = null;
- $xfer += $input->readString($elem30);
- $this->globusGateKeeperEndPoint []= $elem30;
- }
- $xfer += $input->readListEnd();
- } 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('GlobusJobSubmission');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->securityProtocol !== null) {
- $xfer += $output->writeFieldBegin('securityProtocol', TType::I32, 2);
- $xfer += $output->writeI32($this->securityProtocol);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->globusGateKeeperEndPoint !== null) {
- if (!is_array($this->globusGateKeeperEndPoint)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('globusGateKeeperEndPoint', TType::LST, 3);
- {
- $output->writeListBegin(TType::STRING, count($this->globusGateKeeperEndPoint));
- {
- foreach ($this->globusGateKeeperEndPoint as $iter31)
- {
- $xfer += $output->writeString($iter31);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Unicore Job Submission
- *
- * unicoreEndPointURL:
- * unicoreGateway End Point. The provider will query this service to fetch required service end points.
- * authenticationMode
- * The authenticationMode defines the way certificate is fetched.
- */
-class UnicoreJobSubmission {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var int
- */
- public $securityProtocol = null;
- /**
- * @var string
- */
- public $unicoreEndPointURL = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'securityProtocol',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'unicoreEndPointURL',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['securityProtocol'])) {
- $this->securityProtocol = $vals['securityProtocol'];
- }
- if (isset($vals['unicoreEndPointURL'])) {
- $this->unicoreEndPointURL = $vals['unicoreEndPointURL'];
- }
- }
- }
-
- public function getName() {
- return 'UnicoreJobSubmission';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->securityProtocol);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->unicoreEndPointURL);
- } 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('UnicoreJobSubmission');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->securityProtocol !== null) {
- $xfer += $output->writeFieldBegin('securityProtocol', TType::I32, 2);
- $xfer += $output->writeI32($this->securityProtocol);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->unicoreEndPointURL !== null) {
- $xfer += $output->writeFieldBegin('unicoreEndPointURL', TType::STRING, 3);
- $xfer += $output->writeString($this->unicoreEndPointURL);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Cloud Job Submission
- *
- *
- */
-class CloudJobSubmission {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var int
- */
- public $securityProtocol = null;
- /**
- * @var string
- */
- public $nodeId = null;
- /**
- * @var string
- */
- public $executableType = null;
- /**
- * @var int
- */
- public $providerName = null;
- /**
- * @var string
- */
- public $userAccountName = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'securityProtocol',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'nodeId',
- 'type' => TType::STRING,
- ),
- 4 => array(
- 'var' => 'executableType',
- 'type' => TType::STRING,
- ),
- 5 => array(
- 'var' => 'providerName',
- 'type' => TType::I32,
- ),
- 6 => array(
- 'var' => 'userAccountName',
- 'type' => TType::STRING,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['securityProtocol'])) {
- $this->securityProtocol = $vals['securityProtocol'];
- }
- if (isset($vals['nodeId'])) {
- $this->nodeId = $vals['nodeId'];
- }
- if (isset($vals['executableType'])) {
- $this->executableType = $vals['executableType'];
- }
- if (isset($vals['providerName'])) {
- $this->providerName = $vals['providerName'];
- }
- if (isset($vals['userAccountName'])) {
- $this->userAccountName = $vals['userAccountName'];
- }
- }
- }
-
- public function getName() {
- return 'CloudJobSubmission';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->securityProtocol);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->nodeId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->executableType);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->providerName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->userAccountName);
- } 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('CloudJobSubmission');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->securityProtocol !== null) {
- $xfer += $output->writeFieldBegin('securityProtocol', TType::I32, 2);
- $xfer += $output->writeI32($this->securityProtocol);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->nodeId !== null) {
- $xfer += $output->writeFieldBegin('nodeId', TType::STRING, 3);
- $xfer += $output->writeString($this->nodeId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->executableType !== null) {
- $xfer += $output->writeFieldBegin('executableType', TType::STRING, 4);
- $xfer += $output->writeString($this->executableType);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->providerName !== null) {
- $xfer += $output->writeFieldBegin('providerName', TType::I32, 5);
- $xfer += $output->writeI32($this->providerName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->userAccountName !== null) {
- $xfer += $output->writeFieldBegin('userAccountName', TType::STRING, 6);
- $xfer += $output->writeString($this->userAccountName);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Job Submission Interfaces
- *
- * jobSubmissionInterfaceId: The Job Submission Interface has to be previously registered and referenced here.
- *
- * priorityOrder:
- * For resources with multiple interfaces, the priority order should be selected.
- * Lower the numerical number, higher the priority
- *
- */
-class JobSubmissionInterface {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $jobSubmissionInterfaceId = null;
- /**
- * @var int
- */
- public $jobSubmissionProtocol = null;
- /**
- * @var int
- */
- public $priorityOrder = 0;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'jobSubmissionInterfaceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'jobSubmissionProtocol',
- 'type' => TType::I32,
- ),
- 3 => array(
- 'var' => 'priorityOrder',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['jobSubmissionInterfaceId'])) {
- $this->jobSubmissionInterfaceId = $vals['jobSubmissionInterfaceId'];
- }
- if (isset($vals['jobSubmissionProtocol'])) {
- $this->jobSubmissionProtocol = $vals['jobSubmissionProtocol'];
- }
- if (isset($vals['priorityOrder'])) {
- $this->priorityOrder = $vals['priorityOrder'];
- }
- }
- }
-
- public function getName() {
- return 'JobSubmissionInterface';
- }
-
- 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->jobSubmissionInterfaceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->jobSubmissionProtocol);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->priorityOrder);
- } 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('JobSubmissionInterface');
- if ($this->jobSubmissionInterfaceId !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaceId', TType::STRING, 1);
- $xfer += $output->writeString($this->jobSubmissionInterfaceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->jobSubmissionProtocol !== null) {
- $xfer += $output->writeFieldBegin('jobSubmissionProtocol', TType::I32, 2);
- $xfer += $output->writeI32($this->jobSubmissionProtocol);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->priorityOrder !== null) {
- $xfer += $output->writeFieldBegin('priorityOrder', TType::I32, 3);
- $xfer += $output->writeI32($this->priorityOrder);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-/**
- * Computational Resource Description
- *
- * computeResourceId: Airavata Internal Unique Identifier to distinguish Compute Resource.
- *
- * hostName:
- * Fully Qualified Host Name.
- *
- * hostAliases:
- * Aliases if any.
- *
- * ipAddress:
- * IP Addresses of the Resource.
- *
- * resourceDescription:
- * A user friendly description of the resource.
- *
- * JobSubmissionProtocols:
- * A computational resources may have one or more ways of submitting Jobs. This structure
- * will hold all available mechanisms to interact with the resource.
- * The key is the priority
- *
- * DataMovementProtocol:
- * Option to specify a prefered data movement mechanism of the available options.
- *
- * fileSystems:
- * Map of file systems type and the path.
- *
- */
-class ComputeResourceDescription {
- static $_TSPEC;
-
- /**
- * @var string
- */
- public $computeResourceId = "DO_NOT_SET_AT_CLIENTS";
- /**
- * @var string
- */
- public $hostName = null;
- /**
- * @var string[]
- */
- public $hostAliases = null;
- /**
- * @var string[]
- */
- public $ipAddresses = null;
- /**
- * @var string
- */
- public $resourceDescription = null;
- /**
- * @var bool
- */
- public $enabled = null;
- /**
- * @var \Airavata\Model\AppCatalog\ComputeResource\BatchQueue[]
- */
- public $batchQueues = null;
- /**
- * @var array
- */
- public $fileSystems = null;
- /**
- * @var \Airavata\Model\AppCatalog\ComputeResource\JobSubmissionInterface[]
- */
- public $jobSubmissionInterfaces = null;
- /**
- * @var \Airavata\Model\Data\Movement\DataMovementInterface[]
- */
- public $dataMovementInterfaces = null;
- /**
- * @var int
- */
- public $maxMemoryPerNode = null;
- /**
- * @var bool
- */
- public $gatewayUsageReporting = null;
- /**
- * @var string
- */
- public $gatewayUsageModuleLoadCommand = null;
- /**
- * @var string
- */
- public $gatewayUsageExecutable = null;
- /**
- * @var int
- */
- public $cpusPerNode = null;
- /**
- * @var int
- */
- public $defaultNodeCount = null;
- /**
- * @var int
- */
- public $defaultCPUCount = null;
- /**
- * @var int
- */
- public $defaultWalltime = null;
-
- public function __construct($vals=null) {
- if (!isset(self::$_TSPEC)) {
- self::$_TSPEC = array(
- 1 => array(
- 'var' => 'computeResourceId',
- 'type' => TType::STRING,
- ),
- 2 => array(
- 'var' => 'hostName',
- 'type' => TType::STRING,
- ),
- 3 => array(
- 'var' => 'hostAliases',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 4 => array(
- 'var' => 'ipAddresses',
- 'type' => TType::LST,
- 'etype' => TType::STRING,
- 'elem' => array(
- 'type' => TType::STRING,
- ),
- ),
- 5 => array(
- 'var' => 'resourceDescription',
- 'type' => TType::STRING,
- ),
- 6 => array(
- 'var' => 'enabled',
- 'type' => TType::BOOL,
- ),
- 7 => array(
- 'var' => 'batchQueues',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\AppCatalog\ComputeResource\BatchQueue',
- ),
- ),
- 8 => array(
- 'var' => 'fileSystems',
- 'type' => TType::MAP,
- 'ktype' => TType::I32,
- 'vtype' => TType::STRING,
- 'key' => array(
- 'type' => TType::I32,
- ),
- 'val' => array(
- 'type' => TType::STRING,
- ),
- ),
- 9 => array(
- 'var' => 'jobSubmissionInterfaces',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\AppCatalog\ComputeResource\JobSubmissionInterface',
- ),
- ),
- 10 => array(
- 'var' => 'dataMovementInterfaces',
- 'type' => TType::LST,
- 'etype' => TType::STRUCT,
- 'elem' => array(
- 'type' => TType::STRUCT,
- 'class' => '\Airavata\Model\Data\Movement\DataMovementInterface',
- ),
- ),
- 11 => array(
- 'var' => 'maxMemoryPerNode',
- 'type' => TType::I32,
- ),
- 12 => array(
- 'var' => 'gatewayUsageReporting',
- 'type' => TType::BOOL,
- ),
- 13 => array(
- 'var' => 'gatewayUsageModuleLoadCommand',
- 'type' => TType::STRING,
- ),
- 14 => array(
- 'var' => 'gatewayUsageExecutable',
- 'type' => TType::STRING,
- ),
- 15 => array(
- 'var' => 'cpusPerNode',
- 'type' => TType::I32,
- ),
- 16 => array(
- 'var' => 'defaultNodeCount',
- 'type' => TType::I32,
- ),
- 17 => array(
- 'var' => 'defaultCPUCount',
- 'type' => TType::I32,
- ),
- 18 => array(
- 'var' => 'defaultWalltime',
- 'type' => TType::I32,
- ),
- );
- }
- if (is_array($vals)) {
- if (isset($vals['computeResourceId'])) {
- $this->computeResourceId = $vals['computeResourceId'];
- }
- if (isset($vals['hostName'])) {
- $this->hostName = $vals['hostName'];
- }
- if (isset($vals['hostAliases'])) {
- $this->hostAliases = $vals['hostAliases'];
- }
- if (isset($vals['ipAddresses'])) {
- $this->ipAddresses = $vals['ipAddresses'];
- }
- if (isset($vals['resourceDescription'])) {
- $this->resourceDescription = $vals['resourceDescription'];
- }
- if (isset($vals['enabled'])) {
- $this->enabled = $vals['enabled'];
- }
- if (isset($vals['batchQueues'])) {
- $this->batchQueues = $vals['batchQueues'];
- }
- if (isset($vals['fileSystems'])) {
- $this->fileSystems = $vals['fileSystems'];
- }
- if (isset($vals['jobSubmissionInterfaces'])) {
- $this->jobSubmissionInterfaces = $vals['jobSubmissionInterfaces'];
- }
- if (isset($vals['dataMovementInterfaces'])) {
- $this->dataMovementInterfaces = $vals['dataMovementInterfaces'];
- }
- if (isset($vals['maxMemoryPerNode'])) {
- $this->maxMemoryPerNode = $vals['maxMemoryPerNode'];
- }
- if (isset($vals['gatewayUsageReporting'])) {
- $this->gatewayUsageReporting = $vals['gatewayUsageReporting'];
- }
- if (isset($vals['gatewayUsageModuleLoadCommand'])) {
- $this->gatewayUsageModuleLoadCommand = $vals['gatewayUsageModuleLoadCommand'];
- }
- if (isset($vals['gatewayUsageExecutable'])) {
- $this->gatewayUsageExecutable = $vals['gatewayUsageExecutable'];
- }
- if (isset($vals['cpusPerNode'])) {
- $this->cpusPerNode = $vals['cpusPerNode'];
- }
- if (isset($vals['defaultNodeCount'])) {
- $this->defaultNodeCount = $vals['defaultNodeCount'];
- }
- if (isset($vals['defaultCPUCount'])) {
- $this->defaultCPUCount = $vals['defaultCPUCount'];
- }
- if (isset($vals['defaultWalltime'])) {
- $this->defaultWalltime = $vals['defaultWalltime'];
- }
- }
- }
-
- public function getName() {
- return 'ComputeResourceDescription';
- }
-
- 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->computeResourceId);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 2:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->hostName);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 3:
- if ($ftype == TType::LST) {
- $this->hostAliases = array();
- $_size32 = 0;
- $_etype35 = 0;
- $xfer += $input->readListBegin($_etype35, $_size32);
- for ($_i36 = 0; $_i36 < $_size32; ++$_i36)
- {
- $elem37 = null;
- $xfer += $input->readString($elem37);
- $this->hostAliases []= $elem37;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 4:
- if ($ftype == TType::LST) {
- $this->ipAddresses = array();
- $_size38 = 0;
- $_etype41 = 0;
- $xfer += $input->readListBegin($_etype41, $_size38);
- for ($_i42 = 0; $_i42 < $_size38; ++$_i42)
- {
- $elem43 = null;
- $xfer += $input->readString($elem43);
- $this->ipAddresses []= $elem43;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 5:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->resourceDescription);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 6:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->enabled);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 7:
- if ($ftype == TType::LST) {
- $this->batchQueues = array();
- $_size44 = 0;
- $_etype47 = 0;
- $xfer += $input->readListBegin($_etype47, $_size44);
- for ($_i48 = 0; $_i48 < $_size44; ++$_i48)
- {
- $elem49 = null;
- $elem49 = new \Airavata\Model\AppCatalog\ComputeResource\BatchQueue();
- $xfer += $elem49->read($input);
- $this->batchQueues []= $elem49;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 8:
- if ($ftype == TType::MAP) {
- $this->fileSystems = array();
- $_size50 = 0;
- $_ktype51 = 0;
- $_vtype52 = 0;
- $xfer += $input->readMapBegin($_ktype51, $_vtype52, $_size50);
- for ($_i54 = 0; $_i54 < $_size50; ++$_i54)
- {
- $key55 = 0;
- $val56 = '';
- $xfer += $input->readI32($key55);
- $xfer += $input->readString($val56);
- $this->fileSystems[$key55] = $val56;
- }
- $xfer += $input->readMapEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 9:
- if ($ftype == TType::LST) {
- $this->jobSubmissionInterfaces = array();
- $_size57 = 0;
- $_etype60 = 0;
- $xfer += $input->readListBegin($_etype60, $_size57);
- for ($_i61 = 0; $_i61 < $_size57; ++$_i61)
- {
- $elem62 = null;
- $elem62 = new \Airavata\Model\AppCatalog\ComputeResource\JobSubmissionInterface();
- $xfer += $elem62->read($input);
- $this->jobSubmissionInterfaces []= $elem62;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 10:
- if ($ftype == TType::LST) {
- $this->dataMovementInterfaces = array();
- $_size63 = 0;
- $_etype66 = 0;
- $xfer += $input->readListBegin($_etype66, $_size63);
- for ($_i67 = 0; $_i67 < $_size63; ++$_i67)
- {
- $elem68 = null;
- $elem68 = new \Airavata\Model\Data\Movement\DataMovementInterface();
- $xfer += $elem68->read($input);
- $this->dataMovementInterfaces []= $elem68;
- }
- $xfer += $input->readListEnd();
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 11:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->maxMemoryPerNode);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 12:
- if ($ftype == TType::BOOL) {
- $xfer += $input->readBool($this->gatewayUsageReporting);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 13:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayUsageModuleLoadCommand);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 14:
- if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->gatewayUsageExecutable);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 15:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->cpusPerNode);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 16:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultNodeCount);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 17:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultCPUCount);
- } else {
- $xfer += $input->skip($ftype);
- }
- break;
- case 18:
- if ($ftype == TType::I32) {
- $xfer += $input->readI32($this->defaultWalltime);
- } 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('ComputeResourceDescription');
- if ($this->computeResourceId !== null) {
- $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 1);
- $xfer += $output->writeString($this->computeResourceId);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->hostName !== null) {
- $xfer += $output->writeFieldBegin('hostName', TType::STRING, 2);
- $xfer += $output->writeString($this->hostName);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->hostAliases !== null) {
- if (!is_array($this->hostAliases)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('hostAliases', TType::LST, 3);
- {
- $output->writeListBegin(TType::STRING, count($this->hostAliases));
- {
- foreach ($this->hostAliases as $iter69)
- {
- $xfer += $output->writeString($iter69);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->ipAddresses !== null) {
- if (!is_array($this->ipAddresses)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('ipAddresses', TType::LST, 4);
- {
- $output->writeListBegin(TType::STRING, count($this->ipAddresses));
- {
- foreach ($this->ipAddresses as $iter70)
- {
- $xfer += $output->writeString($iter70);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->resourceDescription !== null) {
- $xfer += $output->writeFieldBegin('resourceDescription', TType::STRING, 5);
- $xfer += $output->writeString($this->resourceDescription);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->enabled !== null) {
- $xfer += $output->writeFieldBegin('enabled', TType::BOOL, 6);
- $xfer += $output->writeBool($this->enabled);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->batchQueues !== null) {
- if (!is_array($this->batchQueues)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('batchQueues', TType::LST, 7);
- {
- $output->writeListBegin(TType::STRUCT, count($this->batchQueues));
- {
- foreach ($this->batchQueues as $iter71)
- {
- $xfer += $iter71->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->fileSystems !== null) {
- if (!is_array($this->fileSystems)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('fileSystems', TType::MAP, 8);
- {
- $output->writeMapBegin(TType::I32, TType::STRING, count($this->fileSystems));
- {
- foreach ($this->fileSystems as $kiter72 => $viter73)
- {
- $xfer += $output->writeI32($kiter72);
- $xfer += $output->writeString($viter73);
- }
- }
- $output->writeMapEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->jobSubmissionInterfaces !== null) {
- if (!is_array($this->jobSubmissionInterfaces)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('jobSubmissionInterfaces', TType::LST, 9);
- {
- $output->writeListBegin(TType::STRUCT, count($this->jobSubmissionInterfaces));
- {
- foreach ($this->jobSubmissionInterfaces as $iter74)
- {
- $xfer += $iter74->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->dataMovementInterfaces !== null) {
- if (!is_array($this->dataMovementInterfaces)) {
- throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
- }
- $xfer += $output->writeFieldBegin('dataMovementInterfaces', TType::LST, 10);
- {
- $output->writeListBegin(TType::STRUCT, count($this->dataMovementInterfaces));
- {
- foreach ($this->dataMovementInterfaces as $iter75)
- {
- $xfer += $iter75->write($output);
- }
- }
- $output->writeListEnd();
- }
- $xfer += $output->writeFieldEnd();
- }
- if ($this->maxMemoryPerNode !== null) {
- $xfer += $output->writeFieldBegin('maxMemoryPerNode', TType::I32, 11);
- $xfer += $output->writeI32($this->maxMemoryPerNode);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->gatewayUsageReporting !== null) {
- $xfer += $output->writeFieldBegin('gatewayUsageReporting', TType::BOOL, 12);
- $xfer += $output->writeBool($this->gatewayUsageReporting);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->gatewayUsageModuleLoadCommand !== null) {
- $xfer += $output->writeFieldBegin('gatewayUsageModuleLoadCommand', TType::STRING, 13);
- $xfer += $output->writeString($this->gatewayUsageModuleLoadCommand);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->gatewayUsageExecutable !== null) {
- $xfer += $output->writeFieldBegin('gatewayUsageExecutable', TType::STRING, 14);
- $xfer += $output->writeString($this->gatewayUsageExecutable);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->cpusPerNode !== null) {
- $xfer += $output->writeFieldBegin('cpusPerNode', TType::I32, 15);
- $xfer += $output->writeI32($this->cpusPerNode);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultNodeCount !== null) {
- $xfer += $output->writeFieldBegin('defaultNodeCount', TType::I32, 16);
- $xfer += $output->writeI32($this->defaultNodeCount);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultCPUCount !== null) {
- $xfer += $output->writeFieldBegin('defaultCPUCount', TType::I32, 17);
- $xfer += $output->writeI32($this->defaultCPUCount);
- $xfer += $output->writeFieldEnd();
- }
- if ($this->defaultWalltime !== null) {
- $xfer += $output->writeFieldBegin('defaultWalltime', TType::I32, 18);
- $xfer += $output->writeI32($this->defaultWalltime);
- $xfer += $output->writeFieldEnd();
- }
- $xfer += $output->writeFieldStop();
- $xfer += $output->writeStructEnd();
- return $xfer;
- }
-
-}
-
-
diff --git a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
index 63e39bc..8340e08 100644
--- a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\GatewayProfile;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php b/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
index e633a53..1b55232 100644
--- a/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
+++ b/app/libraries/Airavata/Model/AppCatalog/Parallelism/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\AppCatalog\Parallelism;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Commons/Types.php b/app/libraries/Airavata/Model/Commons/Types.php
index ecc9532..2f657fe 100644
--- a/app/libraries/Airavata/Model/Commons/Types.php
+++ b/app/libraries/Airavata/Model/Commons/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Commons;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Data/Movement/Types.php b/app/libraries/Airavata/Model/Data/Movement/Types.php
index 274a4a8..6a6c1c1 100644
--- a/app/libraries/Airavata/Model/Data/Movement/Types.php
+++ b/app/libraries/Airavata/Model/Data/Movement/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Data\Movement;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Data/Replica/Types.php b/app/libraries/Airavata/Model/Data/Replica/Types.php
index d6e208e..295c058 100644
--- a/app/libraries/Airavata/Model/Data/Replica/Types.php
+++ b/app/libraries/Airavata/Model/Data/Replica/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Data\Replica;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Dbevent/Types.php b/app/libraries/Airavata/Model/Dbevent/Types.php
index bfbc983..0fa98e4 100644
--- a/app/libraries/Airavata/Model/Dbevent/Types.php
+++ b/app/libraries/Airavata/Model/Dbevent/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Dbevent;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Group/Types.php b/app/libraries/Airavata/Model/Group/Types.php
index ec7a68e..199e8cf 100644
--- a/app/libraries/Airavata/Model/Group/Types.php
+++ b/app/libraries/Airavata/Model/Group/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Group;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Job/Types.php b/app/libraries/Airavata/Model/Job/Types.php
index bb25859..361f278 100644
--- a/app/libraries/Airavata/Model/Job/Types.php
+++ b/app/libraries/Airavata/Model/Job/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Job;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Messaging/Event/Types.php b/app/libraries/Airavata/Model/Messaging/Event/Types.php
index fed31a4..cb6df57 100644
--- a/app/libraries/Airavata/Model/Messaging/Event/Types.php
+++ b/app/libraries/Airavata/Model/Messaging/Event/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Messaging\Event;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Process/Types.php b/app/libraries/Airavata/Model/Process/Types.php
index dc69623..ca80fe5 100644
--- a/app/libraries/Airavata/Model/Process/Types.php
+++ b/app/libraries/Airavata/Model/Process/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Process;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Security/Types.php b/app/libraries/Airavata/Model/Security/Types.php
index f388971..ce71bfc 100644
--- a/app/libraries/Airavata/Model/Security/Types.php
+++ b/app/libraries/Airavata/Model/Security/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Security;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Sharing/Types.php b/app/libraries/Airavata/Model/Sharing/Types.php
new file mode 100644
index 0000000..03722c0
--- /dev/null
+++ b/app/libraries/Airavata/Model/Sharing/Types.php
@@ -0,0 +1,2481 @@
+<?php
+namespace Airavata\Model\Sharing;
+
+/**
+ * Autogenerated by Thrift Compiler (0.10.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ * @generated
+ */
+use Thrift\Base\TBase;
+use Thrift\Type\TType;
+use Thrift\Type\TMessageType;
+use Thrift\Exception\TException;
+use Thrift\Exception\TProtocolException;
+use Thrift\Protocol\TProtocol;
+use Thrift\Protocol\TBinaryProtocolAccelerated;
+use Thrift\Exception\TApplicationException;
+
+
+/**
+ * <p>This is an system internal enum used to define single user groups and multi users groups. Every user is also
+ * considered as a group in it's own right for implementation ease</p>
+ *
+ */
+final class GroupCardinality {
+ const SINGLE_USER = 0;
+ const MULTI_USER = 1;
+ static public $__names = array(
+ 0 => 'SINGLE_USER',
+ 1 => 'MULTI_USER',
+ );
+}
+
+/**
+ * <p>Group types can be either user level or domain level groups.</p>
+ *
+ */
+final class GroupType {
+ const DOMAIN_LEVEL_GROUP = 0;
+ const USER_LEVEL_GROUP = 1;
+ static public $__names = array(
+ 0 => 'DOMAIN_LEVEL_GROUP',
+ 1 => 'USER_LEVEL_GROUP',
+ );
+}
+
+/**
+ * <p>System internal data type to match group child types</p>
+ *
+ */
+final class GroupChildType {
+ const USER = 0;
+ const GROUP = 1;
+ static public $__names = array(
+ 0 => 'USER',
+ 1 => 'GROUP',
+ );
+}
+
+/**
+ * <p>This list of fields that can be used to search entities</p>
+ * <li>NAME : Name of the entity</li>
+ * <li>DESCRIPTION : Description of the entity</li>
+ * <li>FULL_TEXT : Full text field of the entity</li>
+ * <li>PARENT_ENTITY_ID : Parent entity id of the entity</li>
+ * <li>OWNER_ID : Owner of the entity</li>
+ * <li>CREATED_TIME : Created time of the entity</li>
+ * <li>UPDATED_TIME : Updated time of the entity</li>
+ * <li>SHARED_COUNT : Number of directly shared users and groups</li>
+ *
+ */
+final class EntitySearchField {
+ const NAME = 0;
+ const DESCRIPTION = 1;
+ const FULL_TEXT = 2;
+ const PARRENT_ENTITY_ID = 3;
+ const OWNER_ID = 4;
+ const PERMISSION_TYPE_ID = 5;
+ const CREATED_TIME = 6;
+ const UPDATED_TIME = 7;
+ const ENTITY_TYPE_ID = 8;
+ const SHARED_COUNT = 9;
+ static public $__names = array(
+ 0 => 'NAME',
+ 1 => 'DESCRIPTION',
+ 2 => 'FULL_TEXT',
+ 3 => 'PARRENT_ENTITY_ID',
+ 4 => 'OWNER_ID',
+ 5 => 'PERMISSION_TYPE_ID',
+ 6 => 'CREATED_TIME',
+ 7 => 'UPDATED_TIME',
+ 8 => 'ENTITY_TYPE_ID',
+ 9 => 'SHARED_COUNT',
+ );
+}
+
+/**
+ * <p>Different search operators that can be used with the entity search fields</p>
+ * <li>EQUAL : Simply matches for equality. Applicable for name, and parent entity id</li>
+ * <li>LIKE : Check for the condition %$FIELD% condition. Applicable for name, and description</li>
+ * <li>FULL_TEXT : Does a full text search. Only applicable for the FULL_TEXT field.</li>
+ * <li>GTE : Greater than or equal. Only applicable for created time, updated time and shared count.</li>
+ * <li>LTE : Less than or equal. Only applicable for created time, updated time and shared count.</li>
+ *
+ */
+final class SearchCondition {
+ const EQUAL = 0;
+ const LIKE = 1;
+ const FULL_TEXT = 2;
+ const GTE = 3;
+ const LTE = 4;
+ const NOT = 5;
+ static public $__names = array(
+ 0 => 'EQUAL',
+ 1 => 'LIKE',
+ 2 => 'FULL_TEXT',
+ 3 => 'GTE',
+ 4 => 'LTE',
+ 5 => 'NOT',
+ );
+}
+
+/**
+ * <p>This is an internal enum type for managing sharings</p>
+ *
+ */
+final class SharingType {
+ const DIRECT_NON_CASCADING = 0;
+ const DIRECT_CASCADING = 1;
+ const INDIRECT_CASCADING = 2;
+ static public $__names = array(
+ 0 => 'DIRECT_NON_CASCADING',
+ 1 => 'DIRECT_CASCADING',
+ 2 => 'INDIRECT_CASCADING',
+ );
+}
+
+/**
+ * <p>Domain is the entity that enables multi-tenency in this componenet. Every tenant will be
+ * operating separately it's own silo which is identified by the domain id. In the current implementation domain id
+ * will be same as the domain name</p>
+ * <li>domainId : Will be generated by the server based on the domain name</li>
+ * <li><b>name</b> : A single word name that identifies the domain e.g seagrid, ultrascan</li>
+ * <li>description : A short description for the domain</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class Domain {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $domainId = "DO_NOT_SET_AT_CLIENTS_ID";
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 5 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Domain';
+ }
+
+ 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->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Domain');
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 1);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 2);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 3);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 4);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>User is the model used to register a user in the system. Minimal user information will be required to provide
+ * regarding the user.</p>
+ * <li><b>userId</b> : User id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for that user</li>
+ * <li><b>userName</b> : User name for the user</li>
+ * <li><b>firstName</b> : First name of the user</li>
+ * <li><b>lastName</b> : Last name of the user</li>
+ * <li><b>email</b> : Email address of the user</li>
+ * <li>icon : A binary field for storing the user icon</li>
+ * <li>createdTime : If client provides this value then the system will use it if not the current time will be set</li>
+ * <li>updatedTime : If client provides this value then the system will use it if not the current time will be set</li>
+ *
+ */
+class User {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $userId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $userName = null;
+ /**
+ * @var string
+ */
+ public $firstName = null;
+ /**
+ * @var string
+ */
+ public $lastName = null;
+ /**
+ * @var string
+ */
+ public $email = null;
+ /**
+ * @var string
+ */
+ public $icon = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'userId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'userName',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'firstName',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'lastName',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'email',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'icon',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 9 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['userId'])) {
+ $this->userId = $vals['userId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['userName'])) {
+ $this->userName = $vals['userName'];
+ }
+ if (isset($vals['firstName'])) {
+ $this->firstName = $vals['firstName'];
+ }
+ if (isset($vals['lastName'])) {
+ $this->lastName = $vals['lastName'];
+ }
+ if (isset($vals['email'])) {
+ $this->email = $vals['email'];
+ }
+ if (isset($vals['icon'])) {
+ $this->icon = $vals['icon'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'User';
+ }
+
+ 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->userId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } 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->firstName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->lastName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->email);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->icon);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('User');
+ if ($this->userId !== null) {
+ $xfer += $output->writeFieldBegin('userId', TType::STRING, 1);
+ $xfer += $output->writeString($this->userId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->userName !== null) {
+ $xfer += $output->writeFieldBegin('userName', TType::STRING, 3);
+ $xfer += $output->writeString($this->userName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->firstName !== null) {
+ $xfer += $output->writeFieldBegin('firstName', TType::STRING, 4);
+ $xfer += $output->writeString($this->firstName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->lastName !== null) {
+ $xfer += $output->writeFieldBegin('lastName', TType::STRING, 5);
+ $xfer += $output->writeString($this->lastName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->email !== null) {
+ $xfer += $output->writeFieldBegin('email', TType::STRING, 6);
+ $xfer += $output->writeString($this->email);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->icon !== null) {
+ $xfer += $output->writeFieldBegin('icon', TType::STRING, 7);
+ $xfer += $output->writeString($this->icon);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 9);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+class GroupAdmin {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $adminId = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'adminId',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['adminId'])) {
+ $this->adminId = $vals['adminId'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupAdmin';
+ }
+
+ 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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->adminId);
+ } 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('GroupAdmin');
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 1);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->adminId !== null) {
+ $xfer += $output->writeFieldBegin('adminId', TType::STRING, 3);
+ $xfer += $output->writeString($this->adminId);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>User group is a collection of users.</p>
+ * <li><b>groupId</b> : Group id provided by the client</li>
+ * <li><b>domainId</b> : Domain id for this user group</li>
+ * <li><b>name</b> : Name for the user group. should be one word</li>
+ * <li>description : Short description for the group.</li>
+ * <li><b>ownerId</b> : Owner id of this group.</li>
+ * <li><b>groupType</b> : Group type (DOMAIN_LEVEL_GROUP, USER_LEVEL_GROUP)</li>
+ * <li><b>groupCardinality</b> : Group cardinality (SINGLE_USER, MULTI_USER)</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class UserGroup {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+ /**
+ * @var int
+ */
+ public $groupType = null;
+ /**
+ * @var int
+ */
+ public $groupCardinality = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'groupType',
+ 'type' => TType::I32,
+ ),
+ 7 => array(
+ 'var' => 'groupCardinality',
+ 'type' => TType::I32,
+ ),
+ 8 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 9 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ if (isset($vals['groupType'])) {
+ $this->groupType = $vals['groupType'];
+ }
+ if (isset($vals['groupCardinality'])) {
+ $this->groupCardinality = $vals['groupCardinality'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'UserGroup';
+ }
+
+ 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->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->groupType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->groupCardinality);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('UserGroup');
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 1);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 5);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupType !== null) {
+ $xfer += $output->writeFieldBegin('groupType', TType::I32, 6);
+ $xfer += $output->writeI32($this->groupType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupCardinality !== null) {
+ $xfer += $output->writeFieldBegin('groupCardinality', TType::I32, 7);
+ $xfer += $output->writeI32($this->groupCardinality);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 9);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>System internal data type to map group memberships</p>
+ *
+ */
+class GroupMembership {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $parentId = null;
+ /**
+ * @var string
+ */
+ public $childId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var int
+ */
+ public $childType = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'parentId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'childId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'childType',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['parentId'])) {
+ $this->parentId = $vals['parentId'];
+ }
+ if (isset($vals['childId'])) {
+ $this->childId = $vals['childId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['childType'])) {
+ $this->childType = $vals['childType'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'GroupMembership';
+ }
+
+ 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->parentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->childId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->childType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('GroupMembership');
+ if ($this->parentId !== null) {
+ $xfer += $output->writeFieldBegin('parentId', TType::STRING, 1);
+ $xfer += $output->writeString($this->parentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childId !== null) {
+ $xfer += $output->writeFieldBegin('childId', TType::STRING, 2);
+ $xfer += $output->writeString($this->childId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 3);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->childType !== null) {
+ $xfer += $output->writeFieldBegin('childType', TType::I32, 4);
+ $xfer += $output->writeI32($this->childType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>client defined entity types</p>
+ * <li><b>entityTypeId</b> : Entity type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id of the domain.</li>
+ * <li><b>name</b> : Name for the entity type. Should be a single word.</li>
+ * <li>description : Short description for the entity type.</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class EntityType {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'EntityType';
+ }
+
+ 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->entityTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('EntityType');
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Container object for search criteria</p>
+ * <li><b>searchField</b> : Entity search field</li>
+ * <li><b>value</b> : Search value</li>
+ * <li><b>searchCondition</b> : EQUAL, LIKE etc..</li>
+ *
+ */
+class SearchCriteria {
+ static $_TSPEC;
+
+ /**
+ * @var int
+ */
+ public $searchField = null;
+ /**
+ * @var string
+ */
+ public $value = null;
+ /**
+ * @var int
+ */
+ public $searchCondition = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'searchField',
+ 'type' => TType::I32,
+ ),
+ 2 => array(
+ 'var' => 'value',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'searchCondition',
+ 'type' => TType::I32,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['searchField'])) {
+ $this->searchField = $vals['searchField'];
+ }
+ if (isset($vals['value'])) {
+ $this->value = $vals['value'];
+ }
+ if (isset($vals['searchCondition'])) {
+ $this->searchCondition = $vals['searchCondition'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SearchCriteria';
+ }
+
+ 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::I32) {
+ $xfer += $input->readI32($this->searchField);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->value);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->searchCondition);
+ } 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('SearchCriteria');
+ if ($this->searchField !== null) {
+ $xfer += $output->writeFieldBegin('searchField', TType::I32, 1);
+ $xfer += $output->writeI32($this->searchField);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->value !== null) {
+ $xfer += $output->writeFieldBegin('value', TType::STRING, 2);
+ $xfer += $output->writeString($this->value);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->searchCondition !== null) {
+ $xfer += $output->writeFieldBegin('searchCondition', TType::I32, 3);
+ $xfer += $output->writeI32($this->searchCondition);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Entity object which is used to register an entity in the system.</p>
+ * <li><b>entityId</b> : Entity id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>entityTypeId</b> : Entity type id</li>
+ * <li><b>ownerId</b> : Owner id</li>
+ * <li>parentEntityId : Parent entity id</li>
+ * <li><b>name</b> : Name</li>
+ * <li>description : Short description for the entity</li>
+ * <li>binaryData : Any information stored in binary format</li>
+ * <li>fullText : A string which will be considered for full text search</li>
+ * <li><b>originalEntityCreationTime</b> : When registering old records what is the original entity creation time. If not
+ * set will be default to current time</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class Entity {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $entityTypeId = null;
+ /**
+ * @var string
+ */
+ public $ownerId = null;
+ /**
+ * @var string
+ */
+ public $parentEntityId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $binaryData = null;
+ /**
+ * @var string
+ */
+ public $fullText = null;
+ /**
+ * @var int
+ */
+ public $sharedCount = 0;
+ /**
+ * @var int
+ */
+ public $originalEntityCreationTime = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'entityTypeId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'ownerId',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'parentEntityId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'binaryData',
+ 'type' => TType::STRING,
+ ),
+ 9 => array(
+ 'var' => 'fullText',
+ 'type' => TType::STRING,
+ ),
+ 10 => array(
+ 'var' => 'sharedCount',
+ 'type' => TType::I64,
+ ),
+ 11 => array(
+ 'var' => 'originalEntityCreationTime',
+ 'type' => TType::I64,
+ ),
+ 12 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 13 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['entityTypeId'])) {
+ $this->entityTypeId = $vals['entityTypeId'];
+ }
+ if (isset($vals['ownerId'])) {
+ $this->ownerId = $vals['ownerId'];
+ }
+ if (isset($vals['parentEntityId'])) {
+ $this->parentEntityId = $vals['parentEntityId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['binaryData'])) {
+ $this->binaryData = $vals['binaryData'];
+ }
+ if (isset($vals['fullText'])) {
+ $this->fullText = $vals['fullText'];
+ }
+ if (isset($vals['sharedCount'])) {
+ $this->sharedCount = $vals['sharedCount'];
+ }
+ if (isset($vals['originalEntityCreationTime'])) {
+ $this->originalEntityCreationTime = $vals['originalEntityCreationTime'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Entity';
+ }
+
+ 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->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->ownerId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->parentEntityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->binaryData);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->fullText);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->sharedCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 11:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->originalEntityCreationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 12:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 13:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Entity');
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 1);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityTypeId !== null) {
+ $xfer += $output->writeFieldBegin('entityTypeId', TType::STRING, 3);
+ $xfer += $output->writeString($this->entityTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->ownerId !== null) {
+ $xfer += $output->writeFieldBegin('ownerId', TType::STRING, 4);
+ $xfer += $output->writeString($this->ownerId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->parentEntityId !== null) {
+ $xfer += $output->writeFieldBegin('parentEntityId', TType::STRING, 5);
+ $xfer += $output->writeString($this->parentEntityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 6);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 7);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->binaryData !== null) {
+ $xfer += $output->writeFieldBegin('binaryData', TType::STRING, 8);
+ $xfer += $output->writeString($this->binaryData);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->fullText !== null) {
+ $xfer += $output->writeFieldBegin('fullText', TType::STRING, 9);
+ $xfer += $output->writeString($this->fullText);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sharedCount !== null) {
+ $xfer += $output->writeFieldBegin('sharedCount', TType::I64, 10);
+ $xfer += $output->writeI64($this->sharedCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->originalEntityCreationTime !== null) {
+ $xfer += $output->writeFieldBegin('originalEntityCreationTime', TType::I64, 11);
+ $xfer += $output->writeI64($this->originalEntityCreationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 12);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 13);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Object for creating client defined permission type</p>
+ * <li><b>permissionTypeId</b> : Permission type id provided by the client</li>
+ * <li><b>domainId</b> : Domain id</li>
+ * <li><b>name</b> : Single word name for the permission</li>
+ * <li>description : Short description for the permission type</li>
+ * <li>createdTime : Will be set by the system</li>
+ * <li>updatedTime : Will be set by the system</li>
+ *
+ */
+class PermissionType {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 6 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'PermissionType';
+ }
+
+ 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->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('PermissionType');
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 2);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 5);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 6);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>This is an internal enum type for managing sharings</p>
+ *
+ */
+class Sharing {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $permissionTypeId = null;
+ /**
+ * @var string
+ */
+ public $entityId = null;
+ /**
+ * @var string
+ */
+ public $groupId = null;
+ /**
+ * @var int
+ */
+ public $sharingType = null;
+ /**
+ * @var string
+ */
+ public $domainId = null;
+ /**
+ * @var string
+ */
+ public $inheritedParentId = null;
+ /**
+ * @var int
+ */
+ public $createdTime = null;
+ /**
+ * @var int
+ */
+ public $updatedTime = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'permissionTypeId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'entityId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'groupId',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'sharingType',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'domainId',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'inheritedParentId',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'createdTime',
+ 'type' => TType::I64,
+ ),
+ 8 => array(
+ 'var' => 'updatedTime',
+ 'type' => TType::I64,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['permissionTypeId'])) {
+ $this->permissionTypeId = $vals['permissionTypeId'];
+ }
+ if (isset($vals['entityId'])) {
+ $this->entityId = $vals['entityId'];
+ }
+ if (isset($vals['groupId'])) {
+ $this->groupId = $vals['groupId'];
+ }
+ if (isset($vals['sharingType'])) {
+ $this->sharingType = $vals['sharingType'];
+ }
+ if (isset($vals['domainId'])) {
+ $this->domainId = $vals['domainId'];
+ }
+ if (isset($vals['inheritedParentId'])) {
+ $this->inheritedParentId = $vals['inheritedParentId'];
+ }
+ if (isset($vals['createdTime'])) {
+ $this->createdTime = $vals['createdTime'];
+ }
+ if (isset($vals['updatedTime'])) {
+ $this->updatedTime = $vals['updatedTime'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'Sharing';
+ }
+
+ 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->permissionTypeId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->entityId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->groupId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->sharingType);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->domainId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->inheritedParentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->createdTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::I64) {
+ $xfer += $input->readI64($this->updatedTime);
+ } 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('Sharing');
+ if ($this->permissionTypeId !== null) {
+ $xfer += $output->writeFieldBegin('permissionTypeId', TType::STRING, 1);
+ $xfer += $output->writeString($this->permissionTypeId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->entityId !== null) {
+ $xfer += $output->writeFieldBegin('entityId', TType::STRING, 2);
+ $xfer += $output->writeString($this->entityId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->groupId !== null) {
+ $xfer += $output->writeFieldBegin('groupId', TType::STRING, 3);
+ $xfer += $output->writeString($this->groupId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->sharingType !== null) {
+ $xfer += $output->writeFieldBegin('sharingType', TType::I32, 4);
+ $xfer += $output->writeI32($this->sharingType);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->domainId !== null) {
+ $xfer += $output->writeFieldBegin('domainId', TType::STRING, 5);
+ $xfer += $output->writeString($this->domainId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->inheritedParentId !== null) {
+ $xfer += $output->writeFieldBegin('inheritedParentId', TType::STRING, 6);
+ $xfer += $output->writeString($this->inheritedParentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->createdTime !== null) {
+ $xfer += $output->writeFieldBegin('createdTime', TType::I64, 7);
+ $xfer += $output->writeI64($this->createdTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->updatedTime !== null) {
+ $xfer += $output->writeFieldBegin('updatedTime', TType::I64, 8);
+ $xfer += $output->writeI64($this->updatedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * <p>Exception model used in the sharing registry service</p>
+ *
+ */
+class SharingRegistryException extends TException {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $message = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'message',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['message'])) {
+ $this->message = $vals['message'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'SharingRegistryException';
+ }
+
+ 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->message);
+ } 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('SharingRegistryException');
+ if ($this->message !== null) {
+ $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
+ $xfer += $output->writeString($this->message);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
+ * This exception is thrown when you try to save a duplicate entity that already exists
+ * in the database.
+ *
+ * message: contains the associated error message
+ *
+ */
+class DuplicateEntryException extends TException {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $message = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'message',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['message'])) {
+ $this->message = $vals['message'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'DuplicateEntryException';
+ }
+
+ 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->message);
+ } 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('DuplicateEntryException');
+ if ($this->message !== null) {
+ $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
+ $xfer += $output->writeString($this->message);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+final class Constant extends \Thrift\Type\TConstant {
+ static protected $DO_NOT_SET_AT_CLIENTS_ID;
+
+ static protected function init_DO_NOT_SET_AT_CLIENTS_ID() {
+ return "DO_NOT_SET_AT_CLIENTS_ID";
+ }
+}
+
+
diff --git a/app/libraries/Airavata/Model/Status/Types.php b/app/libraries/Airavata/Model/Status/Types.php
index 0a0a23b..6e727e6 100644
--- a/app/libraries/Airavata/Model/Status/Types.php
+++ b/app/libraries/Airavata/Model/Status/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Status;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -97,6 +97,7 @@
const FAILED = 5;
const SUSPENDED = 6;
const UNKNOWN = 7;
+ const NON_CRITICAL_FAIL = 8;
static public $__names = array(
0 => 'SUBMITTED',
1 => 'QUEUED',
@@ -106,6 +107,7 @@
5 => 'FAILED',
6 => 'SUSPENDED',
7 => 'UNKNOWN',
+ 8 => 'NON_CRITICAL_FAIL',
);
}
diff --git a/app/libraries/Airavata/Model/Task/Types.php b/app/libraries/Airavata/Model/Task/Types.php
index 202fde8..5691abf 100644
--- a/app/libraries/Airavata/Model/Task/Types.php
+++ b/app/libraries/Airavata/Model/Task/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Task;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Tenant/Types.php b/app/libraries/Airavata/Model/Tenant/Types.php
index c1ad4ec..84efc01 100644
--- a/app/libraries/Airavata/Model/Tenant/Types.php
+++ b/app/libraries/Airavata/Model/Tenant/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Tenant;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/Types.php b/app/libraries/Airavata/Model/Types.php
index 71d3e01..bbd041b 100644
--- a/app/libraries/Airavata/Model/Types.php
+++ b/app/libraries/Airavata/Model/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
diff --git a/app/libraries/Airavata/Model/User/Types.php b/app/libraries/Airavata/Model/User/Types.php
index 493b615..3629b51 100644
--- a/app/libraries/Airavata/Model/User/Types.php
+++ b/app/libraries/Airavata/Model/User/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\User;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -396,6 +396,638 @@
}
/**
+ * A structure holding the cutomized admin dashboard information.
+ *
+ *
+ */
+class CustomDashboard {
+ static $_TSPEC;
+
+ /**
+ * @var string
+ */
+ public $airavataInternalUserId = "DO_NOT_SET_AT_CLIENTS";
+ /**
+ * @var string
+ */
+ public $experimentId = null;
+ /**
+ * @var string
+ */
+ public $name = null;
+ /**
+ * @var string
+ */
+ public $description = null;
+ /**
+ * @var string
+ */
+ public $project = null;
+ /**
+ * @var string
+ */
+ public $owner = null;
+ /**
+ * @var string
+ */
+ public $application = null;
+ /**
+ * @var string
+ */
+ public $computeResource = null;
+ /**
+ * @var string
+ */
+ public $jobName = null;
+ /**
+ * @var string
+ */
+ public $jobId = null;
+ /**
+ * @var string
+ */
+ public $jobStatus = null;
+ /**
+ * @var string
+ */
+ public $jobCreationTime = null;
+ /**
+ * @var string
+ */
+ public $notificationsTo = null;
+ /**
+ * @var string
+ */
+ public $workingDir = null;
+ /**
+ * @var string
+ */
+ public $jobDescription = null;
+ /**
+ * @var string
+ */
+ public $creationTime = null;
+ /**
+ * @var string
+ */
+ public $lastModifiedTime = null;
+ /**
+ * @var string
+ */
+ public $wallTime = null;
+ /**
+ * @var string
+ */
+ public $cpuCount = null;
+ /**
+ * @var string
+ */
+ public $nodeCount = null;
+ /**
+ * @var string
+ */
+ public $queue = null;
+ /**
+ * @var string
+ */
+ public $inputs = null;
+ /**
+ * @var string
+ */
+ public $outputs = null;
+ /**
+ * @var string
+ */
+ public $storageDir = null;
+ /**
+ * @var string
+ */
+ public $errors = null;
+
+ public function __construct($vals=null) {
+ if (!isset(self::$_TSPEC)) {
+ self::$_TSPEC = array(
+ 1 => array(
+ 'var' => 'airavataInternalUserId',
+ 'type' => TType::STRING,
+ ),
+ 2 => array(
+ 'var' => 'experimentId',
+ 'type' => TType::STRING,
+ ),
+ 3 => array(
+ 'var' => 'name',
+ 'type' => TType::STRING,
+ ),
+ 4 => array(
+ 'var' => 'description',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
+ 'var' => 'project',
+ 'type' => TType::STRING,
+ ),
+ 6 => array(
+ 'var' => 'owner',
+ 'type' => TType::STRING,
+ ),
+ 7 => array(
+ 'var' => 'application',
+ 'type' => TType::STRING,
+ ),
+ 8 => array(
+ 'var' => 'computeResource',
+ 'type' => TType::STRING,
+ ),
+ 9 => array(
+ 'var' => 'jobName',
+ 'type' => TType::STRING,
+ ),
+ 10 => array(
+ 'var' => 'jobId',
+ 'type' => TType::STRING,
+ ),
+ 11 => array(
+ 'var' => 'jobStatus',
+ 'type' => TType::STRING,
+ ),
+ 12 => array(
+ 'var' => 'jobCreationTime',
+ 'type' => TType::STRING,
+ ),
+ 13 => array(
+ 'var' => 'notificationsTo',
+ 'type' => TType::STRING,
+ ),
+ 14 => array(
+ 'var' => 'workingDir',
+ 'type' => TType::STRING,
+ ),
+ 15 => array(
+ 'var' => 'jobDescription',
+ 'type' => TType::STRING,
+ ),
+ 16 => array(
+ 'var' => 'creationTime',
+ 'type' => TType::STRING,
+ ),
+ 17 => array(
+ 'var' => 'lastModifiedTime',
+ 'type' => TType::STRING,
+ ),
+ 18 => array(
+ 'var' => 'wallTime',
+ 'type' => TType::STRING,
+ ),
+ 19 => array(
+ 'var' => 'cpuCount',
+ 'type' => TType::STRING,
+ ),
+ 20 => array(
+ 'var' => 'nodeCount',
+ 'type' => TType::STRING,
+ ),
+ 21 => array(
+ 'var' => 'queue',
+ 'type' => TType::STRING,
+ ),
+ 22 => array(
+ 'var' => 'inputs',
+ 'type' => TType::STRING,
+ ),
+ 23 => array(
+ 'var' => 'outputs',
+ 'type' => TType::STRING,
+ ),
+ 24 => array(
+ 'var' => 'storageDir',
+ 'type' => TType::STRING,
+ ),
+ 25 => array(
+ 'var' => 'errors',
+ 'type' => TType::STRING,
+ ),
+ );
+ }
+ if (is_array($vals)) {
+ if (isset($vals['airavataInternalUserId'])) {
+ $this->airavataInternalUserId = $vals['airavataInternalUserId'];
+ }
+ if (isset($vals['experimentId'])) {
+ $this->experimentId = $vals['experimentId'];
+ }
+ if (isset($vals['name'])) {
+ $this->name = $vals['name'];
+ }
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['project'])) {
+ $this->project = $vals['project'];
+ }
+ if (isset($vals['owner'])) {
+ $this->owner = $vals['owner'];
+ }
+ if (isset($vals['application'])) {
+ $this->application = $vals['application'];
+ }
+ if (isset($vals['computeResource'])) {
+ $this->computeResource = $vals['computeResource'];
+ }
+ if (isset($vals['jobName'])) {
+ $this->jobName = $vals['jobName'];
+ }
+ if (isset($vals['jobId'])) {
+ $this->jobId = $vals['jobId'];
+ }
+ if (isset($vals['jobStatus'])) {
+ $this->jobStatus = $vals['jobStatus'];
+ }
+ if (isset($vals['jobCreationTime'])) {
+ $this->jobCreationTime = $vals['jobCreationTime'];
+ }
+ if (isset($vals['notificationsTo'])) {
+ $this->notificationsTo = $vals['notificationsTo'];
+ }
+ if (isset($vals['workingDir'])) {
+ $this->workingDir = $vals['workingDir'];
+ }
+ if (isset($vals['jobDescription'])) {
+ $this->jobDescription = $vals['jobDescription'];
+ }
+ if (isset($vals['creationTime'])) {
+ $this->creationTime = $vals['creationTime'];
+ }
+ if (isset($vals['lastModifiedTime'])) {
+ $this->lastModifiedTime = $vals['lastModifiedTime'];
+ }
+ if (isset($vals['wallTime'])) {
+ $this->wallTime = $vals['wallTime'];
+ }
+ if (isset($vals['cpuCount'])) {
+ $this->cpuCount = $vals['cpuCount'];
+ }
+ if (isset($vals['nodeCount'])) {
+ $this->nodeCount = $vals['nodeCount'];
+ }
+ if (isset($vals['queue'])) {
+ $this->queue = $vals['queue'];
+ }
+ if (isset($vals['inputs'])) {
+ $this->inputs = $vals['inputs'];
+ }
+ if (isset($vals['outputs'])) {
+ $this->outputs = $vals['outputs'];
+ }
+ if (isset($vals['storageDir'])) {
+ $this->storageDir = $vals['storageDir'];
+ }
+ if (isset($vals['errors'])) {
+ $this->errors = $vals['errors'];
+ }
+ }
+ }
+
+ public function getName() {
+ return 'CustomDashboard';
+ }
+
+ 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->airavataInternalUserId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 2:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->experimentId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 3:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->name);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->project);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->owner);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 7:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->application);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 8:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->computeResource);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 9:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 10:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobId);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 11:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobStatus);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 12:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobCreationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 13:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->notificationsTo);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 14:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->workingDir);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 15:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->jobDescription);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 16:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->creationTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 17:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->lastModifiedTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 18:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->wallTime);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 19:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->cpuCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 20:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->nodeCount);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 21:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->queue);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 22:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->inputs);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 23:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->outputs);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 24:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->storageDir);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 25:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->errors);
+ } 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('CustomDashboard');
+ if ($this->airavataInternalUserId !== null) {
+ $xfer += $output->writeFieldBegin('airavataInternalUserId', TType::STRING, 1);
+ $xfer += $output->writeString($this->airavataInternalUserId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->experimentId !== null) {
+ $xfer += $output->writeFieldBegin('experimentId', TType::STRING, 2);
+ $xfer += $output->writeString($this->experimentId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->name !== null) {
+ $xfer += $output->writeFieldBegin('name', TType::STRING, 3);
+ $xfer += $output->writeString($this->name);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->description !== null) {
+ $xfer += $output->writeFieldBegin('description', TType::STRING, 4);
+ $xfer += $output->writeString($this->description);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->project !== null) {
+ $xfer += $output->writeFieldBegin('project', TType::STRING, 5);
+ $xfer += $output->writeString($this->project);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->owner !== null) {
+ $xfer += $output->writeFieldBegin('owner', TType::STRING, 6);
+ $xfer += $output->writeString($this->owner);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->application !== null) {
+ $xfer += $output->writeFieldBegin('application', TType::STRING, 7);
+ $xfer += $output->writeString($this->application);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->computeResource !== null) {
+ $xfer += $output->writeFieldBegin('computeResource', TType::STRING, 8);
+ $xfer += $output->writeString($this->computeResource);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobName !== null) {
+ $xfer += $output->writeFieldBegin('jobName', TType::STRING, 9);
+ $xfer += $output->writeString($this->jobName);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobId !== null) {
+ $xfer += $output->writeFieldBegin('jobId', TType::STRING, 10);
+ $xfer += $output->writeString($this->jobId);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobStatus !== null) {
+ $xfer += $output->writeFieldBegin('jobStatus', TType::STRING, 11);
+ $xfer += $output->writeString($this->jobStatus);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobCreationTime !== null) {
+ $xfer += $output->writeFieldBegin('jobCreationTime', TType::STRING, 12);
+ $xfer += $output->writeString($this->jobCreationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->notificationsTo !== null) {
+ $xfer += $output->writeFieldBegin('notificationsTo', TType::STRING, 13);
+ $xfer += $output->writeString($this->notificationsTo);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->workingDir !== null) {
+ $xfer += $output->writeFieldBegin('workingDir', TType::STRING, 14);
+ $xfer += $output->writeString($this->workingDir);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->jobDescription !== null) {
+ $xfer += $output->writeFieldBegin('jobDescription', TType::STRING, 15);
+ $xfer += $output->writeString($this->jobDescription);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->creationTime !== null) {
+ $xfer += $output->writeFieldBegin('creationTime', TType::STRING, 16);
+ $xfer += $output->writeString($this->creationTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->lastModifiedTime !== null) {
+ $xfer += $output->writeFieldBegin('lastModifiedTime', TType::STRING, 17);
+ $xfer += $output->writeString($this->lastModifiedTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->wallTime !== null) {
+ $xfer += $output->writeFieldBegin('wallTime', TType::STRING, 18);
+ $xfer += $output->writeString($this->wallTime);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->cpuCount !== null) {
+ $xfer += $output->writeFieldBegin('cpuCount', TType::STRING, 19);
+ $xfer += $output->writeString($this->cpuCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->nodeCount !== null) {
+ $xfer += $output->writeFieldBegin('nodeCount', TType::STRING, 20);
+ $xfer += $output->writeString($this->nodeCount);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->queue !== null) {
+ $xfer += $output->writeFieldBegin('queue', TType::STRING, 21);
+ $xfer += $output->writeString($this->queue);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->inputs !== null) {
+ $xfer += $output->writeFieldBegin('inputs', TType::STRING, 22);
+ $xfer += $output->writeString($this->inputs);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->outputs !== null) {
+ $xfer += $output->writeFieldBegin('outputs', TType::STRING, 23);
+ $xfer += $output->writeString($this->outputs);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->storageDir !== null) {
+ $xfer += $output->writeFieldBegin('storageDir', TType::STRING, 24);
+ $xfer += $output->writeString($this->storageDir);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->errors !== null) {
+ $xfer += $output->writeFieldBegin('errors', TType::STRING, 25);
+ $xfer += $output->writeString($this->errors);
+ $xfer += $output->writeFieldEnd();
+ }
+ $xfer += $output->writeFieldStop();
+ $xfer += $output->writeStructEnd();
+ return $xfer;
+ }
+
+}
+
+/**
* * A structure holding the user profile and its child models.
* *
* * Notes:
@@ -556,6 +1188,10 @@
* @var \Airavata\Model\User\NSFDemographics
*/
public $nsfDemographics = null;
+ /**
+ * @var \Airavata\Model\User\CustomDashboard
+ */
+ public $customDashboard = null;
public function __construct($vals=null) {
if (!isset(self::$_TSPEC)) {
@@ -677,6 +1313,11 @@
'type' => TType::STRUCT,
'class' => '\Airavata\Model\User\NSFDemographics',
),
+ 26 => array(
+ 'var' => 'customDashboard',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\Model\User\CustomDashboard',
+ ),
);
}
if (is_array($vals)) {
@@ -755,6 +1396,9 @@
if (isset($vals['nsfDemographics'])) {
$this->nsfDemographics = $vals['nsfDemographics'];
}
+ if (isset($vals['customDashboard'])) {
+ $this->customDashboard = $vals['customDashboard'];
+ }
}
}
@@ -993,6 +1637,14 @@
$xfer += $input->skip($ftype);
}
break;
+ case 26:
+ if ($ftype == TType::STRUCT) {
+ $this->customDashboard = new \Airavata\Model\User\CustomDashboard();
+ $xfer += $this->customDashboard->read($input);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -1182,6 +1834,14 @@
$xfer += $this->nsfDemographics->write($output);
$xfer += $output->writeFieldEnd();
}
+ if ($this->customDashboard !== null) {
+ if (!is_object($this->customDashboard)) {
+ throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+ }
+ $xfer += $output->writeFieldBegin('customDashboard', TType::STRUCT, 26);
+ $xfer += $this->customDashboard->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
diff --git a/app/libraries/Airavata/Model/Workspace/Types.php b/app/libraries/Airavata/Model/Workspace/Types.php
index 850778a..8a2f3cb 100644
--- a/app/libraries/Airavata/Model/Workspace/Types.php
+++ b/app/libraries/Airavata/Model/Workspace/Types.php
@@ -2,7 +2,7 @@
namespace Airavata\Model\Workspace;
/**
- * Autogenerated by Thrift Compiler (0.9.3)
+ * Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated