
Class BaseResourceModifiedMessage
java.lang.Object
ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
ca.uhn.fhir.rest.server.messaging.BaseResourceModifiedMessage
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IModelJson
,IHasPayloadMessageKey
,IResourceMessage
- Direct Known Subclasses:
ResourceOperationMessage
public abstract class BaseResourceModifiedMessage
extends BaseResourceMessage
implements IResourceMessage, ca.uhn.fhir.model.api.IModelJson
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
BaseResourceMessage.OperationTypeEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ca.uhn.fhir.interceptor.model.RequestPartitionId
protected String
protected String
protected String
protected org.hl7.fhir.instance.model.api.IBaseResource
protected String
Fields inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
myOperationType
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorBaseResourceModifiedMessage
(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, BaseResourceMessage.OperationTypeEnum theOperationType) BaseResourceModifiedMessage
(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, BaseResourceMessage.OperationTypeEnum theOperationType, RequestDetails theRequest) BaseResourceModifiedMessage
(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, BaseResourceMessage.OperationTypeEnum theOperationType, RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId) BaseResourceModifiedMessage
(org.hl7.fhir.instance.model.api.IIdType theIdType, BaseResourceMessage.OperationTypeEnum theOperationType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Deprecated.org.hl7.fhir.instance.model.api.IIdType
getId
(ca.uhn.fhir.context.FhirContext theCtx) Deprecated.org.hl7.fhir.instance.model.api.IBaseResource
getNewResource
(ca.uhn.fhir.context.FhirContext theCtx) ca.uhn.fhir.interceptor.model.RequestPartitionId
This method is primarily used for loggingorg.hl7.fhir.instance.model.api.IIdType
getPayloadId
(ca.uhn.fhir.context.FhirContext theCtx) org.hl7.fhir.instance.model.api.IBaseResource
getResource
(ca.uhn.fhir.context.FhirContext theCtx) getResourceType
(ca.uhn.fhir.context.FhirContext theFhirContext) int
hashCode()
boolean
hasResourceType
(ca.uhn.fhir.context.FhirContext theFhirContext, String theResourceName) protected static boolean
payloadContainsNoPlaceholderReferences
(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource theNewPayload) void
setId
(org.hl7.fhir.instance.model.api.IIdType theId) Deprecated.void
setNewPayload
(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource thePayload) void
setPartitionId
(ca.uhn.fhir.interceptor.model.RequestPartitionId thePartitionId) void
setPayloadId
(org.hl7.fhir.instance.model.api.IIdType thePayloadId) toString()
Methods inherited from class ca.uhn.fhir.rest.server.messaging.BaseResourceMessage
copyAdditionalPropertiesFrom, getAttribute, getAttributes, getMediaType, getOperationType, getTransactionId, setAttribute, setMediaType, setOperationType, setPayloadMessageKey, setTransactionId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.server.messaging.IResourceMessage
setPayloadMessageKey
-
Field Details
-
myPayload
-
myPayloadId
-
myPartitionId
-
myPayloadVersion
-
myResourceDecoded
-
myResourceType
-
-
Constructor Details
-
BaseResourceModifiedMessage
public BaseResourceModifiedMessage()Constructor -
BaseResourceModifiedMessage
public BaseResourceModifiedMessage(org.hl7.fhir.instance.model.api.IIdType theIdType, BaseResourceMessage.OperationTypeEnum theOperationType) -
BaseResourceModifiedMessage
public BaseResourceModifiedMessage(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, BaseResourceMessage.OperationTypeEnum theOperationType) -
BaseResourceModifiedMessage
public BaseResourceModifiedMessage(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, BaseResourceMessage.OperationTypeEnum theOperationType, RequestDetails theRequest) -
BaseResourceModifiedMessage
public BaseResourceModifiedMessage(ca.uhn.fhir.context.FhirContext theFhirContext, org.hl7.fhir.instance.model.api.IBaseResource theNewResource, BaseResourceMessage.OperationTypeEnum theOperationType, RequestDetails theRequest, ca.uhn.fhir.interceptor.model.RequestPartitionId theRequestPartitionId)
-
-
Method Details
-
getPayloadId
Description copied from interface:IResourceMessage
This method is primarily used for logging- Specified by:
getPayloadId
in interfaceIResourceMessage
- Returns:
- the id of the resource contained in the payload
-
getPayloadVersion
-
setPayloadId
- Specified by:
setPayloadId
in interfaceIResourceMessage
- Parameters:
thePayloadId
- of the resource contained in the payload- Since:
- 5.6.0
-
getId
Deprecated.UsegetPayloadId()
instead. Deprecated in 5.6.0 / 2021-10-27 -
setId
Deprecated.UsesetPayloadId(IIdType)
. Deprecated in 5.6.0 / 2021-10-27 -
getId
Deprecated.UsegetPayloadId(FhirContext)
. Deprecated in 5.6.0 / 2021-10-27 -
getPayloadId
- Since:
- 5.6.0
-
getNewResource
@Nullable public org.hl7.fhir.instance.model.api.IBaseResource getNewResource(ca.uhn.fhir.context.FhirContext theCtx) -
getResource
@Nullable public org.hl7.fhir.instance.model.api.IBaseResource getResource(ca.uhn.fhir.context.FhirContext theCtx) -
getPayloadString
-
setNewPayload
public void setNewPayload(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource thePayload) -
getPartitionId
-
setPartitionId
-
toString
-
payloadContainsNoPlaceholderReferences
protected static boolean payloadContainsNoPlaceholderReferences(ca.uhn.fhir.context.FhirContext theCtx, org.hl7.fhir.instance.model.api.IBaseResource theNewPayload) -
getPayloadMessageKey
- Specified by:
getPayloadMessageKey
in interfaceIHasPayloadMessageKey
- Overrides:
getPayloadMessageKey
in classBaseResourceMessage
- Returns:
- a message key derived from the payload
-
hasResourceType
public boolean hasResourceType(ca.uhn.fhir.context.FhirContext theFhirContext, @Nonnull String theResourceName) -
getResourceType
-
equals
- Overrides:
equals
in classBaseResourceMessage
-
hashCode
- Overrides:
hashCode
in classBaseResourceMessage
-
getPayloadId()
instead.