Maor Lipchuk has uploaded a new change for review. Change subject: webadmin: AsyncDataProvider - getStorageDomainByName ......................................................................
webadmin: AsyncDataProvider - getStorageDomainByName Adding getStorageDomainByName method to AsyncDataProvider in order to get the storage domain associated to a provider. Change-Id: Icfe16e440fd9413d6e09e886bb66af35ded5a388 Bug-Url: https://bugzilla.redhat.com/1185826 Signed-off-by: Maor Lipchuk <[email protected]> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/33/38933/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java index 830c99a..1206f9b 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/dataprovider/AsyncDataProvider.java @@ -1325,6 +1325,18 @@ aQuery); } + public void getStorageDomainByName(AsyncQuery aQuery, String storageDomainName) { + aQuery.converterCallback = new IAsyncConverter() { + @Override + public Object Convert(Object source, AsyncQuery _asyncQuery) { + return source; + } + }; + Frontend.getInstance().runQuery(VdcQueryType.GetStorageDomainByName, + new NameQueryParameters(storageDomainName), + aQuery); + } + public VolumeFormat getDiskVolumeFormat(VolumeType volumeType, StorageType storageType) { if (storageType.isFileDomain()) { return VolumeFormat.RAW; -- To view, visit https://gerrit.ovirt.org/38933 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icfe16e440fd9413d6e09e886bb66af35ded5a388 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
