Skip to content

Commit

Permalink
Rename MigrationSettings into ImportingSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Oct 25, 2023
1 parent 86615b8 commit e2e1af9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import com.bivashy.auth.api.config.link.TelegramSettings;
import com.bivashy.auth.api.config.link.VKSettings;
import com.bivashy.auth.api.config.message.server.ServerMessages;
import com.bivashy.auth.api.config.migration.MigrationSettings;
import com.bivashy.auth.api.config.importing.ImportingSettings;
import com.bivashy.auth.api.config.server.ConfigurationServer;
import com.bivashy.auth.api.crypto.CryptoProvider;
import com.bivashy.auth.api.database.DatabaseConnectionProvider;
Expand Down Expand Up @@ -80,7 +80,7 @@ public interface PluginConfig {

GoogleAuthenticatorSettings getGoogleAuthenticatorSettings();

MigrationSettings getMigrationSettings();
ImportingSettings getImportingSettings();

TelegramSettings getTelegramSettings();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.bivashy.auth.api.config.link.TelegramSettings;
import com.bivashy.auth.api.config.link.VKSettings;
import com.bivashy.auth.api.config.message.server.ServerMessages;
import com.bivashy.auth.api.config.migration.MigrationSettings;
import com.bivashy.auth.api.config.importing.ImportingSettings;
import com.bivashy.auth.api.config.server.ConfigurationServer;
import com.bivashy.auth.api.crypto.CryptoProvider;
import com.bivashy.auth.api.database.DatabaseConnectionProvider;
Expand Down Expand Up @@ -109,7 +109,7 @@ public abstract class PluginConfigTemplate implements PluginConfig {
@ConfigField("authentication-steps")
private List<String> authenticationSteps = Arrays.asList("REGISTER", "LOGIN", "VK_LINK", "TELEGRAM_LINK", "GOOGLE_LINK", "ENTER_SERVER");
@ConfigField("import")
private MigrationSettings migrationSettings;
private ImportingSettings importingSettings;

public PluginConfigTemplate(AuthPlugin plugin) {
this.plugin = plugin;
Expand Down Expand Up @@ -300,8 +300,8 @@ public IntStream getLimboPortRange() {
}

@Override
public MigrationSettings getMigrationSettings() {
return migrationSettings;
public ImportingSettings getImportingSettings() {
return importingSettings;
}

protected abstract ConfigurationSectionHolder createConfiguration(AuthPlugin plugin);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package me.mastercapexd.auth.config.migration;
package me.mastercapexd.auth.config.importing;

import com.bivashy.auth.api.AuthPlugin;
import com.bivashy.auth.api.config.migration.MigrationSettings;
import com.bivashy.auth.api.config.importing.ImportingSettings;
import com.bivashy.configuration.ConfigurationHolder;
import com.bivashy.configuration.annotation.ConfigField;
import com.bivashy.configuration.holder.ConfigurationSectionHolder;

public class BaseMigrationSettings implements ConfigurationHolder, MigrationSettings {
public class BaseImportingSettings implements ConfigurationHolder, ImportingSettings {
@ConfigField("retrieval-size")
private int retrievalSize;

public BaseMigrationSettings(ConfigurationSectionHolder sectionHolder) {
public BaseImportingSettings(ConfigurationSectionHolder sectionHolder) {
AuthPlugin.instance().getConfigurationProcessor().resolve(sectionHolder, this);
}

Expand Down

0 comments on commit e2e1af9

Please sign in to comment.