Reinit_Sandbox
Version 5.2 by Pascal Bastien on 2014/07/11 10:41
Velocity Macro to reinitialize the SandBox from a SandBox template |
Type | XAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Provide a macro to reinitialize periodically the SandBox space and overwriting by a SandBox template space.
This XAR
simply add this documents:- Velocity code to launch manually (and/or by scheduler) SandBox reinitialisation
- SandboxTemplate.ReinitSandboxMacro
- Template space of Sandbox:
- SandboxTemplate.WebHome (all languages are present)
- SandboxTemplate.TestPage1
- SandboxTemplate.TestPage2
- SandboxTemplate.TestPage3
- ACL to forbiden SanboxTemplate space dor XWikiAllGroup
- SandboxTemplate.WebPreferences
- Scheduler to launch automaticaly the reinitialisation:
- Scheduler.Reinit Sandbox from SandboxTemplate
If you click on "Reinitialisation of Sandbox space (without confirmation)" on SandboxTemplate.ReinitSandboxMacro, the macro
- erase ALL Sandbox space
- overwriting 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 bug:
- english translation :-)
- copy from SanboxTemplate.WebHome, copi 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.