Class DeprecatedXarExtensionScriptService

  • All Implemented Interfaces:
    org.xwiki.component.phase.Initializable, org.xwiki.script.service.ScriptService

    @Component
    @Named("xarextension")
    @Singleton
    @Deprecated
    public class DeprecatedXarExtensionScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService, org.xwiki.component.phase.Initializable
    Deprecated.
    since 5.3M1, it's a sub ScriptService of the extension one now, see XarExtensionScriptService
    Various XAR oriented APIs for scripts.
    Version:
    $Id: 6ad0af50e6fa604d199588898b5c537d021a30c7 $
    • Constructor Detail

      • DeprecatedXarExtensionScriptService

        public DeprecatedXarExtensionScriptService()
        Deprecated.
    • Method Detail

      • initialize

        public void initialize()
                        throws org.xwiki.component.phase.InitializationException
        Deprecated.
        Specified by:
        initialize in interface org.xwiki.component.phase.Initializable
        Throws:
        org.xwiki.component.phase.InitializationException
      • getLastError

        public Exception getLastError()
        Deprecated.
        Get the error generated while performing the previously called action.
        Returns:
        an eventual exception or null if no exception was thrown
      • repairInstalledExtension

        public org.xwiki.job.Job repairInstalledExtension​(String id,
                                                          String version,
                                                          String wiki)
        Deprecated.
        Make sure the provided XAR extension properly is registered in the installed extensions index.

        Start an asynchronous Job.

        Parameters:
        id - the extension identifier
        version - the extension version
        wiki - the wiki where the extension is installed
        Returns:
        the Job object which can be used to monitor the progress of the installation process, or null in case of failure