java.lang.Object
org.jooq.impl.DefaultPolicyProvider
- All Implemented Interfaces:
PolicyProvider
A default implementation of the
PolicyProvider
SPI, offering a way to
construct a PolicyProvider
.- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd aPolicy
.final DefaultPolicyProvider
final <R extends Record>
DefaultPolicyProviderappend
(Table<R> table, Condition condition, Collection<? extends Path<R>> inherited) Add aPolicy
for aPolicy.table()
andPolicy.condition()
as well as a set ofPolicy.inherited()
paths.final <R extends Record>
DefaultPolicyProviderAdd aPolicy
for aPolicy.table()
andPolicy.condition()
as well as a set ofPolicy.inherited()
paths.Provide a list ofPolicy
for a table's row level security.toString()
-
Constructor Details
-
DefaultPolicyProvider
public DefaultPolicyProvider()
-
-
Method Details
-
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.
-
append
-
append
@SafeVarargs public final <R extends Record> DefaultPolicyProvider append(Table<R> table, Condition condition, Path<R>... inherited) Add aPolicy
for aPolicy.table()
andPolicy.condition()
as well as a set ofPolicy.inherited()
paths. -
append
public final <R extends Record> DefaultPolicyProvider append(Table<R> table, Condition condition, Collection<? extends Path<R>> inherited) Add aPolicy
for aPolicy.table()
andPolicy.condition()
as well as a set ofPolicy.inherited()
paths. -
append
Add aPolicy
. -
toString
-