Package org.dspace.core
Class LicenseServiceImpl
java.lang.Object
org.dspace.core.LicenseServiceImpl
- All Implemented Interfaces:
LicenseService
Encapsulate the deposit license.
- Author:
- mhwood
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the site-wide default license that submitters need to grant Localized license requires: default_{{locale}}.license file.getLicenseText(String licenseFile) Get the Licenseprotected voidinit()Load in the default license.voidwriteLicenseFile(String licenseFile, String newLicense) Writes license to a text file.
-
Field Details
-
license
The default license
-
-
Constructor Details
-
LicenseServiceImpl
protected LicenseServiceImpl()
-
-
Method Details
-
writeLicenseFile
Description copied from interface:LicenseServiceWrites license to a text file.- Specified by:
writeLicenseFilein interfaceLicenseService- Parameters:
licenseFile- name for the file into which license will be written, relative to the current directory.newLicense- new license
-
getLicenseText
Description copied from interface:LicenseServiceGet the License- Specified by:
getLicenseTextin interfaceLicenseService- Parameters:
licenseFile- file name- Returns:
- license text
-
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:
getDefaultSubmissionLicensein interfaceLicenseService- Returns:
- the default license
-
init
protected void init()Load in the default license.
-