Class CanonicalSubscription
- java.lang.Object
-
- ca.uhn.fhir.jpa.subscription.module.CanonicalSubscription
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CanonicalSubscription extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCanonicalSubscription.CanonicalEventDefinitionstatic classCanonicalSubscription.EmailDetailsstatic classCanonicalSubscription.RestHookDetails
-
Constructor Summary
Constructors Constructor Description CanonicalSubscription()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeader(String theHeader)Adds a headervoidaddTrigger(CanonicalSubscription.CanonicalEventDefinition theTrigger)For now we're using the R4 TriggerDefinition, but this may change in the future when things stabilizebooleanequals(Object theO)StringgetChannelExtension(String theUrl)List<String>getChannelExtensions(String theUrl)CanonicalSubscriptionChannelTypegetChannelType()StringgetCriteriaString()CanonicalSubscription.EmailDetailsgetEmailDetails()StringgetEndpointUrl()List<String>getHeaders()org.hl7.fhir.instance.model.api.IIdTypegetIdElement(ca.uhn.fhir.context.FhirContext theContext)StringgetIdElementString()StringgetIdPart()StringgetPayloadString()CanonicalSubscription.RestHookDetailsgetRestHookDetails()org.hl7.fhir.r4.model.Subscription.SubscriptionStatusgetStatus()CanonicalSubscription.CanonicalEventDefinitiongetTrigger()For now we're using the R4 triggerdefinition, but this may change in the future when things stabilizeinthashCode()voidsetChannelExtensions(Map<String,List<String>> theChannelExtensions)voidsetChannelType(CanonicalSubscriptionChannelType theChannelType)voidsetCriteriaString(String theCriteriaString)voidsetEndpointUrl(String theEndpointUrl)voidsetHeaders(String theHeaders)voidsetHeaders(List<? extends org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theHeader)voidsetIdElement(org.hl7.fhir.instance.model.api.IIdType theIdElement)voidsetPayloadString(String thePayloadString)voidsetStatus(org.hl7.fhir.r4.model.Subscription.SubscriptionStatus theStatus)StringtoString()
-
-
-
Constructor Detail
-
CanonicalSubscription
public CanonicalSubscription()
Constructor
-
-
Method Detail
-
addTrigger
public void addTrigger(CanonicalSubscription.CanonicalEventDefinition theTrigger)
For now we're using the R4 TriggerDefinition, but this may change in the future when things stabilize
-
getChannelType
public CanonicalSubscriptionChannelType getChannelType()
-
setChannelType
public void setChannelType(CanonicalSubscriptionChannelType theChannelType)
-
getCriteriaString
public String getCriteriaString()
-
setCriteriaString
public void setCriteriaString(String theCriteriaString)
-
getEmailDetails
public CanonicalSubscription.EmailDetails getEmailDetails()
-
getEndpointUrl
public String getEndpointUrl()
-
setEndpointUrl
public void setEndpointUrl(String theEndpointUrl)
-
getHeaders
@Nonnull public List<String> getHeaders()
-
setHeaders
public void setHeaders(List<? extends org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theHeader)
-
setHeaders
public void setHeaders(String theHeaders)
-
getChannelExtension
public String getChannelExtension(String theUrl)
-
getChannelExtensions
@Nonnull public List<String> getChannelExtensions(String theUrl)
-
setChannelExtensions
public void setChannelExtensions(Map<String,List<String>> theChannelExtensions)
-
getIdElement
@Nullable public org.hl7.fhir.instance.model.api.IIdType getIdElement(ca.uhn.fhir.context.FhirContext theContext)
-
getIdElementString
public String getIdElementString()
-
getPayloadString
public String getPayloadString()
-
setPayloadString
public void setPayloadString(String thePayloadString)
-
getRestHookDetails
public CanonicalSubscription.RestHookDetails getRestHookDetails()
-
getStatus
public org.hl7.fhir.r4.model.Subscription.SubscriptionStatus getStatus()
-
setStatus
public void setStatus(org.hl7.fhir.r4.model.Subscription.SubscriptionStatus theStatus)
-
getTrigger
public CanonicalSubscription.CanonicalEventDefinition getTrigger()
For now we're using the R4 triggerdefinition, but this may change in the future when things stabilize
-
setIdElement
public void setIdElement(org.hl7.fhir.instance.model.api.IIdType theIdElement)
-
addHeader
public void addHeader(String theHeader)
Adds a header- Parameters:
theHeader- The header, e.g. "Authorization: Bearer AAAAA"
-
-