Search in sources :

Example 6 with CapabilityType

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;
}
Also used : CapabilityType(eu.europa.ec.fisheries.schema.exchange.service.v1.CapabilityType) ArrayList(java.util.ArrayList) ServiceCapability(eu.europa.ec.fisheries.uvms.exchange.entity.serviceregistry.ServiceCapability)

Aggregations

CapabilityType (eu.europa.ec.fisheries.schema.exchange.service.v1.CapabilityType)4 CapabilityDto (com.evolveum.midpoint.web.component.wizard.resource.dto.CapabilityDto)2 CapabilityType (com.evolveum.midpoint.xml.ns._public.resource.capabilities_3.CapabilityType)2 ArrayList (java.util.ArrayList)2 AjaxButton (com.evolveum.midpoint.web.component.AjaxButton)1 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)1 Capability (com.evolveum.midpoint.web.component.wizard.resource.dto.Capability)1 CapabilityListType (eu.europa.ec.fisheries.schema.exchange.service.v1.CapabilityListType)1 ServiceCapability (eu.europa.ec.fisheries.uvms.exchange.entity.serviceregistry.ServiceCapability)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 IColumn (org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn)1