public class TenantMgtUtil extends Object
Constructor and Description |
---|
TenantMgtUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
activateTenant(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin activates a tenant
|
static void |
addTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin Adds a tenant
|
static void |
deactivateTenant(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin deactivates a tenant
|
static org.wso2.carbon.tenant.mgt.stub.beans.xsd.TenantInfoBean |
getTenant(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin gets a particular tenant
|
static org.wso2.carbon.tenant.mgt.stub.beans.xsd.TenantInfoBean[] |
getTenants(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin gets all the tenant
|
static String |
removeHtmlElements(String text)
This is used to avoid xss attacks
|
static void |
updateTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Super admin Updates a tenant
|
public static void addTenantConfigBean(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if error in adding the tenantpublic static void updateTenantConfigBean(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if error in updating the tenantpublic static org.wso2.carbon.tenant.mgt.stub.beans.xsd.TenantInfoBean[] getTenants(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if getting the tenant information failed.public static org.wso2.carbon.tenant.mgt.stub.beans.xsd.TenantInfoBean getTenant(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if error in getting the tenantpublic static void activateTenant(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if failed to activate the tenant.public static void deactivateTenant(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws Exception
request
- HttpServletRequestconfig
- ServletConfigsession
- HttpSessionException
- , if failed to deactivate the tenantCopyright © 2024 WSO2. All rights reserved.