public class PermissioningAdapterConfigurationBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTER_NAME |
Constructor and Description |
---|
PermissioningAdapterConfigurationBuilder()
This class produces a PermissioningAdapterConfiguration which can be used to instantiate a
PermissioningAdapter . |
Modifier and Type | Method and Description |
---|---|
PermissioningAdapterConfigurationBuilder |
addPermissionLoader(PermissionLoader permissionLoader)
Adds a
PermissionLoader to the list that will be used by the PermissioningAdapter to apply permissions. |
PermissioningAdapterConfiguration |
build()
Creates an instance of PermissioningConfiguration which can be used to instantiate a PermissioningAdapter.
|
PermissioningAdapterConfigurationBuilder |
setAdapterConfigurationListener(AdapterConfigurationListener listener)
Sets a custom
AdapterConfigurationListener to extend the PermissioningAdapter's default behaviour. |
PermissioningAdapterConfigurationBuilder |
setAuthenticationManager(AuthenticationManager authenticationManager)
Sets a custom
AuthenticationManager to extend the PermissioningAdapter's default behaviour. |
PermissioningAdapterConfigurationBuilder |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets a custom
ConfigurationLoader to replace the OrderAdapter's default behaviour. |
PermissioningAdapterConfigurationBuilder |
setDataSource(com.caplin.datasource.DataSource dataSource)
Sets a custom
DataSource to extend the PermissioningAdapter's default behaviour. |
PermissioningAdapterConfigurationBuilder |
setInstrumentProvider(InstrumentProvider instrumentProvider)
Sets a custom
InstrumentProvider to replace the default InstrumentProvider |
PermissioningAdapterConfigurationBuilder |
setUserManager(UserManager userManager)
Sets a custom
UserManager to extend the PermissioningAdapter's default behaviour. |
public static final java.lang.String ADAPTER_NAME
public PermissioningAdapterConfigurationBuilder() throws ConfigurationLoaderException
PermissioningAdapter
.ConfigurationLoaderException
public PermissioningAdapterConfigurationBuilder setUserManager(UserManager userManager)
UserManager
to extend the PermissioningAdapter's default behaviour.userManager
- a custom UserManager
UserManager
public PermissioningAdapterConfigurationBuilder setAuthenticationManager(AuthenticationManager authenticationManager)
AuthenticationManager
to extend the PermissioningAdapter's default behaviour.authenticationManager
- a custom AuthenticationManager
AuthenticationManager
public PermissioningAdapterConfigurationBuilder setAdapterConfigurationListener(AdapterConfigurationListener listener)
AdapterConfigurationListener
to extend the PermissioningAdapter's default behaviour.listener
- a custom AdapterConfigurationListener
AdapterConfigurationListener
public PermissioningAdapterConfigurationBuilder setDataSource(com.caplin.datasource.DataSource dataSource)
DataSource
to extend the PermissioningAdapter's default behaviour.dataSource
- a custom DataSource
DataSource
public PermissioningAdapterConfigurationBuilder setConfigurationLoader(ConfigurationLoader configurationLoader)
ConfigurationLoader
to replace the OrderAdapter's default behaviour.configurationLoader
- a custom ConfigurationLoader
ConfigurationLoader
public PermissioningAdapterConfigurationBuilder setInstrumentProvider(InstrumentProvider instrumentProvider)
InstrumentProvider
to replace the default InstrumentProviderinstrumentProvider
- a custom InstrumentProvider
public PermissioningAdapterConfigurationBuilder addPermissionLoader(PermissionLoader permissionLoader)
PermissionLoader
to the list that will be used by the PermissioningAdapter to apply permissions.
The order is important, calls into the permissions loaders will occur in the order that they were added.permissionLoader
- A permissions loader to add.PermissionLoader
public PermissioningAdapterConfiguration build()
Copyright © 2019 Caplin Systems.