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
GroupPermissionLoader
creates GROUPSUserLoader
depends on GROUPS being created by the GroupPermissionLoader
UserPermissionsLoader
depends on USERS being created by the UserLoader
Modifier and Type | Class and Description |
---|---|
static class |
GroupPermissionLoader.Schema |
PermissionLoader.Context
Constructor and Description |
---|
GroupPermissionLoader() |
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) throws PermissionsLoaderException
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
PermissionsLoaderException
- if for any reason initialisation fails.public void loadPermissionsWithoutTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
loadPermissionsWithoutTransaction
in interface PermissionLoader
PermissionsLoaderException
public void loadPermissionsWithTransaction(com.caplin.permissioning.PermissioningDataSource permissioningDataSource, int runCount) throws PermissionsLoaderException
loadPermissionsWithTransaction
in interface PermissionLoader
PermissionsLoaderException
Copyright © 2019 Caplin Systems.