Class ProMacroLicensingScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("promacrolicensing")
    @Singleton
    @Unstable
    public class ProMacroLicensingScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Check license for pro macros. This is a workaround for https://github.com/xwikisas/xwiki-pro-macros/issues/593, since the pro macros legacy license issue will be fixed after a second app upgrade and we don't want to affect users in the meantime. This will be removed after some time, so admins have time to do at least 2 upgrades and have their license fixed.
    Since:
    1.27.2
    Version:
    $Id$
    • Constructor Detail

      • ProMacroLicensingScriptService

        public ProMacroLicensingScriptService()
    • Method Detail

      • hasLicensureForEntity

        public boolean hasLicensureForEntity​(org.xwiki.model.reference.EntityReference docRef)
        Parameters:
        docRef - the document to check
        Returns:
        whether a valid license matches the given document.