@InterfaceAudience.Public public class VisibilityClient extends Object
Constructor and Description |
---|
VisibilityClient() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabel(org.apache.hadoop.conf.Configuration conf,
String label)
Deprecated.
Use
addLabel(Connection,String) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabel(Connection connection,
String label)
Utility method for adding label to the system.
|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabels(org.apache.hadoop.conf.Configuration conf,
String[] labels)
Deprecated.
Use
addLabels(Connection,String[]) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
addLabels(Connection connection,
String[] labels)
Utility method for adding labels to the system.
|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
clearAuths(org.apache.hadoop.conf.Configuration conf,
String[] auths,
String user)
Deprecated.
Use
clearAuths(Connection,String[],String) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
clearAuths(Connection connection,
String[] auths,
String user)
Removes given labels from user's globally authorized list of labels.
|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsResponse |
getAuths(org.apache.hadoop.conf.Configuration conf,
String user)
Deprecated.
Use
getAuths(Connection,String) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsResponse |
getAuths(Connection connection,
String user) |
static boolean |
isCellVisibilityEnabled(Connection connection)
Return true if cell visibility features are supported and enabled
|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.ListLabelsResponse |
listLabels(org.apache.hadoop.conf.Configuration conf,
String regex)
Deprecated.
Use
listLabels(Connection,String) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.ListLabelsResponse |
listLabels(Connection connection,
String regex)
Retrieve the list of visibility labels defined in the system.
|
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
setAuths(org.apache.hadoop.conf.Configuration conf,
String[] auths,
String user)
Deprecated.
Use
setAuths(Connection,String[],String) instead. |
static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
setAuths(Connection connection,
String[] auths,
String user)
Sets given labels globally authorized for the user.
|
private static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse |
setOrClearAuths(Connection connection,
String[] auths,
String user,
boolean setOrClear) |
public VisibilityClient()
public static boolean isCellVisibilityEnabled(Connection connection) throws IOException
connection
- The connection to useIOException
@Deprecated public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse addLabel(org.apache.hadoop.conf.Configuration conf, String label) throws Throwable
addLabel(Connection,String)
instead.conf
- label
- Throwable
public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse addLabel(Connection connection, String label) throws Throwable
connection
- label
- Throwable
@Deprecated public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse addLabels(org.apache.hadoop.conf.Configuration conf, String[] labels) throws Throwable
addLabels(Connection,String[])
instead.conf
- labels
- Throwable
public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse addLabels(Connection connection, String[] labels) throws Throwable
connection
- labels
- Throwable
@Deprecated public static org.apache.hadoop.hbase.protobuf.generated.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 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse setAuths(Connection connection, String[] auths, String user) throws Throwable
connection
- auths
- user
- Throwable
@Deprecated public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsResponse getAuths(org.apache.hadoop.conf.Configuration conf, String user) throws Throwable
getAuths(Connection,String)
instead.conf
- user
- Throwable
public static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.GetAuthsResponse getAuths(Connection connection, String user) throws Throwable
connection
- the Connection instance to use.user
- Throwable
@Deprecated public static org.apache.hadoop.hbase.protobuf.generated.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 org.apache.hadoop.hbase.protobuf.generated.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 org.apache.hadoop.hbase.protobuf.generated.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 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse clearAuths(Connection connection, String[] auths, String user) throws Throwable
connection
- auths
- user
- Throwable
private static org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.VisibilityLabelsResponse setOrClearAuths(Connection connection, String[] auths, String user, boolean setOrClear) throws IOException, com.google.protobuf.ServiceException, Throwable
IOException
com.google.protobuf.ServiceException
Throwable
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.