Package com.ibm.fhir.audit.cadf
Class CadfEvent
- java.lang.Object
 - 
- com.ibm.fhir.audit.cadf.CadfEvent
 
 
- 
public class CadfEvent extends Object
This class represent a CADF audit event as described by the DMTF standard: Cloud Auditing Data Federation (CADF) - Data Format and Interface Definitions Specification. A CADF event generally represents a "subject-verb-object" tuple to indicate what action a particular subject performed over what object. The class is intended to be serialized using JSON Binding (Jsonb). It is implemented using the Builder pattern. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCadfEvent.BuilderBuilder of the CadfEvent objectsstatic classCadfEvent.Parserstatic classCadfEvent.WriterGenerates JSON from this object. 
- 
Method Summary
 
 - 
 
- 
- 
Method Detail
- 
getId
public String getId()
Return the event ID- Returns:
 - String value of the event ID
 
 
- 
formatDuration
public static String formatDuration(long duration)
Format time intervals (durations) according to the XML Schema v2 specifications. https://www.w3.org/TR/xmlschema-2/#duration- Parameters:
 duration- in milliseconds- Returns:
 - String representation of the duration according to the XML Schema 2 specification.
 
 
- 
getTypeURI
public String getTypeURI()
 
- 
setTypeURI
public void setTypeURI(String typeURI)
 
- 
getReason
public CadfReason getReason()
 
- 
setReason
public void setReason(CadfReason reason)
 
- 
getInitiatorId
public String getInitiatorId()
 
- 
setInitiatorId
public void setInitiatorId(String initiatorId)
 
- 
getTargetId
public String getTargetId()
 
- 
setTargetId
public void setTargetId(String targetId)
 
- 
getObserverId
public String getObserverId()
 
- 
setObserverId
public void setObserverId(String observerId)
 
- 
getMeasurements
public ArrayList<CadfMeasurement> getMeasurements()
 
- 
setMeasurements
public void setMeasurements(ArrayList<CadfMeasurement> measurements)
 
- 
setId
public void setId(String id)
 
- 
getName
public String getName()
- Returns:
 - the name
 
 
- 
setName
public void setName(String name)
- Parameters:
 name- the name to set
 
- 
getSeverity
public String getSeverity()
- Returns:
 - the severity
 
 
- 
setSeverity
public void setSeverity(String severity)
- Parameters:
 severity- the severity to set
 
- 
getDuration
public String getDuration()
- Returns:
 - the duration
 
 
- 
setDuration
public void setDuration(String duration)
- Parameters:
 duration- the duration to set
 
- 
getAttachments
public ArrayList<CadfAttachment> getAttachments()
- Returns:
 - the attachments
 
 
- 
setAttachments
public void setAttachments(ArrayList<CadfAttachment> attachments)
- Parameters:
 attachments- the attachments to set
 
- 
getReporterchain
public ArrayList<CadfReporterStep> getReporterchain()
- Returns:
 - the reporterchain
 
 
- 
setReporterchain
public void setReporterchain(ArrayList<CadfReporterStep> reporterchain)
- Parameters:
 reporterchain- the reporterchain to set
 
- 
getInitiator
public CadfResource getInitiator()
 
- 
setInitiator
public void setInitiator(CadfResource initiator)
 
- 
getTarget
public CadfResource getTarget()
 
- 
setTarget
public void setTarget(CadfResource target)
 
- 
getObserver
public CadfResource getObserver()
 
- 
setObserver
public void setObserver(CadfResource observer)
 
- 
getEventType
public EventType getEventType()
 
- 
setEventType
public void setEventType(EventType eventType)
 
- 
getEventTime
public String getEventTime()
 
- 
setEventTime
public void setEventTime(String eventTime)
 
- 
getAction
public Action getAction()
 
- 
setAction
public void setAction(Action action)
 
- 
getOutcome
public Outcome getOutcome()
 
- 
setOutcome
public void setOutcome(Outcome outcome)
 
- 
builder
public static CadfEvent.Builder builder()
 
 - 
 
 -