@Controller @RequestMapping(value="/tenant") public class TenantController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL_TENANT |
static String |
MODEL_MESSAGE |
static String |
MODEL_PAGE_HEADER |
static String |
MSG_TENANT_CREATED_FORMAT |
static String |
MSG_TENANT_DELETED_FORMAT |
static String |
MSG_TENANT_UPDATED_FORMAT |
static String |
PAGE_HEADER_NEW |
static String |
PAGE_HEADER_UPDATE |
static String |
PATH_VAR_NAME |
static String |
URL_CREATE_TENANT |
static String |
URL_DELETE_TENANT |
static String |
URL_GET_TENANT |
static String |
URL_GET_TENANT_NAMES |
static String |
URL_UPDATE_TENANT |
static String |
URL_VIEW_NEW_TENANT |
static String |
URL_VIEW_TENANT |
static String |
URL_VIEW_TENANT_LIST |
static String |
VIEW_TENANT |
static String |
VIEW_TENANT_LIST |
| Constructor and Description |
|---|
TenantController() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
createTenant(Tenant tenant) |
Map<String,String> |
deleteTenant(String name) |
Tenant |
getTenant(String name) |
List<String> |
getTenantNames() |
void |
setTenantPermissionEvaluator(org.craftercms.commons.security.permissions.PermissionEvaluator<Profile,String> tenantPermissionEvaluator) |
void |
setTenantService(TenantService tenantService) |
Map<String,String> |
updateTenant(Tenant tenant) |
org.springframework.web.servlet.ModelAndView |
viewNewTenant() |
org.springframework.web.servlet.ModelAndView |
viewTenant() |
String |
viewTenantList() |
public static final String BASE_URL_TENANT
public static final String PATH_VAR_NAME
public static final String URL_VIEW_TENANT_LIST
public static final String URL_VIEW_NEW_TENANT
public static final String URL_VIEW_TENANT
public static final String URL_GET_TENANT_NAMES
public static final String URL_GET_TENANT
public static final String URL_CREATE_TENANT
public static final String URL_UPDATE_TENANT
public static final String URL_DELETE_TENANT
public static final String VIEW_TENANT_LIST
public static final String VIEW_TENANT
public static final String MODEL_PAGE_HEADER
public static final String MODEL_MESSAGE
public static final String PAGE_HEADER_NEW
public static final String PAGE_HEADER_UPDATE
public static final String MSG_TENANT_CREATED_FORMAT
public static final String MSG_TENANT_UPDATED_FORMAT
public static final String MSG_TENANT_DELETED_FORMAT
public void setTenantService(TenantService tenantService)
public void setTenantPermissionEvaluator(org.craftercms.commons.security.permissions.PermissionEvaluator<Profile,String> tenantPermissionEvaluator)
@RequestMapping(value="/list/view",
method=GET)
public String viewTenantList()
throws ProfileException
ProfileException@RequestMapping(value="/new/view",
method=GET)
public org.springframework.web.servlet.ModelAndView viewNewTenant()
throws ProfileException
ProfileException@RequestMapping(value="/view",
method=GET)
public org.springframework.web.servlet.ModelAndView viewTenant()
throws ProfileException
ProfileException@RequestMapping(value="/names",
method=GET)
@ResponseBody
public List<String> getTenantNames()
throws ProfileException
ProfileException@RequestMapping(value="/{name}",
method=GET)
@ResponseBody
public Tenant getTenant(@PathVariable(value="name")
String name)
throws ProfileException
ProfileException@RequestMapping(value="/create",
method=POST)
@ResponseBody
public Map<String,String> createTenant(@RequestBody
Tenant tenant)
throws ProfileException
ProfileException@RequestMapping(value="/update",
method=POST)
@ResponseBody
public Map<String,String> updateTenant(@RequestBody
Tenant tenant)
throws ProfileException
ProfileException@RequestMapping(value="/{name}/delete",
method=POST)
@ResponseBody
public Map<String,String> deleteTenant(@PathVariable(value="name")
String name)
throws ProfileException
ProfileExceptionCopyright © 2021 CrafterCMS. All rights reserved.