@InterfaceAudience.Public @InterfaceStability.Evolving public class VisibilityClient extends Object
Constructor and Description |
---|
VisibilityClient() |
Modifier and Type | Method and Description |
---|---|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabel(org.apache.hadoop.conf.Configuration conf,
String label)
Utility method for adding label to the system.
|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabels(org.apache.hadoop.conf.Configuration conf,
String[] labels)
Utility method for adding labels to the system.
|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
clearAuths(org.apache.hadoop.conf.Configuration conf,
String[] auths,
String user)
Removes given labels from user's globally authorized list of labels.
|
static VisibilityLabelsProtos.GetAuthsResponse |
getAuths(org.apache.hadoop.conf.Configuration conf,
String user) |
static VisibilityLabelsProtos.ListLabelsResponse |
listLabels(org.apache.hadoop.conf.Configuration conf,
String regex)
Retrieve the list of visibility labels defined in the system.
|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
setAuths(org.apache.hadoop.conf.Configuration conf,
String[] auths,
String user)
Sets given labels globally authorized for the user.
|
public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabel(org.apache.hadoop.conf.Configuration conf, String label) throws Throwable
conf
- label
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabels(org.apache.hadoop.conf.Configuration conf, String[] labels) throws Throwable
conf
- labels
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse setAuths(org.apache.hadoop.conf.Configuration conf, String[] auths, String user) throws Throwable
conf
- auths
- user
- Throwable
public static VisibilityLabelsProtos.GetAuthsResponse getAuths(org.apache.hadoop.conf.Configuration conf, String user) throws Throwable
conf
- user
- Throwable
public static VisibilityLabelsProtos.ListLabelsResponse listLabels(org.apache.hadoop.conf.Configuration conf, String regex) throws Throwable
conf
- regex
- The regular expression to filter which labels are returned.Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse clearAuths(org.apache.hadoop.conf.Configuration conf, String[] auths, String user) throws Throwable
conf
- auths
- user
- Throwable
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.