Class DataRetentionUtils


  • public class DataRetentionUtils
    extends Object
    Provides utility methods for calculating data retention policies.
    Since:
    4.1.0
    • Constructor Detail

      • DataRetentionUtils

        public DataRetentionUtils()
    • Method Detail

      • getSubmissionRetentionThresholds

        public static SubmissionRetentionSettings getSubmissionRetentionThresholds​(Form form)
        Calculate the upper limits that apply to data retention policies for the given form. The limits apply only if the system IDataRetentionManagementService is configured to enforce global thresholds. If so, the form's policies cannot be more lenient (=keep data for longer) than the organization and system policies.
        Parameters:
        form - the form (required)
        Returns:
        the submission retention thresholds applying to the form. If a specific setting is not constrained, the value in the result object will be null.
      • getSubmissionRetentionThresholds

        public static SubmissionRetentionSettings getSubmissionRetentionThresholds​(Client client)
        Calculate the upper limits that apply to data retention policies for the given client. The limits apply only if the system IDataRetentionManagementService is configured to enforce global thresholds. If so, the client's policies cannot be more lenient (=keep data for longer) than the system policies.
        Parameters:
        client - the client (required)
        Returns:
        the submission retention thresholds applying to the client. If a specific setting is not constrained, the value in the result object will be null.
      • getSubmissionRetentionDefaults

        public static SubmissionRetentionSettings getSubmissionRetentionDefaults​(Form form)
        Calculate the global/organization default values that apply to data retention policies for the given form.
        Parameters:
        form - the form (required)
        Returns:
        the submission retention defaults for the form. All settings in the result should be set to values >= 0.
      • getSubmissionRetentionDefaults

        public static SubmissionRetentionSettings getSubmissionRetentionDefaults​(Client client)
        Calculate the global/organization default values that apply to data retention policies for the given client.
        Parameters:
        client - the client (required)
        Returns:
        the submission retention defaults for the client. All settings in the result should be set to values >= 0.