- 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 ofPolicy
for a table's row level security.provide
(Table<R> table, PolicyContext ctx) Provide a list ofPolicy
for a table's row level security.
-
Method Details
-
provide
Provide a list ofPolicy
for a table's row level security.Implementations may provide a list of
Policy
for 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
null
if no policy exists.
-
provide
Description copied from interface:PolicyProvider
Provide a list ofPolicy
for a table's row level security.Implementations may provide a list of
Policy
for 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:
provide
in interfacePolicyProvider
- Parameters:
table
- The table to provide a policy for.- Returns:
- The policy, or
null
if no policy exists.
-