Class LicenseServiceImpl

    • Field Detail

      • license

        protected String license
        The default license
    • Constructor Detail

      • LicenseServiceImpl

        protected LicenseServiceImpl()
    • Method Detail

      • writeLicenseFile

        public void writeLicenseFile​(String licenseFile,
                                     String newLicense)
        Description copied from interface: LicenseService
        Writes license to a text file.
        Specified by:
        writeLicenseFile in interface LicenseService
        Parameters:
        licenseFile - name for the file into which license will be written, relative to the current directory.
        newLicense - new license
      • getDefaultSubmissionLicense

        public String getDefaultSubmissionLicense()
        Get the site-wide default license that submitters need to grant Localized license requires: default_{{locale}}.license file. Locale also must be listed in webui.supported.locales setting.
        Specified by:
        getDefaultSubmissionLicense in interface LicenseService
        Returns:
        the default license
      • init

        protected void init()
        Load in the default license.