Implementing VPD grouped policies
There may be cases where you want to use different VPD policies on the same object. In such cases VPD offers a feature named grouped policies that can be used to assign policies to different groups and to trigger them depending on certain conditions. Enabling one policy or another will be decided by a driver context according to certain parameters declared at the application level. The following recipe will demonstrate how to use this VPD feature.
In this recipe we will create a table that will contain three different department groups.
We will create a new user
STOBIAS in addition to the
JWHALEN users created earlier, in order to have one user for each group of departments. For each group of departments ...