Class RecipeExecutorClient
- java.lang.Object
-
- be.business.connector.recipe.AbstractRecipeClient
-
- be.business.connector.recipe.executor.RecipeExecutorClient
-
- All Implemented Interfaces:
be.recipe.api.executor.AcceptReservation.Command<be.recipe.api.executor.AcceptReservation>,be.recipe.api.executor.AcceptReservationCancellationRequest.Command<be.recipe.api.executor.AcceptReservationCancellationRequest>,be.recipe.api.executor.ArchivePrescription.Command<be.recipe.api.executor.ArchivePrescription>,be.recipe.api.executor.FulfillReservation.Command<be.recipe.api.executor.FulfillReservation>,be.recipe.api.executor.GetPrescription.Command<be.recipe.api.executor.GetPrescription,be.recipe.api.Prescription.Encrypted>,be.recipe.api.executor.GetPrescriptionAndPutInProcess.Command<be.recipe.api.executor.GetPrescriptionAndPutInProcess,be.recipe.api.Prescription.Encrypted>,be.recipe.api.executor.GetPrescriptionStatus.Command<be.recipe.api.executor.GetPrescriptionStatus,be.recipe.api.GetPrescriptionStatusResponse>,be.recipe.api.executor.GetProfile.Command<be.recipe.api.executor.GetProfile,be.recipe.api.executor.GetProfile.Response>,be.recipe.api.executor.ListMandatesByMandateHolder.Command<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>,be.recipe.api.executor.ListPrescriptions.Command<be.recipe.api.executor.ListPrescriptions,be.recipe.api.executor.ListPrescriptions.Response.Encrypted>,be.recipe.api.executor.ListReservations<be.recipe.api.executor.ListReservations.Request>,be.recipe.api.executor.MandateService<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>,be.recipe.api.executor.MandateService.Simplified,be.recipe.api.executor.PrescriptionService<be.recipe.api.Prescription.Encrypted,be.recipe.api.executor.GetPrescription,be.recipe.api.executor.GetPrescriptionAndPutInProcess,be.recipe.api.executor.ListPrescriptions,be.recipe.api.executor.ListPrescriptions.Response.Encrypted,be.recipe.api.executor.UpdateProfile,be.recipe.api.executor.GetProfile,be.recipe.api.executor.GetProfile.Response,be.recipe.api.executor.ArchivePrescription,be.recipe.api.executor.GetPrescriptionStatus,be.recipe.api.GetPrescriptionStatusResponse>,be.recipe.api.executor.PrescriptionService.Simplified,be.recipe.api.executor.RejectReservation.Command<be.recipe.api.executor.RejectReservation>,be.recipe.api.executor.UpdateProfile.Command<be.recipe.api.executor.UpdateProfile>,be.recipe.api.reservation.executor.ReservationService<be.recipe.api.executor.ListReservations.Request,be.recipe.api.executor.AcceptReservation,be.recipe.api.executor.RejectReservation,be.recipe.api.executor.AcceptReservationCancellationRequest,be.recipe.api.executor.FulfillReservation>,be.recipe.api.reservation.executor.ReservationService.Simplified
public class RecipeExecutorClient extends AbstractRecipeClient implements be.recipe.api.executor.PrescriptionService.Simplified, be.recipe.api.reservation.executor.ReservationService.Simplified, be.recipe.api.executor.MandateService.Simplified
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface be.recipe.api.executor.ListReservations
be.recipe.api.executor.ListReservations.Request, be.recipe.api.executor.ListReservations.Response
-
Nested classes/interfaces inherited from interface be.recipe.api.executor.MandateService
be.recipe.api.executor.MandateService.Simplified
-
Nested classes/interfaces inherited from interface be.recipe.api.executor.PrescriptionService
be.recipe.api.executor.PrescriptionService.Ciphering<ListPrescriptions extends be.recipe.api.executor.ListPrescriptions,GetPrescription extends be.recipe.api.executor.GetPrescription,GetPrescriptionAndPutInProcess extends be.recipe.api.executor.GetPrescriptionAndPutInProcess,UpdateProfile extends be.recipe.api.executor.UpdateProfile,GetProfile extends be.recipe.api.executor.GetProfile,GetProfileResponse extends be.recipe.api.executor.GetProfile.Response,ArchivePrescription extends be.recipe.api.executor.ArchivePrescription>, be.recipe.api.executor.PrescriptionService.Simplified
-
-
Field Summary
Fields Modifier and Type Field Description static StringaddressKeyMap<org.apache.commons.collections.keyvalue.MultiKey,byte[]>sessionMap-
Fields inherited from class be.business.connector.recipe.AbstractRecipeClient
address, captureTraceId, cipher, properties, responseKey, symmKey, systemKey, traceId
-
-
Constructor Summary
Constructors Constructor Description RecipeExecutorClient(PropertyHandler properties)RecipeExecutorClient(PropertyHandler properties, Map<org.apache.commons.collections.keyvalue.MultiKey,byte[]> sessionMap)RecipeExecutorClient(be.recipe.api.crypto.Message.Cipher.Key.DB<be.recipe.api.Prescription.OnContent> keyRegistry, EhealthCipher cipher, java8.util.function.Supplier<String> traceId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description be.recipe.api.Prescription.Encryptedget(be.recipe.api.executor.GetPrescription request)be.recipe.api.GetPrescriptionStatusResponseget(be.recipe.api.executor.GetPrescriptionStatus request)be.recipe.api.Prescription.EncryptedgetAndPutInProcess(be.recipe.api.executor.GetPrescriptionAndPutInProcess request)be.recipe.api.executor.GetProfile.ResponsegetProfile(be.recipe.api.executor.GetProfile request)be.recipe.api.series.PartialResult<be.recipe.api.executor.ListPrescriptions.Response.Encrypted>list(be.recipe.api.executor.ListPrescriptions request)be.recipe.api.series.PartialResult<be.recipe.api.executor.ListReservations.Response>list(be.recipe.api.executor.ListReservations.Request request)be.recipe.api.series.PartialResult<be.recipe.api.executor.ListPrescriptions.Response.Encrypted>list(ListOpenPrescriptionsParam params)be.recipe.api.series.PartialResult<be.recipe.api.executor.ListReservations.Response>list(ListReservationsParam params)java8.util.stream.Stream<be.recipe.api.executor.ListMandatesByMandateHolder.Response>listMandates(be.recipe.api.executor.ListMandatesByMandateHolder request)static org.apache.commons.collections.keyvalue.MultiKeytoSessionKey(be.recipe.api.executor.ListMandatesByMandateHolder from)voidupdate(be.recipe.api.executor.AcceptReservation request)voidupdate(be.recipe.api.executor.AcceptReservationCancellationRequest request)voidupdate(be.recipe.api.executor.ArchivePrescription request)voidupdate(be.recipe.api.executor.FulfillReservation request)voidupdate(be.recipe.api.executor.RejectReservation request)voidupdateProfile(be.recipe.api.executor.UpdateProfile request)-
Methods inherited from class be.business.connector.recipe.AbstractRecipeClient
content, decrypt, encrypt, initEncryption, metadata, programId, programId, raise, refresh, rejected, toLocalDate, toLocalDateTime, toLowerCase, toName, toText, withExceptionHandling
-
-
-
-
Field Detail
-
addressKey
public static final String addressKey
- See Also:
- Constant Field Values
-
sessionMap
public Map<org.apache.commons.collections.keyvalue.MultiKey,byte[]> sessionMap
-
-
Constructor Detail
-
RecipeExecutorClient
public RecipeExecutorClient(PropertyHandler properties) throws DatatypeConfigurationException
- Throws:
DatatypeConfigurationException
-
RecipeExecutorClient
public RecipeExecutorClient(PropertyHandler properties, Map<org.apache.commons.collections.keyvalue.MultiKey,byte[]> sessionMap) throws DatatypeConfigurationException
- Throws:
DatatypeConfigurationException
-
RecipeExecutorClient
public RecipeExecutorClient(be.recipe.api.crypto.Message.Cipher.Key.DB<be.recipe.api.Prescription.OnContent> keyRegistry, EhealthCipher cipher, java8.util.function.Supplier<String> traceId) throws DatatypeConfigurationException- Throws:
DatatypeConfigurationException
-
-
Method Detail
-
getAndPutInProcess
public be.recipe.api.Prescription.Encrypted getAndPutInProcess(be.recipe.api.executor.GetPrescriptionAndPutInProcess request)
- Specified by:
getAndPutInProcessin interfacebe.recipe.api.executor.GetPrescriptionAndPutInProcess.Command<be.recipe.api.executor.GetPrescriptionAndPutInProcess,be.recipe.api.Prescription.Encrypted>
-
get
public be.recipe.api.Prescription.Encrypted get(be.recipe.api.executor.GetPrescription request)
- Specified by:
getin interfacebe.recipe.api.executor.GetPrescription.Command<be.recipe.api.executor.GetPrescription,be.recipe.api.Prescription.Encrypted>
-
list
public be.recipe.api.series.PartialResult<be.recipe.api.executor.ListPrescriptions.Response.Encrypted> list(be.recipe.api.executor.ListPrescriptions request)
- Specified by:
listin interfacebe.recipe.api.executor.ListPrescriptions.Command<be.recipe.api.executor.ListPrescriptions,be.recipe.api.executor.ListPrescriptions.Response.Encrypted>
-
list
public be.recipe.api.series.PartialResult<be.recipe.api.executor.ListReservations.Response> list(be.recipe.api.executor.ListReservations.Request request)
- Specified by:
listin interfacebe.recipe.api.executor.ListReservations<be.recipe.api.executor.ListReservations.Request>
-
list
public be.recipe.api.series.PartialResult<be.recipe.api.executor.ListPrescriptions.Response.Encrypted> list(ListOpenPrescriptionsParam params)
-
list
public be.recipe.api.series.PartialResult<be.recipe.api.executor.ListReservations.Response> list(ListReservationsParam params)
-
update
public void update(be.recipe.api.executor.AcceptReservation request)
- Specified by:
updatein interfacebe.recipe.api.executor.AcceptReservation.Command<be.recipe.api.executor.AcceptReservation>
-
update
public void update(be.recipe.api.executor.RejectReservation request)
- Specified by:
updatein interfacebe.recipe.api.executor.RejectReservation.Command<be.recipe.api.executor.RejectReservation>
-
update
public void update(be.recipe.api.executor.AcceptReservationCancellationRequest request)
- Specified by:
updatein interfacebe.recipe.api.executor.AcceptReservationCancellationRequest.Command<be.recipe.api.executor.AcceptReservationCancellationRequest>
-
update
public void update(be.recipe.api.executor.FulfillReservation request)
- Specified by:
updatein interfacebe.recipe.api.executor.FulfillReservation.Command<be.recipe.api.executor.FulfillReservation>
-
updateProfile
public void updateProfile(be.recipe.api.executor.UpdateProfile request)
- Specified by:
updateProfilein interfacebe.recipe.api.executor.UpdateProfile.Command<be.recipe.api.executor.UpdateProfile>
-
getProfile
public be.recipe.api.executor.GetProfile.Response getProfile(be.recipe.api.executor.GetProfile request)
- Specified by:
getProfilein interfacebe.recipe.api.executor.GetProfile.Command<be.recipe.api.executor.GetProfile,be.recipe.api.executor.GetProfile.Response>
-
update
public void update(be.recipe.api.executor.ArchivePrescription request)
- Specified by:
updatein interfacebe.recipe.api.executor.ArchivePrescription.Command<be.recipe.api.executor.ArchivePrescription>
-
listMandates
public java8.util.stream.Stream<be.recipe.api.executor.ListMandatesByMandateHolder.Response> listMandates(be.recipe.api.executor.ListMandatesByMandateHolder request)
- Specified by:
listMandatesin interfacebe.recipe.api.executor.ListMandatesByMandateHolder.Command<be.recipe.api.executor.ListMandatesByMandateHolder,be.recipe.api.executor.ListMandatesByMandateHolder.Response>
-
toSessionKey
public static org.apache.commons.collections.keyvalue.MultiKey toSessionKey(be.recipe.api.executor.ListMandatesByMandateHolder from)
-
get
public be.recipe.api.GetPrescriptionStatusResponse get(be.recipe.api.executor.GetPrescriptionStatus request)
- Specified by:
getin interfacebe.recipe.api.executor.GetPrescriptionStatus.Command<be.recipe.api.executor.GetPrescriptionStatus,be.recipe.api.GetPrescriptionStatusResponse>
-
-