Alon Bar-Lev has posted comments on this change.

Change subject: aaa: Fix sync
......................................................................


Patch Set 13:

(1 comment)

http://gerrit.ovirt.org/#/c/28561/13/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/aaa/DirectoryUtils.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/aaa/DirectoryUtils.java:

Line 80: 
Line 81:         for (String id : outNonActiveGroupExternalIds) {
Line 82:             dbGroupsPerExternalId.get(id).setActive(false);
Line 83:             
DbFacade.getInstance().getDbGroupDao().update(dbGroupsPerExternalId.get(id));
Line 84:         }
> well, since sync is used from several places in code (DbUserCacheManager, A
you can have utility to do that on top of a simple detached signature function.

there is nothing wrong in having utilities, but the layers should be detached.
Line 85: 
Line 86:         for (DbUser dbUser : dbUsers) {
Line 87:             if (dbUser.isActive()) {
Line 88:                 DirectoryUser user = 
outDirectoryUserByIds.get(dbUser.getExternalId());


-- 
To view, visit http://gerrit.ovirt.org/28561
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id49b51517a967c7a83e8e73f52181673baa31700
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to