[
https://issues.apache.org/jira/browse/HBASE-21255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reid Chan updated HBASE-21255:
------------------------------
Description:
A TODO in {{TablePermission.java}}
{code:java}
//TODO refactor this class
//we need to refacting this into three classes (Global, Table, Namespace)
{code}
Change Notes:
* Divide origin TablePermission into three classes GlobalPermission,
NamespacePermission, TablePermission
* New UserPermission consists of a user name and a permission in one of
[Global, Namespace, Table]Permission.
* Rename TableAuthManager to AuthManager(it is IA.P), and rename some methods
for readability.
* Make PermissionCache thread safe, and the ListMultiMap is changed to Set.
* User cache and group cache in AuthManager is combined together.
* Wire proto is kept, BC should be under guarantee。
was:
A TODO in {{TablePermission.java}}
{code}
//TODO refactor this class
//we need to refacting this into three classes (Global, Table, Namespace)
{code}
Change Note:
* Divide origin TablePermission into three classes GlobalPermission,
NamespacePermission, TablePermission
* New UserPermission consists of a user name and a permission in one of
[Global, Namespace, Table]Permission.
> [acl] Refactor TablePermission into three classes (Global, Namespace, Table)
> ----------------------------------------------------------------------------
>
> Key: HBASE-21255
> URL: https://issues.apache.org/jira/browse/HBASE-21255
> Project: HBase
> Issue Type: Improvement
> Reporter: Reid Chan
> Assignee: Reid Chan
> Priority: Major
> Attachments: HBASE-21225.master.001.patch,
> HBASE-21225.master.002.patch, HBASE-21255.master.003.patch,
> HBASE-21255.master.004.patch
>
>
> A TODO in {{TablePermission.java}}
> {code:java}
> //TODO refactor this class
> //we need to refacting this into three classes (Global, Table, Namespace)
> {code}
> Change Notes:
> * Divide origin TablePermission into three classes GlobalPermission,
> NamespacePermission, TablePermission
> * New UserPermission consists of a user name and a permission in one of
> [Global, Namespace, Table]Permission.
> * Rename TableAuthManager to AuthManager(it is IA.P), and rename some
> methods for readability.
> * Make PermissionCache thread safe, and the ListMultiMap is changed to Set.
> * User cache and group cache in AuthManager is combined together.
> * Wire proto is kept, BC should be under guarantee。
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)