Reinitialize Sandbox Application

Version 6.1 by Vincent Massol on 2014/07/12 11:25

cogReinitializes the SandBox space by using a SandBox space template
TypeXAR
Category
Developed by

Pascal Bastien

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

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

ReinitSandbox.png

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.

Get Connected