Class UserLoader
- java.lang.Object
-
- com.caplin.motif.fx.ret.permissioning.extension.loading.UserLoader
-
- All Implemented Interfaces:
PermissionLoader
public class UserLoader extends java.lang.Object implements PermissionLoader
A
PermissionLoader
which queries anAuthenticationManager
for permissions.Permission loading is split into three phases: GROUPS, USERS and CURRENCIES
- The
GroupPermissionLoader
creates GROUPS UserPermissionLoader
depends on GROUPS being created by theGroupPermissionLoader
UserPermissionsLoader
depends on USERS being created by theUserPermissionLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.permissioning.permissions.PermissionLoader
PermissionLoader.Context
-
-
Constructor Summary
Constructors Constructor Description UserLoader()
-
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)
-
-
-
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
-
-