Class AuthorizationConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AuthorizationConfigurationBuilder
- All Implemented Interfaces:
Builder<AuthorizationConfiguration>,ConfigurationChildBuilder,SecurityConfigurationChildBuilder
public class AuthorizationConfigurationBuilder
extends Object
implements Builder<AuthorizationConfiguration>
AuthorizationConfigurationBuilder.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizationConfigurationBuilder(SecurityConfigurationBuilder securityBuilder) -
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdisable()Disables authorization for this cacheenable()Enables authorization for this cache.enabled(boolean enabled) Enables/disables authorization for this cache.encoding()protected ConfigurationBuilderprotected SecurityConfigurationBuilderindexing()locking()memory()query()Builder<?>read(AuthorizationConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.Adds a role that can work with this cache.Adds roles that can work with this cache.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) toString()unsafe()voidvalidate(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
-
Field Details
-
builder
-
-
Constructor Details
-
AuthorizationConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<AuthorizationConfiguration>
-
disable
Disables authorization for this cache -
enable
Enables authorization for this cache. If no explicitrole(String)are specified, all of the global roles apply. -
enabled
Enables/disables authorization for this cache. If enabled and no explicitrole(String)are specified, all of the global roles apply. -
role
Adds a role that can work with this cache. Roles must be declared in theGlobalAuthorizationConfigurationBuilder.- Parameters:
name- the name of the role
-
roles
Adds roles that can work with this cache. Roles must be declared in theGlobalAuthorizationConfigurationBuilder.- Parameters:
names- the names of the roles
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<AuthorizationConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<AuthorizationConfiguration>- 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.
-
toString
-
getSecurityBuilder
-
authorization
- Specified by:
authorizationin interfaceSecurityConfigurationChildBuilder
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-