ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-38:Fixed AppConstants to include new Enum values
Date Fri, 12 Sep 2014 16:51:04 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master cc358afe2 -> 30ddcba68


ARGUS-38:Fixed AppConstants to include new Enum values

Signed-off-by: sneethiraj <sneethir@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/30ddcba6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/30ddcba6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/30ddcba6

Branch: refs/heads/master
Commit: 30ddcba68a57c46a4b7cb64d469ff3dec1bb68d6
Parents: cc358af
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Tue Sep 9 20:16:51 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Fri Sep 12 12:50:45 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/com/xasecure/common/AppConstants.java        | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/30ddcba6/security-admin/src/main/java/com/xasecure/common/AppConstants.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/common/AppConstants.java b/security-admin/src/main/java/com/xasecure/common/AppConstants.java
index d17bb61..3ca0430 100644
--- a/security-admin/src/main/java/com/xasecure/common/AppConstants.java
+++ b/security-admin/src/main/java/com/xasecure/common/AppConstants.java
@@ -783,6 +783,12 @@ public class AppConstants extends XACommonEnums {
 		if (label.equalsIgnoreCase("View Column")) {
 			return AppConstants.RESOURCE_VIEW_COL; // RESOURCE_VIEW_COL
 		}
+		if (label.equalsIgnoreCase("Topology")) {
+			return AppConstants.RESOURCE_TOPOLOGY; // RESOURCE_TOPOLOGY
+		}
+		if (label.equalsIgnoreCase("Service")) {
+			return AppConstants.RESOURCE_SERVICE_NAME; // RESOURCE_SERVICE_NAME
+		}
 		return 0;
 	}
 


Mime
View raw message