Alissa Bonas has posted comments on this change.
Change subject: core: improve CDA of AddStorageServerConnection
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/AddStorageServerConnectionCommand.java
Line 76: return
failCanDoAction(VdcBllMessages.VALIDATION_STORAGE_CONNECTION_EMPTY_VFSTYPE);
Line 77: }
Line 78:
Line 79: if (getParameters().getVdsId().equals(Guid.Empty)) {
Line 80: if (!InitializeVds()) {
Done
Line 81: return false;
Line 82: }
Line 83: } else if (getVds() == null) {
Line 84: return
failCanDoAction(VdcBllMessages.VDS_INVALID_SERVER_ID);
....................................................
Commit Message
Line 5: CommitDate: 2013-05-28 13:48:47 +0300
Line 6:
Line 7: core: improve CDA of AddStorageServerConnection
Line 8:
Line 9: Improve canDoACtion of AddStorageServerConnectionCommand
the method name is canDoAction, not CanDoAction :)
Line 10: to have early returns in failures, and call to its super.canDoAction
Line 11: since there are checks that are done there and
Line 12: are not done by the overriding command.
Line 13:
--
To view, visit http://gerrit.ovirt.org/15126
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I00a46aac7d642128c287ef633c492f3c1b85f572
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches