- All Superinterfaces:
PolicyProvider
A policy provider to provide a
Policy for a table's row level
security.- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionProvide a list ofPolicyfor a table's row level security.provide(Table<R> table, PolicyContext ctx) Provide a list ofPolicyfor a table's row level security.
-
Method Details
-
provide
Provide a list ofPolicyfor a table's row level security.Implementations may provide a list of
Policyfor a table and a given type of statement. If different providers produce multiple policies for a given table, theirPolicy.condition()will be combined withCondition.and(Condition), implementing a restrictive access control strategy, as opposed to a permissive one.- Parameters:
table- The table to provide a policy for.ctx- The policy context that allows access to execute contexts, etc.- Returns:
- The policy, or
nullif no policy exists.
-
provide
Description copied from interface:PolicyProviderProvide a list ofPolicyfor a table's row level security.Implementations may provide a list of
Policyfor a table and a given type of statement. If different providers produce multiple policies for a given table, theirPolicy.condition()will be combined withCondition.and(Condition), implementing a restrictive access control strategy, as opposed to a permissive one.- Specified by:
providein interfacePolicyProvider- Parameters:
table- The table to provide a policy for.- Returns:
- The policy, or
nullif no policy exists.
-