public class TenantController extends BizController
BizController.SaveHelper| Modifier and Type | Field and Description |
|---|---|
static String |
PERMISSION_MANAGE_TENANTS
Contains the permission required to manage tenants.
|
| Constructor and Description |
|---|
TenantController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTenant(sirius.web.http.WebContext ctx,
String tenantId)
Deletes the given tenant and returns the list of tenants.
|
String |
getPermissionDescription(String role)
Returns a translated description of the given permission.
|
String |
getPermissionName(String role)
Returns a translated name of the given permission.
|
List<String> |
getPermissions()
Returns all available features which can be assigned to a tenant.
|
void |
selectTenant(sirius.web.http.WebContext ctx,
String id)
Makes the current user belong to the given tenant.
|
void |
selectTenants(sirius.web.http.WebContext ctx)
Lists all tenants which the current user can "become" (switch to).
|
void |
tenant(sirius.web.http.WebContext ctx,
String tenantId)
Provides an editor for updating a tenant.
|
void |
tenantConfig(sirius.web.http.WebContext ctx,
String tenantId)
Provides an editor for changing the config of a tenant.
|
void |
tenants(sirius.web.http.WebContext ctx)
Lists all tenants known to the system.
|
void |
tenantUpdate(sirius.web.http.WebContext ctx,
sirius.web.services.JSONStructuredOutput out,
String tenantId)
Provides a JSON API to change the settings of a tenant, including its configuration.
|
assertNotNew, assertTenant, find, findForTenant, getBaseUrl, load, load, load, prepareSave, setOrVerify, tryFind, tryFindForTenant, validatepublic static final String PERMISSION_MANAGE_TENANTS
public List<String> getPermissions()
public String getPermissionName(String role)
role - the permission or feature to translatepublic String getPermissionDescription(String role)
role - the permission for which a description is requestedpublic void tenants(sirius.web.http.WebContext ctx)
ctx - the current requestpublic void tenant(sirius.web.http.WebContext ctx,
String tenantId)
ctx - the current requesttenantId - the id of the tenant to changepublic void tenantUpdate(sirius.web.http.WebContext ctx,
sirius.web.services.JSONStructuredOutput out,
String tenantId)
ctx - the current requestout - the JSON response being generatedtenantId - the id of the tenant to updatepublic void tenantConfig(sirius.web.http.WebContext ctx,
String tenantId)
ctx - the current requesttenantId - the id of the tenant to changepublic void deleteTenant(sirius.web.http.WebContext ctx,
String tenantId)
ctx - the current requesttenantId - the id of the tenant to deletepublic void selectTenants(sirius.web.http.WebContext ctx)
ctx - the current requestpublic void selectTenant(sirius.web.http.WebContext ctx,
String id)
ctx - the current requestid - the id of the tenant to switch toCopyright © 2018. All rights reserved.