Change in ovirt-engine[master]: restapi: Add "StructMember" and "MemberMethod" classes

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Nov 19 09:34:35 UTC 2015


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Add "StructMember" and "MemberMethod" classes
......................................................................


restapi: Add "StructMember" and "MemberMethod" classes

Currently the struct type attributes and links have many, in fact almost
all in common, except their name. In order to reduce the code
duplication that this generates this patch introduces a new
"StructMember" base class to contain all the common fields and methods.

The same happens with service methods and locators. This patch
introduces a new "ServiceMember" class to simplify that.

Change-Id: I56de044533340dc4751f5fb7f234e41c8071ad99
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/Attribute.java
M backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/Link.java
M backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/Locator.java
M backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/Method.java
A backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/ServiceMember.java
A backend/manager/modules/restapi/metamodel/concepts/src/main/java/org/ovirt/api/metamodel/concepts/StructMember.java
6 files changed, 177 insertions(+), 207 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/48736
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I56de044533340dc4751f5fb7f234e41c8071ad99
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list