Class ProMacroLicensingScriptService

java.lang.Object
com.xwiki.macros.script.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 Details

    • ProMacroLicensingScriptService

      public ProMacroLicensingScriptService()
  • Method Details

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