Class GlobalAuthorizationConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.AbstractGlobalConfigurationBuilder
org.infinispan.configuration.global.GlobalAuthorizationConfigurationBuilder
- All Implemented Interfaces:
Builder<GlobalAuthorizationConfiguration>
,GlobalConfigurationChildBuilder
public class GlobalAuthorizationConfigurationBuilder
extends AbstractGlobalConfigurationBuilder
implements Builder<GlobalAuthorizationConfiguration>
GlobalAuthorizationConfigurationBuilder.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionauditLogger
(AuditLogger auditLogger) The instance of anAuditLogger
to be used to track operations performed on caches and cachemanagers.create()
Create the configuration beandisable()
enable()
enabled
(boolean enabled) groupOnlyMapping
(boolean groupOnlyMapping) Determines whether role mapping applies to group principals only or also to user principals.boolean
principalRoleMapper
(PrincipalRoleMapper principalRoleMapper) Builder
<?> read
(GlobalAuthorizationConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.rolePermissionMapper
(RolePermissionMapper rolePermissionMapper) The class of a mapper which mapsRole
s toAuthorizationPermission
svoid
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.configuration.global.AbstractGlobalConfigurationBuilder
addModule, asyncThreadPool, blockingThreadPool, build, clearModules, defaultCacheName, expirationThreadPool, getGlobalConfig, globalState, jmx, listenerThreadPool, metrics, module, modules, nonBlockingThreadPool, persistenceThreadPool, security, serialization, shutdown, site, tracing, transport
-
Constructor Details
-
GlobalAuthorizationConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<GlobalAuthorizationConfiguration>
-
enable
-
disable
-
enabled
-
isEnabled
public boolean isEnabled() -
auditLogger
The instance of anAuditLogger
to be used to track operations performed on caches and cachemanagers. The default logger is theNullAuditLogger
. You can also use theLoggingAuditLogger
which will send audit messages to the log.- Parameters:
auditLogger
-
-
groupOnlyMapping
Determines whether role mapping applies to group principals only or also to user principals. Defaults to true.- Parameters:
groupOnlyMapping
-
-
principalRoleMapper
public GlobalAuthorizationConfigurationBuilder principalRoleMapper(PrincipalRoleMapper principalRoleMapper) - Parameters:
principalRoleMapper
-
-
rolePermissionMapper
public GlobalAuthorizationConfigurationBuilder rolePermissionMapper(RolePermissionMapper rolePermissionMapper) The class of a mapper which mapsRole
s toAuthorizationPermission
s- Parameters:
rolePermissionMapper
-
-
role
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<GlobalAuthorizationConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<GlobalAuthorizationConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<GlobalAuthorizationConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-