@@ -6524,15 +6524,20 @@ public MutationState changePermissions(ChangePermsStatement changePermsStatement
6524
6524
return new MutationState (0 , 0 , connection );
6525
6525
}
6526
6526
6527
- private void changePermsOnSchema (org .apache .hadoop .hbase .client .Connection hConnection , ChangePermsStatement changePermsStatement ) throws Throwable {
6527
+ private void changePermsOnSchema (org .apache .hadoop .hbase .client .Connection hConnection ,
6528
+ ChangePermsStatement changePermsStatement ) throws Throwable {
6528
6529
if (changePermsStatement .isGrantStatement ()) {
6529
- AccessControlClient .grant (hConnection , changePermsStatement .getSchemaName (), changePermsStatement .getName (), changePermsStatement .getPermsList ());
6530
+ AccessControlClient .grant (hConnection , changePermsStatement .getSchemaName (),
6531
+ changePermsStatement .getName (), changePermsStatement .getPermsList ());
6530
6532
} else {
6531
- AccessControlClient .revoke (hConnection , changePermsStatement .getSchemaName (), changePermsStatement .getName (), Permission .Action .values ());
6533
+ AccessControlClient .revoke (hConnection , changePermsStatement .getSchemaName (),
6534
+ changePermsStatement .getName (), Permission .Action .values ());
6532
6535
}
6533
6536
}
6534
6537
6535
- private void changePermsOnTables (org .apache .hadoop .hbase .client .Connection hConnection , Admin admin , ChangePermsStatement changePermsStatement , PTable inputTable ) throws Throwable {
6538
+ private void changePermsOnTables (org .apache .hadoop .hbase .client .Connection hConnection ,
6539
+ Admin admin , ChangePermsStatement changePermsStatement ,
6540
+ PTable inputTable ) throws Throwable {
6536
6541
6537
6542
org .apache .hadoop .hbase .TableName tableName = SchemaUtil .getPhysicalTableName
6538
6543
(inputTable .getPhysicalName ().getBytes (), inputTable .isNamespaceMapped ());
@@ -6587,7 +6592,9 @@ private void changePermsOnTables(org.apache.hadoop.hbase.client.Connection hConn
6587
6592
}
6588
6593
}
6589
6594
6590
- private void changePermsOnTable (org .apache .hadoop .hbase .client .Connection hConnection , ChangePermsStatement changePermsStatement , org .apache .hadoop .hbase .TableName tableName )
6595
+ private void changePermsOnTable (org .apache .hadoop .hbase .client .Connection hConnection ,
6596
+ ChangePermsStatement changePermsStatement ,
6597
+ org .apache .hadoop .hbase .TableName tableName )
6591
6598
throws Throwable {
6592
6599
if (changePermsStatement .isGrantStatement ()) {
6593
6600
AccessControlClient .grant (hConnection , tableName , changePermsStatement .getName (),
@@ -6598,12 +6605,15 @@ private void changePermsOnTable(org.apache.hadoop.hbase.client.Connection hConne
6598
6605
}
6599
6606
}
6600
6607
6601
- private void changePermsOnUser (org .apache .hadoop .hbase .client .Connection hConnection , ChangePermsStatement changePermsStatement )
6608
+ private void changePermsOnUser (org .apache .hadoop .hbase .client .Connection hConnection ,
6609
+ ChangePermsStatement changePermsStatement )
6602
6610
throws Throwable {
6603
6611
if (changePermsStatement .isGrantStatement ()) {
6604
- AccessControlClient .grant (hConnection , changePermsStatement .getName (), changePermsStatement .getPermsList ());
6612
+ AccessControlClient .grant (hConnection , changePermsStatement .getName (),
6613
+ changePermsStatement .getPermsList ());
6605
6614
} else {
6606
- AccessControlClient .revoke (hConnection , changePermsStatement .getName (), Permission .Action .values ());
6615
+ AccessControlClient .revoke (hConnection , changePermsStatement .getName (),
6616
+ Permission .Action .values ());
6607
6617
}
6608
6618
}
6609
6619
}
0 commit comments