Klasse WorldGuardImportService

java.lang.Object
de.delinkedde.areashopreborn.application.WorldGuardImportService

public final class WorldGuardImportService extends Object
Discovers and resumably imports top-level WorldGuard cuboids as managed cities.
  • Konstruktordetails

    • WorldGuardImportService

      public WorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads)
      Creates the WorldGuard import service.
      Parameter:
      database - asynchronous database executor
      estates - estate repository
      application - city import use case
      worldGuard - WorldGuard adapter
      threads - main-thread bridge
    • WorldGuardImportService

      public WorldGuardImportService(Database database, EstateRepository estates, EstateApplicationService application, WorldGuardGateway worldGuard, ThreadBridge threads, int maximumCandidates, int maximumReportDetails)
      Creates a resource-bounded WorldGuard import service.
      Parameter:
      database - asynchronous database executor
      estates - estate repository
      application - city import use case
      worldGuard - WorldGuard adapter
      threads - main-thread bridge
      maximumCandidates - hard candidate ceiling before any write
      maximumReportDetails - maximum detail lines retained in memory
  • Methodendetails

    • importCities

      public CompletableFuture<ImportReport> importCities(UUID actorId, UUID landlordId, String worldKey, boolean dryRun)
      Previews or executes import of eligible regions in one loaded world.

      Each city is committed independently. A repeated run skips already imported protection identifiers, making recovery from a partial batch explicit and resumable.

      Parameter:
      actorId - administrator performing the import
      landlordId - landlord assigned to every newly imported city
      worldKey - loaded Bukkit world key
      dryRun - whether to report without writing
      Gibt zurück:
      future containing import decisions