|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.businessconnector.therlink.builders.impl.AbstractRequestObjectBuilderImpl
public abstract class AbstractRequestObjectBuilderImpl
Contains what should be common to all RequestObjectBuilder
requires following properties to be set :
RequestObjectBuilder
Field Summary |
---|
Fields inherited from interface be.ehealth.businessconnector.therlink.builders.RequestObjectBuilder |
---|
MAXROWS_DEFAULT, MAXROWS_PROPERTY_KEY, PROP_HCP_TYPE |
Constructor Summary | |
---|---|
AbstractRequestObjectBuilderImpl()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractRequestObjectBuilderImpl() throws TherLinkBusinessConnectorException, TechnicalConnectorException, InstantiationException
TherLinkBusinessConnectorException
- if config file could not been retrieved
TechnicalConnectorException
- if config file could not been retrieved
InstantiationException
- if a property is missing from config fileMethod Detail |
---|
@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 proofs
TechnicalConnectorException
- if an error occured while creating the request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
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 proofs
TechnicalConnectorException
- if an error occured while creating the request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
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 proofs
TechnicalConnectorException
- if an error occured while creating the request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
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 proofs
TechnicalConnectorException
- if an error occured while creating the request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
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 request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
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 request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
public HasTherapeuticLinkRequest createHasTherapeuticLinkRequest(TherapeuticLink query) throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
RequestObjectBuilder
createHasTherapeuticLinkRequest
in interface RequestObjectBuilder
query
- the therapeutic link to retrieve
TechnicalConnectorException
- if an error occured while creating the request
TherLinkBusinessConnectorException
- if a required parameter is not provided, or if the request is not valid
InstantiationException
public void validateMaxRowsValue(GetTherapeuticLinkRequest request) throws TherLinkBusinessConnectorException
TherLinkBusinessConnectorException
public abstract List<HcParty> getAuthorHcParties() throws TechnicalConnectorException, TherLinkBusinessConnectorException, InstantiationException
AbstractRequestObjectBuilderImpl
to retrieve the Author HcParties
getAuthorHcParties
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |