Class EtcdDbAclProvider
java.lang.Object
com.illumon.iris.db.v2.permissions.EtcdDbAclProvider
- All Implemented Interfaces:
com.fishlib.auth.AuthModule
,DbAclProvider
,DbAclWriter
,AutoCloseable
- Direct Known Subclasses:
EtcdDbAclGuiHelper
,UnauthenticatedPermissionFilterProviderEtcdImpl
public class EtcdDbAclProvider extends Object implements DbAclProvider, com.fishlib.auth.AuthModule, AutoCloseable
Access to the Etcd ACL database.
This class implements DbAclProvider, AuthModule, and DbAclWriter and serves as the basis for
the Etcd permission filter provider, as well as the GUI helper. Anything that talks to the
Etcd ACL database should use or extend it. All things that had embedded SQL in the MysqlDbAclGuiHelper
have had the SQL-replacement aspects moved into this class, so that direct interaction with kv-acl
objects is entirely in this class, and, from here, through the kv-acl AclJetcdProvider
.
-
Constructor Summary
Constructors Constructor Description EtcdDbAclProvider(com.fishlib.io.logger.Logger log)
EtcdDbAclProvider(com.fishlib.io.logger.Logger log, boolean readOnly)
EtcdDbAclProvider(io.deephaven.shadow.jetcd.io.etcd.jetcd.KV client)
-
Method Summary
Modifier and Type Method Description int
addAcl(String group, String ns, String table, String acl)
Adds an ACL entry.int
addColumnAcl(String group, String ns, String table, String columns, String acl)
Adds a Column ACL entry.void
addGroupStrategy(String group, String strategy)
For AccountFilterGenerator() there are two levels of mappings.int
addInputTableEditor(String group, String ns, String table, boolean canEdit)
Adds an entry to the ACL database for editing an input table.void
addMembership(String user, List<String> groups)
Adds a user to a list of groups If the user could not be added to all of the groups, a RuntimeException is thrown.int
addOrUpdateSystemUserAcl(String user, String systemUser)
Inserts or Updates an entry to the ACL database for run-as mappingvoid
addStrategyAccount(String strategy, String account)
For AccountFilterGenerator() there are two levels of mappings.int
addSystemAcl(String group, String key, String acl)
Adds a system ACL entry.void
addUser(String user, String passwordHash)
Adds a user to the Iris system.boolean
canAnyoneEditInputTable(String namespace, String tableName)
Checks whether an input table can be edited by all usersboolean
canEditInputTable(String effectiveUser, String namespace, String tableName)
Checks whether a user has rights to edit an input tablevoid
changePassword(String user, String passwordHash)
Changes the password of a user entry in passwdvoid
close()
void
deleteAcls(String group, String ns, String table)
Deletes an ACL entry for a group and table.void
deleteAllAclData()
Deletes all data in the ACL store.void
deleteColumnAcls(String group, String ns, String table, String columns)
Deletes a Column ACL entry for a group, table, and column set.void
deleteGroup(String group)
Deletes a group.void
deleteGroupStrategy(String group, String strategy)
For AccountFilterGenerator() there are two levels of mappings.void
deleteInputTableEditor(String group, String ns, String table)
Deletes an entry to the ACL database for editing an input table.void
deleteStrategyAccount(String strategy, String account)
For AccountFilterGenerator() there are two levels of mappings.void
deleteSystemAcls(String group, String key)
Deletes a system ACL entry for a group and key.void
deleteSystemUserAcl(String user)
Removes an entry from the ACL database for run-as mappingvoid
deleteUser(String user)
The user is deleted.String[]
getAccountsForGroup(String group)
Retrieves all strategy accounts associated with a particular groupString[]
getAccountsForStrategy(String strategy)
Retrieves all strategy accounts associated with a particular strategyString[]
getAccountsForUser(String effectiveUser)
Retrieves all strategy accounts associated with a user, directly or through group membershipString[]
getAllAccounts()
Retrieves all strategy accounts in the systemTable
getAllColumnAcls()
Returns a table of Strategy and AccountString[]
getAllGroups()
Retrieves all groups accounts in the systemTable
getAllGroupsAndStrategies()
Returns a table of Groupname and StrategyTable
getAllInputTableEditors()
Returns a table of all input table editor permissionsString[]
getAllStrategies()
Retrieves all strategy names by unioning strategies in strategyaccount with those in groupstrategyTable
getAllStrategiesAndAccounts()
Returns a table of Strategy and AccountTable
getAllSystemAcls()
Returns a table of all system ACLsTable
getAllTableAcls()
Returns a table of Strategy and AccountString[]
getAllUsers()
Retrieves all user accounts in the systemTable
getAllUsersAndGroups()
Returns a table of User and GroupnameTable
getAllUsersAndSystemUsers()
Returns a table of all Users and matching SystemUsersTable
getAllUsersAndSystemUsers(String groupName)
Returns a table of all Users and matching SystemUsersTable
getExternalAuthOnlyUsers(List<String> invalidHashes)
Returns a table with one column listing users whose passwords indicate external authentication.List<PermissionFilterProvider.FilterDetails>
getFilterDetailsForUser(com.fishlib.auth.UserContext userContext)
Gets the tableacls permissions filters for an effective userString[]
getGroupsForUser(String effectiveUser)
Get the groups to which a user is mappedList<com.fishlib.base.Pair<String,String>>
getPasswdsForMigration()
Returns user and password entries from the passwd table.String
getRunAsUser(String effectiveUser)
Returns the systemuser to which the effectiveUser is mapped, or null if no mapping exists.Map<String,String>
getRunAsUserMap()
Returns a map of user names to systemuser namesString[]
getStrategiesForGroup(String group)
Retrieves all strategies associated with a particular groupString[]
getStrategiesForUser(String effectiveUser)
Retrieves all strategies associated with a particular user, either directly or through group membershipString[]
getStrategyForAccount(String account)
Retrieves all strategies associated with a particular strategy accountString[]
getSystemUsers()
Returns an array of systemusers.String[]
getUsersForGroup(String group)
Get the users that are members of a groupboolean
groupStrategyExists(String groupName, String strategy)
Checks whether a particular association of a group and a strategy existsboolean
isUserPassValid(String username, String password)
void
removeMembership(String user, List<String> groups)
Removes a user from a list of groups.Map<String,List<com.fishlib.base.Pair<String,String>>>
retrieveColumnAcls(String effectiveUser, String namespace, String tableName)
Returns the most specific columnacl per group for a specific user, namespace, and table.Collection<String>
retrieveRowAcls(String effectiveUser, String namespace, String tableName)
Returns the most specific tableacl per group for a specific user, namespace, and table.Collection<String>
retrieveSystemAcls(String effectiveUser, String key)
Retrieve the set of system ACLs that modify system behavior rather than table access.int
updateAcl(String group, String ns, String table, String acl)
Changes an already existent ACL entry.int
updateColumnAcl(String group, String ns, String table, String columns, String acl)
Changes an already existent Column ACL entry.int
updateInputTableEditor(String group, String ns, String table, boolean canEdit)
Updates an entry to the ACL database for editing an input table.int
updateSystemAcl(String group, String key, String acl)
Changes an already existent system ACL entry.boolean
userExists(String username)
Checks whether the user exists from the perspective of the Auth module, not necessarily in the ACL store.
-
Constructor Details
-
EtcdDbAclProvider
public EtcdDbAclProvider(com.fishlib.io.logger.Logger log) -
EtcdDbAclProvider
public EtcdDbAclProvider(com.fishlib.io.logger.Logger log, boolean readOnly) -
EtcdDbAclProvider
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceDbAclProvider
-
getFilterDetailsForUser
@NotNull public List<PermissionFilterProvider.FilterDetails> getFilterDetailsForUser(com.fishlib.auth.UserContext userContext)Description copied from interface:DbAclProvider
Gets the tableacls permissions filters for an effective user- Specified by:
getFilterDetailsForUser
in interfaceDbAclProvider
- Parameters:
userContext
- TheUserContext
from which the effective user name to filter will be obtained- Returns:
- A List of
PermissionFilterProvider.FilterDetails
for the effective user
-
retrieveRowAcls
@NotNull public Collection<String> retrieveRowAcls(String effectiveUser, String namespace, String tableName)Description copied from interface:DbAclProvider
Returns the most specific tableacl per group for a specific user, namespace, and table.- Specified by:
retrieveRowAcls
in interfaceDbAclProvider
- Parameters:
effectiveUser
- the user for which acls should be retrievednamespace
- the namespace specifically for which acls should be retrieved - will also match * in tableaclstableName
- the table name specifically for which acls should be retrieved - will also match * in tableacls- Returns:
- A Collection of tableacls filters.
-
retrieveColumnAcls
@NotNull public Map<String,List<com.fishlib.base.Pair<String,String>>> retrieveColumnAcls(String effectiveUser, String namespace, String tableName)Description copied from interface:DbAclProvider
Returns the most specific columnacl per group for a specific user, namespace, and table.- Specified by:
retrieveColumnAcls
in interfaceDbAclProvider
- Parameters:
effectiveUser
- the user for which acls should be retrievednamespace
- the namespace specifically for which acls should be retrieved - will also match * in columnaclstableName
- the table name specifically for which acls should be retrieved - will also match * in columnacls- Returns:
- A Map of group names to Lists of columns and filter pairs.
-
retrieveSystemAcls
Retrieve the set of system ACLs that modify system behavior rather than table access.- Specified by:
retrieveSystemAcls
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The user to get ACLs forkey
- The lookup value that applies- Returns:
- A collection of strings representing the applicable state.getAcls().
-
canEditInputTable
Description copied from interface:DbAclProvider
Checks whether a user has rights to edit an input table- Specified by:
canEditInputTable
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The user for whom permissions should be checkednamespace
- the namespace specifically for which acls should be retrieved - will also match * in inputtableeditorstableName
- the table name specifically for which acls should be retrieved - will also match * in inputtableeditors- Returns:
- True if the user has an effective canedit grant, otherwise false
-
canAnyoneEditInputTable
Description copied from interface:DbAclProvider
Checks whether an input table can be edited by all users- Specified by:
canAnyoneEditInputTable
in interfaceDbAclProvider
- Parameters:
namespace
- the namespace specifically for which acls should be retrieved - will also match * in inputtableeditorstableName
- the table name specifically for which acls should be retrieved - will also match * in inputtableeditors- Returns:
- True if the input table can be edited by all users, otherwise false
-
getAccountsForUser
Description copied from interface:DbAclProvider
Retrieves all strategy accounts associated with a user, directly or through group membership- Specified by:
getAccountsForUser
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The user for whom strategy account access should be checked- Returns:
- An array of String of associated strategy accounts
-
getAllUsers
Description copied from interface:DbAclProvider
Retrieves all user accounts in the system- Specified by:
getAllUsers
in interfaceDbAclProvider
- Returns:
- An array of String of user names
-
getAllGroups
Description copied from interface:DbAclProvider
Retrieves all groups accounts in the system- Specified by:
getAllGroups
in interfaceDbAclProvider
- Returns:
- An array of String of groups names
-
getAllStrategies
Description copied from interface:DbAclProvider
Retrieves all strategy names by unioning strategies in strategyaccount with those in groupstrategy- Specified by:
getAllStrategies
in interfaceDbAclProvider
- Returns:
- An array of String of strategy names
-
getAllAccounts
Description copied from interface:DbAclProvider
Retrieves all strategy accounts in the system- Specified by:
getAllAccounts
in interfaceDbAclProvider
- Returns:
- An array of String of strategy account names
-
getAccountsForStrategy
Description copied from interface:DbAclProvider
Retrieves all strategy accounts associated with a particular strategy- Specified by:
getAccountsForStrategy
in interfaceDbAclProvider
- Parameters:
strategy
- The strategy name for which to filter accounts- Returns:
- An array of String of strategy account names
-
getStrategyForAccount
Description copied from interface:DbAclProvider
Retrieves all strategies associated with a particular strategy account- Specified by:
getStrategyForAccount
in interfaceDbAclProvider
- Parameters:
account
- The strategy account name for which to filter strategies- Returns:
- An array of String of strategy account names
-
getAccountsForGroup
Description copied from interface:DbAclProvider
Retrieves all strategy accounts associated with a particular group- Specified by:
getAccountsForGroup
in interfaceDbAclProvider
- Parameters:
group
- The group name for which to filter accounts- Returns:
- An array of String of strategy account names
-
getStrategiesForGroup
Description copied from interface:DbAclProvider
Retrieves all strategies associated with a particular group- Specified by:
getStrategiesForGroup
in interfaceDbAclProvider
- Parameters:
group
- The group name for which to filter strategies- Returns:
- An array of String of strategy names
-
getSystemUsers
Description copied from interface:DbAclProvider
Returns an array of systemusers.- Specified by:
getSystemUsers
in interfaceDbAclProvider
- Returns:
- A String array of distinct systemuser names, sorted.
-
getRunAsUserMap
Description copied from interface:DbAclProvider
Returns a map of user names to systemuser names- Specified by:
getRunAsUserMap
in interfaceDbAclProvider
- Returns:
- a map of user names to systemuser names
-
getRunAsUser
Description copied from interface:DbAclProvider
Returns the systemuser to which the effectiveUser is mapped, or null if no mapping exists.- Specified by:
getRunAsUser
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The user for which a mapped systemuser name should be retrieved.- Returns:
- the String systemuser to which the effectiveUser is mapped, or null if no mapping exists.
-
groupStrategyExists
Description copied from interface:DbAclProvider
Checks whether a particular association of a group and a strategy exists- Specified by:
groupStrategyExists
in interfaceDbAclProvider
- Parameters:
groupName
- The group name to checkstrategy
- The strategy name to check- Returns:
- True if the mapping exists, false if it does not
-
userExists
Checks whether the user exists from the perspective of the Auth module, not necessarily in the ACL store.- Specified by:
userExists
in interfacecom.fishlib.auth.AuthModule
- Parameters:
username
- The String user name to check.
-
isUserPassValid
- Specified by:
isUserPassValid
in interfacecom.fishlib.auth.AuthModule
-
getPasswdsForMigration
Returns user and password entries from the passwd table. Intended for use during ACL exports and/or data migration between MySQL and Etcd ACL stores.- Specified by:
getPasswdsForMigration
in interfaceDbAclProvider
- Returns:
- A
List
ofPair<String,String>
objects which contain a user and password entry.
-
getGroupsForUser
Description copied from interface:DbAclProvider
Get the groups to which a user is mapped- Specified by:
getGroupsForUser
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The String name of the user to find groups for- Returns:
- A String array of groups mapped to this user
-
getStrategiesForUser
Description copied from interface:DbAclProvider
Retrieves all strategies associated with a particular user, either directly or through group membership- Specified by:
getStrategiesForUser
in interfaceDbAclProvider
- Parameters:
effectiveUser
- The user for whom strategy access should be checked- Returns:
- An array of String of strategy names
-
getUsersForGroup
Description copied from interface:DbAclProvider
Get the users that are members of a group- Specified by:
getUsersForGroup
in interfaceDbAclProvider
- Parameters:
group
- The String name of the group to find users for- Returns:
- A String array of users with membership in this group
-
getAllUsersAndGroups
Returns a table of User and Groupname- Returns:
- A
Table
of users and their group memberships
-
getAllGroupsAndStrategies
Returns a table of Groupname and Strategy- Returns:
- A
Table
of groups and their corresponding strategies
-
getAllStrategiesAndAccounts
Returns a table of Strategy and Account- Returns:
- A
Table
of strategies and their corresponding accounts
-
getAllTableAcls
Returns a table of Strategy and Account- Returns:
- A
Table
of strategies and their corresponding accounts
-
getAllColumnAcls
Returns a table of Strategy and Account- Returns:
- A
Table
of strategies and their corresponding accounts
-
getAllSystemAcls
Returns a table of all system ACLs- Returns:
- A
Table
of system ACL groups, keys, and filters
-
getAllInputTableEditors
Returns a table of all input table editor permissions- Returns:
- A
Table
of input table editor groups, namespaces, table names, and permissions
-
getExternalAuthOnlyUsers
Returns a table 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
-
getAllUsersAndSystemUsers
Returns a table of all Users and matching SystemUsers- Returns:
- A
Table
of all users and systemuser mappings where they exist
-
getAllUsersAndSystemUsers
Returns a table of all Users and matching SystemUsers- Returns:
- A
Table
of all users and systemuser mappings where they exist
-
addMembership
Description copied from interface:DbAclWriter
Adds a user to a list of groups If the user could not be added to all of the groups, a RuntimeException is thrown.- Specified by:
addMembership
in interfaceDbAclWriter
- Parameters:
user
- the user to add to the groupsgroups
- a list of groups to add the user to
-
addUser
Description copied from interface:DbAclWriter
Adds a user to the Iris system.- Specified by:
addUser
in interfaceDbAclWriter
- Parameters:
user
- the user to add.passwordHash
- the APR1 hash of the user's password. Ignored if the system is not configured to manage user authentication.
-
changePassword
Description copied from interface:DbAclProvider
Changes the password of a user entry in passwd- Specified by:
changePassword
in interfaceDbAclProvider
- Specified by:
changePassword
in interfaceDbAclWriter
- Parameters:
user
- The user for which the password should be updatedpasswordHash
- The new password value to store
-
removeMembership
Description copied from interface:DbAclWriter
Removes a user from a list of groups. It is possible that the user may be removed from some groups and not others. If the user could not be removed from all of the specified groups (e.g., because they are not a member of those groups), a runtime exception is thrown.- Specified by:
removeMembership
in interfaceDbAclWriter
- Parameters:
user
- the user to remove from groupsgroups
- a list of groups to remove the user from
-
deleteAllAclData
Deletes all data in the ACL store. Use judiciously.- Specified by:
deleteAllAclData
in interfaceDbAclWriter
- Throws:
SQLException
-
deleteGroup
Description copied from interface:DbAclWriter
Deletes a group. The group is removed from all user to group mappings, all group to strategy mappings. All table ACLs and input table editors that reference the group are deleted.- Specified by:
deleteGroup
in interfaceDbAclWriter
- Parameters:
group
- the group to delete.
-
deleteUser
Description copied from interface:DbAclWriter
The user is deleted. Deletes the user's group, followed by deleting any other user to group associations for the user. If managed authentication is enabled, also deletes the user's password.- Specified by:
deleteUser
in interfaceDbAclWriter
- Parameters:
user
- the user to delete
-
addGroupStrategy
Description copied from interface:DbAclWriter
For AccountFilterGenerator() there are two levels of mappings. Group to strategy and strategy to account. This will add a group to the intermediate "strategy".- Specified by:
addGroupStrategy
in interfaceDbAclWriter
- Parameters:
group
- the group to map to a strategystrategy
- the strategy that the group is added to
-
deleteGroupStrategy
Description copied from interface:DbAclWriter
For AccountFilterGenerator() there are two levels of mappings. Group to strategy and strategy to account. This will remove a group from the intermediate "strategy".- Specified by:
deleteGroupStrategy
in interfaceDbAclWriter
- Parameters:
group
- the group to remove a mapping to a strategystrategy
- the strategy that the group is removed from
-
addStrategyAccount
Description copied from interface:DbAclWriter
For AccountFilterGenerator() there are two levels of mappings. Group to strategy and strategy to account. This will add an account to the intermediate "strategy".- Specified by:
addStrategyAccount
in interfaceDbAclWriter
- Parameters:
strategy
- the strategy that the account is added toaccount
- the account to add to a strategy
-
deleteStrategyAccount
Description copied from interface:DbAclWriter
For AccountFilterGenerator() there are two levels of mappings. Group to strategy and strategy to account. This will remove an account from the intermediate "strategy".- Specified by:
deleteStrategyAccount
in interfaceDbAclWriter
- Parameters:
strategy
- the strategy that the account is added toaccount
- the account to add to a strategy
-
addAcl
Description copied from interface:DbAclWriter
Adds an ACL entry. No ACL entry may currently exist for the group and table in question.- Specified by:
addAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to add the entry forns
- the namespace to add the entry for ("*" for all namespaces)table
- the namespace to add the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")acl
- the ACL to add, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
updateAcl
Description copied from interface:DbAclWriter
Changes an already existent ACL entry. An ACL entry must currently exist for the group and table in question.- Specified by:
updateAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to update the entry forns
- the namespace to update the entry for ("*" for all namespaces)table
- the namespace to update the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")acl
- the new ACL, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
deleteAcls
Description copied from interface:DbAclWriter
Deletes an ACL entry for a group and table.- Specified by:
deleteAcls
in interfaceDbAclWriter
- Parameters:
group
- the group to remove the entry forns
- the namespace to remove the entry for ("*" for all namespaces)table
- the namespace to remove the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")
-
addColumnAcl
Description copied from interface:DbAclWriter
Adds a Column ACL entry. No ACL entry may currently exist for the group and table in question.- Specified by:
addColumnAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to add the entry forns
- the namespace to add the entry for ("*" for all namespaces)table
- the namespace to add the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")columns
- the columns the ACL applies toacl
- the ACL to add, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
updateColumnAcl
Description copied from interface:DbAclWriter
Changes an already existent Column ACL entry. An ACL entry must currently exist for the group, table, and column set in question.- Specified by:
updateColumnAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to update the entry forns
- the namespace to update the entry for ("*" for all namespaces)table
- the namespace to update the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")columns
- the columns the ACL applies toacl
- the new ACL, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
deleteColumnAcls
Description copied from interface:DbAclWriter
Deletes a Column ACL entry for a group, table, and column set.- Specified by:
deleteColumnAcls
in interfaceDbAclWriter
- Parameters:
group
- the group to remove the entry forns
- the namespace to add the entry for ("*" for all namespaces)table
- the namespace to add the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")columns
- the applicable columne set
-
addSystemAcl
Description copied from interface:DbAclWriter
Adds a system ACL entry. No ACL entry may currently exist for the group and key in question.- Specified by:
addSystemAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to add the entry forkey
- the key to add the entry for (wildcard not allowed)acl
- the ACL to add, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
updateSystemAcl
Description copied from interface:DbAclWriter
Changes an already existent system ACL entry. An ACL entry must currently exist for the group and key in question.- Specified by:
updateSystemAcl
in interfaceDbAclWriter
- Parameters:
group
- the group to update the entry forkey
- the key to update the entry for (no wildcard)acl
- the new ACL, see http://wiki.illumon.com/Iris/Permissions#Table_Access_Control_Lists_.28ACLs.29- Returns:
- the number of rows within the ACL database that were modified.
-
deleteSystemAcls
Description copied from interface:DbAclWriter
Deletes a system ACL entry for a group and key.- Specified by:
deleteSystemAcls
in interfaceDbAclWriter
- Parameters:
group
- the group to remove the entry forkey
- the namespace to add the entry for (wildcard not allowed)
-
addInputTableEditor
Description copied from interface:DbAclWriter
Adds an entry to the ACL database for editing an input table.- Specified by:
addInputTableEditor
in interfaceDbAclWriter
- Parameters:
group
- the group to add the entry forns
- the namespace to add the entry for ("*" for all namespaces)table
- the namespace to add the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")canEdit
- whether the table is editable for this group- Returns:
- the number of rows within the ACL database that were modified.
-
updateInputTableEditor
Description copied from interface:DbAclWriter
Updates an entry to the ACL database for editing an input table.- Specified by:
updateInputTableEditor
in interfaceDbAclWriter
- Parameters:
group
- the group to update the entry forns
- the namespace to update the entry for ("*" for all namespaces)table
- the namespace to update the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")canEdit
- whether the table is editable for this group- Returns:
- the number of rows within the ACL database that were modified.
-
deleteInputTableEditor
Description copied from interface:DbAclWriter
Deletes an entry to the ACL database for editing an input table.- Specified by:
deleteInputTableEditor
in interfaceDbAclWriter
- Parameters:
group
- the group to delete the entry forns
- the namespace to delete the entry for ("*" for all namespaces)table
- the namespace to delete the entry for ("*" for tables within a namespace, if ns is "*" table must also be "*")
-
addOrUpdateSystemUserAcl
Description copied from interface:DbAclWriter
Inserts or Updates an entry to the ACL database for run-as mapping- Specified by:
addOrUpdateSystemUserAcl
in interfaceDbAclWriter
- Parameters:
user
- the user whose system-user mapping is to be updatedsystemUser
- the system-user which will be used for launching workers- Returns:
- the number of rows within the ACL database that were modified
-
deleteSystemUserAcl
Description copied from interface:DbAclWriter
Removes an entry from the ACL database for run-as mapping- Specified by:
deleteSystemUserAcl
in interfaceDbAclWriter
- Parameters:
user
- the user whose system-user mapping is to be deleted
-