Skip to content
Permalink
Browse files
clean up
  • Loading branch information
isururanawaka committed Sep 8, 2021
1 parent e80ac36 commit 5580b40f4fecbf728f41ff7551834f3f6708edd3
Showing 2 changed files with 0 additions and 17 deletions.
@@ -30,7 +30,6 @@ public void mergeSharings(Configuration configuration) {
mergeSharings(sharingManagementClient, configuration.getCustos().getTenantsToBeSynced());

} catch (Exception ex) {
ex.printStackTrace();
String msg = "Exception occurred while merging user, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -56,7 +55,6 @@ private void mergeSharings(SharingManagementClient sharingManagementClient, Stri
});

} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while merging sharings from Custos, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -84,7 +82,6 @@ private void mergeEntities(Entity entity, String clientId) {
try {
Utils.getNeo4JConnector().runTransactionalQuery(parameters, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while merging entities, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -108,7 +105,6 @@ private void mergeEntityParentChildRelationShips(SharingManagementClient sharing
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
}
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while merging parent child relationships ";
LOGGER.error(msg, ex);
}
@@ -150,7 +146,6 @@ private void mergeEntitySharings(SharingMetadata metadata, String clientId) {
}
}
catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while merging sharings, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -166,7 +161,6 @@ public void deleteEntity(String entityId, String entityType, String clientId) {
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting entity, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -194,7 +188,6 @@ public void deleteEntitySharings(String entityId, String entityType, String user
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting entity, " + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -29,7 +29,6 @@ public void mergeUserAndGroups(Configuration configuration) {
mergeGroups(groupManagementClient, clientIds);
mergeUserAndGroupMemberships(groupManagementClient, userManagementClient, clientIds);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Exception occurred while merging user" + ex.getMessage();
LOGGER.error(msg, ex);
}
@@ -63,7 +62,6 @@ private void mergeUsers(UserManagementClient userManagementClient, String[] clie


} catch (Exception ex) {
ex.printStackTrace();
LOGGER.error("Error occurred while merging user ", ex);
}
}
@@ -96,7 +94,6 @@ private void mergeGroups(GroupManagementClient groupManagementClient, String[] c
});
});
} catch (Exception ex) {
ex.printStackTrace();
LOGGER.error("Error occurred while merging groups ", ex);
}
}
@@ -120,7 +117,6 @@ private void mergeUserAndGroupMemberships(GroupManagementClient groupManagementC
});
});
} catch (Exception ex) {
ex.printStackTrace();
LOGGER.error("Error occurred while merging groups ", ex);
}
}
@@ -137,7 +133,6 @@ private void mergeUserMemberShip(String username, String groupId, String tenantI
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
LOGGER.error("Error occurred while merging UserGroupMembership ", ex);
}

@@ -154,7 +149,6 @@ private void mergeGroupMemberShip(String parentGroupId, String childGroupId, Str
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
LOGGER.error("Error occurred while merging Group memberships ", ex);
}

@@ -170,7 +164,6 @@ public void deleteUser(String username, String clientId) {
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting user ";
LOGGER.error(msg, ex);
}
@@ -187,7 +180,6 @@ public void deleteGroup(String groupId, String clientId) {
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting group ";
LOGGER.error(msg, ex);
}
@@ -204,7 +196,6 @@ public void deleteUserGroupMembership(String username, String tenantId, String g
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting user group membership from user " +
"" + username + " in group " + groupId;
LOGGER.error(msg, ex);
@@ -223,7 +214,6 @@ public void deleteGroupMembership(String parentGroupId, String childGroupId, Str
try {
Utils.getNeo4JConnector().runTransactionalQuery(map, query);
} catch (Exception ex) {
ex.printStackTrace();
String msg = "Error occurred while deleting group memberships from "
+ parentGroupId + " to " + childGroupId;
LOGGER.error(msg, ex);

0 comments on commit 5580b40

Please sign in to comment.