use of eu.europa.ec.fisheries.schema.exchange.service.v1.CapabilityType in project UVMS-ExchangeModule-APP by UnionVMS.
the class ServiceMapper method upsetCapabilityList.
public static List<ServiceCapability> upsetCapabilityList(Service parent, CapabilityListType capabilityList, String username) {
List<ServiceCapability> newCapabilityList = new ArrayList<>();
for (CapabilityType capabilityType : capabilityList.getCapability()) {
ServiceCapability newServiceCapability = toCapabilityEntity(parent, capabilityType, username);
newCapabilityList.add(newServiceCapability);
}
return newCapabilityList;
}
Aggregations