Farm Tools

Last modified by Anca Luca on 2023/12/18 00:03

cogBundle of tools useful to manage an XWiki Farm
TypeXAR
Category
Developed by

Denis Gervalle, Alex Cotiugă

Active Installs16
Rating
1 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

This is a bundle of tools for XWiki farm administrator.

The bundle is actually composed of:

Farm Importer

Ease importing a XAR package on multiple wikis.

Instructions:

  • Attach the desired .xar to the FarmTools.FarmImporter page
  • Autocomplete will help you while you type in the xar input of the form
  • You can start the xar import on the selected batch of wikis by pressing the 'Start' button. You can also cancel the operation on the upcoming wikis by pressing the 'Cancel' button

Farm Property Updater

Batch property updater for objects in multiple wikis.
It is currently split in two separate tools:

  • Farm Field Value Updater (FarmTools.FarmFieldValueUpdater)
  • Farm Preferences Updater (FarmTools.FarmPreferencesUpdater)

Both tools allows to change the value of a given object property from one value to another. You select the name of the document containing the object to change (without wiki prefix), and the same document in all wikis will get its object property updated. The object selected is always the first object matching the object class to be updated.

In the Farm Field Value Updater, you can freely choose the object class you want to update, and you can set a constant value to one of its properties.

In the Farm Preferences Updater, the object is always of class 'XWiki.XWikiPreferences', so only properties of this class could be updated. The update is done using a RegEx and a replacement value, so you have the ability to manipulate the existing value to produce the new one.
Additionally, in this second tool, there is a special property named "doc.parent", which allows you to update the parent of any chosen document using the same RegEx mechanism.

Farm Default Language Updater

Allows to update the default language of a set of pages, specified by a list of spaces (trees). Useful when the default language of a wiki was not set properly in the administration and the default language needs to be fixed.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Release Notes

v2.7

v2.6

v2.5.1

v2.5

v2.4

v2.3

v2.1

v2.0

Dependencies

Dependencies for this extension (org.xwiki.contrib.farmtools:application-farm-tools 2.7):

Get Connected