Change in ovirt-engine[ovirt-engine-3.6]: core: add query to support restapi

tnisan at redhat.com tnisan at redhat.com
Thu Sep 10 11:11:07 UTC 2015


Tal Nisan has submitted this change and it was merged.

Change subject: core: add query to support restapi
......................................................................


core: add query to support restapi

RESTAPI will expose ssh public key as collection - not as single
instance, to be future compatible.

However, backend knows there is at most one key, embedded inside the
UserProfile.

This patch fills the gap, returning a list of UserProfiles to fit
restapi needs.

The most correct approach would be to return a list of backend'
SSHPublicKeys, but backend has not this Class yet.

Change-Id: Ie39404e9eccb15480f79e4438489b8aa0e0895df
Bug-Url: https://bugzilla.redhat.com/1254445
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
A backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetUserProfileAsListQuery.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
2 files changed, 30 insertions(+), 0 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Francesco Romani: Verified
  Omer Frenkel: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie39404e9eccb15480f79e4438489b8aa0e0895df
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.6
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list