public class UserPermissionsLoader extends java.lang.Object implements PermissionLoader
A PermissionLoader
which queries the Trapi admin API for currency permissions.
Permission loading is split into three phases: GROUPS, USERS and CURRENCIES
GroupPermissionLoader
creates GROUPSUserLoader
depends on GROUPS being created by the GroupPermissionLoader
CurrenciesPermissionLoader
depends on USERS being created by the UserLoader
PermissionLoader.Context
Constructor and Description |
---|
UserPermissionsLoader() |
UserPermissionsLoader(UserPermissionsPublisher userPermissionsPublisher) |
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 UserPermissionsLoader()
public UserPermissionsLoader(UserPermissionsPublisher userPermissionsPublisher)
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.