public abstract class AbstractRequestObjectBuilderImpl extends Object implements RequestObjectBuilder
RequestObjectBuilder
requires following properties to be set :
RequestObjectBuilder
MAXROWS_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
RequestObjectBuilder
PutTherapeuticLinkRequest
createPutTherapeuticLinkRequest
in interface RequestObjectBuilder
patient
- 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 validInstantiationException
public PutTherapeuticLinkRequest createPutTherapeuticLinkRequest(org.joda.time.DateTime endDate, Patient patient, HcParty concernedHealthCareProfessionel, String therLinkType, String comment, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
PutTherapeuticLinkRequest
createPutTherapeuticLinkRequest
in interface RequestObjectBuilder
endDate
- (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 validInstantiationException
be.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
RequestObjectBuilder
createRevokeTherapeuticLinkRequest
in interface RequestObjectBuilder
patient
- 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 validInstantiationException
RequestObjectBuilder.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
RequestObjectBuilder
createRevokeTherapeuticLinkRequest
in interface RequestObjectBuilder
endDate
- (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 validInstantiationException
be.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
RequestObjectBuilder
createRevokeTherapeuticLinkRequest
in interface RequestObjectBuilder
TechnicalConnectorException
TherLinkBusinessConnectorException
InstantiationException
public RevokeTherapeuticLinkRequest createRevokeTherapeuticLinkRequestWithProof(TherapeuticLink link, Proof... proofs) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createRevokeTherapeuticLinkRequestWithProof
in interface RequestObjectBuilder
TechnicalConnectorException
TherLinkBusinessConnectorException
InstantiationException
public GetTherapeuticLinkRequest createGetTherapeuticLinkRequest(TherapeuticLink query, int maxRowsToUse, Proof... prooves) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createGetTherapeuticLinkRequest
in interface RequestObjectBuilder
query
- 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 validInstantiationException
public PutTherapeuticLinkRequest createPutTherapeuticLinkRequest(Patient patient, HcParty hcp, String therLinkType, Proof proof) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createPutTherapeuticLinkRequest
in interface RequestObjectBuilder
TechnicalConnectorException
TherLinkBusinessConnectorException
InstantiationException
public GetTherapeuticLinkRequest createGetTherapeuticLinkRequest(TherapeuticLink query, Proof... prooves) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createGetTherapeuticLinkRequest
in interface RequestObjectBuilder
query
- 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 validInstantiationException
public HasTherapeuticLinkRequest createHasTherapeuticLinkRequest(TherapeuticLink query) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createHasTherapeuticLinkRequest
in interface RequestObjectBuilder
query
- 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 validInstantiationException
public void validateMaxRowsValue(GetTherapeuticLinkRequest request) throws TherLinkBusinessConnectorException
public abstract List<HcParty> getAuthorHcParties() throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
AbstractRequestObjectBuilderImpl
to retrieve the Author HcPartiesgetAuthorHcParties
in interface RequestObjectBuilder
TechnicalConnectorException
TherLinkBusinessConnectorException
InstantiationException
@Deprecated public String getEnduserHcpType()
RequestObjectBuilder
getEnduserHcpType
in interface RequestObjectBuilder
Deprecated use
HcPartyUtil.getAuthorKmehrQuality() instead ( in project business-kmehrcommons )
public int getMaxRows()
RequestObjectBuilder
getMaxRows
in interface RequestObjectBuilder
public static ConfigValidator getConfig()
public static void setConfig(ConfigValidator config)
config
- the config to set
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.