Conditionally add the default NarrativeGenerator to the context

#182
This commit is contained in:
Vladimir Nemergut
2020-12-02 11:37:59 +01:00
parent ccfaee6f0a
commit bb99a69085
3 changed files with 19 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ public class AppProperties {
private ClientIdStrategyEnum client_id_strategy = ClientIdStrategyEnum.ALPHANUMERIC;
private List<String> supported_resource_types = new ArrayList<>();
private List<Bundle.BundleType> allowed_bundle_types = null;
private Boolean narrative_enabled = true;
private Validation validation = new Validation();
private List<Tester> tester = ImmutableList.of(new Tester());
@@ -371,6 +372,16 @@ public class AppProperties {
this.tester = tester;
}
public Boolean getNarrative_enabled()
{
return narrative_enabled;
}
public void setNarrative_enabled(Boolean narrative_enabled)
{
this.narrative_enabled = narrative_enabled;
}
public static class Cors {
private Boolean allow_Credentials = true;
private List<String> allowed_origin = ImmutableList.of("*");