Hi Lakshman
You can use the way I explained (using relam service) to get the tenant
admin user.

Problem to be precise as below.
We have implemented the delete application method to delete an application
at a time. This can be done only by the application owner. So at this
deletion, we delete the app specific roles created in the 3 clouds. So for
this service call, we use the given user (logged in user) to mutual ssl to
cloud and get it deleted. But in the case of tenant deletion it will be
done by an super admin most of the case. So at that point we cannot use
logged in user there. So one solution available is to use tenant admin
username here. But I am not sure whether this is the best solution.

@Dimuthu,Manjula : WDYT?

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Thu, Sep 11, 2014 at 2:40 PM, Lakshman Udayakantha <[email protected]>
wrote:

> Hi,
>
> I’m implementing below method in *ApplicationManagementService.java* in
> *org.wso2.carbon.appfactory.application.mgt* to delete all the
> applications related to a tenant in APP Factory
>
> public void deleteAllApplicationsOfTenant(String domainName){
>
> }
>
> there is a method in same class to delete an application
>
> public boolean deleteApplication(Application application, String
> userName, String domainName) throws AppFactoryException {
>
> }
>
> we need userName to delete the application here. we need to get the tenant
> admin as a user. how do we get the tenant admin user?
>
> Thanks
>
> --
> Lakshman Udayakantha
> Software Engineer, WSO2
> Mobile: *0711241005*
>
> *[email protected] <[email protected]>*
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to