Interface DbAclGuiHelper
- All Superinterfaces:
DbAclProvider
- All Known Implementing Classes:
EtcdDbAclGuiHelper
,MysqlDbAclGuiHelper
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves aTable
of all column ACLs, sorted by Groupname, Namespace, Tablename, Columns, and FiltergetExternalAuthOnlyUsers
(String[] invalidHashes) Retrieves aTable
with one column, listing users whose passwords indicate external authentication.Retrieves aTable
of all groups and associated strategies, sorted by Groupname and StrategygetPublicKeyTable
(String user) Retrieves aTable
of users, base64-encoded public keys, and the comment associated with the key when added.Retrieves aTable
of all strategies and associated accounts, sorted by Strategy and AccountRetrieves aTable
of all users and matching systemuser mappings, sorted by usergetSystemUserAclTable
(String userGroup) Retrieves aTable
of users and matching systemuser mappings for members of the specified group, sorted by userRetrieves aTable
of all table ACLs, sorted by Groupname, Namespace, Tablename, and FilterRetrieves aTable
of all input table editor permissions, sorted by Groupname, Namespace, and TablenameRetrieves aTable
of all users and their groups, sorted by User and GroupnameretrieveOneAcl
(String group, String namespace, String tableName) Retrieves a single table ACL filter.retrieveOneColumnAcl
(String group, String namespace, String tableName, String columns) Retrieves a single column ACL filter Wildcards are not considered, so only highest priority (specific namespace and tableName) ACLs are returned, and, if there is no specifically assigned ACL, null is returned.retrieveOneEditable
(String group, String namespace, String tableName) Retrieves a single input table editor permission Wildcards are not considered, so only highest priority (specific namespace and tableName) ACLs are returned, and, if there is no specifically assigned ACL, null is returned.Methods inherited from interface com.illumon.iris.db.v2.permissions.DbAclProvider
canAnyoneEditInputTable, canEditInputTable, changePassword, close, getAccountsForGroup, getAccountsForStrategy, getAccountsForUser, getAllAccounts, getAllGroups, getAllStrategies, getAllUsers, getFilterDetailsForUser, getGroupsForUser, getPasswdsForMigration, getPublicKeys, getPublicKeys, getRunAsUser, getRunAsUserMap, getStrategiesForGroup, getStrategiesForUser, getStrategyForAccount, getSystemUsers, getUsersForGroup, groupStrategyExists, retrieveColumnAcls, retrieveRowAcls
-
Method Details
-
getUsersAndGroupsTable
Table getUsersAndGroupsTable()Retrieves aTable
of all users and their groups, sorted by User and Groupname- Returns:
- A
Table
all users and their groups
-
getExternalAuthOnlyUsers
Retrieves aTable
with one column, listing users whose passwords indicate external authentication.- Parameters:
invalidHashes
- A List of password hashes that are valid only for external authentication.- Returns:
- A
Table
of users that are configured for external password authentication
-
getGroupStrategyTable
Table getGroupStrategyTable()Retrieves aTable
of all groups and associated strategies, sorted by Groupname and Strategy- Returns:
- A
Table
of all groups and associated strategies
-
getStrategyAccountTable
Table getStrategyAccountTable()Retrieves aTable
of all strategies and associated accounts, sorted by Strategy and Account- Returns:
- A
Table
of all strategies and associated accounts
-
getTableAclTable
Table getTableAclTable()Retrieves aTable
of all table ACLs, sorted by Groupname, Namespace, Tablename, and Filter- Returns:
- A
Table
of all table ACLs
-
getColumnAclTable
Table getColumnAclTable()Retrieves aTable
of all column ACLs, sorted by Groupname, Namespace, Tablename, Columns, and Filter- Returns:
- A
Table
of all column ACLs
-
getTableEditorTable
Table getTableEditorTable()Retrieves aTable
of all input table editor permissions, sorted by Groupname, Namespace, and Tablename- Returns:
- A
Table
all input table editor permissions
-
getSystemUserAclTable
Table getSystemUserAclTable()Retrieves aTable
of all users and matching systemuser mappings, sorted by user- Returns:
- A
Table
all users and matching systemuser mappings
-
getSystemUserAclTable
Retrieves aTable
of users and matching systemuser mappings for members of the specified group, sorted by user- Parameters:
userGroup
- The group name for which to filter users and systemuser mappings by membership- Returns:
- A
Table
users and matching systemuser mappings for members of the specified group
-
getPublicKeyTable
Retrieves aTable
of users, base64-encoded public keys, and the comment associated with the key when added.- Parameters:
user
- The user for which to filter public keys. If null, all will be retrieved.- Returns:
- A
Table
with 'user', 'keyval', 'comment' columns.
-
retrieveOneAcl
@Nullable String retrieveOneAcl(String group, String namespace, String tableName) throws SQLException Retrieves a single table ACL filter. Wildcards are not considered, so only highest priority (specific namespace and tableName) ACLs are returned, and, if there is no specifically assigned ACL, null is returned.- Parameters:
group
- The specific groupname to matchnamespace
- The specific namespace to matchtableName
- The specific tablename to match- Returns:
- A String table ACL filter or null if no match
- Throws:
SQLException
- In the case of SQL implementations of this interface if something goes wrong
-
retrieveOneColumnAcl
@Nullable String retrieveOneColumnAcl(String group, String namespace, String tableName, String columns) throws SQLException Retrieves a single column ACL filter Wildcards are not considered, so only highest priority (specific namespace and tableName) ACLs are returned, and, if there is no specifically assigned ACL, null is returned.- Parameters:
group
- The specific groupname to matchnamespace
- The specific namespace to matchtableName
- The specific tablename to matchcolumns
- The specific columns string to match- Returns:
- A String column ACL filter or null if no match
- Throws:
SQLException
- In the case of SQL implementations of this interface if something goes wrong
-
retrieveOneEditable
@Nullable Boolean retrieveOneEditable(String group, String namespace, String tableName) throws SQLException Retrieves a single input table editor permission Wildcards are not considered, so only highest priority (specific namespace and tableName) ACLs are returned, and, if there is no specifically assigned ACL, null is returned.- Parameters:
group
- The specific groupname to matchnamespace
- The specific namespace to matchtableName
- The specific tablename to match- Returns:
- A Boolean input table editor permission, which is null if there is no match
- Throws:
SQLException
- In the case of SQL implementations of this interface if something goes wrong
-