Class GroupPermissionLoader
- java.lang.Object
-
- com.caplin.motif.fx.ret.permissioning.extension.loading.GroupPermissionLoader
-
- All Implemented Interfaces:
PermissionLoader
public class GroupPermissionLoader extends java.lang.Object implements PermissionLoader
A
PermissionLoader
which reads group permissions from an XML file.Permission loading is split into three phases: GROUPS, USERS and CURRENCIES
- The
GroupPermissionLoader
creates GROUPS UserLoader
depends on GROUPS being created by theGroupPermissionLoader
UserPermissionsLoader
depends on USERS being created by theUserLoader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupPermissionLoader.Schema
-
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.permissioning.permissions.PermissionLoader
PermissionLoader.Context
-
-
Constructor Summary
Constructors Constructor Description GroupPermissionLoader()
GroupPermissionLoader(InjectableXMLUtils xmlUtils)
-
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
-
GroupPermissionLoader
public GroupPermissionLoader()
-
GroupPermissionLoader
public GroupPermissionLoader(InjectableXMLUtils xmlUtils)
-
-
Method Detail
-
initialise
public void initialise(PermissionLoader.Context context) throws PermissionsLoaderException
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
- Throws:
PermissionsLoaderException
- if for any reason initialisation fails.
-
loadPermissionsWithoutTransaction
public void loadPermissionsWithoutTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
- Specified by:
loadPermissionsWithoutTransaction
in interfacePermissionLoader
- Throws:
PermissionsLoaderException
-
loadPermissionsWithTransaction
public void loadPermissionsWithTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
- Specified by:
loadPermissionsWithTransaction
in interfacePermissionLoader
- Throws:
PermissionsLoaderException
-
-