mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 11:03:12 +00:00
DS-3059 Replacing getProperty with getArrayProperty
This commit is contained in:
@@ -77,9 +77,10 @@ public class DayTableEmbargoSetter extends DefaultEmbargoSetter
|
||||
{
|
||||
Properties termProps = new Properties();
|
||||
|
||||
String terms = DSpaceServicesFactory.getInstance().getConfigurationService().getProperty("embargo.terms.days");
|
||||
if (terms != null && terms.length() > 0) {
|
||||
for (String term : terms.split(",")) {
|
||||
String terms[] = DSpaceServicesFactory.getInstance().getConfigurationService().getArrayProperty("embargo.terms.days");
|
||||
|
||||
if (terms != null) {
|
||||
for (String term : terms) {
|
||||
String[] parts = term.trim().split(":");
|
||||
termProps.setProperty(parts[0].trim(), parts[1].trim());
|
||||
}
|
||||
|
Reference in New Issue
Block a user