@InterfaceAudience.Public 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)
Deprecated.
Use
addLabel(Connection,String) instead. |
static VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabel(Connection connection,
String label)
Utility method for adding label to the system.
|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabels(org.apache.hadoop.conf.Configuration conf,
String[] labels)
Deprecated.
Use
addLabels(Connection,String[]) instead. |
static VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabels(Connection connection,
String[] labels)
Utility method for adding labels to the system.
|
static VisibilityLabelsProtos.VisibilityLabelsResponse |
clearAuths(org.apache.hadoop.conf.Configuration conf,
String[] auths,
String user)
Deprecated.
Use
clearAuths(Connection,String[],String) instead. |
static VisibilityLabelsProtos.VisibilityLabelsResponse |
clearAuths(Connection connection,
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)
Deprecated.
Use
getAuths(Connection,String) instead. |
static VisibilityLabelsProtos.GetAuthsResponse |
getAuths(Connection connection,
String user) |
static boolean |
isCellVisibilityEnabled(Connection connection)
Return true if cell visibility features are supported and enabled
|
static VisibilityLabelsProtos.ListLabelsResponse |
listLabels(org.apache.hadoop.conf.Configuration conf,
String regex)
Deprecated.
Use
listLabels(Connection,String) instead. |
static VisibilityLabelsProtos.ListLabelsResponse |
listLabels(Connection connection,
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)
Deprecated.
Use
setAuths(Connection,String[],String) instead. |
static VisibilityLabelsProtos.VisibilityLabelsResponse |
setAuths(Connection connection,
String[] auths,
String user)
Sets given labels globally authorized for the user.
|
public static boolean isCellVisibilityEnabled(Connection connection) throws IOException
connection
- The connection to useIOException
@Deprecated public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabel(org.apache.hadoop.conf.Configuration conf, String label) throws Throwable
addLabel(Connection,String)
instead.conf
- label
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabel(Connection connection, String label) throws Throwable
connection
- label
- Throwable
@Deprecated public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabels(org.apache.hadoop.conf.Configuration conf, String[] labels) throws Throwable
addLabels(Connection,String[])
instead.conf
- labels
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse addLabels(Connection connection, String[] labels) throws Throwable
connection
- labels
- Throwable
@Deprecated public static VisibilityLabelsProtos.VisibilityLabelsResponse setAuths(org.apache.hadoop.conf.Configuration conf, String[] auths, String user) throws Throwable
setAuths(Connection,String[],String)
instead.conf
- auths
- user
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse setAuths(Connection connection, String[] auths, String user) throws Throwable
connection
- auths
- user
- Throwable
@Deprecated public static VisibilityLabelsProtos.GetAuthsResponse getAuths(org.apache.hadoop.conf.Configuration conf, String user) throws Throwable
getAuths(Connection,String)
instead.conf
- user
- Throwable
public static VisibilityLabelsProtos.GetAuthsResponse getAuths(Connection connection, String user) throws Throwable
connection
- the Connection instance to use.user
- Throwable
@Deprecated public static VisibilityLabelsProtos.ListLabelsResponse listLabels(org.apache.hadoop.conf.Configuration conf, String regex) throws Throwable
listLabels(Connection,String)
instead.conf
- regex
- The regular expression to filter which labels are returned.Throwable
public static VisibilityLabelsProtos.ListLabelsResponse listLabels(Connection connection, String regex) throws Throwable
connection
- The Connection instance to use.regex
- The regular expression to filter which labels are returned.Throwable
@Deprecated public static VisibilityLabelsProtos.VisibilityLabelsResponse clearAuths(org.apache.hadoop.conf.Configuration conf, String[] auths, String user) throws Throwable
clearAuths(Connection,String[],String)
instead.conf
- auths
- user
- Throwable
public static VisibilityLabelsProtos.VisibilityLabelsResponse clearAuths(Connection connection, String[] auths, String user) throws Throwable
connection
- auths
- user
- Throwable
Copyright © 2007–2019 Cloudera. All rights reserved.