Klasse HomeAccessRepository
java.lang.Object
de.delinkedde.areashopreborn.persistence.HomeAccessRepository
Stores explicit permission to use home teleports whose destination lies in a managed region.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindGrantedPlayers(UUID regionId) Lists all explicitly permitted players for a region.findGrantedPlayers(UUID regionId, int limit) Lists a bounded prefix of explicit home grants.voidCreates or refreshes an explicit grant.booleanTests an explicit grant.booleanRemoves an explicit grant.
-
Konstruktordetails
-
HomeAccessRepository
Creates the repository.- Parameter:
database- database owner
-
-
Methodendetails
-
grant
Creates or refreshes an explicit grant.- Parameter:
regionId- target regionplayerId- permitted playeractorId- actor issuing the grant- Löst aus:
SQLException- when persistence fails
-
revoke
Removes an explicit grant.- Parameter:
regionId- target regionplayerId- player whose grant is removed- Gibt zurück:
- whether a row was removed
- Löst aus:
SQLException- when persistence fails
-
isGranted
Tests an explicit grant.- Parameter:
regionId- target regionplayerId- player to inspect- Gibt zurück:
- whether the grant exists
- Löst aus:
SQLException- when persistence fails
-
findGrantedPlayers
Lists all explicitly permitted players for a region.- Parameter:
regionId- target region- Gibt zurück:
- player identifiers in stable order
- Löst aus:
SQLException- when persistence fails
-
findGrantedPlayers
Lists a bounded prefix of explicit home grants.- Parameter:
regionId- target regionlimit- maximum player identifiers returned- Gibt zurück:
- player identifiers in stable order
- Löst aus:
SQLException- when persistence fails
-