Eli Mesika has posted comments on this change.
Change subject: core : implementing AddExternalEventCommand ...
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddExternalEventCommand.java
Line 25:
Line 26: @Override
Line 27: protected boolean canDoAction() {
Line 28: boolean result=true;
Line 29: if (getParameters().getEvent() == null ||
getParameters().getEvent().equals(OVIRT)){
The default value of origin is oVirt , you can not inject External Events with
the oVirt origin , that's all this says , if the origin of the external event
is oVirt a can do action message is generated
Line 30:
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_EVENT_ILLEGAL_ORIGIN);
Line 31: result = false;
Line 32: }
Line 33: if (!result) {
Line 26: @Override
Line 27: protected boolean canDoAction() {
Line 28: boolean result=true;
Line 29: if (getParameters().getEvent() == null ||
getParameters().getEvent().equals(OVIRT)){
Line 30:
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_EXTERNAL_EVENT_ILLEGAL_ORIGIN);
It's a free form string , see my comment above
Line 31: result = false;
Line 32: }
Line 33: if (!result) {
Line 34: addCanDoActionMessage(VdcBllMessages.VAR__ACTION__ADD);
--
To view, visit http://gerrit.ovirt.org/10094
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I3468a3dd99616e2436caee19b42b9cf448adc005
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches