public abstract class IdentityStoreConfigurationBuilder<T extends IdentityStoreConfiguration,S extends IdentityStoreConfigurationBuilder<T,S>> extends AbstractIdentityConfigurationChildBuilder<T> implements IdentityStoreConfigurationChildBuilder
Base class for IdentityStoreConfigurationBuilder
implementations.
Modifier | Constructor and Description |
---|---|
protected |
IdentityStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
<U extends IdentityStoreConfigurationBuilder<?,?>> |
add(Class<? extends IdentityStoreConfiguration> identityStoreConfiguration,
Class<U> builder) |
S |
addContextInitializer(ContextInitializer contextInitializer)
Adds a
ContextInitializer . |
S |
addCredentialHandler(Class<? extends CredentialHandler> credentialHandler)
Adds a custom .
|
FileStoreConfigurationBuilder |
file() |
protected List<ContextInitializer> |
getContextInitializers() |
protected Map<String,Object> |
getCredentialHandlerProperties() |
protected Set<Class<? extends CredentialHandler>> |
getCredentialHandlers() |
protected Set<Class<? extends Relationship>> |
getGlobalRelationshipTypes() |
protected Set<Class<? extends Relationship>> |
getSelfRelationshipTypes() |
protected Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> |
getSupportedTypes() |
protected Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> |
getUnsupportedTypes() |
protected boolean |
isSupportAttributes() |
protected boolean |
isSupportCredentials() |
protected boolean |
isSupportPermissions() |
JPAStoreConfigurationBuilder |
jpa() |
LDAPStoreConfigurationBuilder |
ldap() |
protected Builder<T> |
readFrom(T configuration)
Reads a pre-created configuration.
|
S |
setCredentialHandlerProperty(String propertyName,
Object value)
Sets a configuration property for a
CredentialHandler . |
S |
supportAllFeatures()
Enables the default feature set for this configuration.
|
S |
supportAttributes(boolean supportAttributes)
Enable/Disable attribute support
|
S |
supportCredentials(boolean supportCredentials)
Enable/Disable credentials support
|
S |
supportGlobalRelationship(Class<? extends Relationship>... types)
Defines which types should be supported by this configuration.
|
S |
supportPermissions(boolean supportPermissions)
Enable/Disable permissions support
|
S |
supportSelfRelationship(Class<? extends Relationship>... types)
Defines which types should be supported by this configuration.
|
S |
supportType(Class<? extends AttributedType>... attributedTypes)
Defines which types should be supported by this configuration.
|
TokenStoreConfigurationBuilder |
token() |
S |
unsupportType(Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation... operations)
Defines which type should not be supported by this configuration.
|
protected void |
validate()
Validates the internal state.
|
build, buildAll, named
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, buildAll, named
protected IdentityStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder)
public FileStoreConfigurationBuilder file()
file
in interface IdentityStoreConfigurationChildBuilder
public JPAStoreConfigurationBuilder jpa()
jpa
in interface IdentityStoreConfigurationChildBuilder
public LDAPStoreConfigurationBuilder ldap()
ldap
in interface IdentityStoreConfigurationChildBuilder
public TokenStoreConfigurationBuilder token()
token
in interface IdentityStoreConfigurationChildBuilder
public S supportType(Class<? extends AttributedType>... attributedTypes)
Defines which types should be supported by this configuration.
attributedTypes
- public S unsupportType(Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation... operations)
Defines which type should not be supported by this configuration.
If the operation was not provided, the type should be completely removed from the supported types. Otherwise, only the provided operations should not be supported.
type
- operations
- public S supportGlobalRelationship(Class<? extends Relationship>... types)
Defines which types should be supported by this configuration.
types
- public S supportSelfRelationship(Class<? extends Relationship>... types)
Defines which types should be supported by this configuration.
types
- public S supportAllFeatures()
Enables the default feature set for this configuration.
public S addContextInitializer(ContextInitializer contextInitializer)
Adds a ContextInitializer
.
contextInitializer
- public S setCredentialHandlerProperty(String propertyName, Object value)
Sets a configuration property for a CredentialHandler
.
propertyName
- value
- public S addCredentialHandler(Class<? extends CredentialHandler> credentialHandler)
Adds a custom .
credentialHandler
- public S supportCredentials(boolean supportCredentials)
Enable/Disable credentials support
supportCredentials
- public S supportPermissions(boolean supportPermissions)
Enable/Disable permissions support
supportPermissions
- public S supportAttributes(boolean supportAttributes)
Enable/Disable attribute support
supportAttributes
- protected void validate()
Builder
Validates the internal state.
validate
in class Builder<T extends IdentityStoreConfiguration>
protected Builder<T> readFrom(T configuration)
Builder
Reads a pre-created configuration.
readFrom
in class Builder<T extends IdentityStoreConfiguration>
protected List<ContextInitializer> getContextInitializers()
protected Set<Class<? extends CredentialHandler>> getCredentialHandlers()
protected Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getSupportedTypes()
protected Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getUnsupportedTypes()
protected Set<Class<? extends Relationship>> getGlobalRelationshipTypes()
protected Set<Class<? extends Relationship>> getSelfRelationshipTypes()
protected boolean isSupportAttributes()
protected boolean isSupportCredentials()
protected boolean isSupportPermissions()
public <U extends IdentityStoreConfigurationBuilder<?,?>> U add(Class<? extends IdentityStoreConfiguration> identityStoreConfiguration, Class<U> builder)
add
in interface IdentityStoreConfigurationChildBuilder
Copyright © 2018 JBoss by Red Hat. All rights reserved.