Reinit_Sandbox

Version 5.2 by Pascal Bastien on 2014/07/11 10:41

cogVelocity Macro to reinitialize the SandBox from a SandBox template
TypeXAR
Category
Developed by

Pascal Bastien

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

Provide a macro to reinitialize periodically the SandBox space and overwriting by a SandBox template space.

This XAR ReinitSandboxMacro-v0.9.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)"

ReinitSandbox.png

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.

Get Connected