Repository: airavata-php-gateway Updated Branches: refs/heads/grouper-integration 5dd886cfb -> c65d32c2d
adding getAllGatewayUsers method Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/c65d32c2 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/c65d32c2 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/c65d32c2 Branch: refs/heads/grouper-integration Commit: c65d32c2df9863356dbb86d601620d2fd263efcb Parents: 5dd886c Author: scnakandala <[email protected]> Authored: Fri Jul 8 12:40:12 2016 -0400 Committer: scnakandala <[email protected]> Committed: Fri Jul 8 12:40:12 2016 -0400 ---------------------------------------------------------------------- app/libraries/GrouperUtilities.php | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c65d32c2/app/libraries/GrouperUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/GrouperUtilities.php b/app/libraries/GrouperUtilities.php index 1b38979..ebe7e6f 100644 --- a/app/libraries/GrouperUtilities.php +++ b/app/libraries/GrouperUtilities.php @@ -5,6 +5,15 @@ use Airavata\Model\Group\ResourcePermissionType; class GrouperUtilities { + + /** + * @return mixed array of usernames of the users in the gateway + */ + public static function getAllGatewayUsers() + { + return Airavata::getAllUsersInGateway(Session::get('authz-token'), Config::get('pga_config.airavata')['gateway-id']); + } + /** * @param $resourceId Experiment or Project ID * @param $dataResourceType e.g Airavata\Model\Group\ResourceType:PROJECT,Airavata\Model\Group\ResourceType:EXPERIMENT
