Skip to content
Snippets Groups Projects
Commit 19439fda authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

refactor: remove unused homepage property

parent a1c64a2a
No related branches found
No related tags found
1 merge request!1189feat: add SitemapController
......@@ -37,7 +37,6 @@ import org.springframework.web.bind.annotation.RestController;
import ch.unige.solidify.config.SolidifyProperties;
import ch.unige.solidify.controller.SolidifySitemapController;
import ch.dlcm.config.DLCMProperties;
import ch.dlcm.model.MetadataVisibility;
import ch.dlcm.model.index.ArchiveMetadata;
import ch.dlcm.rest.UrlPath;
......@@ -51,11 +50,8 @@ public class SitemapController extends SolidifySitemapController {
private static final String INDEX_FIELD_ARCHIVE_ID = "_id";
private final SearchService searchService;
public SitemapController(
SolidifyProperties config,
DLCMProperties dlcmProperties,
SearchService searchService) {
super(config, dlcmProperties.getParameters().getHomepage());
public SitemapController(SolidifyProperties solidifyProperties, SearchService searchService) {
super(solidifyProperties);
this.searchService = searchService;
}
......
......@@ -146,7 +146,6 @@ public class DLCMProperties {
// Global Parameters
public static class Parameters {
private String homepage;
private String[] goldenFormats = {
"fmt/2", "fmt/4", "fmt/11", "fmt/12", "fmt/13", "fmt/44", "fmt/92", "fmt/95",
"fmt/101", "fmt/141", "fmt/152", "fmt/155",
......@@ -203,9 +202,6 @@ public class DLCMProperties {
private IdentifierType defaultIdentifierType = IdentifierType.DOI;
public String getHomepage() {
return homepage;
}
public String[] getGoldenFormats() {
return this.goldenFormats;
......@@ -247,10 +243,6 @@ public class DLCMProperties {
return this.authorizedUnitsCacheTime;
}
public void setHomepage(String homepage) {
this.homepage = homepage;
}
public void setGoldenFormats(String[] goldenFormats) {
this.goldenFormats = goldenFormats;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment