Klasse HomeAccessService

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

public final class HomeAccessService extends Object
Coordinates explicit home-teleport access grants for managed regions.
  • Konstruktordetails

    • HomeAccessService

      public HomeAccessService(Database database, EstateRepository estates, HomeAccessRepository grants)
      Creates the home access service.
      Parameter:
      database - asynchronous database executor
      estates - estate lookup and audit repository
      grants - home access repository
  • Methodendetails

    • allow

      public CompletableFuture<Void> allow(UUID actorId, String regionName, UUID playerId, boolean administrative)
      Grants explicit home access to a player.
      Parameter:
      actorId - actor managing the region
      regionName - region display name or protection identifier
      playerId - receiving player
      administrative - whether ownership checks may be bypassed
      Gibt zurück:
      completion future
    • deny

      public CompletableFuture<Void> deny(UUID actorId, String regionName, UUID playerId, boolean administrative)
      Revokes explicit home access from a player.
      Parameter:
      actorId - actor managing the region
      regionName - region display name or protection identifier
      playerId - affected player
      administrative - whether ownership checks may be bypassed
      Gibt zurück:
      completion future
    • list

      public CompletableFuture<List<UUID>> list(UUID actorId, String regionName, boolean administrative)
      Lists explicit grants for a region after checking management authority.
      Parameter:
      actorId - actor managing the region
      regionName - region display name or protection identifier
      administrative - whether ownership checks may be bypassed
      Gibt zurück:
      future containing player identifiers
    • list

      public CompletableFuture<List<UUID>> list(UUID actorId, String regionName, boolean administrative, int limit)
      Lists a bounded explicit-grant prefix after checking management authority.
      Parameter:
      actorId - actor managing the region
      regionName - region display name or protection identifier
      administrative - whether ownership checks may be bypassed
      limit - maximum identities returned
      Gibt zurück:
      future containing player identifiers
    • isExplicitlyAllowed

      public CompletableFuture<Boolean> isExplicitlyAllowed(UUID regionId, UUID playerId)
      Tests whether a player has an explicit grant for a known region.
      Parameter:
      regionId - internal region identifier
      playerId - player identifier
      Gibt zurück:
      future containing the access decision