Hi Isura,

Thanks for the reply. I also had a offline chat with isharak and that
helped me to understand the reason.

thanks

On Sat, Jan 31, 2015 at 7:07 AM, Isura Karunaratne <[email protected]> wrote:

> Hi Lasantha,
>
> On Fri, Jan 30, 2015 at 1:42 AM, Lasitha Wattaladeniya <[email protected]>
> wrote:
>
>> I'm developing on IS version 5.0.0
>>
>> On Fri, Jan 30, 2015 at 1:35 AM, Lasitha Wattaladeniya <[email protected]
>> > wrote:
>>
>>> Hi all,
>>>
>>> In the org.wso2.carbon.idp.mgt.ui component the update method in
>>> idp-mgt-edit-local.jsp submits the form to idp-mgt-edit-finish-local.jsp ,
>>> which eventually call the updateResidentIdP method in
>>> org.wso2.carbon.idp.mgt.ui.client.IdentityProviderMgtServiceClient class.
>>>
>>>
>>> public void updateResidentIdP(IdentityProvider identityProvider) throws
>>> Exception {
>>>         try {
>>>             idPMgtStub.updateResidentIdP(identityProvider);
>>>         } catch (Exception e) {
>>>             log.error(e.getMessage(), e);
>>>             throw new Exception("Error occurred while retrieving list of
>>> Identity Providers");
>>>         }
>>>     }
>>>
>>> which calls the updateResidentIdP method
>>> in org.wso2.carbon.idp.mgt.IdentityProviderManagementService through the
>>> service stub.
>>>
>>> public void updateResidentIdP(IdentityProvider identityProvider)
>>>             throws IdentityApplicationManagementException {
>>>
>>>     // invoking the listeners
>>>     List<IdentityProviderMgtLister> listerns =
>>> IdpMgtListenerServiceComponent.getListners();
>>>     for(IdentityProviderMgtLister listner : listerns) {
>>>     listner.updateResidentIdP(identityProvider);
>>>     }
>>>
>>>         String tenantDomain =
>>> CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
>>>
>>> IdentityProviderManager.getInstance().updateResidentIdP(identityProvider,
>>> tenantDomain);
>>>     }
>>>
>>> as you can see , the update method calls each listener's
>>> updateResidentIdp method. Listeners should have registered as an osgi
>>> service with IdentityProviderMgtLister interface.
>>>
>>> when I searched for the osgi services registered to that interface , I
>>> could only get one service ,
>>>
>>> osgi> services (objectclass=*IdentityProviderMgtLister)
>>> {org.wso2.carbon.idp.mgt.listener.IdentityProviderMgtLister}={service.id
>>> =160}
>>>   "Registered by bundle:" org.wso2.carbon.identity.provisioning_4.2.0
>>> [246]
>>>   "Bundles using service"
>>>     org.wso2.carbon.idp.mgt_4.2.2 [279]
>>>
>>>
>>> in the org.wso2.carbon.identity.provisioning component , implementation
>>> of IdentityProviderMgtLister interface is
>>> the IdentityProviderMgtProvisioningListener class. which has the following
>>> method ,
>>>
>>> @Override
>>>     public void updateResidentIdP(IdentityProvider identityProvider) {
>>>         log.debug("update Resident Identity Provider event received");
>>>     }
>>>
>>> which does nothing, so my question is,
>>> aren't there any other implementations of IdentityProviderMgtLister ?
>>>
>> AFAIK there is no other implementations of IdentityProviderMgtListner
>
>>
>>> is it updating only through this method ,
>>> IdentityProviderManager.getInstance().updateResidentIdP(identityProvider,
>>> tenantDomain); ?
>>>
>> Yes. Resident service provider is currently updating through only
> IdentityProviderManager.getInstance().updateResidentIdP(identityProvider,
> tenantDomain)  method.
>
>>
>>> --
>>> Lasitha Wattaladeniya
>>> Software Engineer
>>> WSO2, Inc. | http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> Mobile : +94719397528
>>> Blog : techreadme.blogspot.com
>>>
>>
>>
>>
>> --
>> Lasitha Wattaladeniya
>> Software Engineer
>> WSO2, Inc. | http://wso2.com
>> lean. enterprise. middleware
>>
>> Mobile : +94719397528
>> Blog : techreadme.blogspot.com
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

Mobile : +94719397528
Blog : techreadme.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to