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 |
|---|---|
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 List<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() |
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 |
supportCredentials(boolean supportCredentials)
Enable/Disable credentials support
|
S |
supportGlobalRelationship(Class<? extends Relationship>... types)
Defines which types should be supported by this configuration.
|
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.
|
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, namedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, buildAll, namedprotected IdentityStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder)
public FileStoreConfigurationBuilder file()
file in interface IdentityStoreConfigurationChildBuilderpublic JPAStoreConfigurationBuilder jpa()
jpa in interface IdentityStoreConfigurationChildBuilderpublic LDAPStoreConfigurationBuilder ldap()
ldap in interface IdentityStoreConfigurationChildBuilderpublic S supportType(Class<? extends AttributedType>... attributedTypes)
Defines which types should be supported by this configuration.
types - 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 - operation - 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 - protected void validate()
BuilderValidates the internal state.
validate in class Builder<T extends IdentityStoreConfiguration>protected Builder<T> readFrom(T configuration)
BuilderReads a pre-created configuration.
readFrom in class Builder<T extends IdentityStoreConfiguration>protected List<ContextInitializer> getContextInitializers()
protected List<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()
Copyright © 2013. All Rights Reserved.