You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/01/14 16:43:06 UTC

[10/50] [abbrv] airavata-php-gateway git commit: implementing add storage resource preference

implementing add storage resource preference


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/281591eb
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/281591eb
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/281591eb

Branch: refs/heads/develop
Commit: 281591ebfe4e5b2fbb1f361214336ebcdb8e0edc
Parents: 0048a8c
Author: scnakandala <su...@gmail.com>
Authored: Mon Dec 14 13:55:59 2015 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Mon Dec 14 13:55:59 2015 -0500

----------------------------------------------------------------------
 app/controllers/GatewayprofileController.php    |     8 +
 app/libraries/Airavata/API/Airavata.php         | 12408 +++++++++--------
 .../Airavata/Model/Data/Resource/Types.php      |   308 +-
 app/libraries/SRUtilities.php                   |    13 +-
 app/routes.php                                  |     4 +
 app/views/admin/manage-gateway.blade.php        |    22 +
 .../storage-resource-preferences.blade.php      |    10 +-
 public/js/gateway.js                            |    13 +
 8 files changed, 7231 insertions(+), 5555 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/281591eb/app/controllers/GatewayprofileController.php
----------------------------------------------------------------------
diff --git a/app/controllers/GatewayprofileController.php b/app/controllers/GatewayprofileController.php
index f39e59f..38260cc 100644
--- a/app/controllers/GatewayprofileController.php
+++ b/app/controllers/GatewayprofileController.php
@@ -44,6 +44,14 @@ class GatewayprofileController extends BaseController {
 		}
 	}
 
+	public function modifyDSP()
+	{
+		if( SRUtilities::add_or_update_DSP( Input::all()) )
+		{
+			return Redirect::to("admin/dashboard/gateway")->with("message","Data Storage Preference for the desired Gateway has been set.");
+		}
+	}
+
 	public function delete()
 	{
 		//var_dump( Input::all()); exit;