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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAdd aPolicy.final DefaultPolicyProviderfinal <R extends Record>
 DefaultPolicyProviderappend(Table<R> table, Condition condition, Collection<? extends Path<R>> inherited) Add aPolicyfor aPolicy.table()andPolicy.condition()as well as a set ofPolicy.inherited()paths.final <R extends Record>
 DefaultPolicyProviderAdd aPolicyfor aPolicy.table()andPolicy.condition()as well as a set ofPolicy.inherited()paths.Provide a list ofPolicyfor a table's row level security.toString()
- 
Constructor Details- 
DefaultPolicyProviderpublic DefaultPolicyProvider()
 
- 
- 
Method Details- 
provideDescription 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 interface- PolicyProvider
- Parameters:
- table- The table to provide a policy for.
- Returns:
- The policy, or nullif no policy exists.
 
- 
append
- 
append@SafeVarargs public final <R extends Record> DefaultPolicyProvider append(Table<R> table, Condition condition, Path<R>... inherited) Add aPolicyfor aPolicy.table()andPolicy.condition()as well as a set ofPolicy.inherited()paths.
- 
appendpublic final <R extends Record> DefaultPolicyProvider append(Table<R> table, Condition condition, Collection<? extends Path<R>> inherited) Add aPolicyfor aPolicy.table()andPolicy.condition()as well as a set ofPolicy.inherited()paths.
- 
appendAdd aPolicy.
- 
toString
 
-