Class DataRetentionManagementServiceImplV2

java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.impl.DataRetentionManagementServiceImplV2
All Implemented Interfaces:
IDataRetentionManagementService

public class DataRetentionManagementServiceImplV2 extends CayenneService implements IDataRetentionManagementService
Provides a Data Retention Service that delegates calls the configured purgers for processing
Since:
24.04.0
  • Field Details

    • IMPORT_LOG_MAX_AGE_DAYS

      public static final int IMPORT_LOG_MAX_AGE_DAYS
      The maximum age for import log entries, both successful and failed (hard-coded)
      See Also:
    • maxEmailQueueAgeDays

      public int maxEmailQueueAgeDays
      The maximum age for email queue items
  • Constructor Details

    • DataRetentionManagementServiceImplV2

      public DataRetentionManagementServiceImplV2()
  • Method Details

    • getMaxImportLogAgeDays

      public int getMaxImportLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the max import log age days.
      Specified by:
      getMaxImportLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the max import log age days
    • getMaxAuditLogAgeDays

      public int getMaxAuditLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which an audit log entry becomes eligible for purging.
      Specified by:
      getMaxAuditLogAgeDays in interface IDataRetentionManagementService
      Returns:
      The age in days at which an audit log entry becomes eligible for purging
    • setMaxAuditLogAgeDays

      public void setMaxAuditLogAgeDays(int maxAuditLogAgeDays)
    • getMaxUserAuthEventAgeDays

      public int getMaxUserAuthEventAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a user authentication event becomes eligible for purging.
      Specified by:
      getMaxUserAuthEventAgeDays in interface IDataRetentionManagementService
      Returns:
      The age in days at which a user authentication event becomes eligible for purging
    • setMaxUserAuthEventAgeDays

      public void setMaxUserAuthEventAgeDays(int maxUserAuthEventAgeDays)
    • getMaxCollaborationJobAgeDays

      public int getMaxCollaborationJobAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the maximum age (in days) of collaboration jobs and all associated entities such as job steps, job actions and submissions.
      Specified by:
      getMaxCollaborationJobAgeDays in interface IDataRetentionManagementService
      Returns:
      the maximum age (in days) of collaboration jobs
    • setMaxCollaborationJobAgeDays

      public void setMaxCollaborationJobAgeDays(int maxCollaborationJobAgeDays)
    • getMaxCollaborationJobDataAgeDays

      public int getMaxCollaborationJobDataAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the maximum age (in days) of collaboration job data.
      Specified by:
      getMaxCollaborationJobDataAgeDays in interface IDataRetentionManagementService
      Returns:
      the maximum age (in days) of collaboration job data.
    • setMaxCollaborationJobDataAgeDays

      public void setMaxCollaborationJobDataAgeDays(int maxCollaborationJobDataAgeDays)
    • getMaxCollaborationJobAbandonAgeDays

      public int getMaxCollaborationJobAbandonAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the maximum age (in days) of collaboration jobs before Abandonment.
      Specified by:
      getMaxCollaborationJobAbandonAgeDays in interface IDataRetentionManagementService
      Returns:
      the maximum age (in days) of collaboration jobs before Abandonment.
    • setMaxCollaborationJobAbandonAgeDays

      public void setMaxCollaborationJobAbandonAgeDays(int maxCollaborationJobAbandonAgeDays)
    • getMaxEmailQueueAgeDays

      public int getMaxEmailQueueAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the max email queue age days.
      Specified by:
      getMaxEmailQueueAgeDays in interface IDataRetentionManagementService
      Returns:
      the max email queue age days
    • setMaxEmailQueueAgeDays

      public void setMaxEmailQueueAgeDays(int maxEmailQueueAgeDays)
    • getMaxErrorLogAgeDays

      public int getMaxErrorLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which an error log entry becomes eligible for purging.
      Specified by:
      getMaxErrorLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the age in days at which an error log entry becomes eligible for purging
    • setMaxErrorLogAgeDays

      public void setMaxErrorLogAgeDays(int maxErrorLogAgeDays)
    • getMaxEventLogAgeDays

      public int getMaxEventLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which an event log entry becomes eligible for purging.
      Specified by:
      getMaxEventLogAgeDays in interface IDataRetentionManagementService
      Returns:
      The age in days at which an event log entry becomes eligible for purging
    • setMaxEventLogAgeDays

      public void setMaxEventLogAgeDays(int maxEventLogAgeDays)
    • getMaxGroovyServiceLogAgeDays

      public int getMaxGroovyServiceLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a groovy service log entry becomes eligible for purging.
      Specified by:
      getMaxGroovyServiceLogAgeDays in interface IDataRetentionManagementService
      Returns:
      The age in days at which a groovy service log entry becomes eligible for purging
    • setMaxGroovyServiceLogAgeDays

      public void setMaxGroovyServiceLogAgeDays(int maxGroovyServiceLogAgeDays)
    • getMaxOfflineSyncLogAgeDays

      public int getMaxOfflineSyncLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a Field Worker sync log entry becomes eligible for purging.
      Specified by:
      getMaxOfflineSyncLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the age in days at which a Field Worker sync log entry becomes eligible for purging
    • setMaxOfflineSyncLogAgeDays

      public void setMaxOfflineSyncLogAgeDays(int maxOfflineSyncLogAgeDays)
    • getMaxSavedSubmissionAgeDays

      public int getMaxSavedSubmissionAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the max saved submission data age days.
      Specified by:
      getMaxSavedSubmissionAgeDays in interface IDataRetentionManagementService
      Returns:
      the max saved submission data age days
    • setMaxSavedSubmissionAgeDays

      public void setMaxSavedSubmissionAgeDays(int maxSavedSubmissionAgeDays)
    • getMaxScheduledJobHistoryAgeDays

      public int getMaxScheduledJobHistoryAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a scheduled job history entry becomes eligible for purging.
      Specified by:
      getMaxScheduledJobHistoryAgeDays in interface IDataRetentionManagementService
      Returns:
      the age in days at which a scheduled job history entry becomes eligible for purging.
    • setMaxScheduledJobHistoryAgeDays

      public void setMaxScheduledJobHistoryAgeDays(int maxScheduledJobHistoryAgeDays)
    • getMaxSecurityManagerLogAgeDays

      public int getMaxSecurityManagerLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a security manager log entry becomes eligible for purging.
      Specified by:
      getMaxSecurityManagerLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the age in days at which a security manager log entry becomes eligible for purging.
    • setMaxSecurityManagerLogAgeDays

      public void setMaxSecurityManagerLogAgeDays(int maxSecurityManagerLogAgeDays)
    • getMaxServerHealthLogAgeDays

      public int getMaxServerHealthLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the age in days at which a server health log entry becomes eligible for purging.
      Specified by:
      getMaxServerHealthLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the age in days at which a server health log entry becomes eligible for purging
    • setMaxServerHealthLogAgeDays

      public void setMaxServerHealthLogAgeDays(int maxServerHealthLogAgeDays)
    • getMaxSubmissionLogAgeDays

      public int getMaxSubmissionLogAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the max submission log age days.
      Specified by:
      getMaxSubmissionLogAgeDays in interface IDataRetentionManagementService
      Returns:
      the max submission log age days
    • setMaxSubmissionLogAgeDays

      public void setMaxSubmissionLogAgeDays(int maxSubmissionLogAgeDays)
    • getMaxTransactionHistoryAgeDays

      public int getMaxTransactionHistoryAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the maximum age of the transaction history in days.
      Specified by:
      getMaxTransactionHistoryAgeDays in interface IDataRetentionManagementService
      Returns:
      the maxTransactionHistoryAgeDays
    • setMaxTransactionHistoryAgeDays

      public void setMaxTransactionHistoryAgeDays(int maxTransactionHistoryAgeDays)
    • getMaxDeliveredSubmissionDataAgeDays

      public int getMaxDeliveredSubmissionDataAgeDays()
      Description copied from interface: IDataRetentionManagementService
      Return the max delivered submission data age in days.
      Specified by:
      getMaxDeliveredSubmissionDataAgeDays in interface IDataRetentionManagementService
      Returns:
      the purge delivered submission days
    • setMaxDeliveredSubmissionDataAgeDays

      public void setMaxDeliveredSubmissionDataAgeDays(int maxDeliveredSubmissionDataAgeDays)
    • getPiiSearchPurgeMode

      public String getPiiSearchPurgeMode()
      Specified by:
      getPiiSearchPurgeMode in interface IDataRetentionManagementService
      Returns:
      the piiSearchPurgeMode String
    • setPiiSearchPurgeMode

      public void setPiiSearchPurgeMode(String piiSearchPurgeMode)
    • setEnforceGlobalThreshold

      public void setEnforceGlobalThreshold(boolean enforceGlobalThreshold)
    • getCommitBatch

      public int getCommitBatch()
    • setCommitBatch

      public void setCommitBatch(int commitBatch)
    • getFetchLimitForTransactionPurging

      public int getFetchLimitForTransactionPurging()
    • setFetchLimitForTransactionPurging

      public void setFetchLimitForTransactionPurging(int fetchLimitForTransactionPurging)
    • getMaxDataRetentionPeriod

      public int getMaxDataRetentionPeriod()
    • setMaxDataRetentionPeriod

      public void setMaxDataRetentionPeriod(int maxDataRetentionPeriod)
    • isEnforceGlobalThreshold

      public boolean isEnforceGlobalThreshold()
      Description copied from interface: IDataRetentionManagementService
      Return whether the service is configured to enforce global policies over organization and form level policies. If set, organizations and forms cannot specify retention times that are less restrictive (=longer) than the current global settings.
      Specified by:
      isEnforceGlobalThreshold in interface IDataRetentionManagementService
      Returns:
      whether the service is configured to enforce global policies
    • isLogToEventLog

      public boolean isLogToEventLog()
    • setLogToEventLog

      public void setLogToEventLog(boolean value)
      Description copied from interface: IDataRetentionManagementService
      Specify whether to log the results of the data retention job to the event log.
      Specified by:
      setLogToEventLog in interface IDataRetentionManagementService
      Parameters:
      value - to specify whether to log the results of the data retention job to the event log
    • applyDataRetentionPolicy

      public int applyDataRetentionPolicy()
      Description copied from interface: IDataRetentionManagementService
      Apply data retention policies and return the number of records deleted using service params values
      Specified by:
      applyDataRetentionPolicy in interface IDataRetentionManagementService
      Returns:
      the number of records deleted
    • applyDataRetentionPolicy

      public int applyDataRetentionPolicy(int purgeTxnsFetchLimit, int maxPeriodSec)
      Description copied from interface: IDataRetentionManagementService
      Apply data retention policies and return the number of records deleted.
      Specified by:
      applyDataRetentionPolicy in interface IDataRetentionManagementService
      Parameters:
      purgeTxnsFetchLimit - the fast mode purge transactions fetch limit
      maxPeriodSec - the maximum amount of time to perform data retention in seconds
      Returns:
      the number of records deleted