Hi all, Thanks for the feed back you provided. according to the offline discussion with Dimuthu and Danushka, only some traces(Git repo entries, RXT keys ) are remains there. so adding a method to delete them would be sufficient.
Thanks On Thu, Sep 11, 2014 at 4:55 PM, Dimuthu Leelarathne <[email protected]> wrote: > Hi all, > > Firstly, I think we should not be using Tenant Admin name for deleting, > because it is identity theft. :) > > If we take the use case, I think you are trying to delete Apps in a > scenario where you want to delete the tenant. If we are deleting the tenant > we don't need to delete the app role in the cloud. I would do a specific > app deletion method in the context of tenant deletion, but in reality I > wouldn't even do that. Because if you are wiping out the tenant, you don't > have to delete apps! That must be the case! Could you list the cases where > after the tenant is wiped out, traces of App remain? > > Secondly of all not all users should be shown the application delete > button. Created a JIRA. [1] > > thanks, > dimuthu > > [1] https://wso2.org/jira/browse/APPFAC-2487 > > > > On Thu, Sep 11, 2014 at 2:56 PM, Danushka Fernando <[email protected]> > wrote: > >> 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 <0711241005>* >>> >>> *[email protected] <[email protected]>* >>> >>> >> > > > -- > Dimuthu Leelarathne > Architect & Product Lead of App Factory > > WSO2, Inc. (http://wso2.com) > email: [email protected] > Mobile : 0773661935 > > Lean . Enterprise . Middleware > -- Lakshman Udayakantha Software Engineer, WSO2 Mobile: *0711241005* *[email protected] <[email protected]>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
