public List create()

in src/main/java/com/epam/digital/data/platform/generator/factory/impl/RestApiValuesScopeFactory.java [45:67]


  public List<RestApiValuesScope> create(Context context) {
    RestApiValuesScope scope = new RestApiValuesScope();
    scope.setReplicationFactor(
        values.get("global").get("kafkaOperator").get("replicationFactor").asInt());
    String signer = Optional.ofNullable(values.get("s3"))
            .map(node -> node.get("config"))
            .map(node -> node.get("client"))
            .map(node -> node.get("signerOverride"))
            .map(JsonNode::textValue)
            .orElse(null);
    scope.setS3Signer(signer);
    scope.setExposedToPlatformPaths(
        getExposedSearchConditionPaths(ExposeSearchConditionOption.PLATFORM));
    scope.setExposedToExternalPaths(
        getExposedSearchConditionPaths(ExposeSearchConditionOption.EXTERNAL_SYSTEM));
    scope.setExposedToPublicPaths(
        getExposedSearchConditionPaths(ExposeSearchConditionOption.PUBLIC_ACCESS));

    String stageName =
        Optional.ofNullable(values.get("stageName")).map(JsonNode::textValue).orElse(null);
    scope.setStageName(stageName);
    return List.of(scope);
  }