constructor is now protected to enable the subclass to use it

This commit is contained in:
Luca Frosini 2022-02-17 17:10:42 +01:00
parent c3a94d9185
commit 77cc958ac0
1 changed files with 4 additions and 3 deletions

View File

@ -52,10 +52,10 @@ public class CatalogueConfiguration {
return contextName.toLowerCase().replace(" ", "_"); return contextName.toLowerCase().replace(" ", "_");
} }
private CatalogueConfiguration() { protected CatalogueConfiguration() {
this.supportedOrganizations = new HashSet<>(); this.supportedOrganizations = new HashSet<>();
/* CKAN URL and sysAdminToken can only be retrieved from the IS*/ /* CKAN URL and sysAdminToken can only be retrieved from the IS */
this.ckanURL = null; this.ckanURL = null;
this.sysAdminToken = null; this.sysAdminToken = null;
@ -63,6 +63,7 @@ public class CatalogueConfiguration {
this.notificationToUsersEnabled = false; // default is false this.notificationToUsersEnabled = false; // default is false
this.moderationEnabled = false; // default is false this.moderationEnabled = false; // default is false
} }
public CatalogueConfiguration(String context) { public CatalogueConfiguration(String context) {
@ -85,7 +86,7 @@ public class CatalogueConfiguration {
return sysAdminToken; return sysAdminToken;
} }
public void setSysAdminToken(String sysAdminToken) throws Exception { public void setSysAdminToken(String sysAdminToken) {
this.sysAdminToken = sysAdminToken; this.sysAdminToken = sysAdminToken;
} }