Class UserPermissionsLoader
- java.lang.Object
-
- com.caplin.motif.fx.ret.permissioning.extension.loading.UserPermissionsLoader
-
- All Implemented Interfaces:
PermissionLoader
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
- The
GroupPermissionLoader
creates GROUPS UserLoader
depends on GROUPS being created by theGroupPermissionLoader
CurrenciesPermissionLoader
depends on USERS being created by theUserLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.permissioning.permissions.PermissionLoader
PermissionLoader.Context
-
-
Constructor Summary
Constructors Constructor Description UserPermissionsLoader()
UserPermissionsLoader(UserPermissionsPublisher userPermissionsPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialise(PermissionLoader.Context context)
This notifies thePermissionLoader
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)
-
-
-
Constructor Detail
-
UserPermissionsLoader
public UserPermissionsLoader()
-
UserPermissionsLoader
public UserPermissionsLoader(UserPermissionsPublisher userPermissionsPublisher)
-
-
Method Detail
-
initialise
public void initialise(PermissionLoader.Context context)
Description copied from interface: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.- Specified by:
initialise
in interfacePermissionLoader
-
loadPermissionsWithTransaction
public void loadPermissionsWithTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
- Specified by:
loadPermissionsWithTransaction
in interfacePermissionLoader
- Throws:
PermissionsLoaderException
-
loadPermissionsWithoutTransaction
public void loadPermissionsWithoutTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
- Specified by:
loadPermissionsWithoutTransaction
in interfacePermissionLoader
- Throws:
PermissionsLoaderException
-
-