ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v..@apache.org
Subject [1/4] 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 22:33:38 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/ranger-0.5 f47cbd13d -> f15f87aea


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/f15f87ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/f15f87ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/f15f87ae

Branch: refs/heads/ranger-0.5
Commit: f15f87aea49f45b37d6ff35c7bce86857d464a29
Parents: 16b3387
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:33:36 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/f15f87ae/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