mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Submission CC license: Adding overrides & removing unused class
This commit is contained in:
@@ -37,6 +37,7 @@ public class SubmissionCCLicenseUrlResourceHalLinkFactory
|
||||
* @param list - The list of present links
|
||||
* @throws Exception
|
||||
*/
|
||||
@Override
|
||||
protected void addLinks(SubmissionCCLicenseUrlResource halResource, final Pageable pageable,
|
||||
LinkedList<Link> list)
|
||||
throws Exception {
|
||||
@@ -54,10 +55,12 @@ public class SubmissionCCLicenseUrlResourceHalLinkFactory
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Class<SubmissionCCLicenseSearchController> getControllerClass() {
|
||||
return SubmissionCCLicenseSearchController.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Class<SubmissionCCLicenseUrlResource> getResourceClass() {
|
||||
return SubmissionCCLicenseUrlResource.class;
|
||||
}
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/**
|
||||
* The contents of this file are subject to the license and copyright
|
||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||
* tree and available online at
|
||||
*
|
||||
* http://www.dspace.org/license/
|
||||
*/
|
||||
package org.dspace.app.rest.model;
|
||||
|
||||
/**
|
||||
* Rest object used to represent a plain text value
|
||||
*/
|
||||
public class PlainTextValueRest {
|
||||
public static final String TYPE = "plaintextvalue";
|
||||
|
||||
private String value;
|
||||
|
||||
public PlainTextValueRest() {
|
||||
}
|
||||
|
||||
public PlainTextValueRest(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(final String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return TYPE;
|
||||
}
|
||||
}
|
@@ -40,6 +40,7 @@ public class SubmissionCCLicenseUrlRest extends BaseObjectRest<String> {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCategory() {
|
||||
return SubmissionCCLicenseRest.CATEGORY;
|
||||
}
|
||||
|
Reference in New Issue
Block a user