Search in sources :

Example 1 with TenantConsentMgtListener

use of org.wso2.carbon.identity.consent.mgt.listener.TenantConsentMgtListener in project carbon-identity-framework by wso2.

the class IdentityConsentServiceComponent method activate.

@Activate
protected void activate(ComponentContext ctxt) {
    try {
        ctxt.getBundleContext().registerService(AbstractEventHandler.class.getName(), new ConsentDeletionUserEventHandler(), null);
        ctxt.getBundleContext().registerService(ApplicationMgtListener.class.getName(), new ConsentDeletionAppMgtListener(), null);
        ctxt.getBundleContext().registerService(TenantMgtListener.class.getName(), new TenantConsentMgtListener(), null);
        ctxt.getBundleContext().registerService(ConsentUtilityService.class.getName(), new ConsentUtilityService(), null);
    } catch (Throwable throwable) {
        log.error("Error while activating Identity Consent Service Component.", throwable);
    }
}
Also used : TenantMgtListener(org.wso2.carbon.stratos.common.listeners.TenantMgtListener) TenantConsentMgtListener(org.wso2.carbon.identity.consent.mgt.listener.TenantConsentMgtListener) AbstractEventHandler(org.wso2.carbon.identity.event.handler.AbstractEventHandler) ConsentUtilityService(org.wso2.carbon.identity.consent.mgt.services.ConsentUtilityService) ApplicationMgtListener(org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtListener) ConsentDeletionAppMgtListener(org.wso2.carbon.identity.consent.mgt.listener.ConsentDeletionAppMgtListener) ConsentDeletionUserEventHandler(org.wso2.carbon.identity.consent.mgt.handler.ConsentDeletionUserEventHandler) Activate(org.osgi.service.component.annotations.Activate)

Aggregations

Activate (org.osgi.service.component.annotations.Activate)1 ApplicationMgtListener (org.wso2.carbon.identity.application.mgt.listener.ApplicationMgtListener)1 ConsentDeletionUserEventHandler (org.wso2.carbon.identity.consent.mgt.handler.ConsentDeletionUserEventHandler)1 ConsentDeletionAppMgtListener (org.wso2.carbon.identity.consent.mgt.listener.ConsentDeletionAppMgtListener)1 TenantConsentMgtListener (org.wso2.carbon.identity.consent.mgt.listener.TenantConsentMgtListener)1 ConsentUtilityService (org.wso2.carbon.identity.consent.mgt.services.ConsentUtilityService)1 AbstractEventHandler (org.wso2.carbon.identity.event.handler.AbstractEventHandler)1 TenantMgtListener (org.wso2.carbon.stratos.common.listeners.TenantMgtListener)1