use of eu.europa.ec.fisheries.schema.exchange.service.v1.ServiceResponseType in project UVMS-ExchangeModule-APP by UnionVMS.
the class ServiceMapper method map.
public static List<Plugin> map(List<ServiceResponseType> serviceList) {
List<Plugin> plugins = new ArrayList<>();
if (serviceList != null) {
for (ServiceResponseType service : serviceList) {
Plugin plugin = new Plugin();
plugin.setName(service.getName());
plugin.setServiceClassName(service.getServiceClassName());
plugin.setType(service.getPluginType().name());
plugin.setStatus(service.getStatus().name());
plugins.add(plugin);
}
}
return plugins;
}
Aggregations