public class UserLoader extends java.lang.Object implements PermissionLoader
A PermissionLoader
which queries an AuthenticationManager
for permissions.
Permission loading is split into three phases: GROUPS, USERS and CURRENCIES
GroupPermissionLoader
creates GROUPSUserPermissionLoader
depends on GROUPS being created by the GroupPermissionLoader
UserPermissionsLoader
depends on USERS being created by the UserPermissionLoader
PermissionLoader.Context
Constructor and Description |
---|
UserLoader() |
Modifier and Type | Method and Description |
---|---|
void |
initialise(PermissionLoader.Context context)
This notifies the
PermissionLoader that it is about to be loaded. |
void |
loadPermissionsWithoutTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource,
int runCount) |
void |
loadPermissionsWithTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource,
int runCount) |
public void initialise(PermissionLoader.Context context)
PermissionLoader
This notifies the PermissionLoader
that it is about to be loaded. This method
will be called by the system once.
You should use this method to perform any initialisation required before the
PermissionLoader
is loaded by the system.
initialise
in interface PermissionLoader
public void loadPermissionsWithTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
loadPermissionsWithTransaction
in interface PermissionLoader
PermissionsLoaderException
public void loadPermissionsWithoutTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
loadPermissionsWithoutTransaction
in interface PermissionLoader
PermissionsLoaderException
Copyright © 2016 Caplin Systems.