Class BaseCustomModelPermissionPolicy
java.lang.Object
com.onenetwork.platform.data.model.BaseCustomModelPermissionPolicy
- All Implemented Interfaces:
CustomModelPermissionPolicy
public abstract class BaseCustomModelPermissionPolicy extends java.lang.Object implements CustomModelPermissionPolicy
Base implementation for
CustomModelPermissionPolicy
.-
Constructor Summary
Constructors Constructor Description BaseCustomModelPermissionPolicy()
-
Method Summary
Modifier and Type Method Description void
preProcess(PermissionContext permissionContext)
This method will be called before applying any of the permission logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.onenetwork.platform.data.model.CustomModelPermissionPolicy
applyCustomWritePermissions, getReportPermissionQueryContribution, getViewPermissionQueryContribution
-
Constructor Details
-
BaseCustomModelPermissionPolicy
public BaseCustomModelPermissionPolicy()
-
-
Method Details
-
preProcess
This method will be called before applying any of the permission logic. A module developer can override this method and can setPermissionContext.setIgnoreOtherPermissionTypes(boolean)
to true if they want to run custom permissions only and ignore other types of permission (such as Dimension, Related Model, Geo, etc.). Platform will still run all custom permission policies configured for the invoking role type, even when the ignoreOtherPermissionTypes is true.
-