Package ca.cdr.api.model.json
Class PrivacyNoticeStatusJson
java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeStatusJson
- All Implemented Interfaces:
IModelJson
Response model for user's privacy notice acceptance status.
Contains information about whether acceptance is required and version details.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPrivacyNoticeStatusJson(boolean theIsRequired, String theCurrentVersion) Constructor with required status and current version. -
Method Summary
Modifier and TypeMethodDescriptionGet the date when user accepted the privacy notice.Get the user's previously accepted version.Get the current privacy notice version.Get the expiry date for the user's acceptance.booleanGet whether privacy notice acceptance is required.voidsetAcceptedDate(String theAcceptedDate) Set the date when user accepted the privacy notice.voidsetAcceptedVersion(String theAcceptedVersion) Set the user's previously accepted version.voidsetCurrentVersion(String theCurrentVersion) Set the current privacy notice version.voidsetExpiryDate(String theExpiryDate) Set the expiry date for the user's acceptance.voidsetIsRequired(boolean theIsRequired) Set whether privacy notice acceptance is required.
-
Constructor Details
-
PrivacyNoticeStatusJson
public PrivacyNoticeStatusJson() -
PrivacyNoticeStatusJson
Constructor with required status and current version.- Parameters:
theIsRequired- whether privacy notice acceptance is requiredtheCurrentVersion- the current privacy notice version
-
-
Method Details
-
getIsRequired
Get whether privacy notice acceptance is required.- Returns:
- true if the user must accept the privacy notice
-
setIsRequired
Set whether privacy notice acceptance is required.- Parameters:
theIsRequired- the required status to set
-
getCurrentVersion
Get the current privacy notice version.- Returns:
- the current version string
-
setCurrentVersion
Set the current privacy notice version.- Parameters:
theCurrentVersion- the current version to set
-
getAcceptedVersion
Get the user's previously accepted version.- Returns:
- the accepted version string, or null if none
-
setAcceptedVersion
Set the user's previously accepted version.- Parameters:
theAcceptedVersion- the accepted version to set
-
getAcceptedDate
Get the date when user accepted the privacy notice.- Returns:
- the acceptance date (ISO timestamp), or null if none
-
setAcceptedDate
Set the date when user accepted the privacy notice.- Parameters:
theAcceptedDate- the acceptance date to set (ISO timestamp)
-
getExpiryDate
Get the expiry date for the user's acceptance.- Returns:
- the expiry date (ISO timestamp), or null if none
-
setExpiryDate
Set the expiry date for the user's acceptance.- Parameters:
theExpiryDate- the expiry date to set (ISO timestamp)
-