Application Manager API

Last modified by Admin on 2022/02/28 00:04

cogAPI to manage application descriptors
TypeJAR
Category
Developed by

XWiki Development Team

Active Installs18
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

This module has been deprecated and moved to https://github.com/xwiki-contrib/xwiki-platform-application-manager.

This plugin is a set of convenient methods to deals with "Applications" documents descriptors.

Application descriptor contains :

  • application name : Simply the name of the application.
  • application version : Version of the application. Just an information, it is not really used yet.
  • text description : A test description of application and what it can be used for.
  • plugins dependencies (not used yet) : The goal of this information is to permit to check if all xwiki java plugins needed are here.
  • others applications dependencies : An application can need other application to work. For exemple "Application Manager App" need "XWikiApplicationClass App".
  • documents application contains : The documents that compose the applications except documents already seted in applications dependencies.
  • translations documents : The documents used for resolve translation strings. It'is used an application installation to update XWikiPreferences "documentBundles" field.
  • documents to include in place of copy : Used in case of wiki template mainly. Documents listed here will ne copied in the new wiki but with overloaded contents that include the template wiki one

ex :

#includeInContext("templatewiki:Space.Document")
  • documents to link in place of copy (not used yet) : same concept as include overload at copy but here with a real link. It means when editing the wiki document, it in fact the linked document located in the template wiki that is edited. This is not used for now as these feature (real link) does not exist in XWiki yet.

Current features :

  • create new application descriptor
  • delete application descriptor
  • export application based on XWiki Package internal plugin
  • import application based on XWiki Package internal plugin
  • support applications dependencies
  • support documents share between wikis base in content import
  • support translations documents

You can see last release note to here.

Usage

Since 3.3

The plugin way of accessing the API is still valid if you registered the plugin in xwiki.cfg but the recommended way is now

{{velocity}}
$services.applicationmanager
{{/velocity}}

Before 3.3

You can access the plugin API using

{{velocity}}
$xwiki.applicationmanager
{{/velocity}}

Dependencies

This is mainly written to be used by Application Manager Application.

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

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Since 3.3

  • Add the JAR in your container classpath (WEB-INF/lib)

Before 3.3

Follow these steps:

  • Add the JAR in your container classpath (WEB-INF/lib)
  • Edit xwiki.cfg and add the following line to the list of plugins :
    xwiki.plugins=\
          [...]
           ... ,\
         <plugin package>
  • Restart your container
  • Verify the plugin is properly installed by typing the following in a wiki page :
    {{velocity}}
    $xwiki.<plugin name>.name
    {{/velocity}}

    If the installation has been successful, you will see <plugin name>.

The <plugin name> for Application Manager is applicationmanager.

Dependencies

Dependencies for this extension (org.xwiki.platform:xwiki-platform-application-manager-api 8.2.2):

  • org.xwiki.platform:xwiki-platform-oldcore 8.2.2
Tags:
    

Get Connected