|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.stratos.tenant.mgt.ui.utils.TenantMgtUtil
public class TenantMgtUtil
Utility methods for tenant.mgt.ui
| Constructor Summary | |
|---|---|
TenantMgtUtil()
|
|
| Method Summary | |
|---|---|
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.apache.stratos.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.apache.stratos.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TenantMgtUtil()
| Method Detail |
|---|
public static void addTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws Exception
request - HttpServletRequestconfig - ServletConfigsession - HttpSession
Exception - , if error in adding the tenant
public static void updateTenantConfigBean(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws Exception
request - HttpServletRequestconfig - ServletConfigsession - HttpSession
Exception - , if error in updating the tenant
public static org.apache.stratos.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 - HttpSession
Exception - , if getting the tenant information failed.
public static org.apache.stratos.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 - HttpSession
Exception - , if error in getting the tenant
public static void activateTenant(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
throws Exception
request - HttpServletRequestconfig - ServletConfigsession - HttpSession
Exception - , 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 - HttpSession
Exception - , if failed to deactivate the tenantpublic static String removeHtmlElements(String text)
text - the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||