Package org.saidone.job
Class NodeArchivingJob
java.lang.Object
org.saidone.component.BaseComponent
org.saidone.job.NodeArchivingJob
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Component
@ConditionalOnProperty(name="application.archiving-job.enabled",
havingValue="true")
@EnableScheduling
public class NodeArchivingJob
extends BaseComponent
Schedules and executes the periodic archiving of Alfresco nodes matching a configurable query.
This component runs only if the property 'application.archiving-job.enabled' is set to true. It uses the AlfrescoService to search for nodes based on a query string and archives each found node through the VaultService. The schedule for execution and the search query are defined in the application configuration. Archiving execution is synchronized to avoid overlapping runs.
The job is intended to automate the archival of nodes in regular intervals and ensure that only one instance of the archive operation runs at any given time.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.saidone.component.BaseComponent
init, setApplicationContext, shutDown, stop
-
Constructor Details
-
NodeArchivingJob
public NodeArchivingJob()
-