constructor is now protected to enable the subclass to use it
This commit is contained in:
parent
c3a94d9185
commit
77cc958ac0
|
@ -52,7 +52,7 @@ 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 */
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue