Class CadfResource
- java.lang.Object
-
- org.linuxforhealth.fhir.audit.cadf.CadfResource
-
public final class CadfResource extends java.lang.Object
Implementation of the CADF Resource type. Resource represents an actor in a CADF event: OBSERVER that reports the event, INITIATOR that performs the action that generates the event, or TARGET upon which the action is performed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CadfResource.Builder
Builder for immutable CadfResource objectsstatic class
CadfResource.Parser
Parserstatic class
CadfResource.Writer
Generates JSON from this object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CadfResource.Builder
builder()
java.util.ArrayList<CadfEndpoint>
getAddresses()
java.util.ArrayList<CadfAttachment>
getAttachments()
CadfCredential
getCredential()
java.lang.String
getDomain()
CadfGeolocation
getGeolocation()
java.lang.String
getGeolocationId()
java.lang.String
getHost()
java.lang.String
getId()
Return the resource ID.java.lang.String
getName()
ResourceType
getTypeURI()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Return the resource ID. It can be used to reference the resource from other events in the same log.- Returns:
- Resource ID string
-
getGeolocation
public CadfGeolocation getGeolocation()
-
getTypeURI
public ResourceType getTypeURI()
-
getName
public java.lang.String getName()
- Returns:
- the name
-
getDomain
public java.lang.String getDomain()
- Returns:
- the domain
-
getCredential
public CadfCredential getCredential()
- Returns:
- the credential
-
getAddresses
public java.util.ArrayList<CadfEndpoint> getAddresses()
- Returns:
- the addresses
-
getHost
public java.lang.String getHost()
- Returns:
- the host
-
getAttachments
public java.util.ArrayList<CadfAttachment> getAttachments()
- Returns:
- the attachments
-
getGeolocationId
public java.lang.String getGeolocationId()
-
builder
public static CadfResource.Builder builder()
-
-