ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject ranger git commit: RANGER-2278: Unable to delete user if he has references in new ref tables
Date Tue, 06 Nov 2018 05:31:57 GMT
Repository: ranger
Updated Branches:
  refs/heads/ranger-1.2 b07b98c33 -> 0f50264ad


RANGER-2278: Unable to delete user if he has references in new ref tables


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/0f50264a
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/0f50264a
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/0f50264a

Branch: refs/heads/ranger-1.2
Commit: 0f50264ad1baac1833cff8e75ef416d59e486671
Parents: b07b98c
Author: Pradeep <pradeep@apache.org>
Authored: Mon Nov 5 19:21:50 2018 +0530
Committer: Pradeep <pradeep@apache.org>
Committed: Tue Nov 6 11:01:50 2018 +0530

----------------------------------------------------------------------
 .../ranger/service/XPortalUserService.java      | 25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/0f50264a/security-admin/src/main/java/org/apache/ranger/service/XPortalUserService.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/org/apache/ranger/service/XPortalUserService.java
b/security-admin/src/main/java/org/apache/ranger/service/XPortalUserService.java
index 5f5b5c4..493f139 100644
--- a/security-admin/src/main/java/org/apache/ranger/service/XPortalUserService.java
+++ b/security-admin/src/main/java/org/apache/ranger/service/XPortalUserService.java
@@ -275,5 +275,30 @@ public class XPortalUserService extends
 		daoManager.getXXTag().updateUserIDReference("upd_by_id", xXPortalUserId);
 		daoManager.getXXTagResourceMap().updateUserIDReference("added_by_id", xXPortalUserId);
 		daoManager.getXXTagResourceMap().updateUserIDReference("upd_by_id", xXPortalUserId);
+		//1.0
+		daoManager.getXXDataMaskTypeDef().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXDataMaskTypeDef().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyItemDataMaskInfo().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyItemDataMaskInfo().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyItemRowFilterInfo().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyItemRowFilterInfo().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXUgsyncAuditInfo().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXUgsyncAuditInfo().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyLabels().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyLabels().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyLabelMap().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyLabelMap().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefCondition().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefCondition().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefGroup().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefGroup().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefDataMaskType().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefDataMaskType().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefResource().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefResource().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefUser().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefUser().updateUserIDReference("upd_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefAccessType().updateUserIDReference("added_by_id", xXPortalUserId);
+		daoManager.getXXPolicyRefAccessType().updateUserIDReference("upd_by_id", xXPortalUserId);
 	}
 }


Mime
View raw message