@Service(value="redbackRuntimeConfigurationAdmin#default") public class DefaultRedbackRuntimeConfigurationAdmin extends AbstractRepositoryAdmin implements RedbackRuntimeConfigurationAdmin, org.apache.archiva.redback.configuration.UserConfiguration
Modifier and Type | Field and Description |
---|---|
private ArchivaConfiguration |
archivaConfiguration |
protected org.slf4j.Logger |
log |
private org.apache.archiva.redback.configuration.UserConfiguration |
userConfiguration |
private org.apache.archiva.redback.components.cache.Cache |
usersCache |
DEFAULT_RBAC_MANAGER_IMPL, DEFAULT_USER_MANAGER_IMPL
Constructor and Description |
---|
DefaultRedbackRuntimeConfigurationAdmin(ArchivaConfiguration archivaConfiguration,
org.apache.archiva.redback.configuration.UserConfiguration userConfiguration,
org.apache.archiva.redback.components.cache.Cache usersCache) |
getArchivaConfiguration, getAuditListeners, getModelMapper, getRegistry, getRepositoryCommonValidator, saveConfiguration, setArchivaConfiguration, setAuditListeners, setRegistry, setRepositoryCommonValidator, triggerAuditEvent
protected org.slf4j.Logger log
private ArchivaConfiguration archivaConfiguration
private org.apache.archiva.redback.configuration.UserConfiguration userConfiguration
private org.apache.archiva.redback.components.cache.Cache usersCache
@Inject public DefaultRedbackRuntimeConfigurationAdmin(ArchivaConfiguration archivaConfiguration, @Named(value="userConfiguration#redback") org.apache.archiva.redback.configuration.UserConfiguration userConfiguration, @Named(value="cache#users") org.apache.archiva.redback.components.cache.Cache usersCache)
@PostConstruct public void initialize() throws org.apache.archiva.redback.configuration.UserConfigurationException
initialize
in interface org.apache.archiva.redback.configuration.UserConfiguration
org.apache.archiva.redback.configuration.UserConfigurationException
private boolean isSunContextFactoryAvailable()
public RedbackRuntimeConfiguration getRedbackRuntimeConfiguration()
getRedbackRuntimeConfiguration
in interface RedbackRuntimeConfigurationAdmin
public void updateRedbackRuntimeConfiguration(RedbackRuntimeConfiguration redbackRuntimeConfiguration) throws RepositoryAdminException
updateRedbackRuntimeConfiguration
in interface RedbackRuntimeConfigurationAdmin
RepositoryAdminException
private RedbackRuntimeConfiguration build(RedbackRuntimeConfiguration runtimeConfiguration)
private void cleanupProperties(RedbackRuntimeConfiguration redbackRuntimeConfiguration)
redbackRuntimeConfiguration
- private RedbackRuntimeConfiguration build(RedbackRuntimeConfiguration redbackRuntimeConfiguration)
public String getString(String key)
getString
in interface org.apache.archiva.redback.configuration.UserConfiguration
public String getString(String key, String defaultValue)
getString
in interface org.apache.archiva.redback.configuration.UserConfiguration
public int getInt(String key)
getInt
in interface org.apache.archiva.redback.configuration.UserConfiguration
public int getInt(String key, int defaultValue)
getInt
in interface org.apache.archiva.redback.configuration.UserConfiguration
public boolean getBoolean(String key)
getBoolean
in interface org.apache.archiva.redback.configuration.UserConfiguration
public boolean getBoolean(String key, boolean defaultValue)
getBoolean
in interface org.apache.archiva.redback.configuration.UserConfiguration
public List<String> getList(String key)
getList
in interface org.apache.archiva.redback.configuration.UserConfiguration
public String getConcatenatedList(String key, String defaultValue)
getConcatenatedList
in interface org.apache.archiva.redback.configuration.UserConfiguration
public Collection<String> getKeys()
getKeys
in interface org.apache.archiva.redback.configuration.UserConfiguration
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.