Search in sources :

Example 1 with ResultatTyp

use of se.inera.intygstjanster.ts.services.v1.ResultatTyp in project webcert by sklintyg.

the class RegisterTSBasResponderStub method registerTSBas.

@Override
@StubModeAware
public RegisterTSBasResponseType registerTSBas(String logicalAddress, RegisterTSBasType parameters) {
    intygStore.addIntyg(buildStubInternalCertificate(parameters));
    RegisterTSBasResponseType resp = new RegisterTSBasResponseType();
    ResultatTyp resultatTyp = new ResultatTyp();
    resultatTyp.setResultCode(ResultCodeType.OK);
    resp.setResultat(resultatTyp);
    return resp;
}
Also used : ResultatTyp(se.inera.intygstjanster.ts.services.v1.ResultatTyp) RegisterTSBasResponseType(se.inera.intygstjanster.ts.services.RegisterTSBasResponder.v1.RegisterTSBasResponseType) StubModeAware(se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)

Example 2 with ResultatTyp

use of se.inera.intygstjanster.ts.services.v1.ResultatTyp in project webcert by sklintyg.

the class RegisterTSDiabetesResponderStub method registerTSDiabetes.

@Override
@StubModeAware
public RegisterTSDiabetesResponseType registerTSDiabetes(String logicalAddress, RegisterTSDiabetesType parameters) {
    intygStore.addIntyg(buildStubInternalCertificate(parameters));
    RegisterTSDiabetesResponseType resp = new RegisterTSDiabetesResponseType();
    ResultatTyp resultatTyp = new ResultatTyp();
    resultatTyp.setResultCode(ResultCodeType.OK);
    resp.setResultat(resultatTyp);
    return resp;
}
Also used : RegisterTSDiabetesResponseType(se.inera.intygstjanster.ts.services.RegisterTSDiabetesResponder.v1.RegisterTSDiabetesResponseType) ResultatTyp(se.inera.intygstjanster.ts.services.v1.ResultatTyp) StubModeAware(se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)

Aggregations

StubModeAware (se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)2 ResultatTyp (se.inera.intygstjanster.ts.services.v1.ResultatTyp)2 RegisterTSBasResponseType (se.inera.intygstjanster.ts.services.RegisterTSBasResponder.v1.RegisterTSBasResponseType)1 RegisterTSDiabetesResponseType (se.inera.intygstjanster.ts.services.RegisterTSDiabetesResponder.v1.RegisterTSDiabetesResponseType)1