Package org.dspace.core.service
Interface LicenseService
- All Known Implementing Classes:
LicenseServiceImpl
public interface LicenseService
Encapsulate the deposit license.
- Author:
- mhwood
-
Method Summary
Modifier and TypeMethodDescriptionGet the site-wide default license that submitters need to grantgetLicenseText(String licenseFile) Get the LicensevoidwriteLicenseFile(String licenseFile, String newLicense) Writes license to a text file.
-
Method Details
-
writeLicenseFile
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
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
-