Yair Zaslavsky has uploaded a new change for review.

Change subject: core: adding several CDA messages in single method
......................................................................

core: adding several CDA messages in single method

Change-Id: I7618d3a7ae8652a069f533b6212cbc6796069964
Signed-off-by: Yair Zaslavsky <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
1 file changed, 16 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/64/35164/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
index 90a09bd..e03b05d 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
@@ -1971,6 +1971,22 @@
     }
 
     /**
+     * Adds one ore more messages to the {@link CommandBase#canDoAction()}'s 
+     * return value.
+     * This return value will be sent to the client for the detailed 
information
+     * of why the action can't be performed.
+     *
+     * @param message
+     *            The message to add.
+     */
+
+    protected void addCanDoActionMessages(VdcBllMessages... messages) {
+        for (VdcBllMessages msg : messages) {
+            addCanDoActionMessage(msg);
+        }
+    }
+
+    /**
      * Add validation message with variable replacements and return false.
      *
      * @param message   the message to add


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7618d3a7ae8652a069f533b6212cbc6796069964
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to