use of org.ovirt.engine.core.branding.BrandingManager in project ovirt-engine by oVirt.
the class BackendApiResource method addSystemVersion.
private Api addSystemVersion(Api api) {
String productVersion = getConfigurationValueDefault(ConfigValues.ProductRPMVersion);
if (productVersion != null) {
BrandingManager obrand = BrandingManager.getInstance();
ProductInfo productInfo = new ProductInfo();
productInfo.setName(obrand.getMessage("obrand.backend.product"));
productInfo.setVendor(obrand.getMessage("obrand.backend.vendor"));
Version version = getVersion();
version.setFullVersion(productVersion);
productInfo.setVersion(version);
api.setProductInfo(productInfo);
}
return api;
}
Aggregations