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(a)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(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org