Package com.avoka.fc.core.service
Interface IDataRetentionManagementService
- All Known Implementing Classes:
DataRetentionManagementServiceImpl
,DataRetentionManagementServiceImplV2
public interface IDataRetentionManagementService
Provides an interface for submission data purge service.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The 'enforceGlobalThreshold' parameter name.static final String
The 'maxAuditLogAgeDays' parameter name.static final String
The 'maxCollaborationJobAbandonAgeDays' parameter name.static final String
The 'maxCollaborationJobAgeDays' parameter name.static final String
The 'maxCollaborationJobDataAgeDays' parameter name.static final String
The 'maxDeliveredSubmissionDataAgeDays' parameter name.static final String
The 'maxEmailQueueAgeDays' parameter name.static final String
The 'maxErrorLogAgeDays' parameter name.static final String
The 'maxEventLogAgeDays' parameter name.static final String
The 'maxGroovyServiceLogAgeDays' parameter name.static final String
The 'maxOfflineSyncLogAgeDays' parameter name.static final String
The 'maxSavedSubmissionAgeDays' parameter name.static final String
The 'maxScheduledJobHistoryAgeDays' parameter name.static final String
The 'maxSecurityManagerLogAgeDays' parameter name.static final String
The 'maxSubmissionLogAgeDays' parameter name.static final String
The 'maxSubmissionLogMetricsAgeDays' parameter name.static final String
The 'maxUserAuthEventAgeDays' parameter name.static final String
the 'piiSearchPurgeMode' parameter name.static final String
The PII Search Setting value Purge Time.static final String
The PII Search Setting value Delivery Completed.static final String
The PII Search Setting value Form Status Completed. -
Method Summary
Modifier and TypeMethodDescriptionint
Apply data retention policies and return the number of records deleted using service params valuesint
applyDataRetentionPolicy
(int purgeTxnsFetchLimit, int maxPeriodSec) Apply data retention policies and return the number of records deleted.int
Return the age in days at which an audit log entry becomes eligible for purging.int
Return the maximum age (in days) of collaboration jobs before Abandonment.int
Return the maximum age (in days) of collaboration jobs and all associated entities such as job steps, job actions and submissions.int
Return the maximum age (in days) of collaboration job data.int
Return the max delivered submission data age in days.int
Return the max email queue age days.int
Return the age in days at which an error log entry becomes eligible for purging.int
Return the age in days at which an event log entry becomes eligible for purging.int
Return the age in days at which a groovy service log entry becomes eligible for purging.int
Return the max import log age days.int
Return the age in days at which a Field Worker sync log entry becomes eligible for purging.int
Return the max saved submission data age days.int
Return the age in days at which a scheduled job history entry becomes eligible for purging.int
Return the age in days at which a security manager log entry becomes eligible for purging.int
Return the age in days at which a server health log entry becomes eligible for purging.int
Return the max submission log age days.int
Return the maximum age of the transaction history in days.int
Return the age in days at which a user authentication event becomes eligible for purging.boolean
Return whether the service is configured to enforce global policies over organization and form level policies.void
setLogToEventLog
(boolean value) Specify whether to log the results of the data retention job to the event log.
-
Field Details
-
PARAM_MAX_AUDIT_LOG_AGE_DAYS
The 'maxAuditLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_COLLABORATION_JOB_AGE_DAYS
The 'maxCollaborationJobAgeDays' parameter name.- See Also:
-
PARAM_MAX_COLLABORATION_JOB_ABANDON_AGE_DAYS
The 'maxCollaborationJobAbandonAgeDays' parameter name.- See Also:
-
PARAM_MAX_COLLABORATION_JOB_DATA_AGE_DAYS
The 'maxCollaborationJobDataAgeDays' parameter name.- Since:
- 24.4.0
- See Also:
-
PARAM_MAX_EMAIL_QUEUE_AGE_DAYS
The 'maxEmailQueueAgeDays' parameter name.- See Also:
-
PARAM_MAX_ERROR_LOG_AGE_DAYS
The 'maxErrorLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_EVENT_LOG_AGE_DAYS
The 'maxEventLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_GROOVY_SERVICE_LOG_AGE_DAYS
The 'maxGroovyServiceLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_OFFLINE_SYNC_LOG_AGE_DAYS
The 'maxOfflineSyncLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_SCHEDULED_JOB_HISTORY_AGE_DAYS
The 'maxScheduledJobHistoryAgeDays' parameter name.- See Also:
-
PARAM_MAX_SECURITY_MANAGER_LOG_AGE_DAYS
The 'maxSecurityManagerLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_SUBMISSION_LOG_AGE_DAYS
The 'maxSubmissionLogAgeDays' parameter name.- See Also:
-
PARAM_MAX_SAVED_SUBMISSION_AGE_DAYS
The 'maxSavedSubmissionAgeDays' parameter name.- See Also:
-
PARAM_MAX_TRANSACTION_HISTORY_AGE_DAYS
The 'maxSubmissionLogMetricsAgeDays' parameter name.- See Also:
-
PARAM_MAX_DELIVERED_SUBMISSION_DATA_AGE_DAYS
The 'maxDeliveredSubmissionDataAgeDays' parameter name.- See Also:
-
PARAM_MAX_USER_AUTH_EVENT_AGE_DAYS
The 'maxUserAuthEventAgeDays' parameter name.- See Also:
-
PARAM_ENFORCE_GLOBAL_THRESHOLD
The 'enforceGlobalThreshold' parameter name.- See Also:
-
PARAM_PII_SEARCH_PURGE_MODE
the 'piiSearchPurgeMode' parameter name.- See Also:
-
PII_SEARCH_PURGE_MODE_FORM_COMPLETED
The PII Search Setting value Form Status Completed.- See Also:
-
PII_SEARCH_PURGE_MODE_DELIVERY_COMPLETED
The PII Search Setting value Delivery Completed.- See Also:
-
PARAM_PII_SEARCH_PURGE_MODE_PURGE_TIME
The PII Search Setting value Purge Time.- See Also:
-
-
Method Details
-
applyDataRetentionPolicy
int applyDataRetentionPolicy()Apply data retention policies and return the number of records deleted using service params values- Returns:
- the number of records deleted
- Since:
- 23.10.0
-
applyDataRetentionPolicy
int applyDataRetentionPolicy(int purgeTxnsFetchLimit, int maxPeriodSec) Apply data retention policies and return the number of records deleted.- Parameters:
purgeTxnsFetchLimit
- the fast mode purge transactions fetch limitmaxPeriodSec
- the maximum amount of time to perform data retention in seconds- Returns:
- the number of records deleted
-
getMaxAuditLogAgeDays
int getMaxAuditLogAgeDays()Return the age in days at which an audit log entry becomes eligible for purging.- Returns:
- The age in days at which an audit log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxCollaborationJobAgeDays
int getMaxCollaborationJobAgeDays()Return the maximum age (in days) of collaboration jobs and all associated entities such as job steps, job actions and submissions.- Returns:
- the maximum age (in days) of collaboration jobs
- Since:
- 4.3.3
-
getMaxCollaborationJobAbandonAgeDays
int getMaxCollaborationJobAbandonAgeDays()Return the maximum age (in days) of collaboration jobs before Abandonment.- Returns:
- the maximum age (in days) of collaboration jobs before Abandonment.
- Since:
- 22.4.0
-
getMaxCollaborationJobDataAgeDays
int getMaxCollaborationJobDataAgeDays()Return the maximum age (in days) of collaboration job data.- Returns:
- the maximum age (in days) of collaboration job data.
- Since:
- 24.4.0
-
getMaxEmailQueueAgeDays
int getMaxEmailQueueAgeDays()Return the max email queue age days.- Returns:
- the max email queue age days
- Since:
- 4.1.0
-
getMaxErrorLogAgeDays
int getMaxErrorLogAgeDays()Return the age in days at which an error log entry becomes eligible for purging.- Returns:
- the age in days at which an error log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxEventLogAgeDays
int getMaxEventLogAgeDays()Return the age in days at which an event log entry becomes eligible for purging.- Returns:
- The age in days at which an event log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxGroovyServiceLogAgeDays
int getMaxGroovyServiceLogAgeDays()Return the age in days at which a groovy service log entry becomes eligible for purging.- Returns:
- The age in days at which a groovy service log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxImportLogAgeDays
int getMaxImportLogAgeDays()Return the max import log age days.- Returns:
- the max import log age days
- Since:
- 4.1.0
-
getMaxOfflineSyncLogAgeDays
int getMaxOfflineSyncLogAgeDays()Return the age in days at which a Field Worker sync log entry becomes eligible for purging.- Returns:
- the age in days at which a Field Worker sync log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxScheduledJobHistoryAgeDays
int getMaxScheduledJobHistoryAgeDays()Return the age in days at which a scheduled job history entry becomes eligible for purging.- Returns:
- the age in days at which a scheduled job history entry becomes eligible for purging.
- Since:
- 4.3.0
-
getMaxSecurityManagerLogAgeDays
int getMaxSecurityManagerLogAgeDays()Return the age in days at which a security manager log entry becomes eligible for purging.- Returns:
- the age in days at which a security manager log entry becomes eligible for purging.
- Since:
- 5.1.0
-
getMaxServerHealthLogAgeDays
int getMaxServerHealthLogAgeDays()Return the age in days at which a server health log entry becomes eligible for purging.- Returns:
- the age in days at which a server health log entry becomes eligible for purging
- Since:
- 4.1.0
-
getMaxSubmissionLogAgeDays
int getMaxSubmissionLogAgeDays()Return the max submission log age days.- Returns:
- the max submission log age days
- Since:
- 4.1.0
-
getMaxDeliveredSubmissionDataAgeDays
int getMaxDeliveredSubmissionDataAgeDays()Return the max delivered submission data age in days.- Returns:
- the purge delivered submission days
- Since:
- 4.1.0
-
getMaxSavedSubmissionAgeDays
int getMaxSavedSubmissionAgeDays()Return the max saved submission data age days.- Returns:
- the max saved submission data age days
- Since:
- 4.1.0
-
getMaxTransactionHistoryAgeDays
int getMaxTransactionHistoryAgeDays()Return the maximum age of the transaction history in days.- Returns:
- the maxTransactionHistoryAgeDays
- Since:
- 4.1.0
-
getMaxUserAuthEventAgeDays
int getMaxUserAuthEventAgeDays()Return the age in days at which a user authentication event becomes eligible for purging.- Returns:
- The age in days at which a user authentication event becomes eligible for purging
- Since:
- 4.1.3
-
isEnforceGlobalThreshold
boolean isEnforceGlobalThreshold()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.- Returns:
- whether the service is configured to enforce global policies
- Since:
- 4.1.0
-
getPiiSearchPurgeMode
String getPiiSearchPurgeMode()- Returns:
- the piiSearchPurgeMode String
- Since:
- 18.11.0
-
setLogToEventLog
void setLogToEventLog(boolean value) Specify whether to log the results of the data retention job to the event log.- Parameters:
value
- to specify whether to log the results of the data retention job to the event log- Since:
- 4.3.3
-