public abstract class AbstractDynamicUserConfiguration extends Object implements DynamicUserConfiguration, org.springframework.beans.factory.InitializingBean
ACCESSOR, AUTHENTICATION, AUTHENTICATOR, BASE_CONTEXT, CACHE, CACHEFACTORY, CLASS, CLASSES, CONNECT_TIMEOUT, DEBUG, DEFAULT, DELEGATION, DESCRIPTION, ENTITY_QUERY_PARSER, EXTERNAL_ENTITY_DAO, EXTERNAL_REPOSITORY, GROUPADAPTOR, GROUPFACTORY, GROUPMANAGER, HIBERNATE, HIBERNATE_CONFIGURATION_PROVIDER, HIBERNATE_SESSION_FACTORY, INITSIZE, KEY, LDAP, LDAP_CONNECTION_POOL_PROPERTIES, LDAP_SCHEMA_MAPPINGS_PROPERTIES, MAXSIZE, MEMORY, NAME, ORDER, OSU_ACCESS_PROVIDER, OSU_AUTHENTICATOR, OSU_CREDENTIALS_PROVIDER, OSU_CREDENTIALS_PROVIDER_LIST, OSU_PROFILE_PROVIDER, OSUSER, PARAM, PASSWORD_ENCRYPTOR, POOL_AUTHENTICATION, POOLING_ON, PREFSIZE, PROCESSOR, PROPERTYSET_FACTORY, PROVIDER_URL, READ_TIMEOUT, REPOSITORIES, REPOSITORY, SECURITY_PROTOCOL, SERVER, TIMEOUT, TRUSTSTORE, USERADAPTOR, USERFACTORY, USERMANAGER, VERIFY_SSL_CERTIFICATE_HOSTNAME
Constructor and Description |
---|
AbstractDynamicUserConfiguration(File configurationDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
abstract com.atlassian.user.configuration.Configuration |
createConfiguration() |
com.atlassian.user.configuration.DelegationAccessor |
getDelegationAccessor() |
void |
init() |
boolean |
isInitialized() |
void |
updateConfiguration(Iterable<String> adminGroupNamesToCheck)
Reloads the user repository.
|
public AbstractDynamicUserConfiguration(@NotNull File configurationDirectory)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public com.atlassian.user.configuration.DelegationAccessor getDelegationAccessor()
getDelegationAccessor
in interface com.atlassian.user.configuration.Configuration
public void init()
init
in interface com.atlassian.user.configuration.Configuration
public boolean isInitialized()
isInitialized
in interface com.atlassian.user.configuration.Configuration
public abstract com.atlassian.user.configuration.Configuration createConfiguration() throws com.atlassian.user.configuration.ConfigurationException, IOException
com.atlassian.user.configuration.ConfigurationException
IOException
public final void updateConfiguration(Iterable<String> adminGroupNamesToCheck) throws com.atlassian.user.configuration.ConfigurationException, IOException
DynamicUserConfiguration
If adminGroupNamesToCheck is not null, the update will fail if none of the given group names contains any users. This can be used to ensure that the new configuration will contain at least one admin user.
updateConfiguration
in interface DynamicUserConfiguration
adminGroupNamesToCheck
- admin groups to check for userscom.atlassian.user.configuration.ConfigurationException
- if the new repository could not be loadedIOException
- if there was an error reading configuration filesCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.