@Beta
public interface TenantAdminApi
Modifier and Type | Method and Description |
---|---|
void |
addRoleOnTenant(String tenantId,
String userId,
String roleId)
Adds role to a user on a tenant
|
Tenant |
create(String name)
Creates a new tenant
|
Tenant |
create(String name,
CreateTenantOptions options)
Creates a new tenant
|
boolean |
delete(String userId)
Deletes a tenant
|
boolean |
deleteRoleOnTenant(String tenantId,
String userdId,
String roleId)
Deletes role to a user on tenant
|
Tenant |
update(String id,
UpdateTenantOptions options)
Updates a tenant
|
@Named(value="tenant:create") @Nullable Tenant create(String name)
@Named(value="tenant:create") @Nullable Tenant create(String name, CreateTenantOptions options)
@Named(value="tenant:delete") boolean delete(String userId)
@Named(value="tenant:updateTenant") @Nullable Tenant update(String id, UpdateTenantOptions options)
@Named(value="tenant:addRoleOnTenant") void addRoleOnTenant(String tenantId, String userId, String roleId)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.