Package ca.cdr.api.model.json
Class PrivacyNoticeJson
java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeJson
- All Implemented Interfaces:
IModelJson
Response model for privacy notice content and metadata.
Contains the notice content, version, active status, and expiry configuration.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPrivacyNoticeJson(String theContent, String theVersion, boolean theIsActive, int theExpiryDays) Constructor with all privacy notice details. -
Method Summary
Modifier and TypeMethodDescriptionGet the privacy notice content.intGet the expiry days configuration.booleanGet whether the privacy notice is active.Get the privacy notice version.voidsetContent(String theContent) Set the privacy notice content.voidsetExpiryDays(int theExpiryDays) Set the expiry days configuration.voidsetIsActive(boolean theIsActive) Set whether the privacy notice is active.voidsetVersion(String theVersion) Set the privacy notice version.
-
Constructor Details
-
PrivacyNoticeJson
public PrivacyNoticeJson() -
PrivacyNoticeJson
public PrivacyNoticeJson(String theContent, String theVersion, boolean theIsActive, int theExpiryDays) Constructor with all privacy notice details.- Parameters:
theContent- the privacy notice content/texttheVersion- the privacy notice versiontheIsActive- whether the privacy notice is currently activetheExpiryDays- the number of days before acceptance expires
-
-
Method Details
-
getContent
Get the privacy notice content.- Returns:
- the privacy notice text content
-
setContent
Set the privacy notice content.- Parameters:
theContent- the privacy notice content to set
-
getVersion
Get the privacy notice version.- Returns:
- the privacy notice version string
-
setVersion
Set the privacy notice version.- Parameters:
theVersion- the privacy notice version to set
-
getIsActive
Get whether the privacy notice is active.- Returns:
- true if the privacy notice is currently active
-
setIsActive
Set whether the privacy notice is active.- Parameters:
theIsActive- the active status to set
-
getExpiryDays
Get the expiry days configuration.- Returns:
- the number of days before acceptance expires
-
setExpiryDays
Set the expiry days configuration.- Parameters:
theExpiryDays- the number of days before acceptance expires
-