Lior Vernia has uploaded a new change for review.

Change subject: core: Implemented Nameable in VmStatic
......................................................................

core: Implemented Nameable in VmStatic

Not a bad idea generally, but specifically done to enable using
ReplacementUtils with VmStatic.

Change-Id: I661beca8cf06e928f5692a16d83ecc3e0431aa38
Signed-off-by: Lior Vernia <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmStatic.java
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/50/11950/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmStatic.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmStatic.java
index 6ec7dad..5fe1b24 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmStatic.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmStatic.java
@@ -12,7 +12,7 @@
 import org.ovirt.engine.core.common.validation.group.UpdateEntity;
 import org.ovirt.engine.core.compat.Guid;
 
-public class VmStatic extends VmBase {
+public class VmStatic extends VmBase implements Nameable {
     private static final long serialVersionUID = -2753306386502558044L;
 
     @Size(min = 1, max = BusinessEntitiesDefinitions.VM_NAME_SIZE, groups = { 
Default.class, ImportClonedEntity.class })
@@ -185,6 +185,15 @@
         return !isInitialized();
     }
 
+    @Override
+    public String getName() {
+        return getVmName();
+    }
+
+    /**
+     * Use the method getName() instead;
+     */
+    @Deprecated
     public String getVmName() {
         return this.name;
     }


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

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

Reply via email to