You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by sn...@apache.org on 2014/09/12 18:50:00 UTC
git commit: ARGUS-38:Fixed EnumUtil Error in log when Knox policy
creation
Repository: incubator-argus
Updated Branches:
refs/heads/master 02a35cc61 -> cc358afe2
ARGUS-38:Fixed EnumUtil Error in log when Knox policy creation
Signed-off-by: sneethiraj <sn...@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/cc358afe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/cc358afe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/cc358afe
Branch: refs/heads/master
Commit: cc358afe29285796a7a63b09816c05e938f62c73
Parents: 02a35cc
Author: vperiasamy <vp...@hortonworks.com>
Authored: Mon Sep 8 10:24:47 2014 -0400
Committer: sneethiraj <sn...@apache.org>
Committed: Fri Sep 12 12:48:32 2014 -0400
----------------------------------------------------------------------
.../main/java/com/xasecure/util/XAEnumUtil.java | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/cc358afe/security-admin/src/main/java/com/xasecure/util/XAEnumUtil.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/util/XAEnumUtil.java b/security-admin/src/main/java/com/xasecure/util/XAEnumUtil.java
index bcd528d..7d0715d 100644
--- a/security-admin/src/main/java/com/xasecure/util/XAEnumUtil.java
+++ b/security-admin/src/main/java/com/xasecure/util/XAEnumUtil.java
@@ -1212,6 +1212,24 @@ public class XAEnumUtil {
vElement.setElementLabel("View Column");
vElement.setRbKey("xa.enum.ResourceType.RESOURCE_VIEW_COL");
vElement.setEnumName(vEnum.getEnumName());
+
+ vEnum.getElementList().add(vElement);
+
+ vElement = new VEnumElement();
+ vElement.setElementName("RESOURCE_TOPOLOGY");
+ vElement.setElementValue(9);
+ vElement.setElementLabel("Topology");
+ vElement.setRbKey("xa.enum.ResourceType.RESOURCE_TOPOLOGY");
+ vElement.setEnumName(vEnum.getEnumName());
+
+ vEnum.getElementList().add(vElement);
+
+ vElement = new VEnumElement();
+ vElement.setElementName("RESOURCE_SERVICE");
+ vElement.setElementValue(10);
+ vElement.setElementLabel("Service");
+ vElement.setRbKey("xa.enum.ResourceType.RESOURCE_SERVICE");
+ vElement.setEnumName(vEnum.getEnumName());
vEnum.getElementList().add(vElement);