Uses of Class
org.exoplatform.addons.documents.cleanup.model.CleanupParams
Packages that use CleanupParams
Package
Description
-
Uses of CleanupParams in org.exoplatform.addons.documents.cleanup.rest.util
Methods in org.exoplatform.addons.documents.cleanup.rest.util that return CleanupParamsModifier and TypeMethodDescriptionstatic CleanupParamsCleanupEntityBuilder.toParamOverrides(CampaignRestEntity entity) Methods in org.exoplatform.addons.documents.cleanup.rest.util with parameters of type CleanupParamsModifier and TypeMethodDescriptionstatic CampaignRestEntityCleanupEntityBuilder.buildDefaults(CleanupParams params, int maxScanThreads) The platform DEFAULTS as the creation form consumes them: the same field names a campaign carries, so the form fills from either shape, plus the ceiling the scan-thread input must not exceed. -
Uses of CleanupParams in org.exoplatform.addons.documents.cleanup.service
Methods in org.exoplatform.addons.documents.cleanup.service that return CleanupParamsModifier and TypeMethodDescriptionCleanupCampaignService.getDefaultParams()CleanupSettingService.getDefaultParams()CleanupSettingService.getEffectiveParams(CleanupParams overrides) Methods in org.exoplatform.addons.documents.cleanup.service with parameters of type CleanupParamsModifier and TypeMethodDescriptionCleanupCampaignService.createCampaign(String name, CleanupParams overrides) Creates a campaign snapshotting the effective parameters, then launches its dry-run scan.CleanupSettingService.getEffectiveParams(CleanupParams overrides) voidCleanupSettingService.updateDefaultParams(CleanupParams params) Persists new platform defaults (overriding exo.properties values). -
Uses of CleanupParams in org.exoplatform.addons.documents.cleanup.storage
Methods in org.exoplatform.addons.documents.cleanup.storage with parameters of type CleanupParamsModifier and TypeMethodDescriptionCleanupJcrStorage.purgeVersions(String nodeUuid, CleanupParams params) Purges the versions of a file selected byCleanupCriterionEvaluator.selectVersionsToRemove(java.util.Map<java.lang.String, java.lang.Long>, java.lang.String, java.lang.String, org.exoplatform.addons.documents.cleanup.model.CleanupParams, long): those older than the campaign period by their OWN creation date, plus — of the versions remaining inside the period — the oldest ones still exceedingmaxVersionsPerFile.CleanupJcrStorage.revalidate(String nodeUuid, CleanupParams params) Re-evaluates a node against the campaign criteria, at execution or refresh time.voidCleanupJcrStorage.scanRoot(String rootPath, String resumeAfterPath, int batchSize, CleanupParams params, CleanupJcrStorage.ScanBatchConsumer batchConsumer) Scans the path-ordered nt:file nodes under the given root with a SINGLE query, streaming the qualifying cleanup candidates to the consumer in batches ofbatchSizescanned nodes (the last batch may cover fewer). -
Uses of CleanupParams in org.exoplatform.addons.documents.cleanup.util
Methods in org.exoplatform.addons.documents.cleanup.util with parameters of type CleanupParamsModifier and TypeMethodDescriptionstatic CleanupActionCleanupCriterionEvaluator.evaluateLazily(long createdTime, long lastModifiedTime, int purgeableVersionCount, String path, CleanupParams params, long nowMillis, LongSupplier fileSizeSupplier, LongSupplier purgeableVersionsSizeSupplier) The candidate criterion, with the two sizes supplied lazily: a supplier is invoked ONLY when the decision cannot be reached without it.CleanupCriterionEvaluator.selectVersionsToRemove(Map<String, Long> versionCreationDates, String rootVersionName, String baseVersionName, CleanupParams params, long nowMillis) Selects the versions of a versionable file to remove, as the UNION of the TWO purge rules — an age rule and a count rule — the architect ruled on: neither replaces the other.