Package be.ehealth.businessconnector.mycarenet.agreement.session.impl

# Class AgreementServiceImpl

java.lang.Object
be.ehealth.businessconnector.mycarenet.agreement.session.impl.AgreementServiceImpl

All Implemented Interfaces:
  `AgreementService`

public class AgreementServiceImpl extends Object implements AgreementService
A simplified interface to access the Agreement service Implements : `AgreementService`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AgreementServiceImpl(SessionValidator sessionValidator)`
  Instantiates a new Agreement service impl.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AskAgreementResponse`
  `askAgreement(AskAgreementRequest request)`
  Sends the request to the WS (needs a Session to be active, token is retrieved from the session)
  `ConsultAgreementResponse`
  `consultAgreement(ConsultAgreementRequest request)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AgreementServiceImpl

    public AgreementServiceImpl(SessionValidator sessionValidator) throws TechnicalConnectorException
    Instantiates a new Agreement service impl.
    Parameters:
      `sessionValidator` - the sessionValidator
    Throws:
      `TechnicalConnectorException` - the technical connector exception

- ## Method Details

  - ### askAgreement

    public AskAgreementResponse askAgreement(AskAgreementRequest request) throws TechnicalConnectorException
    Description copied from interface: `AgreementService`
    Sends the request to the WS (needs a Session to be active, token is retrieved from the session)
    Specified by:
      `askAgreement` in interface `AgreementService`
    Parameters:
      `request` - the request
    Returns:
      the WS response
    Throws:
      `TechnicalConnectorException` - the technical connector exception

  - ### consultAgreement

    public ConsultAgreementResponse consultAgreement(ConsultAgreementRequest request) throws TechnicalConnectorException
    Specified by:
      `consultAgreement` in interface `AgreementService`
    Throws:
      `TechnicalConnectorException`