All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nortal.jroad.client.emkis.database.EmkisXRoadDatabaseImpl Maven / Gradle / Ivy

package com.nortal.jroad.client.emkis.database;

import com.nortal.jroad.client.exception.XRoadServiceConsumptionException;
import com.nortal.jroad.client.service.XRoadDatabaseService;
import com.nortal.jroad.client.service.consumer.XRoadConsumer;
import com.nortal.jroad.model.XRoadMessage;
import com.nortal.jroad.model.XmlBeansXRoadMessage;
import org.springframework.stereotype.Service;

/**
 * emkis X-road database implementation.
 */
@Service("emkisXRoadDatabase")
public class EmkisXRoadDatabaseImpl extends XRoadDatabaseService implements EmkisXRoadDatabase {

  /**
   * emkis.NaturaApplicationSearch.v1 X-road service implementation.
   */
  public com.nortal.jroad.client.emkis.types.ee.riik.xtee.emkis.producers.producer.emkis.NaturaApplicationSearchResponse naturaApplicationSearchV1(com.nortal.jroad.client.emkis.types.ee.riik.xtee.emkis.producers.producer.emkis.NaturaApplicationSearchRequest input) throws XRoadServiceConsumptionException {
    XRoadMessage response = send(new XmlBeansXRoadMessage(input), "NaturaApplicationSearch", "v1");

    return response.getContent();
  }
  
  /**
   * emkis.NaturaApplicationSearch.v1 X-road service implementation.
   */
  public com.nortal.jroad.client.emkis.types.ee.riik.xtee.emkis.producers.producer.emkis.NaturaApplicationSearchResponse naturaApplicationSearchV1(com.nortal.jroad.client.emkis.types.ee.riik.xtee.emkis.producers.producer.emkis.NaturaApplicationSearchRequest input, String userId) throws XRoadServiceConsumptionException {
    XRoadMessage response = send(new XmlBeansXRoadMessage(input), "NaturaApplicationSearch", "v1", userId);

    return response.getContent();
  }

  public void setXRoadConsumer(XRoadConsumer consumer) {
    this.xRoadConsumer = consumer;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy