Interface LicenseService

  • All Known Implementing Classes:
    LicenseServiceImpl

    public interface LicenseService
    Encapsulate the deposit license.
    Author:
    mhwood
    • Method Detail

      • writeLicenseFile

        void writeLicenseFile​(String licenseFile,
                              String newLicense)
        Writes license to a text file.
        Parameters:
        licenseFile - name for the file into which license will be written, relative to the current directory.
        newLicense - new license
      • getLicenseText

        String getLicenseText​(String licenseFile)
        Get the License
        Parameters:
        licenseFile - file name
        Returns:
        license text
      • getDefaultSubmissionLicense

        String getDefaultSubmissionLicense()
        Get the site-wide default license that submitters need to grant
        Returns:
        the default license