Reinitialize Sandbox Application
Version 6.1 by Vincent Massol on 2014/07/12 11:25
Reinitializes the SandBox space by using a SandBox space template |
Type | XAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Provides an application to reinitialize periodically the SandBox space by overwriting it with clean pages located in another space.
This application provides the following:
- A page to launch manually (and/or by scheduler) the SandBox reinitialisation, in SandboxTemplate.ReinitSandboxMacro
- A template space of Sandbox (i.e. list of clean Sandbox pages):
- SandboxTemplate.WebHome (all languages are present)
- SandboxTemplate.TestPage1
- SandboxTemplate.TestPage2
- SandboxTemplate.TestPage3
- Configured to forbid access to the SandboxTemplate space for XWikiAllGroup
- A Scheduler job to launch automatically the reinitialisation, in Scheduler.Reinit Sandbox
If you click on "Reinitialisation of Sandbox space (without confirmation)" in SandboxTemplate.ReinitSandboxMacro, the macro will
- erase ALL Sandbox space pages
- overwrite Sandbox by this space SandboxTemplate
- and unhide Sandbox space
Of course, it is recommended to backup your Sandbox space before and test with this link: "Mode Debug: 'Reinitialisation of Sandbox space' (without modification)"
Know bugs:
- missing English translation :-)
- copy from SanboxTemplate.WebHome copies only one language (because of copyDocument function limitation)
Prerequisites & Installation Instructions
By default the macro is not scheduled. You must schedule it and choose periodicity in ... scheduler.