16.8. Visibilities in Kudu¶
Although Kudu does not support native visibilities, GeoMesa can apply them for securing SimpleFeatures with cell-level security. Visibilities in Kudu are currently available at the feature level.
See Authorizations for details on querying data with visibilities.
16.8.1. Feature Level Visibilities¶
Visibilities can be set on individual features using the simple feature user data:
import org.locationtech.geomesa.security.SecurityUtils;
SecurityUtils.setFeatureVisibility(feature, "admin&user")
or
feature.getUserData().put("geomesa.feature.visibility", "admin&user");