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