Search in sources :

Example 16 with ServiceResponseType

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;
}
Also used : ServiceResponseType(eu.europa.ec.fisheries.schema.exchange.service.v1.ServiceResponseType) ArrayList(java.util.ArrayList) Plugin(eu.europa.ec.fisheries.uvms.exchange.rest.dto.Plugin)

Aggregations

ServiceResponseType (eu.europa.ec.fisheries.schema.exchange.service.v1.ServiceResponseType)16 ExchangeServiceException (eu.europa.ec.fisheries.uvms.exchange.service.exception.ExchangeServiceException)8 SettingListType (eu.europa.ec.fisheries.schema.exchange.service.v1.SettingListType)4 ExchangeModelException (eu.europa.ec.fisheries.uvms.exchange.model.exception.ExchangeModelException)4 ArrayList (java.util.ArrayList)4 PluginType (eu.europa.ec.fisheries.schema.exchange.plugin.types.v1.PluginType)3 ExchangeException (eu.europa.ec.fisheries.uvms.exchange.model.exception.ExchangeException)3 JMSException (javax.jms.JMSException)3 CapabilityListType (eu.europa.ec.fisheries.schema.exchange.service.v1.CapabilityListType)2 ExchangeLogType (eu.europa.ec.fisheries.schema.exchange.v1.ExchangeLogType)2 UnsentMessageTypeProperty (eu.europa.ec.fisheries.schema.exchange.v1.UnsentMessageTypeProperty)2 ExchangeMessageEvent (eu.europa.ec.fisheries.uvms.exchange.message.event.carrier.ExchangeMessageEvent)2 ExchangeModelMapperException (eu.europa.ec.fisheries.uvms.exchange.model.exception.ExchangeModelMapperException)2 ExchangeModelMarshallException (eu.europa.ec.fisheries.uvms.exchange.model.exception.ExchangeModelMarshallException)2 ExchangeLogException (eu.europa.ec.fisheries.uvms.exchange.service.exception.ExchangeLogException)2 TextMessage (javax.jms.TextMessage)2 AcknowledgeType (eu.europa.ec.fisheries.schema.exchange.common.v1.AcknowledgeType)1 CommandType (eu.europa.ec.fisheries.schema.exchange.common.v1.CommandType)1 CommandTypeType (eu.europa.ec.fisheries.schema.exchange.common.v1.CommandTypeType)1 GetServiceListRequest (eu.europa.ec.fisheries.schema.exchange.module.v1.GetServiceListRequest)1