public class LicenseServiceImpl extends Object implements LicenseService
| Modifier and Type | Field and Description |
|---|---|
protected String |
license
The default license
|
| Modifier | Constructor and Description |
|---|---|
protected |
LicenseServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultSubmissionLicense()
Get the site-wide default license that submitters need to grant
|
String |
getLicenseText(String licenseFile)
Get the License
|
protected void |
init()
Load in the default license.
|
void |
writeLicenseFile(String licenseFile,
String newLicense)
Writes license to a text file.
|
protected String license
public void writeLicenseFile(String licenseFile, String newLicense)
LicenseServicewriteLicenseFile in interface LicenseServicelicenseFile - name for the file into which license will be written,
relative to the current directory.public String getLicenseText(String licenseFile)
LicenseServicegetLicenseText in interface LicenseServicelicenseFile - file namepublic String getDefaultSubmissionLicense()
getDefaultSubmissionLicense in interface LicenseServiceprotected void init()
Copyright © 2016 DuraSpace. All Rights Reserved.