Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8A7810E4A for ; Tue, 15 Sep 2015 06:16:51 +0000 (UTC) Received: (qmail 13418 invoked by uid 500); 15 Sep 2015 06:16:51 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 13364 invoked by uid 500); 15 Sep 2015 06:16:51 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 13354 invoked by uid 99); 15 Sep 2015 06:16:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2015 06:16:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6BFC9DFBBB; Tue, 15 Sep 2015 06:16:51 +0000 (UTC) From: swgkg To: dev@stratos.apache.org Reply-To: dev@stratos.apache.org References: In-Reply-To: Subject: [GitHub] stratos pull request: Making signup button available only when app... Content-Type: text/plain Message-Id: <20150915061651.6BFC9DFBBB@git1-us-west.apache.org> Date: Tue, 15 Sep 2015 06:16:51 +0000 (UTC) Github user swgkg commented on a diff in the pull request: https://github.com/apache/stratos/pull/464#discussion_r39477594 --- Diff: components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java --- @@ -1147,15 +1151,18 @@ public static ApplicationBean convertStubApplicationContextToApplicationDefiniti if (applicationContext == null) { return null; } - + Application application = ApplicationManager.getApplications().getApplication(applicationContext.getApplicationId()); ApplicationBean applicationDefinition = new ApplicationBean(); applicationDefinition.setApplicationId(applicationContext.getApplicationId()); applicationDefinition.setAlias(applicationContext.getAlias()); applicationDefinition.setMultiTenant(applicationContext.getMultiTenant()); applicationDefinition.setName(applicationContext.getName()); applicationDefinition.setDescription(applicationContext.getDescription()); - applicationDefinition.setStatus(applicationContext.getStatus()); - + if (application.getStatus().name().equals(APPLICATION_STATUS_ACTIVE)) { --- End diff -- Can't we reuse the ApplicationStatus enum without declaring the additional constant of APPLICATION_STATUS_ACTIVE? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---