Search in sources :

Example 1 with ProductInfo

use of org.ovirt.engine.api.model.ProductInfo 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;
}
Also used : ProductInfo(org.ovirt.engine.api.model.ProductInfo) BrandingManager(org.ovirt.engine.core.branding.BrandingManager) Version(org.ovirt.engine.api.model.Version)

Aggregations

ProductInfo (org.ovirt.engine.api.model.ProductInfo)1 Version (org.ovirt.engine.api.model.Version)1 BrandingManager (org.ovirt.engine.core.branding.BrandingManager)1