public abstract class AbstractRequestObjectBuilderImpl extends Object implements RequestObjectBuilder
RequestObjectBuilder
requires following properties to be set :
RequestObjectBuilderMAXROWS_DEFAULT, MAXROWS_PROPERTY_KEY, PROP_HCP_TYPE| Constructor and Description |
|---|
AbstractRequestObjectBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
GetTherapeuticLinkRequest |
createGetTherapeuticLinkRequest(TherapeuticLink query,
int maxRowsToUse,
Proof... prooves)
Creates a GetTherapeuticLinkRequest
|
GetTherapeuticLinkRequest |
createGetTherapeuticLinkRequest(TherapeuticLink query,
Proof... prooves)
Creates a GetTherapeuticLinkRequest MaxRows will be replaced with property value of "therlink.maxrows" if it's defined,
otherwise default value1000 will be used
|
HasTherapeuticLinkRequest |
createHasTherapeuticLinkRequest(TherapeuticLink query)
Creates a HasTherapeuticLinkRequest
|
PutTherapeuticLinkRequest |
createPutTherapeuticLinkRequest(org.joda.time.DateTime endDate,
Patient patient,
HcParty concernedHealthCareProfessionel,
String therLinkType,
String comment,
Proof... proofs)
Creates a new
PutTherapeuticLinkRequest |
PutTherapeuticLinkRequest |
createPutTherapeuticLinkRequest(Patient patient,
HcParty concernedHealthCareProfessionel,
Date endDate,
String therLinkType,
String comment,
Proof... proofs)
Deprecated.
|
PutTherapeuticLinkRequest |
createPutTherapeuticLinkRequest(Patient patient,
HcParty hcp,
String therLinkType,
Proof proof)
Creates a putTherapeuticLinkRequest enddate & comment are null by default
|
RevokeTherapeuticLinkRequest |
createRevokeTherapeuticLinkRequest(org.joda.time.DateTime startDate,
org.joda.time.DateTime endDate,
Patient patient,
HcParty hcp,
String therLinkType,
String commentAboutRevokal,
Proof... proofs)
Creates a RevokeTherapeuticLinkRequest
|
RevokeTherapeuticLinkRequest |
createRevokeTherapeuticLinkRequest(Patient patient,
HcParty hcp,
Date startDate,
Date endDate,
String therLinkType,
String commentAboutRevokal,
Proof... proofs)
Deprecated.
|
RevokeTherapeuticLinkRequest |
createRevokeTherapeuticLinkRequest(TherapeuticLink link)
Creates a RevokeTherapeuticLinkRequest with a TherapeuticLink as input
|
RevokeTherapeuticLinkRequest |
createRevokeTherapeuticLinkRequestWithProof(TherapeuticLink link,
Proof... proofs)
Creates a RevokeTherapeuticLinkRequest with a TherapeuticLink as input and a proof list
|
abstract List<HcParty> |
getAuthorHcParties()
Abstract method that should be implemented by each class that extends
AbstractRequestObjectBuilderImpl to retrieve the Author HcParties |
static ConfigValidator |
getConfig() |
String |
getEnduserHcpType()
Deprecated.
|
int |
getMaxRows()
won't always return correct value ( 0 instead of null ) in new implementations.
|
static void |
setConfig(ConfigValidator config) |
void |
validateMaxRowsValue(GetTherapeuticLinkRequest request)
Validates the maxRows parameter of the getTherapeuticLinkRequest
NB Author & id are not validated since they are automatically generated
|
public AbstractRequestObjectBuilderImpl()
throws TherLinkBusinessConnectorException,
TechnicalConnectorException,
InstantiationException
TherLinkBusinessConnectorException - if config file could not been retrievedTechnicalConnectorException - if config file could not been retrievedInstantiationException - if a property is missing from config file@Deprecated public PutTherapeuticLinkRequest createPutTherapeuticLinkRequest(Patient patient, HcParty concernedHealthCareProfessionel, Date endDate, String therLinkType, String comment, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilderPutTherapeuticLinkRequestcreatePutTherapeuticLinkRequest in interface RequestObjectBuilderpatient - the patient concerned by the therapeutic linkconcernedHealthCareProfessionel - (optional, default person in current session) the professional concerned by the therapeutic
linkendDate - (optional) the end date of the therapeutic linktherLinkType - the type of the therapeutic linkcomment - (optional) a comment about the therapeutic linkproofs - (optional and possible empty) list of proofsTechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionpublic PutTherapeuticLinkRequest createPutTherapeuticLinkRequest(org.joda.time.DateTime endDate, Patient patient, HcParty concernedHealthCareProfessionel, String therLinkType, String comment, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilderPutTherapeuticLinkRequestcreatePutTherapeuticLinkRequest in interface RequestObjectBuilderendDate - (optional) the end date of the therapeutic linkpatient - the patient concerned by the therapeutic linkconcernedHealthCareProfessionel - (optional, default person in current session) the professional concerned by the therapeutic
linktherLinkType - the type of the therapeutic linkcomment - (optional) a comment about the therapeutic linkproofs - (optional and possible empty) list of proofsTechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionbe.ehealth.businessconnector.therlink.builders.RequestObjectBuilder#createPutTherapeuticLinkRequest(be.ehealth.business.common.domain.Patient,
be.ehealth.businessconnector.therlink.domain.HcParty, org.joda.time.DateTime, java.lang.String, java.lang.String,
be.ehealth.businessconnector.therlink.domain.Proof[])@Deprecated public RevokeTherapeuticLinkRequest createRevokeTherapeuticLinkRequest(Patient patient, HcParty hcp, Date startDate, Date endDate, String therLinkType, String commentAboutRevokal, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateRevokeTherapeuticLinkRequest in interface RequestObjectBuilderpatient - the patient concerned by the therapeutic linkhcp - the professional concerned by the therapeutic linkendDate - (optional) the end date of the therapeutic linktherLinkType - the type of the therapeutic linkcommentAboutRevokal - (optional) a comment about the revokalproofs - (optional and possible empty) a list of proofsTechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionRequestObjectBuilder.createRevokeTherapeuticLinkRequest(be.ehealth.business.common.domain.Patient,
be.ehealth.businessconnector.therlink.domain.HcParty, java.util.Date, java.util.Date, java.lang.String, java.lang.String,
be.ehealth.businessconnector.therlink.domain.Proof[])public RevokeTherapeuticLinkRequest createRevokeTherapeuticLinkRequest(org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Patient patient, HcParty hcp, String therLinkType, String commentAboutRevokal, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateRevokeTherapeuticLinkRequest in interface RequestObjectBuilderendDate - (optional) the end date of the therapeutic linkpatient - the patient concerned by the therapeutic linkhcp - the professional concerned by the therapeutic linktherLinkType - the type of the therapeutic linkcommentAboutRevokal - (optional) a comment about the revokalproofs - (optional and possible empty) a list of proofsTechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionbe.ehealth.businessconnector.therlink.builders.RequestObjectBuilder#createRevokeTherapeuticLinkRequest(be.ehealth.business.common.domain.Patient,
be.ehealth.businessconnector.therlink.domain.HcParty, org.joda.time.DateTime, org.joda.time.DateTime, java.lang.String,
java.lang.String, be.ehealth.businessconnector.therlink.domain.Proof[])public RevokeTherapeuticLinkRequest createRevokeTherapeuticLinkRequest(TherapeuticLink link) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateRevokeTherapeuticLinkRequest in interface RequestObjectBuilderTechnicalConnectorExceptionTherLinkBusinessConnectorExceptionInstantiationExceptionpublic RevokeTherapeuticLinkRequest createRevokeTherapeuticLinkRequestWithProof(TherapeuticLink link, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateRevokeTherapeuticLinkRequestWithProof in interface RequestObjectBuilderTechnicalConnectorExceptionTherLinkBusinessConnectorExceptionInstantiationExceptionpublic GetTherapeuticLinkRequest createGetTherapeuticLinkRequest(TherapeuticLink query, int maxRowsToUse, Proof... prooves) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateGetTherapeuticLinkRequest in interface RequestObjectBuilderquery - the therapeutic link to retrievemaxRowsToUse - should be smaller than 1000prooves - a list of proofs (optional and may be empty)TechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionpublic PutTherapeuticLinkRequest createPutTherapeuticLinkRequest(Patient patient, HcParty hcp, String therLinkType, Proof proof) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreatePutTherapeuticLinkRequest in interface RequestObjectBuilderTechnicalConnectorExceptionTherLinkBusinessConnectorExceptionInstantiationExceptionpublic GetTherapeuticLinkRequest createGetTherapeuticLinkRequest(TherapeuticLink query, Proof... prooves) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateGetTherapeuticLinkRequest in interface RequestObjectBuilderquery - the therapeutic link to retrieveprooves - a list of proofs (optional and may be empty)TechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionpublic HasTherapeuticLinkRequest createHasTherapeuticLinkRequest(TherapeuticLink query) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuildercreateHasTherapeuticLinkRequest in interface RequestObjectBuilderquery - the therapeutic link to retrieveTechnicalConnectorException - if an error occured while creating the requestTherLinkBusinessConnectorException - if a required parameter is not provided, or if the request is not validInstantiationExceptionpublic void validateMaxRowsValue(GetTherapeuticLinkRequest request) throws TherLinkBusinessConnectorException
public abstract List<HcParty> getAuthorHcParties() throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
AbstractRequestObjectBuilderImpl to retrieve the Author HcPartiesgetAuthorHcParties in interface RequestObjectBuilderTechnicalConnectorExceptionTherLinkBusinessConnectorExceptionInstantiationException@Deprecated public String getEnduserHcpType()
RequestObjectBuildergetEnduserHcpType in interface RequestObjectBuilderDeprecated use
HcPartyUtil.getAuthorKmehrQuality() instead ( in project business-kmehrcommons )public int getMaxRows()
RequestObjectBuildergetMaxRows in interface RequestObjectBuilderpublic static ConfigValidator getConfig()
public static void setConfig(ConfigValidator config)
config - the config to set
Connector Packaging generic 4.2.0 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.