Package org.wso2.is7.tenant.management
Class ISTenantSyncListener
java.lang.Object
org.wso2.is7.tenant.management.ISTenantSyncListener
- All Implemented Interfaces:
org.wso2.carbon.stratos.common.listeners.TenantMgtListener
public class ISTenantSyncListener
extends Object
implements org.wso2.carbon.stratos.common.listeners.TenantMgtListener
Listener class for Tenant management in IS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidonPostDelete(int tenantId, String tenantUuid, String adminUserUuid) voidonPreDelete(int i) voidonPreTenantCreate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) voidonSubscriptionPlanChange(int i, String s, String s1) voidonTenantActivation(int tenantId) voidonTenantCreate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) voidonTenantDeactivation(int tenantId) voidonTenantDelete(int i) voidonTenantInitialActivation(int tenantId) Check whether tenant is created in IS side and if it is not created, deactivate tenant in APIM sidevoidonTenantRename(int i, String s, String s1) voidonTenantUpdate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean)
-
Constructor Details
-
ISTenantSyncListener
public ISTenantSyncListener()
-
-
Method Details
-
onTenantCreate
public void onTenantCreate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onTenantCreatein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onTenantUpdate
public void onTenantUpdate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onTenantUpdatein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onTenantDelete
public void onTenantDelete(int i) - Specified by:
onTenantDeletein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener
-
onTenantRename
public void onTenantRename(int i, String s, String s1) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onTenantRenamein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onTenantInitialActivation
public void onTenantInitialActivation(int tenantId) throws org.wso2.carbon.stratos.common.exception.StratosException Check whether tenant is created in IS side and if it is not created, deactivate tenant in APIM side- Specified by:
onTenantInitialActivationin interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Parameters:
tenantId-- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onTenantActivation
public void onTenantActivation(int tenantId) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onTenantActivationin interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onTenantDeactivation
public void onTenantDeactivation(int tenantId) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onTenantDeactivationin interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onSubscriptionPlanChange
public void onSubscriptionPlanChange(int i, String s, String s1) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onSubscriptionPlanChangein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
getListenerOrder
public int getListenerOrder()- Specified by:
getListenerOrderin interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener
-
onPreDelete
public void onPreDelete(int i) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onPreDeletein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onPreTenantCreate
public void onPreTenantCreate(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onPreTenantCreatein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-
onPostDelete
public void onPostDelete(int tenantId, String tenantUuid, String adminUserUuid) throws org.wso2.carbon.stratos.common.exception.StratosException - Specified by:
onPostDeletein interfaceorg.wso2.carbon.stratos.common.listeners.TenantMgtListener- Throws:
org.wso2.carbon.stratos.common.exception.StratosException
-