mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +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
|
* @param list - The list of present links
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void addLinks(SubmissionCCLicenseUrlResource halResource, final Pageable pageable,
|
protected void addLinks(SubmissionCCLicenseUrlResource halResource, final Pageable pageable,
|
||||||
LinkedList<Link> list)
|
LinkedList<Link> list)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
@@ -54,10 +55,12 @@ public class SubmissionCCLicenseUrlResourceHalLinkFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Class<SubmissionCCLicenseSearchController> getControllerClass() {
|
protected Class<SubmissionCCLicenseSearchController> getControllerClass() {
|
||||||
return SubmissionCCLicenseSearchController.class;
|
return SubmissionCCLicenseSearchController.class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected Class<SubmissionCCLicenseUrlResource> getResourceClass() {
|
protected Class<SubmissionCCLicenseUrlResource> getResourceClass() {
|
||||||
return SubmissionCCLicenseUrlResource.class;
|
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;
|
return NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getCategory() {
|
public String getCategory() {
|
||||||
return SubmissionCCLicenseRest.CATEGORY;
|
return SubmissionCCLicenseRest.CATEGORY;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user