Class TenantUtils
java.lang.Object
org.craftercms.security.utils.tenant.TenantUtils
Tenant related utility methods.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the current tenant name, which is the tenant of the currently authenticated profile.getTenantNames
(TenantService tenantService) Returns a list with the names of all tenants.
-
Method Details
-
getTenantNames
Returns a list with the names of all tenants.- Parameters:
tenantService
- the service that retrieves theTenant
s.- Returns:
- the list of tenant names
- Throws:
ProfileException
-
getCurrentTenantName
Returns the current tenant name, which is the tenant of the currently authenticated profile.- Returns:
- the current tenant name.
-