Reinit_Sandbox

Version 1.2 by Pascal Bastien on 2014/07/10 18:53

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

This XAR provide a macro  to reinitialize periodically the SandBox space and overwriting by a SandBox template space.

This XAR 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 macr

  • 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)"

Prerequisites & Installation Instructions

By default the macro is not scheduled. You must schedule it and choose periodicity in ... scheduler.

Get Connected