Alon Bar-Lev has posted comments on this change.

Change subject: aaa: using the new extensions API in InternalDirectory
......................................................................


Patch Set 5:

(2 comments)

http://gerrit.ovirt.org/#/c/26477/5/backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/internal/InternalDirectory.java
File 
backend/manager/modules/builtin-extensions/src/main/java/org/ovirt/engine/extensions/aaa/builtin/internal/InternalDirectory.java:

Line 29:                     Authz.InvokeCommands.QUERY_PRINCIPALS_BY_IDS_OPEN,
Line 30:                     Authz.InvokeCommands.QUERY_GROUPS_BY_IDS_OPEN)
Line 31:             );
Line 32: 
Line 33:     private static final Set<ExtUUID> OTHER_AUTHZ_COMMANDS =
> i thought about this one, didn't like it that much. if it bothers u that mu
not this much... :)

if there is limitation... then solve it so that you minimize the impact... if 
you wanted to have one list with all then this what we should have.
Line 34:             new 
HashSet<>(Arrays.asList(Authz.InvokeCommands.QUERY_CLOSE, 
Authz.InvokeCommands.FETCH_PRINCIPAL_RECORD));
Line 35:     private ExtMap context;
Line 36: 
Line 37:     private ExtMap adminUser;


Line 64:             } else {
Line 65:                 output.put(Base.InvokeKeys.COMMAND, 
Base.InvokeResult.UNSUPPORTED);
Line 66:             }
Line 67:             if (QUERY_COMMANDS.contains(command) || 
OTHER_AUTHZ_COMMANDS.contains(command)) {
Line 68:                 output.putIfAbsent(Authz.InvokeKeys.Status, 
Authz.Status.SUCCESS);
> Well, don't you think for init putting Authz.Status.SUCCESS is not that in 
this is why we use maps... receiver should read whatever interested.

you can put 100000 other keys in output if you like... receiver will just 
ignore.
Line 69:             }
Line 70:             output.putIfAbsent(Base.InvokeKeys.RESULT, 
Base.InvokeResult.SUCCESS);
Line 71: 
Line 72:         } catch (Exception ex) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I958443292da0455e0a12039fac98eebb9b17dee2
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to