Class RoleMaintainerMock
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.user.RoleMaintainerMock
-
- All Implemented Interfaces:
RoleMaintainer
public class RoleMaintainerMock extends Object implements RoleMaintainer
- Author:
- olaa
-
-
Constructor Summary
Constructors Constructor Description RoleMaintainerMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteLeftoverRoles(List<Tenant> tenants, List<com.yahoo.config.provision.ApplicationId> applications)Given the set of all existing tenants and applications, delete any superflous rolesvoidmockTenantToDelete(Tenant tenant)List<Tenant>tenantsToDelete(List<Tenant> tenants)Finds the subset of tenants that should be deleted based on role/domain existence
-
-
-
Method Detail
-
deleteLeftoverRoles
public void deleteLeftoverRoles(List<Tenant> tenants, List<com.yahoo.config.provision.ApplicationId> applications)
Description copied from interface:RoleMaintainerGiven the set of all existing tenants and applications, delete any superflous roles- Specified by:
deleteLeftoverRolesin interfaceRoleMaintainer
-
tenantsToDelete
public List<Tenant> tenantsToDelete(List<Tenant> tenants)
Description copied from interface:RoleMaintainerFinds the subset of tenants that should be deleted based on role/domain existence- Specified by:
tenantsToDeletein interfaceRoleMaintainer
-
mockTenantToDelete
public void mockTenantToDelete(Tenant tenant)
-
-