|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openhealthexchange.openpixpdq.ihe.audit.AuditObjectFactory
public class AuditObjectFactory
A class for generating IHE ATNA log messages. The exact format of the messages is described in RFC 3881, Dicomm Supplimental 95 sec A.1.2, and the IHE IT Technical Framework Vol 2 sec. 3.20.
This class is used by the different audit message classes to generate the appropriately formatted XML which is then sent using the configured audit transport. A new factory should be generated for each message you send since the factory maintains internal state to build the messsage. To use: make a new audit object factory, add the approriate data, call getAuditMessage to get the complete JAXB audit message. This last step will normally be done by the IheAuditTrail base class. In general, the data required for an appropriately formatted audit are as follows:
IheAuditTrail
Constructor Summary | |
---|---|
AuditObjectFactory(IMessageTransmitter messenger)
Generates and initializes a blank audit message factory. |
Method Summary | |
---|---|
protected void |
addActiveParticipant(com.misyshealthcare.connect.base.audit.ActiveParticipant activeParticipant)
Adds an active participant for the messages that require it. |
protected void |
addAuditSourceId(java.lang.String enterpriseSiteID,
java.lang.String auditSourceID,
java.util.Collection<com.misyshealthcare.connect.base.audit.AuditCodeMappings.AuditSourceType> sourceTypes)
Generates the source id for this message. |
protected void |
addParticipantObject(ParticipantObject participantObject)
Adds a participant object for the messages that require it. |
AuditMessage |
getAuditMessage()
Gets the audit message from the properly formatted audit object factory. |
void |
sendAuditMessage()
Sends the properly formatted audit object. |
protected void |
setEventIdType(EventId eventIdType)
Used to set the type of the event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuditObjectFactory(IMessageTransmitter messenger)
messenger
- the IMessageTransmitter
Method Detail |
---|
public AuditMessage getAuditMessage() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
- if there is a formatting error, e.g.
did not call the appropriate add functions.public void sendAuditMessage() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
- if there is a formatting error, e.g.
did not call the appropriate add functions.protected void addAuditSourceId(java.lang.String enterpriseSiteID, java.lang.String auditSourceID, java.util.Collection<com.misyshealthcare.connect.base.audit.AuditCodeMappings.AuditSourceType> sourceTypes) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
- Thrown if the factory is unable to create the ID.protected void addActiveParticipant(com.misyshealthcare.connect.base.audit.ActiveParticipant activeParticipant) throws javax.xml.bind.JAXBException
activeParticipant
- The active participant to add.
javax.xml.bind.JAXBException
- If there is an error in the format of the active participant.protected void addParticipantObject(ParticipantObject participantObject) throws javax.xml.bind.JAXBException
activeParticipant
- The active participant to add.
javax.xml.bind.JAXBException
- If there is an error in the format of the active participant.protected void setEventIdType(EventId eventIdType) throws javax.xml.bind.JAXBException
eventIdType
- A class describing this event.
javax.xml.bind.JAXBException
- If there is a formatting error in the event id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |