use of org.ovirt.engine.api.model.ExternalNetworkProviderConfiguration in project ovirt-engine by oVirt.
the class ExternalNetworkProviderConfigurationMapper method map.
@Mapping(from = Provider.class, to = ExternalNetworkProviderConfiguration.class)
public static ExternalNetworkProviderConfiguration map(Provider entity, ExternalNetworkProviderConfiguration template) {
if (entity == null) {
return template;
}
ExternalNetworkProviderConfiguration model = template == null ? new ExternalNetworkProviderConfiguration() : template;
model.setId(HexUtils.string2hex(entity.getId().toString()));
ExternalProvider externalProvider = new ExternalProvider();
externalProvider.setId(entity.getId().toString());
model.setExternalNetworkProvider(externalProvider);
return model;
}
Aggregations