Job to publish and unpublish sites based on a site property
GENERAL
TESTING
GENERAL
TESTING
Description
Attachments
1
- 07 Oct 2015, 01:43 PM
Activity
Show:
Details
Details
Priority
Components
Assignee
Unassigned
UnassignedReporter

Labels
Created October 7, 2015 at 1:45 PM
Updated August 1, 2017 at 12:28 PM
This is a simple job that publish any site with this site property:
publish-date: 2015/05/15
where the date is today's date in the moment the job runs, and is in that format (yyyy/MM/dd).
And it unpublish sites following the same criteria about site properties:
unpublish-date:2015/07/23
If publish and unpublish date is the same, it unpublish it.
If someone find this useful I can try to do a pull request to add this to Sakai 11. Meanwhile here is the patch in the case someone wants to use it.