blob: e64311589415b187bae03fd4c672f58248f8bb1a [file] [log] [blame]
<?php
namespace Airavata\Service\Profile\Groupmanager\CPI;
/**
* 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 GroupManagerServiceIf {
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param \Airavata\Model\Group\GroupModel $groupModel
* @return string
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @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\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @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\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @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\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @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\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $groupId
* @param string $newOwnerId
* @return bool
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $groupId
* @param string[] $adminIds
* @return bool
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $groupId
* @param string[] $adminIds
* @return bool
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $groupId
* @param string $adminId
* @return bool
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId);
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param string $groupId
* @param string $ownerId
* @return bool
* @throws \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
* @throws \Airavata\API\Error\AuthorizationException
*/
public function hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
}
class GroupManagerServiceClient implements \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerServiceIf {
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 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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_createGroup_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_updateGroup_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_deleteGroup_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_getGroup_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_getAllGroupsUserBelongs_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("getAllGroupsUserBelongs failed: unknown result");
}
public function transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId)
{
$this->send_transferGroupOwnership($authzToken, $groupId, $newOwnerId);
return $this->recv_transferGroupOwnership();
}
public function send_transferGroupOwnership(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $newOwnerId)
{
$args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_transferGroupOwnership_args();
$args->authzToken = $authzToken;
$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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_transferGroupOwnership_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("transferGroupOwnership failed: unknown result");
}
public function addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
{
$this->send_addGroupAdmins($authzToken, $groupId, $adminIds);
return $this->recv_addGroupAdmins();
}
public function send_addGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
{
$args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_addGroupAdmins_args();
$args->authzToken = $authzToken;
$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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_addGroupAdmins_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("addGroupAdmins failed: unknown result");
}
public function removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
{
$this->send_removeGroupAdmins($authzToken, $groupId, $adminIds);
return $this->recv_removeGroupAdmins();
}
public function send_removeGroupAdmins(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, array $adminIds)
{
$args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_removeGroupAdmins_args();
$args->authzToken = $authzToken;
$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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_removeGroupAdmins_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("removeGroupAdmins failed: unknown result");
}
public function hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId)
{
$this->send_hasAdminAccess($authzToken, $groupId, $adminId);
return $this->recv_hasAdminAccess();
}
public function send_hasAdminAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $adminId)
{
$args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasAdminAccess_args();
$args->authzToken = $authzToken;
$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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_hasAdminAccess_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("hasAdminAccess failed: unknown result");
}
public function hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
{
$this->send_hasOwnerAccess($authzToken, $groupId, $ownerId);
return $this->recv_hasOwnerAccess();
}
public function send_hasOwnerAccess(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
{
$args = new \Airavata\Service\Profile\Groupmanager\CPI\GroupManagerService_hasOwnerAccess_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_, '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\Service\Profile\Groupmanager\CPI\GroupManagerService_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\Service\Profile\Groupmanager\CPI\GroupManagerService_hasOwnerAccess_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
if ($result->success !== null) {
return $result->success;
}
if ($result->gse !== null) {
throw $result->gse;
}
if ($result->ae !== null) {
throw $result->ae;
}
throw new \Exception("hasOwnerAccess failed: unknown result");
}
}
// HELPER FUNCTIONS AND STRUCTURES
class GroupManagerService_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 'GroupManagerService_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('GroupManagerService_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 GroupManagerService_createGroup_result {
static $_TSPEC;
/**
* @var string
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_createGroup_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::STRING, 0);
$xfer += $output->writeString($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_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 'GroupManagerService_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('GroupManagerService_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 GroupManagerService_updateGroup_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_updateGroup_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_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 'GroupManagerService_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('GroupManagerService_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 GroupManagerService_deleteGroup_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_deleteGroup_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_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 'GroupManagerService_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('GroupManagerService_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 GroupManagerService_getGroup_result {
static $_TSPEC;
/**
* @var \Airavata\Model\Group\GroupModel
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_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->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_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 'GroupManagerService_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('GroupManagerService_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 GroupManagerService_getAllGroupsUserBelongs_result {
static $_TSPEC;
/**
* @var \Airavata\Model\Group\GroupModel[]
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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();
$_size0 = 0;
$_etype3 = 0;
$xfer += $input->readListBegin($_etype3, $_size0);
for ($_i4 = 0; $_i4 < $_size0; ++$_i4)
{
$elem5 = null;
$elem5 = new \Airavata\Model\Group\GroupModel();
$xfer += $elem5->read($input);
$this->success []= $elem5;
}
$xfer += $input->readListEnd();
} else {
$xfer += $input->skip($ftype);
}
break;
case 1:
if ($ftype == TType::STRUCT) {
$this->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_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 $iter6)
{
$xfer += $iter6->write($output);
}
}
$output->writeListEnd();
}
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_transferGroupOwnership_args {
static $_TSPEC;
/**
* @var \Airavata\Model\Security\AuthzToken
*/
public $authzToken = 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' => 'authzToken',
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
'var' => 'groupId',
'type' => TType::STRING,
),
3 => array(
'var' => 'newOwnerId',
'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['newOwnerId'])) {
$this->newOwnerId = $vals['newOwnerId'];
}
}
}
public function getName() {
return 'GroupManagerService_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::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->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('GroupManagerService_transferGroupOwnership_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->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 GroupManagerService_transferGroupOwnership_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_transferGroupOwnership_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_addGroupAdmins_args {
static $_TSPEC;
/**
* @var \Airavata\Model\Security\AuthzToken
*/
public $authzToken = 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' => 'authzToken',
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
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['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
if (isset($vals['groupId'])) {
$this->groupId = $vals['groupId'];
}
if (isset($vals['adminIds'])) {
$this->adminIds = $vals['adminIds'];
}
}
}
public function getName() {
return 'GroupManagerService_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::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::LST) {
$this->adminIds = array();
$_size7 = 0;
$_etype10 = 0;
$xfer += $input->readListBegin($_etype10, $_size7);
for ($_i11 = 0; $_i11 < $_size7; ++$_i11)
{
$elem12 = null;
$xfer += $input->readString($elem12);
$this->adminIds []= $elem12;
}
$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('GroupManagerService_addGroupAdmins_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->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 $iter13)
{
$xfer += $output->writeString($iter13);
}
}
$output->writeListEnd();
}
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_addGroupAdmins_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_addGroupAdmins_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_removeGroupAdmins_args {
static $_TSPEC;
/**
* @var \Airavata\Model\Security\AuthzToken
*/
public $authzToken = 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' => 'authzToken',
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
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['authzToken'])) {
$this->authzToken = $vals['authzToken'];
}
if (isset($vals['groupId'])) {
$this->groupId = $vals['groupId'];
}
if (isset($vals['adminIds'])) {
$this->adminIds = $vals['adminIds'];
}
}
}
public function getName() {
return 'GroupManagerService_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::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::LST) {
$this->adminIds = array();
$_size14 = 0;
$_etype17 = 0;
$xfer += $input->readListBegin($_etype17, $_size14);
for ($_i18 = 0; $_i18 < $_size14; ++$_i18)
{
$elem19 = null;
$xfer += $input->readString($elem19);
$this->adminIds []= $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('GroupManagerService_removeGroupAdmins_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->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 $iter20)
{
$xfer += $output->writeString($iter20);
}
}
$output->writeListEnd();
}
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_removeGroupAdmins_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_removeGroupAdmins_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_hasAdminAccess_args {
static $_TSPEC;
/**
* @var \Airavata\Model\Security\AuthzToken
*/
public $authzToken = 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' => 'authzToken',
'type' => TType::STRUCT,
'class' => '\Airavata\Model\Security\AuthzToken',
),
2 => array(
'var' => 'groupId',
'type' => TType::STRING,
),
3 => array(
'var' => 'adminId',
'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['adminId'])) {
$this->adminId = $vals['adminId'];
}
}
}
public function getName() {
return 'GroupManagerService_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::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->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('GroupManagerService_hasAdminAccess_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->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 GroupManagerService_hasAdminAccess_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_hasAdminAccess_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}
class GroupManagerService_hasOwnerAccess_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 'GroupManagerService_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::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('GroupManagerService_hasOwnerAccess_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 GroupManagerService_hasOwnerAccess_result {
static $_TSPEC;
/**
* @var bool
*/
public $success = null;
/**
* @var \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException
*/
public $gse = 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' => 'gse',
'type' => TType::STRUCT,
'class' => '\Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException',
),
2 => 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['gse'])) {
$this->gse = $vals['gse'];
}
if (isset($vals['ae'])) {
$this->ae = $vals['ae'];
}
}
}
public function getName() {
return 'GroupManagerService_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->gse = new \Airavata\Service\Profile\Groupmanager\CPI\Error\GroupManagerServiceException();
$xfer += $this->gse->read($input);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
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('GroupManagerService_hasOwnerAccess_result');
if ($this->success !== null) {
$xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
$xfer += $output->writeBool($this->success);
$xfer += $output->writeFieldEnd();
}
if ($this->gse !== null) {
$xfer += $output->writeFieldBegin('gse', TType::STRUCT, 1);
$xfer += $this->gse->write($output);
$xfer += $output->writeFieldEnd();
}
if ($this->ae !== null) {
$xfer += $output->writeFieldBegin('ae', TType::STRUCT, 2);
$xfer += $this->ae->write($output);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}