Class CadfResource
- java.lang.Object
- 
- org.linuxforhealth.fhir.audit.cadf.CadfResource
 
- 
 public final class CadfResource extends java.lang.ObjectImplementation 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 SummaryNested Classes Modifier and Type Class Description static classCadfResource.BuilderBuilder for immutable CadfResource objectsstatic classCadfResource.ParserParserstatic classCadfResource.WriterGenerates JSON from this object.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CadfResource.Builderbuilder()java.util.ArrayList<CadfEndpoint>getAddresses()java.util.ArrayList<CadfAttachment>getAttachments()CadfCredentialgetCredential()java.lang.StringgetDomain()CadfGeolocationgetGeolocation()java.lang.StringgetGeolocationId()java.lang.StringgetHost()java.lang.StringgetId()Return the resource ID.java.lang.StringgetName()ResourceTypegetTypeURI()
 
- 
- 
- 
Method Detail- 
getIdpublic 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
 
 - 
getGeolocationpublic CadfGeolocation getGeolocation() 
 - 
getTypeURIpublic ResourceType getTypeURI() 
 - 
getNamepublic java.lang.String getName() - Returns:
- the name
 
 - 
getDomainpublic java.lang.String getDomain() - Returns:
- the domain
 
 - 
getCredentialpublic CadfCredential getCredential() - Returns:
- the credential
 
 - 
getAddressespublic java.util.ArrayList<CadfEndpoint> getAddresses() - Returns:
- the addresses
 
 - 
getHostpublic java.lang.String getHost() - Returns:
- the host
 
 - 
getAttachmentspublic java.util.ArrayList<CadfAttachment> getAttachments() - Returns:
- the attachments
 
 - 
getGeolocationIdpublic java.lang.String getGeolocationId() 
 - 
builderpublic static CadfResource.Builder builder() 
 
- 
 
-