ZoneGroupService
class ZoneGroupService (View source)
Service for managing zone-group ownership
Handles assigning groups as zone owners
Methods
__construct(ZoneGroupRepositoryInterface $zoneGroupRepository, UserGroupRepositoryInterface $groupRepository)
No description
addGroupToZone(int $domainId, int $groupId)
Add a group as zone owner
bool
removeGroupFromZone(int $domainId, int $groupId)
Remove a group from zone owners
array
listZoneOwners(int $domainId)
List all groups that own a zone
array
listGroupZones(int $groupId)
List all zones owned by a group
array
bulkAddZones(int $groupId, array $domainIds)
Add multiple zones to a group
array
bulkRemoveZones(int $groupId, array $domainIds)
Remove multiple zones from a group
bool
isGroupOwner(int $domainId, int $groupId)
Check if a group owns a zone
array
getGroupDeletionImpact(int $groupId, int $limit = 20)
Get zones that will be affected when a group is deleted
Details
__construct(ZoneGroupRepositoryInterface $zoneGroupRepository, UserGroupRepositoryInterface $groupRepository)
No description
ZoneGroup
addGroupToZone(int $domainId, int $groupId)
Add a group as zone owner
bool
removeGroupFromZone(int $domainId, int $groupId)
Remove a group from zone owners
Note: Zones can exist without any owners
array
listZoneOwners(int $domainId)
List all groups that own a zone
array
listGroupZones(int $groupId)
List all zones owned by a group
array
bulkAddZones(int $groupId, array $domainIds)
Add multiple zones to a group
array
bulkRemoveZones(int $groupId, array $domainIds)
Remove multiple zones from a group
bool
isGroupOwner(int $domainId, int $groupId)
Check if a group owns a zone
array
getGroupDeletionImpact(int $groupId, int $limit = 20)
Get zones that will be affected when a group is deleted