Class IHEAuditMessageBuilder<T extends IHEAuditMessageBuilder<T,D>,D extends BaseAuditMessageBuilder<D>>
java.lang.Object
org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder<T,D>
org.openehealth.ipf.commons.ihe.core.atna.event.IHEAuditMessageBuilder<T,D>
- All Implemented Interfaces:
AuditMessageBuilder<T>
,Validateable
- Direct Known Subclasses:
DicomInstancesAccessedAuditBuilder
,DicomInstancesTransferredAuditBuilder
,GenericFhirAuditMessageBuilder
,IHEAuditLogUsedBuilder
,PatientRecordEventBuilder
,PHIExportBuilder
,PHIImportBuilder
,QueryInformationBuilder
public abstract class IHEAuditMessageBuilder<T extends IHEAuditMessageBuilder<T,D>,D extends BaseAuditMessageBuilder<D>>
extends DelegatingAuditMessageBuilder<T,D>
Base class for building DICOM audit messages as specified in the various IHE transactions.
It provides some methods for setting audit event participants that are common across
different IHE transactions, namely local participant, remote participant, and human requestor
- Since:
- 3.5
- Author:
- Christian Ohr
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder
delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final T
addHumanRequestor
(AuditDataset auditDataset) addSecurityResourceParticipantObject
(ParticipantObjectIdType participantObjectIdType, String securityResourceId) Adds a Participant Object representing a Security Resource involved in the eventaddSecurityResourceParticipantObjects
(ParticipantObjectIdType participantObjectIdType, List<String> securityResourceIds) Adds a list Participant Objects representing Security Resources involved in the eventdicomDetails
(String repositoryId, String homeCommunityId, String documentInstanceId, String seriesInstanceId, boolean isXcaHomeCommunityId) documentDetails
(String repositoryId, String homeCommunityId, String seriesInstanceId, String studyInstanceId, boolean isXcaHomeCommunityId) protected final T
setLocalParticipant
(AuditDataset auditDataset) Set the local participant, which is either the transaction destination (if it's server-side) or the transaction source (if it's client-side)protected final T
setRemoteParticipant
(AuditDataset auditDataset) Set the remote participant, which is either the transaction source (if it's server-side) or the transaction destination (if it's client-side)Methods inherited from class org.openehealth.ipf.commons.audit.event.DelegatingAuditMessageBuilder
getMessage, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.event.AuditMessageBuilder
getMessages, getTypeValuePair, getTypeValuePair, getTypeValuePair, getTypeValuePair, self
-
Field Details
-
IHE_HOME_COMMUNITY_ID
- See Also:
-
URN_IHE_ITI_XCA_2010_HOME_COMMUNITY_ID
- See Also:
-
QUERY_ENCODING
- See Also:
-
REPOSITORY_UNIQUE_ID
- See Also:
-
STUDY_INSTANCE_UNIQUE_ID
- See Also:
-
SERIES_INSTANCE_UNIQUE_ID
- See Also:
-
DOCUMENT_UNIQUE_ID
- See Also:
-
-
Constructor Details
-
IHEAuditMessageBuilder
-
-
Method Details
-
getAuditContext
-
setLocalParticipant
Set the local participant, which is either the transaction destination (if it's server-side) or the transaction source (if it's client-side)- Parameters:
auditDataset
- audit data set- Returns:
- this
-
setRemoteParticipant
Set the remote participant, which is either the transaction source (if it's server-side) or the transaction destination (if it's client-side)- Parameters:
auditDataset
- audit data set- Returns:
- this
-
addHumanRequestor
-
documentDetails
-
dicomDetails
-
addSecurityResourceParticipantObject
public T addSecurityResourceParticipantObject(ParticipantObjectIdType participantObjectIdType, String securityResourceId) Adds a Participant Object representing a Security Resource involved in the event- Parameters:
participantObjectIdType
- transaction-specific participant object type codesecurityResourceId
- security resource ID- Returns:
- this
-
addSecurityResourceParticipantObjects
public T addSecurityResourceParticipantObjects(ParticipantObjectIdType participantObjectIdType, List<String> securityResourceIds) Adds a list Participant Objects representing Security Resources involved in the event- Parameters:
participantObjectIdType
- transaction-specific participant object type codesecurityResourceIds
- list security resource IDs- Returns:
- this
-