All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.service.config.PermissionPolicyHeaderFactory Maven / Gradle / Ivy

There is a newer version: 1.5.11
Show newest version
package org.openmetadata.service.config;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.web.conf.HeaderFactory;
import java.util.Collections;
import java.util.Map;

public class PermissionPolicyHeaderFactory extends HeaderFactory {
  public static final String PERMISSION_POLICY_HEADER = "Permissions-Policy";

  @JsonProperty("option")
  private String option;

  public PermissionPolicyHeaderFactory() {}

  public String getOption() {
    return this.option;
  }

  public void setOption(String option) {
    this.option = option;
  }

  @Override
  protected Map buildHeaders() {
    return Collections.singletonMap(PERMISSION_POLICY_HEADER, this.option);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy