Klasse RegionGroupService
java.lang.Object
de.delinkedde.areashopreborn.application.RegionGroupService
Coordinates administrative lifecycle and membership of persistent region groups.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRegionGroupService(Database database, RegionGroupRepository groups, EstateRepository estates) Creates the region group service.RegionGroupService(Database database, RegionGroupRepository groups, EstateRepository estates, int maximumGroups, int maximumAssignmentsPerRegion) Creates the region group service with persistent cardinality ceilings. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAssigns a managed region to a group.Creates a named group.Deletes a group and all of its assignments.list()Lists every group.list(int limit) Lists a bounded group prefix.Lists regions assigned to one group.Lists a bounded assigned-region prefix.Removes a managed region from a group.
-
Konstruktordetails
-
RegionGroupService
public RegionGroupService(Database database, RegionGroupRepository groups, EstateRepository estates) Creates the region group service.- Parameter:
database- asynchronous database executorgroups- group repositoryestates- estate lookup and audit repository
-
RegionGroupService
public RegionGroupService(Database database, RegionGroupRepository groups, EstateRepository estates, int maximumGroups, int maximumAssignmentsPerRegion) Creates the region group service with persistent cardinality ceilings.- Parameter:
database- asynchronous database executorgroups- group repositoryestates- estate lookup and audit repositorymaximumGroups- maximum persistent groupsmaximumAssignmentsPerRegion- maximum direct assignments per region
-
-
Methodendetails
-
create
Creates a named group.- Parameter:
actorId- administrator creating the groupname- stable command namedisplayName- user-facing name- Gibt zurück:
- future containing the created group
-
delete
Deletes a group and all of its assignments.- Parameter:
actorId- administrator deleting the groupname- group name- Gibt zurück:
- completion future
-
assign
Assigns a managed region to a group.- Parameter:
actorId- assigning administratorgroupName- group nameregionName- region display name or WorldGuard identifier- Gibt zurück:
- completion future
-
unassign
Removes a managed region from a group.- Parameter:
actorId- assigning administratorgroupName- group nameregionName- region display name or WorldGuard identifier- Gibt zurück:
- completion future
-
list
Lists every group.- Gibt zurück:
- future containing immutable groups
-
list
Lists a bounded group prefix.- Parameter:
limit- maximum groups returned- Gibt zurück:
- future containing immutable groups
-
members
Lists regions assigned to one group.- Parameter:
groupName- group name- Gibt zurück:
- future containing immutable region snapshots
-
members
Lists a bounded assigned-region prefix.- Parameter:
groupName- group namelimit- maximum regions returned- Gibt zurück:
- future containing immutable region snapshots
-