@Named public class BasicAuthDao extends Object
| Constructor and Description |
|---|
BasicAuthDao(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
| Modifier and Type | Method and Description |
|---|---|
BasicAuthConfig |
get() |
void |
save(BasicAuthConfig newConfig)
Saves the new config and publishes BasicAuthUpdatedEvent A cluster lock locks this operation so only one save can occur at a single time.
|
void |
save(UnaryOperator<BasicAuthConfig> update)
Saves the new config and publishes BasicAuthUpdatedEvent A cluster lock locks this operation so only one save can occur at a single time.
|
@Inject
public BasicAuthDao(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.beehive.ClusterLockService clusterLockService,
com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void save(BasicAuthConfig newConfig)
newConfig - new basic authentication config to be savedpublic void save(UnaryOperator<BasicAuthConfig> update)
update - a function to supply the new basic authentication config to be saved, based on the current configpublic BasicAuthConfig get()
Copyright © 2023 Atlassian. All rights reserved.