Class PrivacyNoticeJson

java.lang.Object
ca.cdr.api.model.json.PrivacyNoticeJson
All Implemented Interfaces:
IModelJson

public class PrivacyNoticeJson extends Object implements IModelJson
Response model for privacy notice content and metadata. Contains the notice content, version, active status, and expiry configuration.
  • Constructor Details

    • PrivacyNoticeJson

    • PrivacyNoticeJson

      public PrivacyNoticeJson(String theContent, String theVersion, boolean theIsActive, int theExpiryDays)
      Constructor with all privacy notice details.
      Parameters:
      theContent - the privacy notice content/text
      theVersion - the privacy notice version
      theIsActive - whether the privacy notice is currently active
      theExpiryDays - the number of days before acceptance expires
  • Method Details

    • getContent

      public String getContent()
      Get the privacy notice content.
      Returns:
      the privacy notice text content
    • setContent

      public void setContent(String theContent)
      Set the privacy notice content.
      Parameters:
      theContent - the privacy notice content to set
    • getVersion

      public String getVersion()
      Get the privacy notice version.
      Returns:
      the privacy notice version string
    • setVersion

      public void setVersion(String theVersion)
      Set the privacy notice version.
      Parameters:
      theVersion - the privacy notice version to set
    • getIsActive

      public boolean getIsActive()
      Get whether the privacy notice is active.
      Returns:
      true if the privacy notice is currently active
    • setIsActive

      public void setIsActive(boolean theIsActive)
      Set whether the privacy notice is active.
      Parameters:
      theIsActive - the active status to set
    • getExpiryDays

      public int getExpiryDays()
      Get the expiry days configuration.
      Returns:
      the number of days before acceptance expires
    • setExpiryDays

      public void setExpiryDays(int theExpiryDays)
      Set the expiry days configuration.
      Parameters:
      theExpiryDays - the number of days before acceptance expires