Submission CC license: Adding overrides & removing unused class

This commit is contained in:
Kevin Van de Velde
2020-05-27 17:11:52 +02:00
parent ffce2e4299
commit df01297539
3 changed files with 4 additions and 36 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}

View File

@@ -40,6 +40,7 @@ public class SubmissionCCLicenseUrlRest extends BaseObjectRest<String> {
return NAME;
}
@Override
public String getCategory() {
return SubmissionCCLicenseRest.CATEGORY;
}