ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [4/7] incubator-ranger git commit: Ranger-684: Using Class type as Mapper (which is the interface) instead of AbstractMapper (which is an abstract class that implements Mapper) inorder to allow handlers to implement the interface directly without using t
Date Fri, 30 Oct 2015 23:21:35 GMT
Ranger-684: Using Class type as Mapper (which is the interface) instead of AbstractMapper (which
is an abstract class that implements Mapper) inorder to allow handlers to implement the interface
directly without using the abstract class.

Signed-off-by: Velmurugan Periasamy <vel@apache.org>


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

Branch: refs/heads/tag-policy
Commit: fab2a10c45e56e4d3253641c2a1f862bc989597c
Parents: e83d4a7
Author: Sailaja Polavarapu <spolavarapu@hortonworks.com>
Authored: Fri Oct 30 13:36:50 2015 -0700
Committer: Velmurugan Periasamy <vel@apache.org>
Committed: Fri Oct 30 18:32:07 2015 -0400

----------------------------------------------------------------------
 .../ranger/ldapusersync/process/LdapUserGroupBuilder.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/fab2a10c/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
----------------------------------------------------------------------
diff --git a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
index e13db58..bab9e84 100644
--- a/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
+++ b/ugsync/src/main/java/org/apache/ranger/ldapusersync/process/LdapUserGroupBuilder.java
@@ -43,7 +43,6 @@ import javax.naming.ldap.PagedResultsResponseControl;
 import org.apache.log4j.Logger;
 import org.apache.ranger.unixusersync.config.UserGroupSyncConfig;
 import org.apache.ranger.usergroupsync.Mapper;
-import org.apache.ranger.usergroupsync.AbstractMapper;
 import org.apache.ranger.usergroupsync.UserGroupSink;
 import org.apache.ranger.usergroupsync.UserGroupSource;
 
@@ -128,7 +127,7 @@ public class LdapUserGroupBuilder implements UserGroupSource {
 		String mappingUserNameHandler = config.getUserSyncMappingUserNameHandler();
 		try {
 			if (mappingUserNameHandler != null) {
-				Class<AbstractMapper> regExClass = (Class<AbstractMapper>)Class.forName(mappingUserNameHandler);
+				Class<Mapper> regExClass = (Class<Mapper>)Class.forName(mappingUserNameHandler);
 				userNameRegExInst = regExClass.newInstance();
 				if (userNameRegExInst != null) {
 					userNameRegExInst.init(UserGroupSyncConfig.SYNC_MAPPING_USERNAME);
@@ -145,7 +144,7 @@ public class LdapUserGroupBuilder implements UserGroupSource {
 		String mappingGroupNameHandler = config.getUserSyncMappingGroupNameHandler();
 		try {
 			if (mappingGroupNameHandler != null) {
-				Class<AbstractMapper> regExClass = (Class<AbstractMapper>)Class.forName(mappingGroupNameHandler);
+				Class<Mapper> regExClass = (Class<Mapper>)Class.forName(mappingGroupNameHandler);
 				groupNameRegExInst = regExClass.newInstance();
 				if (groupNameRegExInst != null) {
 					groupNameRegExInst.init(UserGroupSyncConfig.SYNC_MAPPING_GROUPNAME);


Mime
View raw message