Liron Ar has posted comments on this change. Change subject: core,webadmin: add isVm and isTemplate methods to VmEntityType ......................................................................
Patch Set 2: Code-Review+1 (1 comment) I suggest to have an helper methods in Disk to reduce the null checks, but that's up to you. .................................................... File backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmEntityType.java Line 24: */ Line 25: public boolean isTemplateType() { Line 26: return this == TEMPLATE || Line 27: this == INSTANCE_TYPE || Line 28: this == IMAGE_TYPE; currently we can return this != VM or !isVmType to save comprasions but that's up to you Line 29: } -- To view, visit http://gerrit.ovirt.org/21598 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6fc92031ab0afd08ab309a8ef6fd71a3fddb2204 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Leonardo Bianconi <leonardo.bianc...@eldorado.org.br> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: Tomas Jelinek <tjeli...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches