we have a client with a daily import of web contents in their site, and every day, after this import, they must run a staging to transfer the content to the production site.
Is there a way to trigger the staging functionality programmatically?
Thank you in advance, Harry
I think, here is an answer to the question:
We scheduled a staging and we looked at the job entry in the quartz tables. It seems that the class that handles the job is the PersistedQuartzSchedulerEngineInstance
and in there there is a call of the method StagingUtil.copyRemoteLayouts
that doesn't use any portletrequests in the parameters.
That is exactly what I have been searching for. The only problem is to define the parameters map, that contains all the selections of the UI, when defining a scheduled publish to remote.
This method will trigger a staging by running a background task.