Re: Introduce an Activated state to ApplicationContext

2015-09-14 Thread Akila Ravihansa Perera
Great! I've merged the PR to stratos-4.1.x branch. Please update the JIRA. On Tue, Sep 15, 2015 at 10:53 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi All, > > Thanks for the clarification. I have now changed application signup button > to be enable only when application is acti

Re: Introduce an Activated state to ApplicationContext

2015-09-14 Thread Anuruddha Liyanarachchi
Hi All, Thanks for the clarification. I have now changed application signup button to be enable only when application is active [1][2][3]. Also added remove signup button [4]. Please merge the PR which contain changes [5]. [1] https://drive.google.com/file/d/0B0v957zZwVWrdUEyOTJTUUtORlE/view?usp

Re: Introduce an Activated state to ApplicationContext

2015-09-14 Thread Imesh Gunaratne
Hi Anuruddha, I think what we need to use is ApplicationBean not the ApplicationContext. On the Applications Overview page in the UI we use getApplications() API method. If we can update this API method to return the Active state for each application, we should be able to implement this logic in

Re: Introduce an Activated state to ApplicationContext

2015-09-13 Thread Reka Thirunavukkarasu
Hi Anuruddha, ApplicationContext is not the runtime. It is a static reference to the application definition. In which we have a life cycle to identify whether it is created/deployed/undeploying. The actual runtime can be found in the Applications Topology where it already has the relevant life cyc

Re: Introduce an Activated state to ApplicationContext

2015-09-13 Thread Anuruddha Liyanarachchi
Hi, But we are not setting the ApplicationContext to active state when application gets activated. We are only using three states [1]. Don't we have to introduce "Active" state also to the ApplicationContext and change UI, API and events accordingly. [1] https://github.com/apache/stratos/blob/st

Re: Introduce an Activated state to ApplicationContext

2015-09-10 Thread Gayan Gunarathne
yeah. I think we already have that application active status.In integration tests we already checking this for assert the application activation. I think you can do the same here and allow sign up only when application is on active state. Thanks, Gayan On Thu, Sep 10, 2015 at 7:24 PM, Akila Ravih

Re: Introduce an Activated state to ApplicationContext

2015-09-10 Thread Akila Ravihansa Perera
Don't we already have an Active status [1] for Applications? [1] https://github.com/apache/stratos/blob/stratos-4.1.x/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/application/ApplicationStatus.java#L37 On Thu, Sep 10, 2015 at 6:54 PM, Anuruddha Liyanar

Introduce an Activated state to ApplicationContext

2015-09-10 Thread Anuruddha Liyanarachchi
Hi Devs, I am planing to do $subject in Stratos. This will prevent users from signing-up before application is active. The application life cycle will be as [1]. WDYT? [1] https://docs.google.com/drawings/d/1XOVZkgp_UUpGvD_HykECU_8yoA2YWgfpqv6wX2mgacY/edit?usp=sharing -- *Thanks and Regards,*