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